Log in

View Full Version : Trying to find the right template for a hook


Panzer Max
09-12-2014, 12:38 AM
Ok, I know if I place a hook in the navbar template right after

<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="FORUM" border="0" /></a> <strong>$vboptions[bbtitle]</strong>


then it will appear here in the top level of the forum:

Panzer Max
09-12-2014, 12:39 AM
Where do I place the hook to get the image to appear in the same place, on the forumdisplay.php and the showthread.php pages?

I'm having a devil of a time getting this sorted... please advise.

darnoldy
09-12-2014, 03:22 AM
Both of those templates call the navbar template.... any hook you put in the navbar should work on every page that has a navbar.

Panzer Max
09-12-2014, 09:16 PM
Hmmm... well, no, it only shows up on the main forum page.

Panzer Max
09-12-2014, 10:13 PM
Honestly, I only have a vague idea of the proper terminology for this. :(

Some while back I contracted Simon to make a mod for me that would allow me to place recognition banners through variable/hooks/magic dust, and the mod works great. I asked him to make it public in case any other person could use it. (https://vborg.vbsupport.ru/showthread.php?t=286403)

It's for both custom and default style templates, I guess. Right now, as I explained above, putting the variable in the navbar template in the place listed, the banner shows up fine in the main forum page, but does not show up in the other two, forumdisplay.php and the showthread.php

Both of those templates call the navbar template.... any hook you put in the navbar should work on every page that has a navbar.

Do you mean there is another section of the navbar template that I need to add the variable, to have it appear on forumdisplay.php and the showthread.php ?

ozzy47
09-12-2014, 10:14 PM
Best bet would be to ask Simon, as he is the one who wrote the mod for you.

ozzy47
09-12-2014, 10:19 PM
He could have added a this_script value, or it is not in a global hook executing the mod.

Panzer Max
09-12-2014, 10:25 PM
If I look at the FORUMDISPLAY template I see it begins with

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
[B]$navbar

That $navbar part is where it calls in the navbar template, right?

So, FORUMDISPLAY should display the same variables as the main page....but it's not.

Dang it, is there a tutorial for this kind of stuff I could read?? ;P

Panzer Max
09-12-2014, 10:55 PM
Sure, our site is here (http://www.subsim.com/radioroom/index.php)

You see the Overlord banner for Kixa.

On the http://www.subsim.com/radioroom/forumdisplay.php?f=173 page the Admin wants to have the HotiBomba banner in the same place as the Kixa was. I cannot get it there, so I have it plopped down in the space below the navbar.

Same for the http://www.subsim.com/radioroom/showthread.php?t=214974 pages

ozzy47
09-13-2014, 12:19 AM
Best bet would be to ask Simon, as he is the one who wrote the mod for you, he could have added a this_script value, or it is not in a global hook executing the mod.

Panzer Max
09-13-2014, 12:22 AM
OK, i will

Simon Lloyd
09-13-2014, 07:51 PM
PM'd :)

ozzy47
09-13-2014, 07:53 PM
Thanks Simon. :)