Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   add announce (http://www.bvlist.com/showthread.php?t=10580)

kira 10th November 2015 16:58

add announce
 
hello, how add announce new member on shoutbox ?

Thanks :sos:

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

DND 10th November 2015 21:11

you already should have that line in takesignup.php

kira 10th November 2015 22:39

1 Attachment(s)
:sad:I do not see

DND 11th November 2015 04:29

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

Chez 11th November 2015 13:45

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!

kira 12th November 2015 19:05

it's good ok :friend:thanks

Chez 12th November 2015 19:42

Quote:

Originally Posted by kira (Post 47819)
it's good ok :friend:thanks

:drink:


All times are GMT +2. The time now is 08:14.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.