The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Get CMS Section via Plugin
Hello!
I had some issue at version 4.0.3 that I can't get the section ID. It's been discussed already: http://www.vbulletin.com/forum/showt...in-plugin-code https://vborg.vbsupport.ru/showpost....&postcount=238 (and the next replies..) and vBulletin developers also said that they will provide fix in 4.0.4+ version: http://www.vbulletin.com/forum/showt...=1#post1967245 But now I'm using in version 4.1.0 PL2 in the code: PHP Code:
Anyone have some solution to that issue? Thanks! |
#2
|
||||
|
||||
What hook location? Also, why not just use $_GET['r']?
|
#3
|
|||
|
|||
1) process_templates_complete.
2) Because those 2 issue's: |
#4
|
||||
|
||||
What are you expecting to happen from your plugin? All you've done is set some variables.... what are you going to do with them? That isn't going to make a navtab at all. So what is the expected result?
Getting the parentid works just fine if you use the hook location vbcms_content_populate_end. If you use vbcms_section_populate_end, then you will get the parentid of that section which is probably 1. But again, exactly what are you trying to do? |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
You've done nothing in that plugin to insert a navtab into your navbar. You need to use a template_hook to insert it. Something like:
PHP Code:
|
#7
|
|||
|
|||
Quote:
This is my whole code: PHP Code:
Thanks! |
#8
|
||||
|
||||
The variable, $template_hook, probably needs to be globalized (it did when I put the code into a plugin using the hook location vbcms_content_populate_end), or you will get no output.
|
#9
|
|||
|
|||
Quote:
I've been searching for working code but I didn't find anything. Can anyone give me some example for working code? Thanks! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|