Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #21  
Old 11th February 2011, 03:22
fireman fireman is offline
IonCube-R
 
Join Date: Oct 2008
Posts: 99
Smile 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
Reply With Quote
  #22  
Old 18th February 2011, 11:01
gabkoko's Avatar
gabkoko gabkoko is offline
Senior Member
 
Join Date: Aug 2010
P2P
Posts: 33
Default
Quote:
Originally Posted by lafouine022 View Post
it's just for me ^^ sorry
already work it...
Quote:
Originally Posted by Omenke View Post
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

Last edited by gabkoko; 19th February 2011 at 21:55.
Reply With Quote
The Following 3 Users Say Thank You to gabkoko For This Useful Post:
eckeO5 (24th March 2013), Marco (23rd February 2011), PAX (3rd August 2011)
  #23  
Old 19th February 2011, 21:31
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default
Quote:
Originally Posted by gabkoko View Post
already work it...

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
Reply With Quote
The Following User Says Thank You to Omenke For This Useful Post:
eckeO5 (24th March 2013)
  #24  
Old 19th February 2011, 22:05
gabkoko's Avatar
gabkoko gabkoko is offline
Senior Member
 
Join Date: Aug 2010
P2P
Posts: 33
Default
Oops!
Fix it. Really unnecessary
Reply With Quote
  #25  
Old 23rd February 2011, 00:09
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Smile
well yes it is a method

nice work
Reply With Quote
  #26  
Old 28th February 2011, 17:00
gabkoko's Avatar
gabkoko gabkoko is offline
Senior Member
 
Join Date: Aug 2010
P2P
Posts: 33
Default 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;
  } 
Click the image to open in full size.
Reply With Quote
The Following 2 Users Say Thank You to gabkoko For This Useful Post:
Marco (28th February 2011), PAX (3rd August 2011)
  #27  
Old 28th February 2011, 17:18
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
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 :)

Last edited by Marco; 14th March 2011 at 10:15.
Reply With Quote
  #28  
Old 15th March 2011, 00:38
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Smile 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"
Click the image to open in full size.

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

Last edited by smoky28; 16th March 2011 at 09:41.
Reply With Quote
The Following User Says Thank You to smoky28 For This Useful Post:
PAX (3rd August 2011)
  #29  
Old 15th March 2011, 12:21
gabkoko's Avatar
gabkoko gabkoko is offline
Senior Member
 
Join Date: Aug 2010
P2P
Posts: 33
Default
really working
Reply With Quote
  #30  
Old 23rd March 2011, 21:17
hart's Avatar
hart hart is offline
Senior Member
 
Join Date: Sep 2010
P2P
Posts: 51
Default
how to add pop-up window with more smilie, I ask for the code and where to put.
Reply With Quote
Reply

Tags
56 , shoutbox , tsse

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 17:52. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.