View Full Version : Broken code showing
GaryT
Tue 23rd Dec '08, 2:43am
I've looked in the index.php and can't find the broken code (as shown in image below) The broken code shows up on all the styles I have. Any ideas?
http://www.publicwarriors.com/gary/screenshot.jpg
Zachery
Tue 23rd Dec '08, 3:13am
Providing a link to your site to help debug errors is always useful ;)
If i had to take a stab in the dark its this line
<meta name="description" content="<meta name="robots" content "none">" />
You need to edit the admincp > vbulletin options >
And change the meta description setting.
Hatsu
Tue 23rd Dec '08, 3:25am
Look at the beginning of your header or headinclude template.
turkforum
Tue 23rd Dec '08, 3:32am
Check the /includes/config.php
GaryT
Tue 23rd Dec '08, 4:07pm
Look at the beginning of your header or headinclude template.
This from my header code...
<a name="top"></a>
<div class="body2" align="center">
<div style="width:$stylevar[outerdivwidth];">
<div style="text-align:left">
<div class="nav">
<a href="<if condition="$vboptions['hometitle']">$vboptions[homeurl]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>">Return Home</a> -
<a href="http://www.publicwarriors.com/forums/forumdisplay.php?do=markread">Mark Forums Read</a> -
<a href="http://www.publicwarriors.com/forums/view.php?pg=info_aboutus">About us</a> -
<a href="$vboptions[contactuslink]">Contact</a>
</div>
<a class="logo" href="$vboptions[forumhome].php$session[sessionurl_q]"> </a>
</div>
<div class="main">
<div class="memberbar">
<div class="console">
<span>Site Links:</span>
<a href="http://www.publicwarriors.com/forums/all_albums.php">Albums</a>
<a href="http://www.publicwarriors.com/forums/arcade.php">Arcade</a>
<a href="http://www.publicwarriors.com/forums/blog.php?">Blog</a>
<a href="http://www.publicwarriors.com/forums/misc.php?do=flashchat&room=1">Chat</a>
<a href="http://www.publicwarriors.com/gary/popup.html" target="page" onclick="window.open('','page','toolbar=0,scrollbars=1,loca tion=0,statusbar=0,menubar=0,resizable=0,width=475 ,height=290,left=50,top=50,titlebar=yes')">MP3 Player</a>
<a href="http://www.publicwarriors.com/forums/radioandtv.php" target="page" onclick="window.open('','page','toolbar=0,scrollbars=1,loca tion=0,statusbar=0,menubar=0,resizable=0,width=900 ,height=500,left=50,top=50,titlebar=yes')">Radio & TV</a>
<a href="worldmap.php$session[sessionurl_q]">Members World Map</a>
<a href="http://www.publicwarriors.com/forums/easy_pages.php?p=2" target="_self">Buy & Sell</a>
<a href="http://www.publicwarriors.com/tlr" target="_new">Author's Site</a>
</div>
<div class="member">
<if condition="$show['member']">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>
<if condition="$show['notifications'] AND $show['popups']">
<span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase>
</if></if>
</div>
<else />
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<input type="image" src="images/styles/bgear/style/button_go.gif" value="" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" />
<input type="password" class="bginput" name="vb_login_password" id="navbar_password" size="10" tabindex="102" />
<input type="text" class="bginput" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" />
<span>Log In:</span>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="cookieuser" value="1" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</if>
</div>
</div>
<div class="banner">
</div>
<td class="content">
<div class="forumlinks">
<a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum Index</a> -
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">User CP</a> - </if>
<a href="memberlist.php$session[sessionurl_q]">Member List</a> -
<a href="search.php?$session[sessionurl]do=getnew">New Posts</a> -
<a id="navbar_search" href="search.php$session[sessionurl_q]">Search</a> - <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if>
<if condition="$show['member']"><a id="usercptools" href="$show[nojs_link]#usercptools">Quick Links</a> - <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></if>
<if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]">Logout</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></if>
</div>
<div style="padding:4px">
<!-- content table -->
$_phpinclude_output
$cornerpeeler1
and this from my headerinclude....
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="<if condition="$threadinfo['taglist']">$threadinfo[taglist], </if>$threadinfo[prefix_plain_html] $threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[title] $foruminfo[title_clean]" />
<else /><if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if></if>
<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css" id="vbulletin_opera8fix_css">
ul, ol { padding-$stylevar[left]:20px; }
</style>
</if>
<if condition="$show['editor_css']">
$editor_css
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="$stylevar[yuipath]/connection/connection-min.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var SECURITYTOKEN = "$bbuserinfo[securitytoken]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]" />
</if>
</if>
See anything? I've looked until my eyeballs hurt :eek:
GaryT
Tue 23rd Dec '08, 4:10pm
Check the /includes/config.php
I looked at it but I've never done anything to that file. It looks like more than I could handle anyway. :confused:
GaryT
Tue 23rd Dec '08, 4:14pm
Providing a link to your site to help debug errors is always useful ;)
Zach I don't know what I was thinking. Of course it would have helped but, I guess I was so tired from looking I simply overlooked the obvious. :(
I think that is much the case for a lot of folk when they're not real comfortable working with code.
steven s
Tue 23rd Dec '08, 4:45pm
Might be easier to simply provide a link.
Maybe it's your peel script?
GaryT
Tue 23rd Dec '08, 4:53pm
Might be easier to simply provide a link.
Maybe it's your peel script?
Just activated the peel script about 30 minutes ago.
Zachery
Tue 23rd Dec '08, 7:57pm
I've already provided the anwser, its this snipet of code
<meta name="description" content="<meta name="robots" content "none">" />
Its being generated by your Meta description in the admincp under the vBulletin Options
steven s
Tue 23rd Dec '08, 8:05pm
I thought it was just a guess? :)
GaryT
Tue 23rd Dec '08, 11:03pm
I've already provided the anwser, its this snipet of code
<meta name="description" content="<meta name="robots" content "none">" />
Its being generated by your Meta description in the admincp under the vBulletin Options
I see that when I view source through browser. I removed that and all meta in admincp > vbulletin options > and it's still there :confused: when I view source. Must be the ghost of Christmas past. I'll keep digging. Thanks
GaryT
Tue 23rd Dec '08, 11:21pm
Problem fixed. It was as shown in the source of page but was from the integration of custom content from another page? Make any sense? So, basically it was a vba issue.
Thanks guys
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.