Quote:
Originally Posted by Crazy Serb
ok, after asking a few questions on vbadvanced.com forum, here's what i came up with... I've added the following code to the adv_portal template since it replaces all the code between the <html>... and <body> tags from the templates:
Code:
<if condition="THIS_SCRIPT == 'forumdisplay'">
<body<if condition="can_moderate($foruminfo['forumid']) AND $show['inlinemod']"> onload="inline_init($foruminfo[forumid], 'thread'); <if condition="$_REQUEST['mod'] == 1">inline_reset();</if>"</if>>
<else />
<if condition="THIS_SCRIPT == 'showthread'"><body onload="<if condition="can_moderate($thread['forumid']) AND $show['inlinemod']">inline_init($thread[threadid], 'post');</if>$onload">
<else /><body></if></if>
Now, I get the permission to delete the posts, I get the checkboxes, I get the number of checked off topics in the bracket, but when I hit GO (to move topics, for example) I still get the no permission error. I've tried adding myself as a moderator to the specific forum in question as well, and nothing.
Btw, is my <body> tag supposed to look like this on the page load:
Code:
<body onload="inline_init(, 'thread'); ">
|
Glad you found out what the problem was. And no the body tag is
not supposed to look like that. The first argument in the inline_init() function is supposed to be the thread or forum ID that you're currently viewing. Missing this would cause that no permissions page to be thrown. I'm not sure how to resolve this, though.