Results 1 to 12 of 12

vbseo problem with replacement variables

This is a discussion on vbseo problem with replacement variables within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi! I am running a forum in three languages. The language is selected automatically from the used subdomain. I have ...

  1. #1
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times

    vbseo problem with replacement variables

    Hi!

    I am running a forum in three languages. The language is selected automatically from the used subdomain. I have "created" a plugin for that reason. Now i wanted that forum titles and descriptions are replaced with the help of replacement variables in each substyle. I haven't found another way to bind languages to styles, so here is how the code of the plugin looks:

    Code:
    if ($_SERVER['HTTP_HOST'] == "en.domain.com") {
    				$_REQUEST['langid'] = 3;
    				$_REQUEST['styleid'] = 4;
    		} elseif ($_SERVER['HTTP_HOST'] == "de.domain.com") {
    				$_REQUEST['langid'] = 2;
    				$_REQUEST['styleid'] = 3;
    		} else {
    				$_REQUEST['langid'] = 16;
    				$_REQUEST['styleid'] = 5;
    		}
    I use the hook "init_startup" without having an idea about the hook system. Anyway it worked with the language selection.

    problem a.)
    Now the replacement variables only work when use is logged in! When user is browsing as guest variables are not replaced. Maybe wrong hook? But this is vbulletin problem...

    problem b.)
    The vbseo problem: Even user is logged in (and title/description) is replaced correctly, the path still points to the variable like domain.com/forum/title1 instead of domain.com/forum/animals

    Thanks for your help.

    lapinkulta

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,
    problem b.)
    The vbseo problem: Even user is logged in (and title/description) is replaced correctly, the path still points to the variable like domain.com/forum/title1 instead of domain.com/forum/animals
    Could you please provide an example URL?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times
    you can review at

    Forums « hungaroo.com "ftit_editors" should be replaced with "Editors"
    Last edited by lapinkulta; 10-18-2006 at 08:18 PM.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Mm.. I don't see neither "ftit_editors" nor "Editors" on that page
    Is it working correctly with vBSEO temporarily disabled?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times
    sorry, that forum was for testing purposes hidden for the public... now you should see it. the variable is also not replaced when vbseo is turned off.
    Last edited by lapinkulta; 10-19-2006 at 03:29 AM.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    the variable is also not replaced when vbseo is turned off.
    Mm.. so probably this issue is not related to vBSEO?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times
    yes and no. probably it has to do with the moment vbseo is generating the url and the hook i am using for the plugin. obviously the the variable is not replaced in the url while it is in the text.

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    How do you perform replacements? vBSEO uses subforum titles from the forum cache, so if you change:
    HTML Code:
    <a href="forumdisplay.php?f=3">Forum title</a>
    to:
    HTML Code:
    <a href="forumdisplay.php?f=3">Another Forum title</a>
    the URL will still be "/forum-title/".
    Does it make sense?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times
    makes sense, that's exactly what a tried to do.

    i am using the replacement function of vbulletin. replacing the forum title "ft_2134" with "My Forum Title".

    Is there maybe another way, via a plugin at an earlier hook, that also the url gets replaced?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello Gerwin,

    you can use our "forum slugs" feature to define custom forum titles. In your config_vbseo.php file FIND:
    PHP Code:
    $vbseo_forum_slugs = array( 
        ); 
    and replace with:
    PHP Code:
    if ($_SERVER['HTTP_HOST'] == "en.domain.com") {
    $vbseo_forum_slugs = array( 
    123 => editors',
    124 => '
    another-title',
        );  
            } elseif ($_SERVER['
    HTTP_HOST'] == "de.domain.com") {
    $vbseo_forum_slugs = array( 
    123 => editors-de'
    ,
    124 => 'another-title-de',
        );  
            } else {
    $vbseo_forum_slugs = array( 
    123 => editors-more',
    124 => '
    another-title-more',
        );  
            } 
    replace 123/124 etc with forum IDs and titles with corresponding title for specific domain.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    Junior Member
    Real Name
    Gerwin Beran
    Join Date
    Sep 2006
    Posts
    10
    Liked
    0 times
    thank you, that works fine...

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Great!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 10:29 PM
  2. vBSEO 2.2.0 Released - Google/Yahoo Sitemap Compatible
    By Juan Muriente in forum vBSEO Announcements
    Replies: 58
    Last Post: 11-17-2005, 11:49 PM

Posting Permissions

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