admin (no pm's please)
|
MODACTIONS and REPORT portals available.I have added:
<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 -->
<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}">Moderate User</a>
<!-- ENDIF -->
after the IP image in viewtopic_body.tpl in this template, and then enabled the actions in the MODACTIONS portal.
This gives a powerful control panel to moderators. A less powerful one can be made by not enabled all the actions!
|
Symon
|
Re: MODACTIONS and REPORT portals available. | admin (no pm's please) wrote: | I have added:
<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
<!-- IF S_USER_LEVEL > 0 -->
Moderate User
<!-- ENDIF -->
after the IP image in viewtopic_body.tpl in this template, and then enabled the actions in the MODACTIONS portal.
This gives a powerful control panel to moderators. A less powerful one can be made by not enabled all the actions! |
This forum gettin this error if i click on moderate user on this post.
| Code: | Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/zaphod.myfineforum.org/httpdocs/freeforums/myffcms/com_actions.php on line 392
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/zaphod.myfineforum.org/httpdocs/freeforums/myffcms/com_actions.php on line 392
You are moderating the user ""
Enter a reason for your action, this will be included in a private message to the member |
|
admin (no pm's please)
|
I am seeing an ie7 issue, but not the error you say.
|
admin (no pm's please)
|
another small point, you would not expect to see mod functions available if you try and mod an admin or another mod.
But that does not explain the error notices.
|
Symon
|
| admin (no pm's please) wrote: | | I am seeing an ie7 issue, but not the error you say. |
I saw it using FF and when i clicked on the mod user link.
Login as me if you like
|
admin (no pm's please)
|
I did not wait to ask! I am logged in as you from a couple of places.
Not seeing this error. But have been seeing errors in ie7 when modding people you should not be modding, but the errors I am seeing are not the errors you are reporting
|
Manz
|
on IE, there is a problem with the report post..
it looks like this when you click it
the text does not fill the window and it does not let the window expand any bigger.
also how do we make the moderator control panel link show on the index page?
|
Symon
|
| admin (no pm's please) wrote: |
I did not wait to ask! I am logged in as you from a couple of places.
Not seeing this error. But have been seeing errors in ie7 when modding people you should not be modding, but the errors I am seeing are not the errors you are reporting  |
Ok see the misunderstanding.
I was clicking the moderate use link that was in your first post.
|
Symon
|
| Manz wrote: |
also how do we make the moderator control panel link show on the index page? |
Why would you need to do that ?
No point in it as as you click on it the members name appears so you can mod them, on index who would it call ?
|
admin (no pm's please)
|
| Manz wrote: | on IE, there is a problem with the report post..
it looks like this when you click it
the text does not fill the window and it does not let the window expand any bigger.
also how do we make the moderator control panel link show on the index page? |
Like all of these things you can edit how it is called and the template it uses.
|
Manz
|
| Symon wrote: | | Manz wrote: |
also how do we make the moderator control panel link show on the index page? |
Why would you need to do that ?
No point in it as as you click on it the members name appears so you can mod them, on index who would it call ? |
it could let you search for the member so you can mod them.?
|
admin (no pm's please)
|
Just fixed a silly error in the template leading to some wrong private message being sent
As for extra changes to this, then for flips sake can't you wait for the dust to settle on a major and powerful upgrade before wanting even more
|
Nick(NR)
|
Just want to point out to people you can sub out the text with an image to match your chosen template
for example, this with text:
| Code: | <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 -->
<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}">Moderate User</a>
<!-- ENDIF --> |
could become this with images:
| Code: | <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')"><img src="http://xxxxx.myfreeforum.org/templates/myff_xxxxx/images/lang_english/icon_report.gif" border="0"></a>
<!-- IF S_USER_LEVEL > 0 -->
<a class="gensmall" href="/action.php?action=MODACTIONS&popup=2&u={postrow.POSTER_ID}"><img src="http://xxxxx.myfreeforum.org/templates/myff_xxxxx/images/lang_english/icon_moduser.gif" border="0"></a>
<!-- ENDIF --> |
|
admin (no pm's please)
|
Some nice icons would be handy
You really can do a ton with with PORTAL the code provided is just a working (hopefully) example.
Once it has settled a bit people should tweak it to suit themselves.
|
Symon
|
A guide is on its way but i,m waiting for a few glitches to be ironed out first.
Nick could you knock up some plain buttons (subsilver) please so i can give the view on a screen shot ?
|
Nick(NR)
|
Enjoy
|
Andrew(AP)
|
I was testing this out with a test user, and it showed this went the pm was sent.
| Code: | Topic:<a href="/viewtopic.php?p={ACTIONS_POST_ID}">{ACTIONS_TOPIC_TOPIC_TITLE}</a><br />Reason: {ACTIONS_REPORTREASON}<br />{ACTIONS_REPORT}
|
I have allow html set as yes.
is there any other settings i need to know about to allow html in pm's?
|
admin (no pm's please)
|
thanks Nick
|
Symon
|
http://testhtml.myfastforum.org/sutra76.php#76
Clicking on report post brings up a blank pop up box.
|
Symon
|
Also
There are no switches when clicking on mod user
|
admin (no pm's please)
|
No switches is most likely when all actions are disabled in the MODACTIONS portal. They start disabled so no forums are exposed to features they may not want.
|
admin (no pm's please)
|
| Symon wrote: | Also
There are no switches when clicking on mod user |
you have a BLANK portal called REPORT which conflicts with the new REPORT portal.
|
Symon
|
Ok should have seen that now when i get the pm for reporting post i see
http://testhtml.myfastforum.org
|
admin (no pm's please)
|
That is a bug in the default configuration (now fixed);
the PM should be:
Topic:<a href="/viewtopic.php?p={REPORT_POST_ID}">{REPORT_TOPIC_TOPIC_TITLE}</a>
Reason: {REPORT_REPORTREASON}
{REPORT_REPORT}
|
Symon
|
is what i,m seeing now,, the quotes not working and extra br tag
|
admin (no pm's please)
|
my PM correction seemed to get a bit mangled in the posting I have edited it.
|
Symon
|
| admin (no pm's please) wrote: | my PM correction seemed to get a bit mangled in the posting I have edited it. |
Still showing the same to me.
|
admin (no pm's please)
|
I think will have to wait till the morning. I cannot see what is happening right now
|
Symon
|
| admin (no pm's please) wrote: | I think will have to wait till the morning. I cannot see what is happening right now  |
Might be a template issue as on another site i see
|
Symon
|
Basic guide done
http://howtodoit.myfreeforum.org/...component=content&topicid=730
|
admin (no pm's please)
|
One small point, the trigger member is also important.
The key example is "Set Inactive" by default not only is this action disabled, it is set as an "admin" only trigger action.
So if you enable it, mods will still not be able to ban people. It needs setting to admins and mods.
|
Symon
|
scratches head ???
Did i really miss that bit out
Will of course sort it...
As said this is the basic of guides , as this is a very powerful hack, that will require more guides as time goes on.
|
Nick(NR)
|
you might want to give people the moduser default button if their going to be using it as a linked image
|
Symon
|
Guide updated with trigger switches listed.
And icon available.
|
stingwraith
|
I got this working, but I have some problems with font color.
Is there a way to change the font color in the report window, and the modaction window? My theme isn't compatible with it, and this is what it looks like
I have to highlight everything to see what I'm typing, and yes I have things typed in each of the white boxes given, but the font color isn't right.
|
admin (no pm's please)
|
In the template editor you can edit the templates cms_modaction.tpl/cms_report.tpl
|
stingwraith
|
Ah. Thanks.
EDIT:
Wait, how do I change the color of the backdrop of the text box?
|
stingwraith
|
I tried it like this
| Code: | <!-- IF REPORT_ACTION == "REPORT" -->
<!-- IF REPORT_MODE == "STATE1" -->
<font color="FFFFFF">You are reporting a post by {REPORT_TARGET_USERNAME} in the thread "{REPORT_TOPIC_TOPIC_TITLE}"</font color>
<br />
<font color="FFFFFF">Report Reason:</font color>
<select name="reportreason" class="inputbox">
<option value="LANGUAGE">Bad language</option>
<option value="ABUSIVE">Abusive Behaviour</option>
<option value="OTHER" selected="selected">Details entered in report</option>
</select>
<br/>
<textarea name="report" rows="5" cols="70" body bgcolor="000000">
[quote="{REPORT_TARGET_USERNAME}"]
{REPORT_POST_POST_TEXT}
[/quote]
</textarea>
<br /> |
But it wouldn't work, the background is still white...
|
admin (no pm's please)
|
<textarea name="report" rows="5" cols="70" body bgcolor="000000">
is not correct html, I can't tell you off the top of my head what should be typed in, but would recommend you read up on html.
I see you also have:
which makes no html sense.
|
Symon
|
cms_modactions.tpl
Take out
| Code: | | <textarea name="reason" cols="80" rows="4" /></textarea> |
Replace with
| Code: | <textarea name="reason" cols="80" rows="4" style="color: red; background-color: lightyellow"/>
</textarea> |
change colours to suit
|
stingwraith
|
Thanks, that works!
|
Nick(NR)
|
just spotted one trivial things missing from modactions is the ability to disallow certain members name changes.
|
|
|