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 Team: Hot or Not? Ready for Traffic Explosion? vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! vBSEO Helps Forum Earn $100/day from Google AdSense Discover the Power of "Long Tail Search" Crawlability Inc. Files for SEO Technology Patent
se sw

Custom Addons Rewrite

This is a discussion on Custom Addons Rewrite within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm adding a custom addon to my site which I would like to have the urls use vbseo . Because ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-13-2005, 10:31 AM
Junior Member
 
Real Name: Ryan Amos
Join Date: Aug 2005
Posts: 10
Custom Addons Rewrite

I'm adding a custom addon to my site which I would like to have the urls use vbseo.

Because the software is encoded, I have no idea where to go with this. Here's how my links are:
http://www.site.com/page.php

Then there are links on that page which need to look like this:
http://www.site.com/page/title-test.html

Just like the forums are redirected. Is there a function I can call to have the links redirected automatically?

The biggest issue I'm having with this software is because it's encoded.

I need help on this ASAP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 10-13-2005, 10:35 AM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,202
Blog Entries: 1
Re: Custom Addons Rewrite

You can't use the Custom Rewrite Rules section of the vbSEO config?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-13-2005, 10:37 AM
Junior Member
 
Real Name: Ryan Amos
Join Date: Aug 2005
Posts: 10
Re: Custom Addons Rewrite

The thing is, I want the titles to be automatically striped of characters like the titles of the threads are.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-13-2005, 12:14 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 20,433
Blog Entries: 1
Re: Custom Addons Rewrite

The custom rewrite rules allow you to prepare a new seo url based on the parameters that exists in the original url only. So, if you custom addon will have urls like page.php?title=the_page_title, then you can make a custom rule to have seo url with title in it.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

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!
  #5  
Old 10-13-2005, 12:32 PM
Junior Member
 
Real Name: Ryan Amos
Join Date: Aug 2005
Posts: 10
Re: Custom Addons Rewrite

Oleg,

Thanks for your reply. I'm aware of how it works so that's not an issue.

I can write my own rewrites but here's where the issue comes in to play... Here is what my rewrites would look like (without regex):

http://www.site.com/filename.php
This is fine, nothing will happen.

http://www.site.com/filename/9-this-a-sample-it.html
This page would goto:
http://www.site.com/filename.php?id=9

That's simple right? Correct.

Now, the question I'm asking for is... My title is originally something like this:
This a Sample & It should be stripped after 4 words.

You have somewhere within your code a function that I'm assuming does this for you. I've never actually used encrypted code so I'm not sure exactly how this will work, but... Here's what I want...

I want to send that title to a function which will return the shorted and SEO string for the url. So let's give some sample php code.

[php]$url = vbseo_url($var['title']);[php]

Then I'll just use the $url in the vBulletin template. Do you follow what I'm saying?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 10-13-2005, 01:06 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,547
Blog Entries: 2
Re: Custom Addons Rewrite

Quote:
Originally Posted by Amos
Just like the forums are redirected. Is there a function I can call to have the links redirected automatically?
Yes, the CRR will 301 redirect anything from the previous (dynamic) url to the new, static one.

Example:
Code:
'^showgroups\.php$' => 'forumleaders/'
Will:
1) rewrite 'showgroups.php' as 'forumleaders/' (and)
2) will 301 redirect showgroups.php to 'forumleaders/'

Check it out: http://www.vbseo.com/forumleaders/

Edit: This was in reply to Custom Addons Rewrite
__________________
Juan Muriente / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

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!
  #7  
Old 10-13-2005, 01:19 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,547
Blog Entries: 2
Re: Custom Addons Rewrite

Quote:
Originally Posted by Amos
Oleg,

Thanks for your reply. I'm aware of how it works so that's not an issue.

I can write my own rewrites but here's where the issue comes in to play... Here is what my rewrites would look like (without regex):

http://www.site.com/filename.php
This is fine, nothing will happen.

http://www.site.com/filename/9-this-a-sample-it.html
This page would goto:
http://www.site.com/filename.php?id=9

That's simple right? Correct.

Now, the question I'm asking for is... My title is originally something like this:
This a Sample & It should be stripped after 4 words.

You have somewhere within your code a function that I'm assuming does this for you. I've never actually used encrypted code so I'm not sure exactly how this will work, but... Here's what I want...

I want to send that title to a function which will return the shorted and SEO string for the url. So let's give some sample php code.

[php]$url = vbseo_url($var['title']);[php]

Then I'll just use the $url in the vBulletin template. Do you follow what I'm saying?
The 'URL clipping' feature is specific to vBSEO's vBulletin rewriting functionality, not the CRR. However, if you want to clip (and rewrite) a specific link, simply add it to your templates using vBulletin's native format (dynamic) - - vBSEO will modify it as it does with all others links.
__________________
Juan Muriente / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

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!
  #8  
Old 10-13-2005, 01:30 PM
Junior Member
 
Real Name: Ryan Amos
Join Date: Aug 2005
Posts: 10
Re: Custom Addons Rewrite

I attempted to do that and it was not working which is why I was looking for help.

Do i have to have the full URL in a variable for this to work?

I need more information on how this works.

In my template I had this:
page.php?id=8
That didn't work...

I then just tried this:
page/$var[tipid]-$var[title].html

That returns a link like this:
page/8-This is a Title.html

I need it to do the clipping you were talking about.

I just thought of something... It's a custom template, does this matter? I'm going to PM you the actual link to the site. I don't really want it public yet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 10-13-2005, 04:15 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,547
Blog Entries: 2
Re: Custom Addons Rewrite

Quote:
Originally Posted by Amos
In my template I had this:
page.php?id=8
That didn't work...

I then just tried this:
page/$var[tipid]-$var[title].html

That returns a link like this:
page/8-This is a Title.html

I need it to do the clipping you were talking about.
Ok, try this:

PHP Code:
if(@include_once('includes/functions_vbseo.php')) 

$seotitle vbseo_filter_text($title); // " A simple example here!" => "simple-example-here" 

Not allowed characters are stripped and stop-words removed
__________________
Juan Muriente / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

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!
  #10  
Old 10-13-2005, 04:51 PM
Junior Member
 
Real Name: Ryan Amos
Join Date: Aug 2005
Posts: 10
Re: Custom Addons Rewrite

That's the function I needed.

I just did this code to test it though:
PHP Code:
echo vbseo_filter_text($var['title']); 
It outputed the correct line though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #11  
Old 10-14-2005, 02:53 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,547
Blog Entries: 2
Re: Custom Addons Rewrite

Great! Closing this thread.
__________________
Juan Muriente / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

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!
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
Syntax for Custom Rewrite Rules Joe Ward Custom Rewrite Rules 7 07-19-2008 06:14 AM
vBSEO 2.0 RC7 Released Juan Muriente vBSEO Announcements 17 09-08-2005 11:00 PM


All times are GMT -4. The time now is 02:39 AM.


Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.