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)

winstone 01-14-2010 12:18 PM

Options are there now and it works great,
by the way the settings menu is called "Custom Friendly URL Settings" (link: YOURDOMAIN/admincp/options.php?do=options&dogroup=imhotek_custom_urls _settinggroup)

Thanks

Shai Gar 01-14-2010 04:27 PM

thanks for the update, but trying to get subdomains working and can't find the code to edit in class_friendly_url.php

Carnage 01-14-2010 05:12 PM

Checklist:
1. Are you editing the file that came with vb (the file that this mod ships with is called class_custom_friendly_url.php and is not the one you need to edit :))
2. Try using your text editor's find function the text sting ' // REQUEST_URI is dependable for apache' only appears once in the file and is a couple of lines above the one you need to edit.
3. Its possible that vb4.0.1 has something slightly different there; once I upgrade later this evening i'll check this.

mescalin 01-14-2010 05:36 PM

its a good idea to have a custom seo urls. Can we create custom urls such as sitename.com/thread-title-threadid.html as vbseo offers?

Carnage 01-14-2010 05:58 PM

There aren't enough hooks in the friendly url class to achieve that much customisation at the moment.

@shai gar: I've just upgraded my board to 4.0.1; they've changed a good deal of code in class_friendly_url.php It seems the file edit isn't required now. Try following the instructions without making the file edit and see if it works (It worked fine on my dev board without)

Gnoll 01-14-2010 07:53 PM

thank you :) looks cute , works cute , it is cute

Carnage 01-15-2010 10:50 AM

Quote:

its a good idea to have a custom seo urls. Can we create custom urls such as sitename.com/thread-title-threadid.html as vbseo offers?
Good news; while updating myself on the changes made in 4.0.1; I've discovered a way to do this elegantly. I could give you the code but it also requires you to be a regex wizard to get the rewrite rules working. (Took me 20 mins and i'm quite good with them) My next feature i'm intending to add to this product is an automatic generator for the rewrite rules. Once i've got that working, i'll see about adding aditional customisations.

winstone 01-15-2010 11:59 AM

Please also consider adding categoryTitle to thread links, something like domain.com/categoryTitle-id/threadTitle-id

cloferba 01-15-2010 12:10 PM

how can i let default vbseo urls..on vb4 without using vbseo?

Carnage 01-15-2010 12:40 PM

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

@cloferba:
What are the default vbSEO links?


All times are GMT. The time now is 01:14 PM.

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.01091 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)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