The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Admins only script*Not really solved*

4 posters

Go down

Solved Admins only script*Not really solved*

Post by Leaf July 10th 2010, 12:26 am

Hello everyone.

I would like this code to apply to admins only:
Code:
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   <tr>
      <td colspan="2" align="left" valign="top" nowrap="nowrap">
{S_TOPIC_ADMIN}

         <form name="action" method="get" action="{S_FORM_MOD_ACTION}">
            <input type="hidden" name="t" value="{TOPIC_ID}" />
            <input type="hidden" name="sid" value="{S_SID}" />
            <span class="gen">{L_MOD_TOOLS}
{S_SELECT_MOD}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span>
         </form>
      </td>
   </tr>
</table>

this is the quick mod tool's script, I only want it for the admins to see and use.
Thanks

Moderators have there own moderation panel like this.
Now, its time for one for the admins only.
What script would make this code visible to admins only?


Last edited by Leaf on July 10th 2010, 3:56 am; edited 1 time in total
Leaf
Leaf
Forumember

Male Posts : 381
Reputation : 0
Language : English
Location : Jersey shore

http://www.clubpenguinhut.com

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Darren1 July 10th 2010, 2:24 am

Hello,

I don't think there is an Admin-only script, even with the templates.
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf July 10th 2010, 2:25 am

Darren1 wrote:Hello,

I don't think there is an Admin-only script, even with the templates.

I'm not sure if its a script, or what.

I just want to make it so that code is only visible to my admins.
that is the quick mod tools*the drop down one.
Leaf
Leaf
Forumember

Male Posts : 381
Reputation : 0
Language : English
Location : Jersey shore

http://www.clubpenguinhut.com

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Darren1 July 10th 2010, 2:53 am

I don't know anywhere in the templates that are specific to admins so I can't help you.
I personally doubt that there is a code, or script that is admin specific.
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf July 10th 2010, 2:56 am

Darren1 wrote:I don't know anywhere in the templates that are specific to admins so I can't help you.
I personally doubt that there is a code, or script that is admin specific.

Well, without editing this only moderators could see this.
So if this is an modertor and admin script, what is just the admin script?
Leaf
Leaf
Forumember

Male Posts : 381
Reputation : 0
Language : English
Location : Jersey shore

http://www.clubpenguinhut.com

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by KingOfSports July 10th 2010, 3:30 am

I know that there is a registered member script and a non-registered member script, but I don't think there is a admin/mod script.
KingOfSports
KingOfSports
Hyperactive

Male Posts : 2487
Reputation : 38
Language :
Location :

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf July 10th 2010, 3:35 am

KingOfSports wrote:I know that there is a registered member script and a non-registered member script, but I don't think there is a admin/mod script.

One of my friends is a programmer and he is helping me.

He said to use this script, but its not working:
<?php
$admin = array("uid1","uid2","uid3");

if($user == $admin) {
//code that allows them to see the box.
} else {
alert("you're no admin. gtfo.");
}
?>
Leaf
Leaf
Forumember

Male Posts : 381
Reputation : 0
Language : English
Location : Jersey shore

http://www.clubpenguinhut.com

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Darren1 July 10th 2010, 3:51 am

thats php and forumotion doesn't support php Wink
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf July 10th 2010, 3:55 am

Darren1 wrote:thats php and forumotion doesn't support php Wink

O shoot.

Thanks guys.
This topic isn't solved, but since we can't really solve it, marking it as solved lol.
Leaf
Leaf
Forumember

Male Posts : 381
Reputation : 0
Language : English
Location : Jersey shore

http://www.clubpenguinhut.com

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by ankillien July 10th 2010, 4:20 am

Solved > Locked
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum