vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

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

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-18-2006, 07:00 PM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #2  
Old 10-18-2006, 07:06 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Hello,
Quote:
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #3  
Old 10-18-2006, 07:58 PM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #4  
Old 10-18-2006, 08:24 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #5  
Old 10-19-2006, 03:13 AM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #6  
Old 10-19-2006, 01:25 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Quote:
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #7  
Old 10-19-2006, 04:45 PM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #8  
Old 10-19-2006, 07:57 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #9  
Old 10-20-2006, 05:44 AM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #10  
Old 10-20-2006, 01:42 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #11  
Old 10-23-2006, 07:27 AM
Junior Member
 
Real Name: Gerwin Beran
Join Date: Sep 2006
Posts: 10
thank you, that works fine...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
  #12  
Old 10-23-2006, 02:22 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Great!
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature! Juan Muriente vBSEO Announcements 74 05-20-2006 10:29 PM
vBSEO 2.2.0 Released - Google/Yahoo Sitemap Compatible Juan Muriente vBSEO Announcements 58 11-17-2005 11:49 PM


All times are GMT -4. The time now is 10:48 PM.


Powered by vBulletin Version 3.8.0 Release Candidate 1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.