Webmastersite.net
Register Log In

How can I do this?
Hide a File Type from user submissions

Comments on How can I do this?

Agent
Member

Usergroup: Customer
Joined: Oct 27, 2006

Total Topics: 6
Total Comments: 25
Agent
Posted Nov 03, 2006 - 5:52 PM:

I have a file type called affiliates, for affiliate links .. When a user submits a link, the file type shows up in the box for them to choose, however I don't want that file type to show up for anyone but administration.

How can I do this?
scriptwiki
Member

Usergroup: Customer
Joined: Aug 04, 2005

Total Topics: 11
Total Comments: 47
Posted Nov 03, 2006 - 6:00 PM:

Do this

<IF {THISMEMBERISADMIN}><option value="afflink">affiliate links</option></IF>

that list option will only show if you are the admin.
Agent
Member

Usergroup: Customer
Joined: Oct 27, 2006

Total Topics: 6
Total Comments: 25
Agent
Posted Nov 03, 2006 - 6:38 PM:

That worked perfectly, thank you..grin

Here is what I used in the suggest link template, for those that might be doing this and need more information.


<IF {THISMEMBERISADMIN}>
<td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
<ELSE>
<td class="optionscolumn"><select name="type">
<option value="sponsored">sponsored</option>
<option value="recip">reciprocal</option>
<option value="regular">regular</option>
</select></td>
</IF>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.