Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.6] Shoutbox (http://www.bvlist.com/showthread.php?t=5471)

fireman 11th February 2011 03:22

question
 
is there anyway to move the text part to the bottom i like the shoutbox just not use to text part being on top and like it on bottom

gabkoko 18th February 2011 11:01

Quote:

Originally Posted by lafouine022 (Post 26733)
it's just for me ^^ sorry

already work it...:sun:
Quote:

Originally Posted by Omenke (Post 25187)
hey!

Search:
PHP Code:

$username htmlspecialchars_uni ($shout_row['username']);
    
$valasz "<a href='javascript:window.top.SmileIT(\">>>  $username:\",\"shoutbox\",\"shoutbox\")'><img height=10px  style=border:none alt=válasz title=válasz  src=$BASEURL/$pic_base_url/jobbra.gif></a>"

and change to:
PHP Code:

    $resowner mysql_query("SELECT id, username, usergroup FROM users WHERE id=$shout_row[userid]");
    
$arr2 htmlspecialchars_uni (mysql_fetch_array($resowner));
    if (
$arr2["usergroup"] == "13")
    
$arr1"[color=#999900]";
    if (
$arr2["usergroup"] == "11")
    
$arr1"[color=grey]";
    if (
$arr2["usergroup"] == "10")
    
$arr1"[color=darkgreen]";
    if (
$arr2["usergroup"] == "8")
    
$arr1"[color=darkred]";
    if (
$arr2["usergroup"] == "7")
    
$arr1"[color=#2587A7]";
    if (
$arr2["usergroup"] == "6")
    
$arr1"[color=#B000B0]";
    if (
$arr2["usergroup"] == "5")
    
$arr1"[color=#ff5151]";
    if (
$arr2["usergroup"] == "4")
    
$arr1"[color=navy]";
    if (
$arr2["usergroup"] == "3")
    
$arr1"[color=#66CC00]";
    if (
$arr2["usergroup"] == "2")
    
$arr1"[color=#0099FF]";
    if (
$arr2["usergroup"] == "1")
    
$arr1"[color=black]";

    
$valasz "<a href='javascript:window.top.SmileIT(\"[i][b]$arr1$arr2[username]>>[/b][/i][/color]\",\"shoutbox\",\"shoutbox\")'><img height=10px style=border:none alt=válasz title=válasz src=$BASEURL/$pic_base_url/jobbra.gif></a>"

The colors change your own

Omenke 19th February 2011 21:31

Quote:

Originally Posted by gabkoko (Post 26853)
already work it...:sun:

Search:
PHP Code:

$username htmlspecialchars_uni ($shout_row['username']);
    
$valasz "<a href='javascript:window.top.SmileIT(\">>>  $username:\",\"shoutbox\",\"shoutbox\")'><img height=10px  style=border:none alt=válasz title=válasz  src=$BASEURL/$pic_base_url/jobbra.gif></a>"

and change to:
PHP Code:

    $resowner mysql_query("SELECT id, username, usergroup FROM users WHERE id=$shout_row[userid]");
    
$arr2 htmlspecialchars_uni (mysql_fetch_array($resowner));
    if (
$arr2["usergroup"] == "13")
    
$arr1"[color=#999900]";
    if (
$arr2["usergroup"] == "11")
    
$arr1"[color=grey]";
    if (
$arr2["usergroup"] == "10")
    
$arr1"[color=darkgreen]";
    if (
$arr2["usergroup"] == "8")
    
$arr1"[color=darkred]";
    if (
$arr2["usergroup"] == "7")
    
$arr1"[color=#2587A7]";
    if (
$arr2["usergroup"] == "6")
    
$arr1"[color=#B000B0]";
    if (
$arr2["usergroup"] == "5")
    
$arr1"[color=#ff5151]";
    if (
$arr2["usergroup"] == "4")
    
$arr1"[color=navy]";
    if (
$arr2["usergroup"] == "3")
    
$arr1"[color=#66CC00]";
    if (
$arr2["usergroup"] == "2")
    
$arr1"[color=#0099FF]";
    if (
$arr2["usergroup"] == "1")
    
$arr1"[color=black]";

    
$valasz "<a href='javascript:window.top.SmileIT(\"[i][b]$arr1$arr2[username]>>[/b][/i][/color][i][b][/b][/i][b][/b]\",\"shoutbox\",\"shoutbox\")'><img height=10px style=border:none alt=válasz title=válasz src=$BASEURL/$pic_base_url/jobbra.gif></a>"

The colors change your own


I think it is unnecessary
PHP Code:

[i][b][/b][/i][b][/b

but thanks for it

gabkoko 19th February 2011 22:05

Oops!
Fix it. Really unnecessary :friend:

lafouine022 23rd February 2011 00:09

well yes it is a method

nice work

gabkoko 28th February 2011 17:00

System notice - delete a message board content
 
Hi,

required for the following file: ../shoutbox/sendshout.php

Find it:
PHP Code:

function execcommand_prune ($Data)
  {
    
$Data trim ($Data[0][1]);
    if (empty (
$Data))
    {
      (
mysql_query ('delete from shoutbox') OR sqlerr (__FILE__284));
      
execcommand_message ();
    } 
    else
    {
      
$query mysql_query ('SELECT id FROM users WHERE username = ' sqlesc ($Data));
      if (
mysql_num_rows ($query))
      {
        
$Userid mysql_result ($query0'id');
        (
mysql_query ('delete from shoutbox where userid = ' sqlesc ($Userid)) OR sqlerr (__FILE__293));
        
execcommand_message ();
      }
    }

    return 
true;
  }

  function 
execcommand_message ($message '<div style="background: #FFECCE; border: 1px solid #EA5F00; padding-left: 5px;"><font color=black>Parancs végrehajtva. (Következő frissítéskor már látszik!)</font></div>'$forcemessage false)
  {
    if ((
mysql_affected_rows () OR $forcemessage))
    {
      echo 
$message;
    }

  } 

and change to:

PHP Code:

function execcommand_prune ($Data)
  {
    global 
$CURUSER;
    
$Data trim ($Data[0][1]);
    if (empty (
$Data))
    {   
      (
mysql_query ('delete from shoutbox') OR sqlerr (__FILE__284));
        
$userid $CURUSER['id'];
        
$uzifaluritbOT "{systemnotice} The content is deleted!  User: - ".$CURUSER['username']." -";
        
$uzifalurit_sql "INSERT INTO shoutbox (userid, namestyle, date, content)
        VALUES ("
.sqlesc('999999999').", ".sqlesc('{username}').", '".TIMENOW."', ".sqlesc($uzifaluritbOT).")" or sqlerr(__FILE____LINE__);
        
mysql_query($uzifalurit_sql) or sqlerr(__FILE____LINE__);

        
write_log ("The content is deleted!");
    } 
    else
    {
      
$query mysql_query ('SELECT id FROM users WHERE username = ' sqlesc ($Data));
      if (
mysql_num_rows ($query))
      {
        
$Userid mysql_result ($query0'id');
        (
mysql_query ('delete from shoutbox where userid = ' sqlesc ($Userid)) OR sqlerr (__FILE__293));

      }
    }

    return 
true;
  } 

http://hellgate.ws/pic/delete_content.jpg

Marco 28th February 2011 17:18

I try it on my TS 5.6 Nightcrawler version work nice :)

thank you :)



Later Edit.

Have any ideea why on my shoutbox can't write special carracters like " őŐ, űŰ " when i write a phrase with this letters they cut the rest of proposition....
thx :)

smoky28 15th March 2011 00:38

Shoutbox refresh
 
add include/plugins/shotubox.php

search
Line 146:

PHP Code:

<img width=65  src="pic/codebuttons/boutonEnvoyer.gif" onClick="saveData(); return false;"

Update refresh shoutbox.

And put this code after line
PHP Code:

<img value="Rafraichir" onclick="javascript:location.reload(true);" title="rafraichir" alt="rafraichir" src="/pic/refresh.gif"

http://noob.hu/2011/03/16/nevtelen.JPG

The small picture to everybody out there in the pic folder 100% tested my site

gabkoko 15th March 2011 12:21

really working :ok:

hart 23rd March 2011 21:17

how to add pop-up window with more smilie, I ask for the code and where to put.:sos:


All times are GMT +2. The time now is 02:38.

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