gpsy1
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [silverOrchid] Slider show not workI think you must add featured images in the posts to show it on the slider at least that was problem for me.
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerYes Im using now custom css plugin as Andrew sugested its an exelent way to edit template, just wasnt thinking right,thanx.
If anybody is interested i solve this problem, im not sure about terminology but ill try to explain with my own words.
This is what i did:
#wrapper { width: 100%; margin: 0 auto; overflow: auto; } #content-container { width: 960px; margin: 0 auto; overflow: auto; clear: both; }
with this i make header, main menu and footer full width with difference that footer content is centered with #content-container so no need for extra centering of this but header logo, header banner and main menu links are not. What i did is i add another <div class=”wrapper”> in <div id=”gazpo-header”>
<div id="wrapper"> <div id="gazpo-header"> <!-- site logo and description --> <div class="wrapper"> <div class="logo"> <?php if ( isset ($gazpo_settings['gazpo_logo_url']) && ($gazpo_settings['gazpo_logo_url']!="") ) { ?> <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"> <img src="<?php echo $gazpo_settings['gazpo_logo_url']; ?>" alt="<?php bloginfo( 'name' ); ?>" /> </a> <?php } else {?> <h1 class="site-title"> <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"> <?php bloginfo('name'); ?> </a> </h1> <h3> <?php bloginfo('description'); ?> </h3> <?php } ?> </div> <!-- /logo --> <!-- header 468x60px ad --> <?php if ( isset($gazpo_settings['gazpo_ad468_code']) && ($gazpo_settings['gazpo_ad468_code']!="") ){ ?> <div class="ad468_60"> <?php echo(stripslashes ($gazpo_settings['gazpo_ad468_code'])); ?> </div> <?php } ?> </div> </div>
and add some style to the new wrapper
#gazpo-header .wrapper{ width: 960px; margin: 0 auto; }
and this gives me full with header with centered logo and banner inside.
For the main menu i just add text-align:center;
#gazpo-nav { background:#f6f6f6 url("images/nav-bg.png") repeat-x 0 0; border-bottom:2px solid #ccc; border-top:1px solid #ececec; display: block; float: left; margin: 0 auto; width: 100%; position:relative; z-index:4; text-align: center; }
and add some style
#gazpo-nav .main-menu { width: 960px; position: relative; margin: 0 auto; display: inline-block; }
the outcome of all this is full width header, menu and footer with centered content with rest of the site.
Thank you all for the help.
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerIm still having this issue, and after few days of reading css manuals, trial and error and writing for help on few different forums im no closer to solution then 3 days ago.
Can someone please give me a pointer where to look for or link to some kind of walktrue or manual.
Forum: Themes and Templates
In reply to: Centering logo,baner and menu in full width header.Im thinking i should somehow create container inside the header for logo and banner just not sure how to do this?
Forum: Themes and Templates
In reply to: Centering logo,baner and menu in full width header.Thank you for the help, yes I’m using child theme and editing css externally but don’t know how to align logo and banner with rest of the content.
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerdone
Forum: Themes and Templates
In reply to: [silverOrchid] How to add author meta?not needed!
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerThank you Andrew for quick response, i started learning css and this was suppose to be my first project. I will try to edit theme files externally as you advise and check the links you suggested. Don’t want to sound ungrateful but this still doesn’t help me much with my specific problem, but will keep looking. Thanx
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerSorry no child theme.
Forum: Fixing WordPress
In reply to: Full-width header, menu and footerI made some changes by changing wrapper width to 100% and margin 0 auto and also in the content-container width 960px with margin 0 auto.
I Now have header, menu and footer full width, but i cannot find solution to center align logo and banner in header and main menu items, they are also 100%.
What am i missing here?#wrapper { width: 100%; margin: 0px auto; background: #cccccc; overflow:auto; } #content-container{ width: 960px; background: #f0f0f0; padding: 0px 10px 0px 10px; margin: 0px auto; overflow:auto; clear:both; }
#gazpo-header{ width: 100%; background:#EEF6D5; overflow:auto; margin: 0 auto; } #gazpo-header .logo{ width:300px; float:left; } #gazpo-header .ad468_60{ width:468px; float:right; }
Hello, sorry i was reading your thread and check your blog link, can you please tell me how did you get by two posts in a row on this theme?
Forum: Themes and Templates
In reply to: php code to show author metaWow thanx a lot …works like a charm :).
Hello can you please tell me how to make this show specific category, when i make category page just want 1 category to show …
//include featured category 1
if ( $gazpo_settings[‘gazpo_feat_cat1’] != 0) {
get_template_part(‘includes/feat_cat1’);
}Thank you
Forum: Themes and Templates
In reply to: [silverOrchid] How to add author meta?My php is bad so im assuming its possible to get author meta displayed in single.php by adding something here:
<div class=”post-meta”>
<span class=”info”>
<span class=”date”><?php the_time(‘M. d’) ?></span>
<span class=”category”><?php the_category(‘, ‘ ); ?></span>
<span class=”comments”><?php comments_popup_link( __(‘no comments’, ‘silverorchid’), __( ‘1 comment’, ‘silverorchid’), __(‘% comments’, ‘silverorchid’)); ?></span>
</span>I tried adding:
<?php the_author_meta( $field, $userID ); ?>
and
<?php get_the_author_meta( $field, $userID ); ?>
but that didnt work, any suggestions?
Forum: Plugins
In reply to: [AntiVirus] TimThumb.phpIm getting virus suspected message when i scan with antivirus there is the message below, but im not sure what does it mean. When i scan with other antivirus or web based antivirus scan nothing is detected. Can anybody help?
/themes/Canyon/timthumb.php
$imgData = base64_decode(“R0lGODlhUAAMAIAAAP8AAP///yH5BAAHAP8ALAAAAA …
… WXfNa6JCLnWkXplrcBmW+spbwvaVr/cDyg7IoFC2KbYVC2NQ5MQ4ZNao9Ynzjl9ScNYpneb DULB3RP6JuPuaGfuuV4fumf8Puvq …
… C2NQ5MQ4ZNao9Ynzjl9ScNYpnebnDULB3RP6JuPuaGfuuV4fumf8PuvqFyhYtjdoeFgAADs=”);
if(! is_file($this->cachefile)){
} else if(is_file($this->cachefile)){ //If it’s not a local reque …
if(! is_file($lastCleanFile)){
… ‘png’ && OPTIPNG_ENABLED && OPTIPNG_PATH && @is_file(OPTIPNG_PATH)){
… ng’ && PNGCRUSH_ENABLED && PNGCRUSH_PATH && @is_file(PNGCRUSH_PATH)){s if(is_file($tempfile2)){
$fp = fopen($tempfile,’r’,0,$context);
file_put_contents($tempfile4, $this->filePrependSecurityBlo …
s file_put_contents($tempfile4, $fp, FILE_APPEND);fclose($fp);
$fh = fopen($lockFile, ‘w’);
fclose($fh);fclose($fh);
if(is_file($file)){
if(! is_file(WEBSHOT_CUTYCAPT)){
if(! is_file(WEBSHOT_XVFB)){
if(! is_file($tempfile)){
if(! is_file($this->cachefile)){
$fp = fopen($this->cachefile, ‘rb’);
$imgType = fread($fp, 3);
$bytesSent = @fpassthru($fp);
fclose($fp);
$content = file_get_contents ($this->cachefile);
self::$curlFH = fopen($tempfile, ‘w’);
$curl = curl_init($url);
$curlResult = curl_exec($curl);
fclose(self::$curlFH);
$img = @file_get_contents ($url);
if(! file_put_contents($tempfile, $img)){
s $bytes = @readfile($file);