For each template you should put this at the top:
and this at the very bottom:HTML Code:<if condition="$_REQUEST['do'] != '404'">
HTML Code:</if>
This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; For each template you should put this at the top: HTML Code: <if condition= "$_REQUEST['do'] != '404'" > and this ...
For each template you should put this at the top:
and this at the very bottom:HTML Code:<if condition="$_REQUEST['do'] != '404'">
HTML Code:</if>
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Oleg, i understand but this code doesn't run!
the misc code runs on the 404 page but leaves my google ads ID into the other pages ... (like i've already told and showed with the pic attached)
Sorry, I do not understand exactly what you mean.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
What's the use of that 'ca-pub' thing below the conditional ?Originally Posted by KURTZ
i mean this:
i tried to use this code
and it runs correctly into the 404.php page ... BUT in the other pages (like forumhome, forumdisplay, showthread etc.) i've got my google's id number in the pages under the banner like you can see in the attachment that i've posted before ...PHP Code:<if condition="THIS_SCRIPT != 'misc'">
ca-pub-xxxxxxxxxxxx
</if>
![]()
You should NOT put your ID there, just this single line at the very top of template:
and this one at the bottom:HTML Code:<if condition="THIS_SCRIPT != 'misc'">
HTML Code:</if>
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Since templates list is redefined in misc.php, you will have to create a new plugin in vB admincp on "cache_templates" hook with this code:
PHP Code:if($_REQUEST['template'] == '404')
$globaltemplates[] = 'custom_404';
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
You are welcome![]()
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Is there a way to get this to work on pages other than those inside the /forum directory?
I cant get mine to work properly. Its giving this error and showing the path twice.
Warning: include(/home/username/public_html/home/username/public_html/404.php ) [function.include]: failed to open stream: No such file or directory in /home/username/public_html/vbseo.php on line 1570
Warning: include() [function.include]: Failed opening '/home/username/public_html/home/username/public_html/404.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/vbseo.php on line 1570
that's seems you didn't add your username
you need to change /username/ with your hosting username