Trek
12-27-2009, 12:44 AM
I'm trying to upgrade a mod of my own that I wrote and am having a couple of problems. Hopefully someone here can help me out a bit.
First I have this code located in the postbit_legacy template:
<vb:if condition="is_member_of($vbulletin->userinfo, $vboptions[gm_user_groups_allowed]">
<div id="GuildMate_{vb:raw post.postid}">
<a class="smallfont" href="#">{vb:phrase gm_postbit_text}</a>
<script type="text/javascript"> vbmenu_register("GuildMate_{vb:raw post.postid}", true); </script>
</div>
</vb:if>First problem with that is, the IF condition doesn't seem to work, I'm guessing it's something to do with $vbulletin->userinfo, but I'm not sure what to change it to.
So for now, I've removed the condition.
At this point, when some clicked on the link before, it would activate this code:
<!-- START: Guild Mate {vb:raw post.postid} popup menu -->
<div class="vbmenu_popup" id="GuildMate_{vb:raw post.postid}_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" colspan="3" align="center">{vb:phrase gm_modtitle}: {vb:phrase gm_modheader} $post[username]{vb:phrase gm_modheader2}</td>
</tr>
{vb:raw gm_char_data}
</table>
</div>
<!-- END: Guild Mate $post[postid] popup menu -->Instead of going to the URL specified in the A HREF above which is my website root. In VB4, it seems to go to the URL instead of this popup code that is specified at the bottom of the template. I'm not sure what else to try, but I'm still working at it.
Any help would be appreciated!
--------------- Added 26 Dec 2009 at 19:30 ---------------
I did want to say that everything appears to be generating as it should. The only problem is when clicking the link, the popup does not appear and it goes to the root level page.
Checking the source, the menus are generated as they should be, everything LOOKs like it should work.
I would like to add that I have in fact read all of the posts I can find on the popup menus and well.. still can't see what I'm doing wrong.
First I have this code located in the postbit_legacy template:
<vb:if condition="is_member_of($vbulletin->userinfo, $vboptions[gm_user_groups_allowed]">
<div id="GuildMate_{vb:raw post.postid}">
<a class="smallfont" href="#">{vb:phrase gm_postbit_text}</a>
<script type="text/javascript"> vbmenu_register("GuildMate_{vb:raw post.postid}", true); </script>
</div>
</vb:if>First problem with that is, the IF condition doesn't seem to work, I'm guessing it's something to do with $vbulletin->userinfo, but I'm not sure what to change it to.
So for now, I've removed the condition.
At this point, when some clicked on the link before, it would activate this code:
<!-- START: Guild Mate {vb:raw post.postid} popup menu -->
<div class="vbmenu_popup" id="GuildMate_{vb:raw post.postid}_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" colspan="3" align="center">{vb:phrase gm_modtitle}: {vb:phrase gm_modheader} $post[username]{vb:phrase gm_modheader2}</td>
</tr>
{vb:raw gm_char_data}
</table>
</div>
<!-- END: Guild Mate $post[postid] popup menu -->Instead of going to the URL specified in the A HREF above which is my website root. In VB4, it seems to go to the URL instead of this popup code that is specified at the bottom of the template. I'm not sure what else to try, but I'm still working at it.
Any help would be appreciated!
--------------- Added 26 Dec 2009 at 19:30 ---------------
I did want to say that everything appears to be generating as it should. The only problem is when clicking the link, the popup does not appear and it goes to the root level page.
Checking the source, the menus are generated as they should be, everything LOOKs like it should work.
I would like to add that I have in fact read all of the posts I can find on the popup menus and well.. still can't see what I'm doing wrong.