The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi mates,
I was wondering if it is possible to hide some forums when a user select a language from the language chooser or insert the language id in the address bar. I was trying to do this: Code:
<if condition="$langid=1"> hide forumid=1,2,3,4 </if> However, the idea is as I mentioned above is to hide some forums when a user select different language and show them when he change back to the main language... I hope it is clear. your help is always appreciated. Thanks, --------------- Added [DATE]1365604847[/DATE] at [TIME]1365604847[/TIME] --------------- is it possible no body knows how to do this?? I thought it is a lot simpler than what it looks!!! |
#2
|
||||
|
||||
![]()
Use a hook at the top of the pages you want to do this on:
PHP Code:
|
#3
|
|||
|
|||
![]() Quote:
That was a great solution. I will try it out and see how things go. Cheers --------------- Added [DATE]1365626743[/DATE] at [TIME]1365626743[/TIME] --------------- Thanks again. I just tried and it works perfect 100% Great job, Lynee. ![]() Cheers --------------- Added [DATE]1365635799[/DATE] at [TIME]1365635799[/TIME] --------------- By the way, when you say use a hook on top of the pages I want, Did you mean to create a plugin at global_start so it goes whenever a page load starts?? any idea? |
#4
|
||||
|
||||
![]()
global_start is deprecated, so you certainly don't want to use it. I didn't know what page you wanted to use it on which is why I said use a hook at the top of the page. If you only need it on the forum home page, there is no sense in using a global hook.
|
#5
|
|||
|
|||
![]()
ok, great to know. I will try that and see if things go well
Thanks so much, Lyenne |
#6
|
||||
|
||||
![]()
For example, if you want it to only happen on the main forum.php page, then enter the code into a plugin using the hook location forumhome_start.
|
#7
|
|||
|
|||
![]()
is this idea can applied to cms sections too?
|
#8
|
||||
|
||||
![]()
Uh, well, kinda.... there are no forums in the cms section so I'm not sure how you would use it there.
|
#9
|
|||
|
|||
![]()
Thanks for the great reply, Lynne.
Will try it and see how it goes. your help is appreciated. Thanks |
#10
|
|||
|
|||
![]()
thanks Lynne, I'm talking about the idea (hide section regarding the language selected), and of course I didn't mean use the same code.
I asked because I wish I could have a multilingual site using my vbsuite. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|