Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 10th November 2015, 16:58
kira kira is offline
Senior Member
 
Join Date: Jul 2011
France
Posts: 69
Default add announce
hello, how add announce new member on shoutbox ?

Thanks

/** Shout announce **/
$message = "=> announce : Welcome to our new member ??? ";
autoshout($message);
$mc1->delete_value('shoutbox_');

Last edited by kira; 10th November 2015 at 17:34.
Reply With Quote
  #2  
Old 10th November 2015, 21:11
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
you already should have that line in takesignup.php
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 10th November 2015, 22:39
kira kira is offline
Senior Member
 
Join Date: Jul 2011
France
Posts: 69
Default
I do not see
Attached Files
File Type: php takesignup.php (7.1 KB, 8 views)
Reply With Quote
  #4  
Old 11th November 2015, 04:29
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
it depends on what version you are using. it seems you dont have it
$message = "Welcome New {$TBDEV['site_name']} Member : - " . htmlsafechars($wantusername) . "";

Check if you have htmlsafechars function, if not, use htmlspecialchars
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #5  
Old 11th November 2015, 13:45
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
In your TAKESIGNUP.PHP

before

PHP Code:
header("Refresh: 0; url=confirm.php?id=$id&secret=$psecret"); 
add

PHP Code:

/** START Shout announce **/

$text ":hi: [color=green]To our newest member[/color]".htmlspecialchars($wantusername)."[color=orange] we hope you enjoy your stay[/color]";
$userid 1;
$username System;
$date=time()-3600;
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);
$added sqlesc(get_date_time());


/** END Shout announce **/ 

FIRST YOU NEED TO CREATE A USER (system,announcer,etc) AND FILL THESE LINES WITH userid and username.

$userid = 1;
$username = System;



GOOD LUCK!
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #6  
Old 12th November 2015, 19:05
kira kira is offline
Senior Member
 
Join Date: Jul 2011
France
Posts: 69
Default
it's good ok thanks
Reply With Quote
  #7  
Old 12th November 2015, 19:42
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Quote:
Originally Posted by kira View Post
it's good ok thanks
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
add , announce

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 13:01. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.