Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 16th, 2017, 05:17am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Report To Admin  (Read 5869 times)
Jason
Conforums founding member
Executive Member


member is offline

Avatar

Hello!


PM

Gender: Male
Posts: 5804
xx Report To Admin
« Thread started on: Aug 4th, 2003, 11:23am »

Report To Admin Code

This code is used to let your members notify you of a member that is abusing the forum rules.

When you see a member that is not following the rules. You click on the report to admin link under that person's avatar, and it will notify the admin of the problem.

If you'd like to see a preview of this codes effects click here and here

This code goes in the footer of ALL Boards.

<script>
//Advanced IM reporter
//Created by Webworldx - Proboards

var tSubject="Reporting User: "
var tMessage="I am reporting this user for misconduct in the following thread: "

var URLtext = escape(location.href);
URLtext = URLtext.replace(/&/g,"%26");
URLtext = URLtext.replace(/@/g,"%40");
URLtext = URLtext.replace(/\//g,"%2F");
URLtext = URLtext.replace(/\?/g,"%3F");
URLtext = URLtext.replace(/=/g,"%3D");
var tLocation = URLtext ;

if (location.href.indexOf("action=display") != -1) {
tCat = document.getElementsByTagName('TD');
for (i=0;i<tCat.length;i++){
if (tCat[i].width=="20%" && tCat[i].innerHTML.match("Posts") && tCat[i].innerHTML.match("member is")){
tCat[i].innerHTML+='<center><a href="/index.cgi?action=imsend&to=admin&subject='+ tSubject + tCat[i].all(1).innerText + '&message=' + tMessage + tLocation + '">Report to Admin</a></center>'
}}}

</script>
« Last Edit: Jul 6th, 2006, 12:27am by Garet » User IP Logged

User Image
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17654
xx Re: Report To Admin
« Reply #1 on: Aug 4th, 2003, 1:44pm »

Please Note:

This code will not work for Guests..it's a facility that is only available to Members...
« Last Edit: Aug 4th, 2003, 2:55pm by Dave » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17654
xx Re: Report To Admin
« Reply #2 on: Aug 13th, 2003, 1:04pm »

This is another Report to admin code.. the one thats used here on the support board...

Code:
<script language="Javascript">
<!--
/*
Created by Dave - Conforums.com
Report to admin post content.
*/

var tosendto = "admin,Dave";


function check_report() {
if(confirm("Are you sure you wish to report this post?"))
return true
else
return false
}


var tds = document.getElementsByTagName('TD');
for(i=1; i<tds.length; i++){
if(tds[i].height=="100%" && tds[i].width=="80%" && tds[i].vAlign=="top"){
var postaddress = escape(location.href);
var user = tds[i-1].getElementsByTagName('FONT')[1]
var username = (user.firstChild.nodeName == "A") ? "User: [url%3D"+escape(user.getElementsByTagName('A')[0].href)+"]"+escape(user.getElementsByTagName('B')[0].innerHTML) + "[/url]" : "Guest: "+escape(user.getElementsByTagName('B')[0].innerHTML);
var posttitle = escape(tds[i].getElementsByTagName('B')[0].innerHTML);
var content = escape(tds[i].getElementsByTagName('FONT')[3].innerHTML);

var postmessage= "Reporting Thread: "+postaddress+"<br><br>By "+username+"<br><br>Title: "+posttitle+"<br><br>Content: "+content;
tds[i+3].innerHTML = '<a href=\"/index.cgi?action=imsend2&form_passed=1&to='+tosendto+'&subject=Report%20Post&message='+postmessage+'\" target=\"_blank\" onclick=\"return check_report()\"><img src=\"http://conforums.com/images/report.gif\" border=\"0\" alt=\"Please Only use this to report this post to the staff.\"></a>' + tds[i+3].innerHTML;
}
}
-->
</script> 


This code goes into all your Footers.... Except the main footers...

The only thing we ask, is that you save the report.gif image and host it yourself.. The URL is highlighted above....

Once again, this can be sent to different users instead of the main admin.. just change this line:-
    var tosendto = "admin";

by adding in another username like this...
    var tosendto = "admin,Dave";
and to add more than one...
    var tosendto = "admin,Dave,Roger";


It is important that the usernames are seperated by a comma and more importantly, the usernames actually exist.

If you'd like to see a sample reported thread then click here
« Last Edit: Oct 25th, 2007, 03:09am by Dave » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls