![]() |
|
Article Options |
#301
|
|||
|
|||
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.
The following members like this post: TheAdminMarket
|
#302
|
||||
|
||||
Originally Posted by kh99
hmm... Didn't tried that hook and sounds matching the case. As for the rest. Except a typo that I had at the very begining (ad_global_header_1 instead ad_global_header1), the other were correct. And yes I tried many templates, even custom ones from my addons. So:![]()
![]() --------------- Added 01 Feb 2015 at 15:54 --------------- That did the trick. Thank you. No members have liked this post.
|
#303
|
||||
|
||||
hock process_templates_complete
but not work???. I want auto add temp to below navbar. No members have liked this post.
Last edited by Easy5s.net; 20 Feb 2015 at 17:29. |
#304
|
||||
|
||||
I think using member_build_blocks_start is much better than member_complete as it allows you to access function preRegister of vB_Template class.
No members have liked this post.
|
#305
|
||||
|
||||
JUst a quick question
Playing with 4.2.2 Tried using the $templater but no dice but (Sorted) BUT !!!! eval does work ? is this right ?
No members have liked this post.
Last edited by Gizmo99; 15 May 2015 at 09:46. |
#306
|
||||||||
|
||||||||
Originally Posted by Easy5s.net
Try this:![]()
No members have liked this post.
|
#307
|
||||||||||||
|
||||||||||||
Help me please! What I`m do wrong?...
I trying show some info on showthread page. -----------------------------------------------------------------
------------------------------------------------------------------
------------------------------------------------------------------ And so on SHOWTHREAD template I adding:
------------------------------------------------------------------ But with no luck ((( In place in what I was want to add my info I have white space(without my div class="rightsideinfo" in inspector of page). But in debug info, I have not cached template rightside_on_showthread. UPDATE ------------------------------------- I was thinking if I take vars into my own template, then I don`t need to use vB_Template:: preRegister for add my template in showthread. But I was wrong...)) No members have liked this post.
Last edited by taravasya; 01 Oct 2015 at 14:32. |
#308
|
||||
|
||||
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) The following members like this post: TheLastSuperman, taravasya
|
#309
|
|||
|
|||
Thanks, Lynne! Actually I wrote in a previous message, that I understood my mistake, but your variant helped me to make my code more succinctly! Thanks!
No members have liked this post.
|
#310
|
||||
|
||||
Another problem(((
In hook showthread_similarthreadbit I add next code:
Like this I have just ONE LAST result from query. What I have to do for have all results? This hook added in showthread.php on 1978. I was thinking, if this hook placed in a while cycle, I will have all results from this cycle. But no.... ![]() No members have liked this post.
|
#311
|
||||||||
|
||||||||
Hi
my plugin load in "showthread_complete" and it's code is:
and "opengraph_inshowthread" template code is:
But nothing adds to head. how to add my template to head? I need to point out that I can not load the plugin in the "parse_template". Because the page number and other variable is not recognized in "parse_template". and why "{vb:rawphrase thread.title}" not work in my template? No members have liked this post.
Last edited by irantk; 12 Dec 2018 at 09:36. |
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 20:48.