Log in

View Full Version : session[hash] for cmps page


itsalltropical
01-10-2007, 02:04 AM
I am trying to add some join buttons to my forum on my cmps.index page using a custom template and edit module. Got the code below off the vBulletin forums. My problem is that the $session[sessionhash] value is pointing to the current session which is my vBAdvanced directory. I need to know what to change the $session[sessionhash] parameter so it will point to my mydomain.com/testvb/profile.php (my forums directory) not to mydomain.com/vBA/profile.php (my vBAdvanced directory).

Here's the code:

<tr>
<td><if condition="!is_member_of($bbuserinfo, 10)">
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]/" />
<input type="hidden" name="do" value="joingroup" />
<input type="hidden" name="usergroupid" value="10" />
<input type="submit" class="button" value="Join Forty Love Point" />
</form>
</if>
</td>
</tr>