The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Admins only script*Not really solved*

View previous topic View next topic Go down

Solved Admins only script*Not really solved*

Post by Leaf on 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
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 on July 10th 2010, 2:24 am

Hello,

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

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf on 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
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 on 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
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf on 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
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 on 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
Hyperactive

Male Posts : 2487
Reputation : 38
Language :
Location :

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf on 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
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 on July 10th 2010, 3:51 am

thats php and forumotion doesn't support php Wink

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Solved Re: Admins only script*Not really solved*

Post by Leaf on 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
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 on July 10th 2010, 4:20 am

Solved > Locked

ankillien
Energetic

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

http://www.webartzforum.com/

Back to top Go down

View previous topic View next topic Back to top


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