ag206 Posted February 14, 2010 Share Posted February 14, 2010 Hello all, Need some help real quick... I'm sure it will be a breeze for most of you on here but I of course am lost. I'm getting an error on line 7 of my footer as I tried to add logo credit to a friends website. What I was trying to add was "Image Courtesy of WinterMe.com" after my copyright mochimonkey.com Also if there is a way to add his logo that would be awesome to know as well. I'm using wordpress on the back end. and Lightroom is the theme. Thanks very much in advance. Here is the code: <div class="clear"></div> </div> <div id="footer"> <span class="text"> <?php $blog_name = '<a href="'.get_bloginfo('url').'">'.get_bloginfo('name').'</a>'; printf(__('· Copyright %s %s %s · ','lightword'), '©',date('Y'),$blog_name, ·') ?> <a title="<?php _e('Go to top','lightword'); ?>" class="top" href="#top"><?php _e('Go to top','lightword'); ?> ↑</a> </span> </div> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/menu.js"></script> <?php wp_footer(); ?> </div> </body> </html> [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/ Share on other sites More sharing options...
sader Posted February 14, 2010 Share Posted February 14, 2010 I gues it causes u problems: · change to '·' Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012282 Share on other sites More sharing options...
ag206 Posted February 14, 2010 Author Share Posted February 14, 2010 I gues it causes u problems: · change to '·' after changing them to that i get: "Parse error: syntax error, unexpected T_STRING in /home/mochimo1/public_html/blog/wp-content/themes/lightword/footer.php on line 7" Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012294 Share on other sites More sharing options...
sader Posted February 14, 2010 Share Posted February 14, 2010 Oh I gues y have now two qoutes there if now your code looks like '·'' <= two ' chars remove one Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012298 Share on other sites More sharing options...
ag206 Posted February 14, 2010 Author Share Posted February 14, 2010 Oh I gues y have now two qoutes there if now your code looks like '·'' <= two ' chars remove one here is the code as it stands now. <div class="clear"></div> </div> <div id="footer"> <span class="text"> <?php $blog_name = '<a href="'.get_bloginfo('url').'">'.get_bloginfo('name').'</a>'; printf(__('·'Copyright %s %s %s '·' ','lightword'), '©',date('Y'),$blog_name, '·') ?> <a title="<?php _e('Go to top','lightword'); ?>" class="top" href="#top"><?php _e('Go to top','lightword'); ?> ↑</a> </span> </div> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/menu.js"></script> <?php wp_footer(); ?> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012302 Share on other sites More sharing options...
mattal999 Posted February 14, 2010 Share Posted February 14, 2010 It's known as syntax highlighting for a reason. You're missing a semi-colon on your printf line. printf(__('·'Copyright %s %s %s '·' ','lightword'), '©',date('Y'),$blog_name, '·'); Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012309 Share on other sites More sharing options...
ag206 Posted February 14, 2010 Author Share Posted February 14, 2010 It's known as syntax highlighting for a reason. You're missing a semi-colon on your printf line. printf(__('·'Copyright %s %s %s '·' ','lightword'), '©',date('Y'),$blog_name, '·'); still getting the same error. Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012314 Share on other sites More sharing options...
sader Posted February 14, 2010 Share Posted February 14, 2010 stilll wrong? printf(__('· Copyright %s %s %s · ','lightword'), '©',date('Y'),$blog_name, '·') Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012319 Share on other sites More sharing options...
mattal999 Posted February 14, 2010 Share Posted February 14, 2010 I think I see the error: printf(__('· Copyright %s %s %s ·, lightword'), '©',date('Y'),$blog_name, '·'); Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012323 Share on other sites More sharing options...
ag206 Posted February 14, 2010 Author Share Posted February 14, 2010 stilll wrong? printf(__('· Copyright %s %s %s · ','lightword'), '©',date('Y'),$blog_name, '·') works great thanks. now I have to try and implement the other text in there without screwing it up again. haha much appreciated Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012325 Share on other sites More sharing options...
ag206 Posted February 14, 2010 Author Share Posted February 14, 2010 I think I see the error: printf(__('· Copyright %s %s %s ·, lightword'), '©',date('Y'),$blog_name, '·'); that works too. I guess it works with or without the semi-colon at the end. thanks you very much for the help Link to comment https://forums.phpfreaks.com/topic/192064-blog-footer-help/#findComment-1012326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.