Quote:
Originally Posted by dai-kun
It's pretty late and I'm tried so this is the best I can come up with.
Edit your conquest_enlist_bit template,
find
Code:
<form action="$filename?do=homebase" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="joinrequest" value="$nation[nationID]" />
<input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
</form>
and replace it with
Code:
<if condition="is_member_of($vbulletin->userinfo, 6,7)">
<form action="$filename?do=homebase" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="joinrequest" value="$nation[nationID]" />
<input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
</form>
<else />
<if condition="$nation[nationID] != 3">
<form action="$filename?do=homebase" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="joinrequest" value="$nation[nationID]" />
<input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
</form>
</if>
</if>
Change the red numbers to your special VIP groups and the green number to that special nation.
First half of code lets special users join any and all nations.
Second half prevents users not set in first part of code from joining specific nation.
|
Im gonna test know... If works i will edit here.
EDIT: Worked great! thx.