Log in to check your private messages 
Username: Password:   
  howtodoit.myfastforum.org
  Walkthough guides for myfreeforum phpbb 2 forums
Index  FAQ  Search  Memberlist  Usergroups  Profile

Text
Text
Friends
MYFF Support Forum
HOWTODOIT (PHPbb3)
portalogy
CGArts
ANNOUNCEMENTS
Complete List of templates Available
Please Read First Before Editing your template
Permissions
Admin Index
Sticky Articles
Latest Posts
Friends

Start | Stop
New Mod actions hack
Jump to:  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum
Author Message
Symon
Guide Legend
Guide Legend



Joined: 11 Jun 2006
Posts: 911


Location: Berkshire,England
FLAGS
Add Comment
Show Comments
PostPosted: Wed Mar 19, 2008 1:21 am  Reply with quote

This guide is for the new moderator`s action hack, please not that this is only the  basic guide.

Please remember to use the Editor account before making any template changes

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT

1. Goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the top in the area marked Choose Forum template/javascript/css File to Edit use the drop down bar and find

Viewtopic_body.tpl

Find the block of code that may look like this. (please remember that each template may be different , so my example code may not be the exact code you will see).

Code:
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG} </td>
</tr>


And place this code (this will leave a text link)

Code:
<!-- IF S_USER_LEVEL > 0 -->
&nbsp;<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}">Moderate User</a>
<!-- ENDIF -->


OR for a Button or image link

Code:
<!-- IF S_USER_LEVEL > 0 -->
&nbsp;<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}"><img src="http://testhtml.myfastforum.org/templates/myfs_testhtml1/images/icon_report.gif" border="0"></a>
<!-- ENDIF -->


Please remember to upload your own button and then to change the

Code:
<img src="http://testhtml.myfastforum.org/templates/myfs_testhtml1/images/icon_report.gif" border="0">


To point to your image.

After the  
Code:
{postrow.ip_IMG}



So it may look like this for text link

Code:
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}  <a class="gensmall" href="javascript:void(0)" onclick="window.open('/action.php?action=REPORT&popup=1&p={postrow.POST_ID}','report','height = 300, width = 300')">Report Post</a>
<!-- IF S_USER_LEVEL > 0 -->
&nbsp;<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}">Moderate User</a>
<!-- ENDIF --></td></tr>


Or For Button /image link

Code:
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}  <a class="gensmall" href="javascript:void(0)" onclick="window.open('/action.php?action=REPORT&popup=1&p={postrow.POST_ID}','report','height = 300, width = 300')">Report Post</a>
<!-- IF S_USER_LEVEL > 0 -->
&nbsp;<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}"><img src="http://testhtml.myfastforum.org/templates/myfs_testhtml1/images/icon_report.gif" border="0"></a>
<!-- ENDIF --></td>



Ok all that done you now goto Your  admin panel ---  3. Styles --- Portal Settings

You will now see a screen that looks like this




If you do not  see the  portals named MODACTIONS then Please go to the support forum and request admin adds them for you. (Please check properly first before requesting.)

Click On MODACTIONS

You now see a screen that looks something like this.



The only thing you need to do here at this point is to switch each switch you wish to the enabled position.

The switches are as follows:
Spoiler:


1. SETINACTIVE = Will enable a modertor to set an account inactive.
2. SETACTIVE = Will enable a moderator to set an account to be active.
3. ALLOWHTML = Will enable a moderator to allow a user to use HTML.
4. DISALLOWHTML = Will enable a moderator to disallow a user to use HTML.
5. ALLOWNEWTOPIC = Will enable a moderator to allow a user to be able to make a new topic.
6. DISALLOWNEWTOPIC = Will enable a moderator to disallow a user to be able to make a new topic.
7. ALLOWPM = Will enable a moderator to allow a user to be able to send private messages.
8. DISALLOWPM = Will enable a moderator to disallow a user to be able to send private messages.
9. ALLOWAVATAR = Will enable a moderator to allow a user to be able to use an avatar.
10. DISALLOWAVATAR = Will enable a moderator to disallow a user using an avatar.
11. MODERATE = Will enable a moderator to place a member on moderation.
12. UNMODERATE = Will enable a moderator to take a user off of moderation.
13. ALLOWATTACHSIG = Will enable a moderator to allow a user to be able to use signatures.
14. DISALLOWATTACHSIG = = Will enable a moderator to disallow a user to be able to use signatures.
15. RESTRICTPM = Will enable a moderator to restrict a user to  send private messages to admins/mods only.
16. UNRESTRICTPM Will enable a moderator to unrestrict a user to  sending  private messages to admins/mods only.
17. ALLOWREPLY = Will enable a moderator to allow a user to  be able to reply to posts .
18. DISALLOWREPLY  = Will enable a moderator to disallow a user to  be able to reply to posts .
19. ALLOWNEWTOPIC (For a poster) =  Will enable a moderator to allow a user to  be able topost new topics  .
20. MODPMMESSAGE = turning this on will enable a moderator to send a message to any user that has been moderated in any of the above actions.




Ok once you have switched on all that you want click on update portal parameters.

Please note the trigger actions

Spoiler:


Name   Name of this action.
Enabled   Turn it on or off.
Trigger    When does this action occur. ( This determines when the trigger is set, for example on a reply to a post or new topic etc.)
Target   Who does the action apply to.
Trigger Forums   Forum list   Triggering forums (forum ids comma seperated)
Trigger Member   Trigger Group    Filter   Who can trigger the action?
Target Member   Who can trigger the action? ( here is were you give the control just to admins or admins and mods)

Below are the settings and controls for advanced users who wish to make their own actions. If you are not intending to do so , or have no knowledge of what to do , please do not change anything. Guides will be made to help you set up your own actions at a later date

XPROFILE field   This is for advanced users who wish to make their own actions.
Command 1:   Amount    Flags   Type of action to apply. flags can be used to define extra features you can read about via the support forum.
Command 2:   Amount    Flags   Type of action to apply. flags can be used to define extra features you can read about via the support forum.
Command 3:   Amount    Flags   Type of action to apply. flags can be used to define extra features you can read about via the support forum.
First PM   First PM subject   PM subject (* entries mean that a user can send the PM even if otherwise not allowed to send PMs)
First PM message   PM message
Second PM   Second PM subject   PM subject (* entries mean that a user can send the PM even if otherwise not allowed to send PMs)
Second PM message



You can use this button kindly supplied by Nick(NR) Just right click and save as, then upload to your template.



You have now set up the new mod action hack.

To see how it all works please see the post in the moderators section.

http://howtodoit.myfreeforum.org/...component=content&topicid=731

And That`s HOWTODOIT

View user's profile Send private message Visit poster's website FACEBOOKSTEAM
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

HOWTODOIT was designed and built by Symon Field
Creator Of ☆ ☆ FunnyWorld
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 
Create your own free forum | Buy a domain to use with your forum