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
Poste a Visitor Message In Profile ***Ho
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-04-05 01:44:52
Poste a Visitor Message In Profile By TIb3n.

Poster un message de visiteur sur les profile Par Tib3n

Modifier Le fichier account-details.php Et Ajouter Se Code Ou Vous Voullez.

Edit account-details.php And Add This Where You Whant.

	//take comment add
if ($_GET["takecomment"] == 'yes'){

loggedinonly();

$commentbody = $_POST['body'];

if (!$commentbody)

show_error_msg("Error","You did not enter anything!",1);

mysql_query("INSERT INTO comments (user, userprofile, added, text) VALUES (".$CURUSER["id"].", ".$user["id"].", '" .get_date_time(). "', " . sqlesc($body).")") or die(mysql_error());

//PM to uploader on comment add

$msg = "Vous Avez Recu Un Nouveaux Commentaire Poster Par $CURUSER[username] [url=$site_config[SITEURL]/account-details.php?id=$id]Cliquer Ici[/url] Pour Voir Le Commentaire.";

mysql_query("INSERT INTO shoutbox VALUES('', '[url=http://www.quebectracker.com/account-details.php.php?id=".$CURUSER["id"]."]".$CURUSER["username"]."[/url]', ' A Ecri Un Nouveaux Commentaire Sur Le Profile a : [url=http://www.quebectracker.com/account-details.php.php?id=".$CURUSER["id"]."]".$user["username"]."[/url] ', now(), '0')") or sqlerr(__FILE__,__LINE__);

mysql_query("INSERT INTO `messages` (`sender`, `receiver`, `added`, `subject`, `msg`, `unread`, `location`) VALUES

('".$CURUSER["id"]."', '".$user["id"]."', '".get_date_time()."', 'Nouveaux Commentaire Sur Votre Profile, Svp Veuiller V
Unknown User
2011-04-05 02:44:49
u will need to make a new exception in the comments table as the code will interfere with the torrent comments. so run a query like this...

ALTER TABLE `comments` ADD `userprofile` int(10) unsigned NOT NULL DEFAULT '0';
and change the WHERE clause's from




WHERE torrent





to





WHERE userprofile



then u will need to form to submit to comments.php?takecomment=yes&type=userprofile&id=$id
Unknown User
2011-04-05 02:51:02
"djhowarth, post: 71864":
u will need to make a new exception in the comments table as the code will interfere with the torrent comments. so run a query like this...


ALTER TABLE `comments` ADD `userprofile` int(10) unsigned NOT NULL DEFAULT '0';
and change the WHERE clause's from




WHERE torrent





to





WHERE userprofile



then u will need to form to submit to comments.php?takecomment=yes&type=userprofile&id=$id
Thanks, i edited my first poste. Thats Work n1
Unknown User
2011-04-06 21:16:21
ENGLISH PLZ as results show foreign and many thanks for the code has anyone tested this yet ???? :lol:
Unknown User
2011-04-06 21:23:08
	//take comment add

if ($_GET["takecomment"] == 'yes'){

loggedinonly();

$commentbody = $_POST['body'];



if (!$commentbody)

show_error_msg("Error","You did not enter anything!",1);







mysql_query("INSERT INTO comments (user, userprofile, added, text) VALUES (".$CURUSER["id"].", ".$user["id"].", '" .get_date_time(). "', " . sqlesc($body).")") or die(mysql_error());







//PM to person on comment added to there message board



$msg = "message board i guess $CURUSER[username] [url=$site_config[SITEURL]/account-details.php?id=$id]Click Here[/url] you have mail i guess.";



mysql_query("INSERT INTO shoutbox VALUES('', '[href=/account-details.php.php?id=".$CURUSER["id"]."]".$CURUSER["username"]."[/url]', ' A VIEW MESSAGES I GUESS ???????? : [url]href=/account-details.php.php?id=".$CURUSER["id"]."]".$user["username"]."[/url] ', now(), '0')") or sqlerr(__FILE__,__LINE__);



 

mysql_query("INSERT INTO `messages` (`sender`, `receiver`, `added`, `subject`, `msg`, `unread`, `location`) VALUES

('".$CURUSER["id"]."', '".$user["id"]."', '".get_date_time()."', 'thank you for leaving a message i guess','$msg','yes','in')") or

die(mysql_error());





if (mysql_affected_rows() == 1)

show_error_msg("Completed","Your Comment was added successfully.",0);

else

show_error_msg("Error","Unable to add comment",0);



header("Location: account-details.php?id=$id");

die;

}//end insert comment





///VIST MESSAGE BOARD

begin_frame("Post IN MESSAGE " . MESSAGE BOARD . " visitor");

//echo "<p align=center><a class=index href=torrents-comment.php?id=$id>" . ADDCOMMENT . "</a></p>\n";

print"<center>messagess</center>";

$subres = mysql_query("SELECT COUNT(*) FROM comments WHERE userprofile = $user[id]") or die(mysql_error());

$subrow = mysql_fetch_array($subres);

$commcount = $subrow[0];



if ($commcount) {

list($pagertop, $pagerbottom, $limit) = pager(20, $commcount, "account-details.php?id=$user[id]&");

$commquery = "SELECT comments.id, text, user, comments.added, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM comments LEFT JOIN users ON comments.user = users.id WHERE userprofile = ".$user["id"]." ORDER BY comments.added DESC";

$commres = mysql_query($commquery) or die(mysql_error());

}else{

unset($commres);

}



if ($commcount) {

print($pagertop);

commenttable($commres);

print($pagerbottom);

}else {

print("<BR><b><CENTER>MESSAGES MORE I GUESS</CENTER></b><BR>\n");

}



require_once("backend/bbcode.php");



if ($CURUSER) {

echo "<CENTER>";

echo "<form name=\"comment\" method=\"post\" action=\"account-details.php?id=".$user["id"]."&takecomment=yes\">";

echo "".textbbcode("comment","body")."<br>";

echo "<input type=\"submit\" class=btn value=\"".ADDCOMMENT."\" />";

echo "</form></CENTER>";

}



end_frame();
Unknown User
2011-04-06 21:31:23
i took out the urls that were left in code as your site url was in theer still but as for translating im useless at and edited comments so they made sense

---- ALSO ANY SCREENSHOTS WOULD BE GD-- cheers
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