PDA


View Full Version : How do I install "Inline Moderation Tool" Hack?


Crazy Serb
05-20-2005, 02:55 AM
the Inline Moderation Tool hack available here:

http://www.vbulletin.org/forum/showthread.php?t=68791

add certain changes to <body> tags of SHOWTHREAD and FORUMDISPLAY, but once I view my site it seems that none of those changes are visible and the <body> tag code has been replaced by whatever is in adv_portal template.

Now, how do I get around this?

KW802
05-20-2005, 11:28 AM
Crazy Serb,

Not sure I'm following... where exactly does the problem appear?

Crazy Serb
05-20-2005, 12:51 PM
well, as part of installing the hack I am required to make changed to SHOWTHREAD and FORUMDISPLAY templates, specifically to add a <script>...</script line to both to include another .js file required for the hack to run, as well as make changes to the <body> tag and add some conditionals to it.

But, the problem is that once I do that, the changes DO NOT appear on the forum... the first couple of lines of those 2 templates are totally ignored or skipped (all code in <html>...<head>...<body>... tags) and the only <head>...<body> tag that appears is the one from ADV_PORTAL template (which remained unchanged). Which is totally weird.

Brian
05-20-2005, 12:54 PM
The script is going to strip out anything from the beginning <html> tag to the <body> tag, so the only way you're going to be able to add the hack is going to be to add some if conditions to your adv_portal template. Something like this:

<if condition="THIS_SCRIPT == 'forumdisplay'">Inline moderation code</if>

Crazy Serb
05-24-2005, 12:09 AM
The script is going to strip out anything from the beginning <html> tag to the <body> tag, so the only way you're going to be able to add the hack is going to be to add some if conditions to your adv_portal template. Something like this:

<if condition="THIS_SCRIPT == 'forumdisplay'">Inline moderation code</if>

ooooh... all right, let's give that a shot.

I never knew about this. Thanks!

Crazy Serb
10-02-2005, 04:05 PM
just an update... for vb3.5 and vba2.0, you need to add the following into your adv_portal template, just before </head> tag:



<if condition="THIS_SCRIPT == 'forumdisplay'">
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js"></script></if>
</if>



or else the built-in inline moderation of vb3.5 will not function!