Code to show button Only for Mods/Admins
2 posters
Page 1 of 1
Code to show button Only for Mods/Admins
Okay so I have a feeling that this is impossible but I've got a 'approve' button that automatically adds a Approved Message to a post.
Simple enough to do but I just need a some code to ensure the button itself ONLY shows up for Mods/Admins.
Any takers?
Simple enough to do but I just need a some code to ensure the button itself ONLY shows up for Mods/Admins.
Any takers?
Re: Code to show button Only for Mods/Admins
If you would like to create a HTML button that shows only for staff, I think this is not possible. But I have a personally theory that this may be possible via Templates. As you know, the moderation buttons (delete/move/lock/unlock topic and the rest) are visible and also avaible only for staff members. You can try to put the HTML buttons near that moderation buttons or other things that are avaible only for staff members.
You would know that this idea came to me right now, and I don't know exacly if works. But should be a nice trick.
You would know that this idea came to me right now, and I don't know exacly if works. But should be a nice trick.
Guest- Guest
Re: Code to show button Only for Mods/Admins
Yeah I'm template hackin' to make it work
alas the delete/lock etc. buttons are just {S_TOPIC_ADMIN} in the template. so no help I'm afraid.
alas the delete/lock etc. buttons are just {S_TOPIC_ADMIN} in the template. so no help I'm afraid.
Re: Code to show button Only for Mods/Admins
How about this code from viewtopic_body:
- Code:
<!-- BEGIN moderation_panel -->
<td align="center">
<span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
</td>
<td align="center" width="250">
<span class="gensmall"> </span>
</td>
<!-- END moderation_panel -->
- Code:
<!-- BEGIN moderation_panel -->
- Code:
<!-- END moderation_panel -->
Guest- Guest
Re: Code to show button Only for Mods/Admins
Hi,
Please call it 'template modifying' hacking is such a worse work
You can modify the template to do so.
In the view_topic(general) theres a code:
Line432 by default.
replace 'My personal edit here 7777' with yours, and when searching, my text isn't there
If you add in where gassy suggests it looks messy
Please call it 'template modifying' hacking is such a worse work
You can modify the template to do so.
In the view_topic(general) theres a code:
Line432 by default.
- Code:
<span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD} <input class="liteoption" type="submit" value="{L_GO}" /> <br /> My personal edit 7777777 here</span>
replace 'My personal edit here 7777' with yours, and when searching, my text isn't there
If you add in where gassy suggests it looks messy
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Similar topics
» Topic/Post Button for Mods & Admins
» Only have IP button show up for admins?
» help me admins, mods or other!
» Mods and Admins?
» admins and mods name
» Only have IP button show up for admins?
» help me admins, mods or other!
» Mods and Admins?
» admins and mods name
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum