PDA

View Full Version : Help Needed


Modshack
01-22-2002, 08:05 PM
I am trying to make it so that Admin can use a special Downloads link that only they will ever see on the forum.

I have taken some one elses code and tried to adapt it but the link to Admin works but the second link to Downloads does not.

I am not very experienced with this sort of thing so any info or help will be very much apreciated.

if ($bbuserinfo['usergroupid']==6) { $cplink='<a href="cp/index.php">Admin</a> |<a href"downloads.php">Downloads</a> |'; } elseif ($bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) { $cplink='<a href="mod/index.php">Mods |</a>'; } else { $cplink=''; }

I have attached an image to try and explain what I need a little better :)

HM

BTW My old domain Modshack now points to www.forumz.co.uk I just have not had chance to change my vbull info yet as I am still looking for the disk with the email I recieved on. I would get the pass details resent but I changed ISP 5 times since I registered :)

Just incase of any confusion for the Mods.

Modshack
01-22-2002, 10:51 PM
I fixed this myself in some sort of way by copying the code and pasting it below then altering the $cplink to $dllink and then altering the paths etc.

In Global.php add after

checkipban();
$logincode=makelogincode();

This

if ($bbuserinfo['usergroupid']==6) { $cplink='<a href="cp/index.php">Admin</a> |'; } elseif ($bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) { $cplink='<a href="mod/index.php">Mods</a> |'; } else { $cplink=''; }

if ($bbuserinfo['usergroupid']==6) { $dllink='<a href="downloads.php">Downloads</a> |'; } elseif ($bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) { $dllink='<a href="blank.php"></a>'; } else { $dllinklink=''; }

Then simply add $dllink where ever you want it.

Does anyone know how to do this for images so that all usergroups except Admin and Mods see an image.

HM