PDA

View Full Version : vB Drupal CMS, Search Engine Optimization (SEO)


tamarian
07 Oct 2005, 16:44
This is an addon module for vB Drupal: Community Plumbing (http://www.vbulletin.org/forum/showthread.php?t=97341)

This addon should work for both vB Drupal versions, the 3.0.x version and 3.5 version.

What does it do: This module will automatically generate search engine optimized links to your vB Drupal content.

vB Drupal by default has two options that make it search engine friendly, custom path alias, and clean URL's.

This module extends those options by enhancing those clean URL's by adding text. For example, a blog entry titled "The meaning of life", will generate an auto link in the index as "mysite.com/The_meaning_of_life". It will also map user id's to user names. So instead of /blog/2" it will become "blog/tamarian" etc.

The pathauto module from Drupal will not work with vB Drupal, this modified version allows it to work with your vB Drupal.

One major change from the original module is that it will not scan your entire user table, only users who have content. This avoids timeout issues, and optimizes the performance by only generating links to users who have content.

Orginal source: http://drupal.org/node/17345

License: GPL

Installation: Unzip and upload the entire pathauto directory to your vB Drupal module directory. Activate the module in your module settings, and configure the settings/pathauto page. Note that you should also activate the path module, they need to work together.

EvilWa
08 Oct 2005, 05:23
Great Thanks!! :nervous:

Funchiestz
11 Oct 2005, 11:39
i will try this^^

silurius
14 Oct 2005, 19:37
Tamarian, this mod is giving me problems when I attempt to delete a category. The category does delete, but I get taken to an error page:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



where 104 reads:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

tamarian
14 Oct 2005, 19:50
Tamarian, this mod is giving me problems when I attempt to delete a category. The category does delete, but I get taken to an error page:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



where 104 reads:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Have you disabled the other module "path"? They both need to be activated.

silurius
14 Oct 2005, 19:58
Have you disabled the other module "path"? They both need to be activated.

Wait, they both need to be activated, or "path" needs to be disabled?

tamarian
14 Oct 2005, 19:59
Wait, they both need to be activated, or "path" needs to be disabled?

They both need be active together, as pathauto requires path :)

silurius
14 Oct 2005, 20:07
Success. Thanks!

(I'm very literal sometimes and trip myself up).

tamarian
14 Oct 2005, 20:12
Success. Thanks!

(I'm very literal sometimes and trip myself up).

I've added a note in the instructions, as it's easy to assume pathauto is a replacement to path, not a compliment to it.

Zhen-Xjell
23 Oct 2005, 19:56
Thanks for this. I've got it installed and both path and this enabled. I'm unable to generate the user/1 to user/name or blog/1 to blog/name scenario.

tamarian
23 Oct 2005, 20:02
Thanks for this. I've got it installed and both path and this enabled. I'm unable to generate the user/1 to user/name or blog/1 to blog/name scenario.

Did you run the bulk update in settings?

Zhen-Xjell
24 Oct 2005, 00:04
Did you run the bulk update in settings?
Yes I have tried that. I'll attempt it again now.

Zhen-Xjell
24 Oct 2005, 00:07
I checked for all bulk updates to occur, and get this:

The configuration options have been saved.
Bulk update of user blogs completed, 0 aliases generated.
Bulk update of nodes completed, 0 aliases generated.
Bulk update of terms completed, 0 aliases generated.
Bulk update of users completed, 0 aliases generated.
Bulk update of index aliases completed, 0 aliases generated.

tamarian
24 Oct 2005, 00:11
I checked for all bulk updates to occur, and get this:

The configuration options have been saved.
Bulk update of user blogs completed, 0 aliases generated.
Bulk update of nodes completed, 0 aliases generated.
Bulk update of terms completed, 0 aliases generated.
Bulk update of users completed, 0 aliases generated.
Bulk update of index aliases completed, 0 aliases generated.

Take a look into the drupal_url_alias table, it will show all the generated paths.

futuregizmo
25 Oct 2005, 15:32
this worked great for me but i have a problem. my blog site's url is www.mysite.com/blog and when i added this module, the user's blog url has been changed to www.mysite.com/blog/blog/username

is there a way to change the url alias to just www.mysite.com/blog/username or better, just www.mysite.com/username ?

tamarian
25 Oct 2005, 16:03
this worked great for me but i have a problem. my blog site's url is www.mysite.com/blog and when i added this module, the user's blog url has been changed to www.mysite.com/blog/blog/username

is there a way to change the url alias to just www.mysite.com/blog/username or better, just www.mysite.com/username ?

It shouldn't be doing that, so we need to find out why it's doing it. Is the site URL set up correctly, send me your site's URL and I'll take a look.

tamarian
25 Oct 2005, 17:25
It shouldn't be doing that, so we need to find out why it's doing it. Is the site URL set up correctly, send me your site's URL and I'll take a look.

Correction. If the main drupal site URL is something/blog then it's expected that the blog page will be something/blog/blog. :)

lazyseller
25 Oct 2005, 18:15
Everything seems to be working for me with this mod... thanks tamarian....

Zhen-Xjell
29 Oct 2005, 23:30
drupal_url_alias
Hi'ya tamarian, I ran a select and got only this back:

+-----+--------+----------+
| pid | src | dst |
+-----+--------+----------+
| 2 | node/1 | der_test |
| 5 | node/2 | test |
+-----+--------+----------+


The user and blog aliases aren't converting over. /me scratches head

Zhen-Xjell
06 Nov 2005, 22:59
Hi'ya tamarian, I ran a select and got only this back:

+-----+--------+----------+
| pid | src | dst |
+-----+--------+----------+
| 2 | node/1 | der_test |
| 5 | node/2 | test |
+-----+--------+----------+


The user and blog aliases aren't converting over. /me scratches head

Must let you know, as of 1.2.2, I was able to get the aliases created successfully:

http://de.castlecops.com/user/mrrockford
http://de.castlecops.com/der_test
http://de.castlecops.com/blog/paul

tamarian
06 Nov 2005, 23:12
Must let you know, as of 1.2.2, I was able to get the aliases created successfully:

Good to know :up: I must admit, I still don't know if there was anything changed that might make it behave differently. So the mystery is not solved, but at least it's resolved :)

Zhen-Xjell
07 Nov 2005, 18:58
Ahh, I think I see what is going on. If a user account has contributed say a story, then the user URL is aliases:

http://de.castlecops.com/user/paul

If a user has not contributed, then the alias is not created:

http://de.castlecops.com/user/15

You can compare... http://de.castlecops.com/

"By mrrockford at Thu, 03/11/2005 - 05:55 "

"mrrockford" is aliases. If you check "Who's new", none at the moment are aliased.

So there seems to be a condition (without checking the code).

tamarian
07 Nov 2005, 19:29
Ahh, I think I see what is going on. If a user account has contributed say a story, then the user URL is aliases:

http://de.castlecops.com/user/paul

If a user has not contributed, then the alias is not created:

Correct :)

