Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Shoutbox (http://www.bvlist.com/showthread.php?t=202)

Fynnon 12th March 2008 15:54

Shoutbox
 
2 Attachment(s)
This a modified version of Hanne's shoutbox

Changes:

autorefresh - 3minutes
bbcode support
only latest 70 shouts are shown
blank post will not be posted (but post with a space " " will be added )


Attachment 903

SQL for shoutbox:.
Code:

CREATE TABLE `shoutbox` (
`id` smallint(6) NOT NULL auto_increment,
`userid` smallint(6) NOT NULL default '0',
`username` varchar(25) NOT NULL default '',
`date` int(11) NOT NULL default '0',
`text` text NOT NULL,
PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1;

in global.php above
Code:

  //-------- Begins a main frame

  function begin_main_frame()

add this
Code:

function textbbcode($form,$name,$content="") {
?>



 
   
     
   
   
     
     
   
 

     
     
     
     
     
     
     
     
     
     
     
     
*

     

     
     

     
     
      global $smilies, $BASEURL;
      while ((list($code, $url) = each($smilies)) && $count<20) {
        if ($count % 4==0)
            print("");

            print("\n");
            $count++;

        if ($count % 4==0)
            print("");
      }
      ?>
     

     

     

}

Add this code in index.php.. (i added it just below the News section)
Code:

//// Shoutbox
 print("

Shoutbox:.");

print("
\n");
print("

\n");
print("
\n");
print("
Message:   \n");
print("
");
////

but remember.. all the bbcodes will work on the shoubox.. it will look a bit wierd if people shout images, quote etc.. i did this to enable smilie support..
If anyone can write some code for not including tags like [img], etc.. that would be great :D

save the attached shoutbox.php from the shoutbox.rar to your site root.


ashkarkm@tbdev.net
http://www.tbdev.net/index.php?showtopic=4011&hl=

Sharp 12th March 2008 16:36

Re: Shoutbox
 
Coool!!! :drink:

NatashaRhea 7th August 2008 23:25

worked like a charm many thanks :ok:

evaldas40 1st November 2009 22:56

did this mod work on YSE pre 6 ? :)

mondolfo 3rd December 2009 18:54

no not work

RaZoRandrey 4th December 2009 23:39

is working, thanks for this

al-jodtv 28th February 2010 08:42

thanks for this

djblackout 16th April 2010 20:27

hmm
 
1 Attachment(s)
i cant get this to work in my global.php looks like this

PHP Code:

//-------- Begins a main frame

  
function begin_main_frame() 

where to put that in this

i dont have global.php :S

Ecko 17th May 2010 17:33

Quote:

Originally Posted by djblackout (Post 22469)
i cant get this to work in my global.php looks like this

PHP Code:

//-------- Begins a main frame

  
function begin_main_frame() 

where to put that in this

i dont have global.php :S


me to i dont have it

Undefined 18th May 2010 07:48

try html_functions then :)


All times are GMT +2. The time now is 11:20.

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