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
[ADDON] Ban users from shoutbox
Controls ·  Search New posts · Mark unread

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

Unknown User
2010-07-22 09:41:44
"Casey, post: 64456":
How can i implement this into ajax shout?

works with cooly's ajax shout no problem.
Unknown User
2011-08-22 12:33:16
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1  :angry:  ?????????
Unknown User
2011-08-22 15:35:01
ALTER TABLE `users` ADD `shoutboxpos` enum('yes','no') NOT NULL default 'yes';
Unknown User
2011-09-17 14:56:57
Quote:
if ($site_config['SHOUTBOX']){if($CURUSER["shoutboxpos"] == 'no'){

begin_frame("Disabled");

echo "<center><b>You dont have permissions to use the Shoutbox! Contact the staff!</b></center>";

end_frame();

}

if($CURUSER || !$CURUSER){

begin_frame("Shoutbox");

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>';

end_frame();

}

}
This is the correct code work?: /
Unknown User
2012-03-20 01:22:20
Thanks

Works good on 2.07
Unknown User
2012-04-09 12:44:46
this mod not working on the 206 code at all any mod for it please only for 206 tt ?
Unknown User
2012-04-27 22:45:54
Faille détecte:

shoutbox.php

Corrections:

dans shoutbox.php:

Rechercher:

require_once("backend/functions.php");

dbconn(false);
Ajouter ensuite:




if ($CURUSER["shoutboxpos"] == 'yes')

{





Ensuite Rechercher:





else{

echo T_("SHOUTBOX_DISABLED");

}





Ajouter ensuite:





}

else

{

echo "<h2>&nbsp;</h2><table width='100%' border='1' cellspacing='0' cellpadding='1'><tr class='f-title f-border'><td class=text>";

print("<center><b>Vous avez malheureusement été banni de la ShoutBox. Si vous pensez qu'il y s'agit d'une erreur, veuiller contacter un modérateur<br><br>Vous avez tenter de rentrer de force, veuillez respecter votre bannissement !<br>vous êtes le seul responsable de vos actes !</b></center>");

print("</td></tr></table><br>");

}









Passage à la 2.08:

Veuiller reprendre le tutoriel LegionFX. Les modifications se passent uniquement dans admin-modtasks.php



dans admin-modtasks.php



Rechercher:



$warned = sqlesc($_POST["warned"]);





Ajouter ensuite:



$shoutboxpos = sqlesc($_POST["shoutboxpos"]);





Rechercher:



SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated, forumbanned=$forumbanned, warned=$warned,  modcomment=$modcomment, enabled=$enabled, invites=$invites WHERE id=$userid");





Après:



warned=$warned,  





Rajouter:



shoutboxpos=$shoutboxpos,  



Désolé je ne parle pas anglais.Si vous avez ne corriger pas la faille, certains petits malins pourront trouver l'astuce ;)
Unknown User
2012-08-14 06:49:03
what a wast of time and no its not working for the 208
Unknown User
2012-08-14 13:32:06
You must of done something wrong because the code in the first post should be ok for v2.08 with an exception of using sqlesc over



$shoutboxpos = $_POST["shoutboxpos"];

,

And using SQL_Query_exec
Unknown User
2012-08-20 16:01:14
sorry done the first page and its not working at  all and add the SQL_Query_exec  it would be a good idea to post up for the 208 mos many thax
Unknown User
2012-08-29 15:22:28
Thanks but with ajashout what is the code I must put and where ? Index or getshout ? to display shout for membres bans

sorry for my english :(
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