Zhen-Xjell
07 Nov 2005, 19:57
Correct :)

Roger that. Is there an option to cron this?

tamarian
07 Nov 2005, 20:49
Roger that. Is there an option to cron this?

The module author has that planned for the next release.

Zhen-Xjell
12 Nov 2005, 18:05
The module author has that planned for the next release.

10-4 thanks.

Quick question on maintaining this for the moment. I'll run the pathauto batch updates, and instead of /user/paul I get /user/paul_0 although there is no other paul. I think go into the url_aliases under admin and fix it up.

I believe the problem may have been with keeping old aliases but creating new ones too. So I simply selected overwrite any old aliases.

Is this alright?

tamarian
12 Nov 2005, 19:45
10-4 thanks.

Quick question on maintaining this for the moment. I'll run the pathauto batch updates, and instead of /user/paul I get /user/paul_0 although there is no other paul. I think go into the url_aliases under admin and fix it up.

I believe the problem may have been with keeping old aliases but creating new ones too. So I simply selected overwrite any old aliases.

Is this alright?

Yes, the bulkupdate should only be used once. I'll make an update to make it update when a user enters their first blog/node entry, so this wouldn't happen.

Zhen-Xjell
12 Nov 2005, 22:09
Perfect, I'll let you know how it goes.

Zhen-Xjell
12 Nov 2005, 22:52
@tamarian, I got the update email but I don't see an attachment here?

tamarian
12 Nov 2005, 22:57
@tamarian, I got the update email but I don't see an attachment here?

Oops. Try it again.

Zhen-Xjell
13 Nov 2005, 00:14
Oops. Try it again.

Yup I see it there now. I'll work on it tomorrow. Cheers

Zhen-Xjell
13 Nov 2005, 21:36
OK I have it installed, now shall wait for it to be tested regularly.

Cheertobi
17 Nov 2005, 21:38
Hi,

got that error, when I try to update my settings:

Fatal error: Call to undefined function: ctype_alnum() in /home/mysite/news/modules/pathauto/pathauto.module on line 268

tamarian
17 Nov 2005, 22:01
Hi,

got that error, when I try to update my settings:

Fatal error: Call to undefined function: ctype_alnum() in /home/mysite/news/modules/pathauto/pathauto.module on line 268

Your PHP version is older than 4.0.4, upgrade to something newer :)

Cheertobi
17 Nov 2005, 22:23
Hi,

got it work, ctypes functions were not enabled!

Tobi

Cheertobi
17 Nov 2005, 22:37
Do not know if it is a bug! I choose "-" as seperator, but this seems to be ignored for blog paths.

Users that has not yet wrote a blog or anything are replaced by ther uid and not by their username, I used the default settings for that (user/[user])

Tobi

Moncal
25 Nov 2005, 08:11
Great Addon!

*Moncal clicks install*

tamarian
25 Nov 2005, 17:59
Do not know if it is a bug! I choose "-" as seperator, but this seems to be ignored for blog paths.

Users that has not yet wrote a blog or anything are replaced by ther uid and not by their username, I used the default settings for that (user/[user])

Tobi

Yes, users who have no blogs, will not have a username url, just i.d. number. This is not the default behaviour for Drupal, I had to change it to accomodate vB forums, where you 10's or 100's of thousend members. The current SEO module would crash on those. The author will implement a cron for the next version.

Re the "-", do you have an example URL?

Snake
25 Nov 2005, 19:08
Wohooo excellent!! :D

El_Muerte
12 Dec 2005, 20:53
this module doesn't work with img_assist
when I have both listed and go to the admin/modules I get a blank page

tamarian
12 Dec 2005, 22:30
this module doesn't work with img_assist
when I have both listed and go to the admin/modules I get a blank page

Check you apache error logs, and the watchdog logs in drupal admin, they may give a hint.

El_Muerte
12 Dec 2005, 23:59
hmm.. a graceful apache restart fixed the issue

fedoraforum
04 Mar 2006, 00:24
does it have scability issues? i ahve drupal with 91000 nodes, would it effect them?