Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Contact staff
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-01-06 08:00:03
"downboys, post: 69078":
Please forgive this possibly ignorant question, but where do the users go to PM the staff? I have this mod installed and have sent a regular PM to myself and a staff member using my test account, but I receive nothing in the Staff Contacts in the admin CP. What obvious thing am I missing here?


Thanks to daffy for helping me figure this out!

And thanks for the mod!
Unknown User
2011-01-27 23:49:15
I wanted to integrate this mod, but I got lots of error.

So I was coded one entirely

Here is my "user" party. It is properly protected against SQL attacks ??

<?



require "backend/functions.php";

dbconn();



if ($site_config["MEMBERSONLY"])

loggedinonly();



stdhead("Contact us");

begin_frame("Contact us");

if((!(isset($_POST["msg"]))) & (!(isset($_POST["sub"]))))

{

?>

<p>

You have question, suggestion or request ? Contact us !

<form method=post name=message action=contactstaff.php>

<table>

<tr>

<td>Subject</td>

<td style="text-align:left;"><input type=text size=83 name=sub style='margin-left: 5px'></td>

</tr>

<tr>

<td>Message</td>

<td style="text-align:left;"><textarea name=msg cols=61 rows=10></textarea></td>

</tr>

<tr>

<td></td>

<td><input type=submit value="Submit" class=btn></td>

</tr>

</table>

</form>

</p>

<?

}

else

{

$msg = trim($_POST["msg"]);

$sub = trim($_POST["sub"]);





$error_msg = "";

if (!$msg)

$error_msg = $error_msg . "No Message</br>";

if (!$sub)

$error_msg =  $error_msg . "No Subject</br>";



if($error_msg != "")

{

echo "<center><h3 style=\"color:red;\">Your message could not be sent:</br></br>";

echo $error_msg . "</h3></br></br><a href=\"contactstaff.php\">Back</a></center>";

}

else

{

$sql_msg = sqlesc($msg);

$sql_sub = sqlesc($sub);

$added = "'" . get_date_time() . "'";

$userid = $CURUSER['id'];

$REQ = mysql_query("INSERT INTO staffmessages (sender, added, msg, subject) VALUES($userid, $added, $sql_msg, $sql_sub)");

if($REQ)

{

echo "<center><h3 style=\"color:green;\">Your message was successfully sent</h3></br></br><a href=\"index.php\">Back</a></center>";

}

else

{

echo "<center><h3 style=\"color:red;\">Error sending message. Please try later</h3></br></br><a href=\"index.php\">Back</a></center>";

}

}



}

end_frame();

stdfoot();

?>


Thanks
Unknown User
2011-07-08 15:43:12
i have tried to install this mod on tt v 2.06

pm is sending to all the stuff perfectly. But when i clik on stuff.php from admin cp i am getting this

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/torrentbd/torrentbd.com/torrent/staffbox.php on line 63

i have seen lots of comments about it but not getting which one will solve the problem for tt v 2.06

I need your help . Thanks in advance
Unknown User
2011-11-17 03:45:06
i install this mod and its ok in TorrentTrader v2-svn

[url="http://www.torrenttrader.org/index.php?s=&showtopic=9584&view=findpost&p=47441"]http://www.torrenttrader.org/index.php?s=&...ost&p=47441[/url]

i have 2 questions

1.is easy somebody to check for security these php?

2.is easy to take pm when a user must help?
Unknown User
2011-11-17 05:05:14
Not sure what you mean about 2. but I use the mod or an version of it on my main site and it seems good for what people need help with.

Security wise so far np but again I changed stuff that others did here for security on all my pages.

I personally feel it would be better to have it all in 1 file, maybe if I get around to it will try that on 2.08 or svn if get really bored.

Ps: dont try and ask me what ones changed.  Its an change prg i use to change all .php on my hd folder of my site So I really have no idea of 1 changes hehe
Unknown User
2011-11-17 08:03:32
the 2 i mean that when i see the help of members only admin panel if i remember. if i have a pm when a member need help is easy to see in admin panel and dont forgot it

i hope you understand me
Unknown User
2011-11-17 08:28:32
ah i get what you mean.

i would think changing

if ($CURUSER["class"] < "7")
changing 7 to what ever # you set

to


if (!$CURUSER || $CURUSER["control_panel"]!="yes")


would be an better way myself, that way dont really matter if you add classes lol as long as control_panel flag is set right in the db for your staff classes.

Heck works well in main control panel why not in the staff box hehe
Unknown User
2011-11-17 08:44:57
Yes this change daffy said but i dont take pm the admin
Unknown User
2012-01-09 07:23:10
"fozshell, post: 47441":
This mod allows people on ur site to contact admins who have control on the cp u can then reply to there message from the staff pannel or delete and mark as answered


Alter tables

CREATE TABLE `staffmessages` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`sender` int( 10 ) unsigned NOT NULL default '0',

`added` datetime default NULL ,

`msg` text,

`subject` varchar( 100 ) NOT NULL default '',

`answeredby` int( 10 ) unsigned NOT NULL default '0',

`answered` tinyint( 1 ) NOT NULL default '0',

`answer` text,

PRIMARY KEY ( `id` )

) TYPE = MYISAM ;

Open admincp.php

Find

<td align="center"><a href=admincp.php?action=ipbans><img src="images/admin/blocked.gif" border=0 width=32 height=32><BR>Banned IPs</a><BR></td>
Add bellow


<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><BR>Staff contacts</a><BR></td>



Upload these 3 files to ur root

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3013"]contactstaff.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3014"]staffbox.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3015"]takecontact.php[/url]

Image



Please let me no what u think and if it works as it is like 4.00am here lol

after send a message I got blank page(takecontact.php) & no messages sending.

I'm using tt2.07 .

please help :)
Unknown User
2012-03-01 20:52:29
its ok in 2.08
Unknown User
2012-03-01 22:36:59
Noname12   why do you not tested 2.06 is not compatible with 2.08 you have to modify the code
Unknown User
2012-03-02 05:27:02
in my 2.08 i have the code as you see in first post with a little changes in language(greek) and other. take it and test it if you want. For me its perfect.

i have the table as first post

CREATE TABLE `staffmessages` (

`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`sender` int( 10 ) unsigned NOT NULL default '0',

`added` datetime default NULL ,

`msg` text,

`subject` varchar( 100 ) NOT NULL default '',

`answeredby` int( 10 ) unsigned NOT NULL default '0',

`answered` tinyint( 1 ) NOT NULL default '0',

`answer` text,

PRIMARY KEY ( `id` )

) TYPE = MYISAM ;
and the admincp.php


<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><br />Staff contacts<br /></a></td>



and the below codes

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5562"]contactstaff.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5563"]staffbox.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5564"]takecontact.php[/url]
contactstaff.php
Download
staffbox.php
Download
takecontact.php
Download
Unknown User
2012-03-04 09:37:14
"Noname12, post: 81047":
in my 2.08 i have the code as you see in first post with a little changes in language(greek) and other. take it and test it if you want. For me its perfect.

i have the table as first post

CREATE TABLE `staffmessages` (

`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`sender` int( 10 ) unsigned NOT NULL default '0',

`added` datetime default NULL ,

`msg` text,

`subject` varchar( 100 ) NOT NULL default '',

`answeredby` int( 10 ) unsigned NOT NULL default '0',

`answered` tinyint( 1 ) NOT NULL default '0',

`answer` text,

PRIMARY KEY ( `id` )

) TYPE = MYISAM ;
and the admincp.php


<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><br />Staff contacts<br /></a></td>



and the below codes

Thanks but can you put the files in English easier for me to put then in French

thank you
Unknown User
2012-03-04 18:08:51
ok i attach the file with english, i hope its ok

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5571"]contactstaff.php[/url]
contactstaff.php
Download
Unknown User
2012-05-11 15:01:10
I was wondering if it's posible to be informed the staff somehow when somebody sends a msg to CONTACT, like pm's?

(highlight or something)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728