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] Additional shoutbox for staff only
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-12-03 03:26:00
Sorry , i'm a noobie and i made the changes and not still working for me .

Trouble : when the message is sent to shout i see only my name . The message doesn't goes to the shout .

My codes :

Index.php

if ($site_config['SHOUTBOX']){
begin_frame("Mural");

echo '<IFRAME name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" width=350 scrolling="no" align="middle"></IFRAME>';

echo "(O mural
Unknown User
2009-01-18 18:04:19
Not work, with TorrentTrader-v2.05 :)
Unknown User
2009-01-25 16:58:46
"Lujo, post: 51912":
Not work, with TorrentTrader-v2.05  :D
Check each of the changes carefully, works perfectly for me on 2.05

Many thanks for this :P
Unknown User
2009-05-09 17:58:03
When i type a message, i get this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/*/public_html/shoutbox_staff.php on line 39

//INSERT MESSAGE

if (!empty($_POST['message']) && $CURUSER) {

$_POST['message'] = sqlesc($_POST['message']);

$query = "SELECT COUNT(*) FROM staff_shoutbox WHERE message='".$_POST['message']."' AND user='".$CURUSER['username']."' AND UNIX_TIMESTAMP()-UNIX_TIMESTAMP(date) < 30";

$result = mysql_query($query);

$row = mysql_fetch_row($result);



if ($row[0] == '0') {

$query = "INSERT INTO staff_shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', '".unesc($_POST['message'])."', '".get_date_time()."', '".$CURUSER['id']."')";

mysql_query($query);

}

}


Edit:

This is weird, i only get the error if i type letters. If they're numbers, everything is fine XD
Unknown User
2009-05-09 23:09:47
//INSERT MESSAGE

if (!empty($_POST['message']) && $CURUSER) {

$_POST['message'] = sqlesc($_POST['message']);

$query = "SELECT COUNT(*) FROM staff_shoutbox WHERE message=$_POST[message] AND user='".$CURUSER['username']."' AND UNIX_TIMESTAMP()-UNIX_TIMESTAMP(date) < 30";

$result = mysql_query($query);

$row = mysql_fetch_row($result);



if ($row[0] == '0') {

$query = "INSERT INTO staff_shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', $_POST[message], '".get_date_time()."', '".$CURUSER['id']."')";

mysql_query($query);

}

}
Unknown User
2009-05-09 23:45:14
"TorrentialStorm, post: 57462":
//INSERT MESSAGE

if (!empty($_POST['message']) && $CURUSER) {

$_POST['message'] = sqlesc($_POST['message']);

$query = "SELECT COUNT(*) FROM staff_shoutbox WHERE message=$_POST[message] AND user='".$CURUSER['username']."' AND UNIX_TIMESTAMP()-UNIX_TIMESTAMP(date) < 30";

$result = mysql_query($query);

$row = mysql_fetch_row($result);



if ($row[0] == '0') {

$query = "INSERT INTO staff_shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', $_POST[message], '".get_date_time()."', '".$CURUSER['id']."')";

mysql_query($query);

}

}


It worked.

Thank you very much for your help, TorrentialStorm
Unknown User
2009-10-18 21:32:25
thank you work great
Unknown User
2010-01-19 03:23:16
thanks torrenttialstorm m8 it works awesome
Unknown User
2010-03-25 13:33:06
This mod works fantastic TS thanks .....but i got a bit of a noob dilemma , i set mine so only mod and above can see it , mod being status 4 , but now i added a new peer , Comm vip , with status of 8 , was wondering if there is a piece of coding i can add/change to allow as is now, but omit status 8 ?   Many Thanks in advance .

No worries , just changed all my classes around , it was quicker <_<
Unknown User
2010-11-28 18:09:50
The shoutbox is showing but the field for writing in is gone..

Anyone who has a clue to what i've done wrong?
Unknown User
2010-12-03 07:37:03
works for me in Chrome but in firefox i have error message???

Shoubox is disabled. Please do not direct link here

would it be a setting in firefox? if so what?
Unknown User
2010-12-03 08:32:01
"Casey, post: 68057":
The shoutbox is showing but the field for writing in is gone..Anyone who has a clue to what i've done wrong?
not sure bud , but may be a problem with the size of your shout area , i think i had same problem. Try playing around with the size ie

height="255" width=350
Unknown User
2010-12-06 19:12:50
but if i shut down the staff_shoutbox it is transfering the shouts to the normal shout
Unknown User
2010-12-06 19:26:20
"wishmaster, post: 68290":
but if i shut down the staff_shoutbox it is transfering the shouts to the normal shout
it can't if you changed all shoutbox to staff_shoutbox m8
Unknown User
2011-02-28 14:52:37
Voila j ai un petit probleme j ai installer la shoutbox staff et quand j ecris dessus tout se tranfere sur ma shoutbox principale donc ca ecrit en double , j aurais aimer avoir la shoutbox staff independente a l autre  merci
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728