vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Friendly URL in different language (https://vborg.vbsupport.ru/showthread.php?t=252107)

WSzP 10-15-2010 12:45 AM

Friendly URL in different language
 
Hello,
I enabled Friendly URLs, and uploaded the .htaccess, and set it to Mod Rewrite Friendly URLs.
The problem is that instead of threads/1-valami, I want a valamimas/1-valami, since threads is obviously an English word, and I want a Hungarian word instead of it.
And idea how to solve thins?
Thanks a lot,
WSzP

Bradley_Wint 10-15-2010 01:25 AM

Name the forum appropriately and it will change the URL.

WSzP 10-15-2010 09:09 AM

The forum name is totally different, and it has nothing to do with mod_rewrite using this kind of structure.

Code:

RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

In .htaccess the above rules contains words like threads, and members, that should be translated. Now the problem is, that obviously if I change it in the .htaccess it will not work, since vB4 will not know that, and still generate links that point to ^threads/.* instead of what I changed, so it will not work. The question is how to modify it so I can change threads to something else.

Brandon Sheley 10-15-2010 02:09 PM

It's best if you ask at vb.com about this ;)

WSzP 10-15-2010 07:51 PM

They told me to ask in here. :) It needs a modification, custom build .htaccess or something like that.

Lynne 10-15-2010 09:52 PM

Perhaps take a look at the class "vB_Friendly_Url" in includes/class_friendly_url.php


All times are GMT. The time now is 04:45 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.01094 seconds
  • Memory Usage 1,716KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete