Page 14 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 LastLast
Results 196 to 210 of 376
Like Tree7Likes

Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.

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 ...

  1. #196
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    For each template you should put this at the top:
    HTML Code:
      <if condition="$_REQUEST['do'] != '404'">
    and this at the very bottom:
    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!


  2. #197
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    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)

  3. #198
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


  4. #199
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    Quote Originally Posted by KURTZ
    PHP Code:
    <if condition="THIS_SCRIPT != 'misc'">
    ca-pub-xxxxxxxxxxxx 
    What's the use of that 'ca-pub' thing below the conditional ?

  5. #200
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by Shadab View Post
    What's the use of that 'ca-pub' thing below the conditional ?
    the ca-pub is my google's id ...

  6. #201
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by Oleg Ignatiuk View Post
    Sorry, I do not understand exactly what you mean.
    i mean this:

    i tried to use this code

    PHP Code:
    <if condition="THIS_SCRIPT != 'misc'">
    ca-pub-xxxxxxxxxxxx
    </if> 
    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 ...

  7. #202
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You should NOT put your ID there, just this single line at the very top of template:
    HTML Code:
      <if condition="THIS_SCRIPT != 'misc'">
    and this one at the bottom:
    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!


  8. #203
    Member MaRµ's Avatar
    Real Name
    Miss Mariel xD
    Join Date
    Aug 2008
    Posts
    66
    Liked
    0 times
    Thanks Cohen! I did It

  9. #204
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by Oleg Ignatiuk View Post
    You should NOT put your ID there, just this single line at the very top of template:
    HTML Code:
      <if condition="THIS_SCRIPT != 'misc'">
    and this one at the bottom:
    HTML Code:
    </if>
    thanks Oleg,m now runs perfectly

    just the last question: can i cache the template?

  10. #205
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


  11. #206
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by Oleg Ignatiuk View Post
    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'
    done thanks

  12. #207
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    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!


  13. #208
    Member
    Real Name
    JPetrillo
    Join Date
    Jun 2009
    Location
    CT
    Posts
    65
    Liked
    0 times
    Is there a way to get this to work on pages other than those inside the /forum directory?

  14. #209
    Member
    Real Name
    Heather
    Join Date
    Aug 2009
    Location
    United States
    Posts
    45
    Liked
    0 times
    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

  15. #210
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    1 times
    Blog Entries
    1
    that's seems you didn't add your username
    you need to change /username/ with your hosting username

Page 14 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 LastLast

LinkBacks (?)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •