View Full Version : Access other variables?
Kaitlyn2004
08-01-2006, 06:09 AM
Okay, so I have created a left column for my forum home.
the template is forumhome_leftcol
how can I make it so that I would be able to move the "What's going on" section into this template? Because it just doesn't get any of the variable values...
Kirk Y
08-01-2006, 07:56 AM
Like I was saying in the other thread, variables for the WGO section are for the forumhome template only, you'll need to global them for use elsewhere.
rogersnm
08-01-2006, 08:00 AM
I released a global hack on vBH read the pm.
Kaitlyn2004
08-01-2006, 04:35 PM
Like I was saying in the other thread, variables for the WGO section are for the forumhome template only, you'll need to global them for use elsewhere.
Can this be done without modifying source code?
I released a global hack on vBH read the pm.
:(
Was hoping for birthdays too! lol
Kirk Y
08-01-2006, 08:26 PM
No, I believe all you'd need would be a plugin or two. I never really looked into it, but I doubt it would be all that difficult.
Kaitlyn2004
08-01-2006, 08:57 PM
No, I believe all you'd need would be a plugin or two. I never really looked into it, but I doubt it would be all that difficult.
I'm still learning all this, so if you know how to implement a plugin to globalize the WGO section, that'd be great!
rogersnm
08-01-2006, 08:59 PM
i'm working on adding birthdays ;)
Kaitlyn2004
08-01-2006, 09:08 PM
i'm working on adding birthdays ;)
The only thing with your plugin is that you're doing the queries all over again... Adding unnecessary queries :(
rogersnm
08-01-2006, 09:10 PM
your not technically doing it all over again you just doing it once because it doesn't exist. And thats the only way you can't get variables out of the db without using queries you can't just summon them out of thin air.
Kirk Y
08-01-2006, 09:20 PM
That'd be pretty cool though... lol.
$air->userinfo['username'];
:p
Kaitlyn2004
08-01-2006, 09:30 PM
your not technically doing it all over again you just doing it once because it doesn't exist. And thats the only way you can't get variables out of the db without using queries you can't just summon them out of thin air.
In forumhome, it uses vars like $activeusers, $newusername or stuff like that. Is it possible to make these variables available in another template referenced IN that template without actually modifying code...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.