![]() |
I do have a test site up with a separate database and vB install on it for testing prior to trying anything on my live forum.
You'll have to excuse my manner of asking follow up questions, when I can't get something to work I tend to ask questions in the form of clarification of what I am doing assuming I have made an error rather than saying 'that didn't work'. It seems more respectful of those trying to help. The comment about roasting my vB install is mostly comedy however I did manage to do something to my test install when I first tried to make the ad banners work that killed it and required a wipe and reinstall. So far I have not been able to get the random banners to display, all I have gotten is the header code displaying above the title. I have placed the header code in various places within the header template and have placed the registration code at the very end of the plug in as above and tried it as the second line of the plug in. All with the same results, I can only assume that I am missing a step somewhere. |
I couldn't tell from your post whether you were asking for help or not. But, I did just notice that you have the variable entered wrong in your template (that's what happens when you look at vB3 and vB4 and vB5 sites all the time!). It's
{vb:raw random_banner11['$random_number11']} And, I didn't notice you had two variables - you need to register each of them. |
The first post shows you how to register a variable here:
PHP Code:
|
Quote:
|
Hi,
I understand above all things. I just wanted to know that, {vb:raw user.username} above code I found in template 'header'. From where this header template gets object 'user' and how it can able to access it property. I am interested know where this vBulletin variable like 'user' stored and in which php file? Can any one help me to understand this? Thanks!!!! |
Quote:
|
Any suggestion why the code below does not works as expected?
PHP Code:
EDIT: What I was adding in the templates is: {vb:raw mybanners} |
I would use hook parse_templates. You say you've tried "many different templates", do you mean other hean 'header'? Of course you know, but double check that you put {vb:raw mybanners} in the same template that you preRegister() to.
|
Quote:
--------------- Added [DATE]1422806090[/DATE] at [TIME]1422806090[/TIME] --------------- Quote:
|
hock process_templates_complete
PHP Code:
|
All times are GMT. The time now is 04:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|