vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Custom SEO urls (mod_rewrite only) (https://vborg.vbsupport.ru/showthread.php?t=231568)

Mukashi 01-15-2010 06:00 PM

I know this one might be a bit of a long shot, but would there be some way to set things up so that each category on the CMS could itself go on a separate subdomain, so we could do things like splitting up news and content sections?

Carnage 01-15-2010 11:29 PM

@mukashi: Not with the current version; i've not really touched upon how to customise cms urls as they are handled differently from forum urls. It's something i'll probably look at in the future however.

I've been playing around with whats possible. Currently i've managed to flip the id and the title around sucessfully. As well as including the forum name in the url for threads. I'm hoping to bring quite a bit of customisation in the future for forum urls.

Carnage 01-16-2010 03:40 PM

Added a file to the zip which gets uploaded to the admincp. This file does a best guess generation of rewrite rules for you.

ndL 01-18-2010 08:29 PM

trying to get working with subdomain.domain.com

but i have a problem with this step:
5. You can now set a value for forums to be http://forums.domain.com and blogs to be http://blogs.domain.com or similar based upon your requirement.

setting it (site name/url/contact details) changes whole vbulletins default domain. help? i want to open home with domain.com and forums with subdomain

winstone 01-18-2010 10:32 PM

Quote:

Originally Posted by Carnage- (Post 1956435)
@winstone:
Currently I can achieve that for forums + subforums only. Doing it for threads, appears to need a database query. Which is just unacceptable considering the number of urls a typical page builds.

not if you modify the db query that gets the thread data :D
I know it's a lot of work and there are other ways to do it as well, maybe by checking all the cached templates and rewriting all matched urls is easier, in any case i'll defiantly do this or might give up n go with vbseo even tho its a rip off (IMO)

Carnage 01-19-2010 09:43 AM

Quote:

setting it (site name/url/contact details) changes whole vbulletins default domain. help? i want to open home with domain.com and forums with subdomain
You need to change the setting in the friendly url settings. If you change the setting for threads to http://forums.domain.com/threads and the forums friendly url to http://forums.domain.com/index.php it should work.

Quote:

not if you modify the db query that gets the thread data
The problem isn't that the data isn't avalaible anywhere, its that its not avaliable within the part of the code that forms the url. I've been experimenting, I've managed to save and retrieve the data in most important places (eg forum display, forum home, thread display etc) but not everywhere. It needs a bit more work yet still leaves some dead urls around the place... (vb's fault for not using {vb:link ...} everywhere a link is made)

Quote:

I know it's a lot of work and there are other ways to do it as well, maybe by checking all the cached templates and rewriting all matched urls is easier, in any case i'll defiantly do this or might give up n go with vbseo even tho its a rip off (IMO)
vbSeo does a few thigns this can't, but most people jsut want customisable urls, so for them it is a rip off. Rewriting templates or output is one way to do it but its ugly, bug prone and inefficient.

Quote:

Coder
You are marked on here as a coder, so I assume this means you've release at least one mod implying that you understand php. I'll upload the code i've been working on for threads and you can give it a go, be aware though, you will need to create your own rewrite rules and edit the code to change the url structure.

BBF 01-19-2010 10:06 AM

it's possible to replace forums ids with names?
for example:
domain.com/forums/10
to: domain.com/forums/off-topic

Gnoll 01-19-2010 10:30 AM

hmm looks nice /threads/forum/topic

can we rewrite it as /forum-f<id>/topic-t<id>.html ? or /forum/<id>-topic

winstone 01-19-2010 10:33 AM

Quote:

Originally Posted by Carnage- (Post 1960039)
You are marked on here as a coder, so I assume this means you've release at least one mod implying that you understand php. I'll upload the code i've been working on for threads and you can give it a go, be aware though, you will need to create your own rewrite rules and edit the code to change the url structure.

I've only released some javascript based mod but actually I only code in PHP
Thanks for sharing your thoughts and the code, I haven't started on working on URL rewrites and SEO yet but I will soon

VB should have used one single router and one single method to create links, but what's been released is a mess. I call vbSEO rip off when comparing it with other community softwares out there which provide very good SEO tools for free and the cost for vbSEO is almost the same as what you would pay to buy those softwares, otherwise I'm not questioning it's functionalities

Carnage 01-19-2010 11:48 AM

Quote:

it's possible to replace forums ids with names?
That one isn't easilly possible, the id needs to be avaliable somewhere for vb to use to query the db with.

Quote:

can we rewrite it as /forum-f<id>/topic-t<id>.html ? or /forum/<id>-topic
If you are confidant with php, you can take a look at the contents of the experimental zip files I uploaded; otherwise you will have to wait until that code is stable and included in the product.

Quote:

should have used one single router and one single method to create links, but what's been released is a mess.
I suspect that this will be the case once the rewrite is completed eg by 4.2/4.3 but for 4.0.x we have to cope with the mess thats been made.

Quote:

I call vbSEO rip off when comparing it with other community softwares out there which provide very good SEO tools for free and the cost for vbSEO is almost the same as what you would pay to buy those softwares, otherwise I'm not questioning it's functionalities
I agree with this fully, especially when you consider it used to cost $150 even when vbulleitn was only $160 to buy. If it were $50 I immagine it'd be installed on pretty much every vbulletin board (except the official ones of cause :p)

I almost wonder if IB have got some deal with vbSEO not to kill them off; it took so long to get friendly urls in the core package and even with them in there, the functionallity is so lacking. While developing this i've been constantly amased at how easy it was to get most functionlity working. To get it working perfectly requires a few file edits, but vb could have made them.

I intend to keep making improvments to this product including the amount of customisation avaliable and hopefully expanding to other areas eg the CMS untill vb improve the friendly urls in the core product.


All times are GMT. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete