The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Opserty...as you described, I got "int(2)" in the top LEFT of the page. (no need to view HTML)
So, the value is getting passed into the page successfully. This is good. Why can I not call that variable in the HTML tag below? Do I need to escape the variable name perhaps? HTML Code:
<a href="/forums/forumdisplay.php?f={$vbulletin->GPC['b']}">
HTML Code:
<a href="/forums/forumdisplay.php?f=2">
|
#12
|
|||
|
|||
Ok that is good news. At least it is being passed correctly. (You can remove the var_... line if you haven't done so already).
In place of the var_... line add this: PHP Code:
|
#13
|
|||
|
|||
The header template is eval in global.php so showthread_start is to late to insert variables into.
You can use to code after all your code in your plugin PHP Code:
PHP Code:
|
#14
|
|||
|
|||
Oh, forgot about that Well spotted
v0xb0x use the code you posted in post #7, but with the hook location global_start and combine it with the second piece of PHP code posted by MoT3rror. Then the code in post #8 should work, hopefully. |
#15
|
||||
|
||||
Reading...
--------------- Added [DATE]1214861398[/DATE] at [TIME]1214861398[/TIME] --------------- Quote:
Here's the current evolution: 1. Plug-in's are enabled in Admin-CP 2. Created a new plugin called navTransport 3. Hook Location is now 'global_start' 4. Inserted this code: PHP Code:
HTML Code:
<a href="/forums/forumdisplay.php?f={$vbulletin->GPC['b']}">
HTML Code:
<a href="/forums/forumdisplay.php?f=2">
HTML Code:
<a href="/forums/forumdisplay.php?f=">
http://www.mydomain.com/forums/forum...=9&e=2&b=2&g=4 So close here. Any other ideas? Is there some special 'escaping' I need to perform on the variable to expose it? Again, thank you _both_ for your foo. |
#16
|
|||
|
|||
Use:
PHP Code:
|
#17
|
||||
|
||||
HOLD THE PRESSES!
HOLD THE PRESSES! By withdrawing the code from the condition, the variable is being passed successfully! So, here's what we have in the plugin - location is 'global_start': PHP Code:
HTML Code:
<a href="/forums/forumdisplay.php?f={$vbulletin->GPC['e']}">
HTML Code:
<a href="/forums/forumdisplay.php?f=2">
Gents, I appreciate your time, patience and expertise. Please let me know how I can return the favor. --------------- Added [DATE]1214867069[/DATE] at [TIME]1214867069[/TIME] --------------- Follow Up! Is there an easy way for me to get these values that I pass into the vBulletin templates to persist for the life of the user's session? Is there a switch that we can call to maintain the values I pass in? |
#18
|
|||
|
|||
ok, I am having trouble with this same thing.
I have: PHP Code:
later I have PHP Code:
PHP Code:
PHP Code:
this is irritating, because I can't figure out when the variable will be set and when it won't. For PHP Code:
|
#19
|
||||
|
||||
Make sure you globalise $vbulletin if calling from inside a function.
|
#20
|
|||
|
|||
This is a helpful bit, but I'm having one little issue with it.
On topics with multiple pages when I click to go to the next page, my varible gets lost... is there anyway to scope variables to retain them within a thread? IE when you visit ....showthread.php?t=3&myvar=2 then when I click on page 2 of this thread, i want it to go to showthread.php?t=3&page=2&myvar=2 Again, within the tread only... so I guess I need to somehow modify the thread pagination links |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|