Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Title Language Details »»
Forum Title Language
Version: 1.01, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 11-10-2005 Last Update: 11-15-2005 Installs: 121
DB Changes Uses Plugins
Additional Files  
No support by the author.

Forum Title Language - v1.01

This modification should work on all vBulletin versions starting at 3.5.1. Latest version tested on: 3.8.1.

Description
If you are using multiple languages on your forum, this hack will allow you to translate your forum titles into the different languages. You members will see the title in the language they have set in their UserCP, or the default title if no translation is given.

Install
1 minute job.
1 Product
Upload the contents of the 'upload' folder in the zip to your forumhome, and import the productfile.

Usage
You will find a new menu option in the Forums & Moderators menu group in your AdminCP after installation. No need for instructions to use this.

Screenshots
Screenshots added.

Changelog:
11-11-2005 v1.00
- Initial release

16-11-2005 v1.01
- Added support for translated forum descriptions
- Translations now updated when a forum is deleted.

Download Now

File Type: zip Forum Title Language v1.00.zip (4.1 KB, 108 views)
File Type: zip Forum Title Language v1.01.zip (5.0 KB, 672 views)

Screenshots

File Type: jpg mh_fl_1.JPG (72.7 KB, 0 views)
File Type: jpg mh_fl_2.JPG (36.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Gnoll, xorex

Comments
  #32  
Old 11-14-2005, 12:05 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ramsesx
Hm, sad I don't think Brian (vba) will rewrite his software only for that.
But now it's a first step and I am happy about it.
I'm in the same boat.

still love to see integration though...either from the hack author end or the vba end....whichever comes first.
Reply With Quote
  #33  
Old 11-15-2005, 10:44 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those with problems in combination with vBAdvanced (asuming your talking about recent threads on homepage), you could do the following quick fix. Actually this could be an adviced change for all who use vBa, if they use my hack or not, it will reduce the load on the database server a little.

In modules/latesttopics.php find:
PHP Code:
        $threads $db->query_read("
                SELECT
                " 
iif($mod_options['portal_threads_showrating'], 'IF(votenum >= ' $vbulletin->options['showvotes'] . ', votenum, 0) AS numbvote, IF(votenum >= ' $vbulletin->options['showvotes'] . ' AND votenum != 0, votetotal / votenum, 0) AS voteavg,') . "
                thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
                " 
iif($mod_options['portal_threads_showsubscribed'] AND $vbulletin->userinfo['userid'], ', NOT ISNULL(subscribethread.subscribethreadid) AS subscribed') .
                
iif($mod_options['portal_threads_showicon'], ', thread.iconid AS threadiconid, iconpath AS threadiconpath') .
                
iif($mod_options['portal_threads_showforum'], ',thread.forumid, forum.title AS forumtitle') .
                
iif ($mod_options['portal_threads_showpreview'] AND $vbulletin->options['threadpreview'], ', post.pagetext AS preview') . "
                FROM " 
TABLE_PREFIX "thread as thread
                " 
iif($mod_options['portal_threads_showicon'], ' LEFT JOIN ' TABLE_PREFIX 'icon USING (iconid)') .
                
iif($mod_options['portal_threads_showforum'], ' LEFT JOIN ' TABLE_PREFIX 'forum AS forum ON (thread.forumid = forum.forumid)') .
                
iif($mod_options['portal_threads_showpreview'] AND $vbulletin->options['threadpreview'], ' LEFT JOIN ' TABLE_PREFIX 'post AS post ON (post.postid = thread.firstpostid)') .
                
$deljoin .
                
iif ($mod_options['portal_threads_showsubscribed'] AND $vbulletin->userinfo['userid'], ' LEFT JOIN ' TABLE_PREFIX 'subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = ' $vbulletin->userinfo['userid'] . ')') . "
                WHERE open != 10 AND thread.visible = 1
                
$mods[threadids]
                
$mods[inforums]
                
$mods[exforums]
                
$notdeleted
                ORDER BY 
$mod_options[portal_threads_orderby] $mod_options[portal_threads_direction]
                LIMIT 
$mod_options[portal_threads_maxthreads]
        "
); 
and REPLACE by:
PHP Code:
        $threads $db->query_read("
                SELECT
                " 
iif($mod_options['portal_threads_showrating'], 'IF(votenum >= ' $vbulletin->options['showvotes'] . ', votenum, 0) AS numbvote, IF(votenum >= ' $vbulletin->options['showvotes'] . ' AND votenum != 0, votetotal / votenum, 0) AS voteavg,') . "
                thread.threadid, thread.forumid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
                " 
iif($mod_options['portal_threads_showsubscribed'] AND $vbulletin->userinfo['userid'], ', NOT ISNULL(subscribethread.subscribethreadid) AS subscribed') .
                
iif($mod_options['portal_threads_showicon'], ', thread.iconid AS threadiconid, iconpath AS threadiconpath') .
                
iif ($mod_options['portal_threads_showpreview'] AND $vbulletin->options['threadpreview'], ', post.pagetext AS preview') . "
                FROM " 
TABLE_PREFIX "thread as thread
                " 
iif($mod_options['portal_threads_showicon'], ' LEFT JOIN ' TABLE_PREFIX 'icon USING (iconid)') .
                
iif($mod_options['portal_threads_showpreview'] AND $vbulletin->options['threadpreview'], ' LEFT JOIN ' TABLE_PREFIX 'post AS post ON (post.postid = thread.firstpostid)') .
                
$deljoin .
                
iif ($mod_options['portal_threads_showsubscribed'] AND $vbulletin->userinfo['userid'], ' LEFT JOIN ' TABLE_PREFIX 'subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = ' $vbulletin->userinfo['userid'] . ')') . "
                WHERE open != 10 AND thread.visible = 1
                
$mods[threadids]
                
$mods[inforums]
                
$mods[exforums]
                
$notdeleted
                ORDER BY 
$mod_options[portal_threads_orderby] $mod_options[portal_threads_direction]
                LIMIT 
$mod_options[portal_threads_maxthreads]
        "
); 
Now find:
PHP Code:
        $mods['threadcount'] = $db->num_rows($threads);
 
        while (
$thread $db->fetch_array($threads))
        {
            
$bgclass exec_switch_bg(); 
Add Under:
PHP Code:
            // MarcoH64
            
if ($mod_options['portal_threads_showforum'])
            {
                
$thread['forumtitle'] = $vbulletin->datastore->registry->forumcache["$thread[forumid]"]['title_clean'];
            }
            
// /MarcoH64 
This will remove reading the forum title from the database. Instead it will be using the values that are already in the datastore (in memory, no query needed).


PS Someone could suggest this as a change in the standard vBa package since it is anyway an improvement.
Reply With Quote
  #34  
Old 11-15-2005, 10:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PS Next version with also translated descriptions is ready, will pack it up this afternoon if i have time.
Reply With Quote
  #35  
Old 11-15-2005, 01:48 PM
divisortheory divisortheory is offline
 
Join Date: Oct 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much Marco I'll take a look at it later today and let you know any feedback. Sorry I didn't get back earlier, I forgot to check the forum for a while.
Reply With Quote
  #36  
Old 11-16-2005, 06:44 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.01 released:
16-11-2005 v1.01
- Added support for translated forum descriptions
- Translations now updated when a forum is deleted.
Reply With Quote
  #37  
Old 11-16-2005, 01:32 PM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great news, thank you marco, what's the best way to upgrade, uninstall the old xml file?
Reply With Quote
  #38  
Old 11-16-2005, 02:03 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just install with Allow Overwrite set to Yes. It will upgrade nicely (i hope )
Reply With Quote
  #39  
Old 11-17-2005, 01:35 AM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade done, very easy and smart. Works great :up: :up:
Thank you very much Marco.
And if you can make the same with vb gallery and links to christmas you'll be my hero forever.
Reply With Quote
  #40  
Old 11-17-2005, 05:41 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post links to the hacks you want to have modified and i will see what i can do.

PS I don't plan to go make modifications to all hacks that don't use standard vB caching.
Reply With Quote
  #41  
Old 11-18-2005, 03:27 PM
AxEsLoCkEd AxEsLoCkEd is offline
 
Join Date: Mar 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MarcoH64 Thanks for the hack.
My question is may you add a field to thread posting and user profile where the user can select which language they are posting in on posting or replying to a thread, and a user option where the user can select which languages they speak, like if the user chooses just german & english the user wont see french threads and if the user selects only french then they wont see the other ones
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05672 seconds
  • Memory Usage 2,392KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete