Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Shoutbox with private rooms, bbcodes, sm
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2019-04-27 19:48:38
adapted from 2.08. All credit to authors. I did modify a few things. I added my version of edit and delete. More work is maybe needed, like translations, and emoticons. Silly things really, but test and see. Backup all files first. class_color is added to this mod in the optional edits below. Feel free to add as needed. Since everyone has different emoticons, I didnt bother to edit that area of the code. You can add what you want. IMG and URL are also a separate bbcode that would need added. I dont have alot of time as of late, so I am trying to squeeze this in. Not sure if this is good enough for everyone or not, but let me know how to make it better, or make some changes and tell me how you made it better. :)
Original post here https://www.torrenttrader.xyz/index.php?threads/shoutbox-with-privates-rooms-bbcodes-smiles-edit-msg.4374/

Adjust your shoutbox in index.php to height="250"

Run sql
ALTER TABLE `shoutbox` ADD `room` int(10) unsigned NOT NULL DEFAULT 0;

add to each theme css
.bb_icon, .bb_icon:hover {
background:#999999;
border:1px solid #666666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding:1px;
min-width:16px;
cursor:pointer;
}
.bb_icon:hover {
border: 1px solid #dddddd;
}

upload files keeping folder structure

~~~~~~~~~~OPTIONAL EDIT~~~~~~~~~~
If you are using class_color
class color mod edit. In shoutbox.php find
echo "<div align='right' style='float: right'></div>";
   echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.($row['user']).':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));
   echo    '</td></tr>';

replace with
echo "<div align='right' style='float: right'></div>";
   echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.class_user($row['user']).'</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));
   echo    '</td></tr>';
shoutbox.with.rooms.zip
Download

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-04-29 05:13:48
got this!
Screenshot_2.png
Screenshot_2.png
2019-04-29 23:07:50
download and try again
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-05-01 04:36:36
Now works. pls update with class color function.
2019-05-04 00:41:31
first post updated for class color
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-11-12 13:36:31
Im run SQL


[ICODE]ALTER TABLE `shoutbox` ADD `room` int(10) unsigned NOT NULL DEFAULT 0;
[/ICODE]




Im add

/var/www/html/themes/SB_DARK_TTV3/theme.css end file this code
[ICODE].bb_icon, .bb_icon:hover {
background:#999999;
border:1px solid #666666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding:1px;
min-width:16px;
cursor:pointer;
}
.bb_icon:hover {
border: 1px solid #dddddd;
}
[/ICODE]




my shoutbox.php is ready this line

echo "<div align='right' style='float: right'></div>";
echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.class_user($row['user']).'</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));
echo    '</td></tr>';



Im changed your shoutbox in index.php to height="250"

if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
   begin_frame(T_("SHOUTBOX"));
   echo '<iframe name="shout_frame" src="shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="430" scrolling="no" align="middle"></iframe>';
   printf(T_("SHOUTBOX_REFRESH"), 1)."<br />";
   end_frame();
}



Im uploda 2 new files in root folder (shoutbox.php and shoutedit.php)

and upload images/shoutbox to /var/www/html/images


But my new shoutbox is blank?

[url='https://imgur.com/CksrKMi'][/url]



Im tried reupload and install but not help.

What is wrong & how i can fix it? Using TTv3
2019-12-13 14:50:40
How do I make the shoutbox fill the entire space, when I set the box to be 400 pixel high?

[ATTACH type="full" alt="5305"]5305[/ATTACH]
shoutbox.JPG
shoutbox.JPG

If It Ain't Dutch, It Ain't Much!!
2019-12-13 18:09:55
in your theme.css, play with the height number. 300 seems to look nice if you set your index.php to 400
.shoutbox_contain {
   border: 0;
   height: 150;
   width: 100%;
   overflow: auto;
   align: middle;
}

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-20 10:21:16
"MicroMonkey, post: 67669, member: 311":

in your theme.css, play with the height number. 300 seems to look nice if you set your index.php to 400
.shoutbox_contain {
   border: 0;
   height: 150;
   width: 100%;
   overflow: auto;
   align: middle;
}



Excellent !!
If It Ain't Dutch, It Ain't Much!!
2021-07-14 18:28:32
Greetings to all.
I want to ask this will work on ajaxshoutbox and how must be changed

Regards


2024-05-26 15:32:10
in shoutbox.php find and replace these 2 functions with this code.
function therooms()
{
   $data = '<select name="room" class="bb_icon" onchange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }">
       <option value="shoutbox.php?room=0" ' . ($GLOBALS['room'] == 0 ? 'selected="selected"' : '') . '>Public</option>
       <option value="shoutbox.php?room=1" ' . ($GLOBALS['room'] == 1 ? 'selected="selected"' : '') . '>VIP</option>';

   if (get_user_class() >= 5) {
       $data .= '<option value="shoutbox.php?room=2" ' . ($GLOBALS['room'] == 2 ? 'selected="selected"' : '') . '>Staff</option>';
   }

   $data .= '</select>';

   return $data;
}

and
function theroomsh()
{
   $data = '<select name="room" class="bb_icon" onchange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }">
       <option value="shoutbox.php?history=0&room=0" ' . ($GLOBALS['room'] == 0 ? 'selected="selected"' : '') . '>Public</option>
       <option value="shoutbox.php?history=0&room=1" ' . ($GLOBALS['room'] == 1 ? 'selected="selected"' : '') . '>VIP</option>';

   if (get_user_class() >= 5) {
       $data .= '<option value="shoutbox.php?history=1&room=2" ' . ($GLOBALS['room'] == 2 ? 'selected="selected"' : '') . '>Staff</option>';
   }

   $data .= '</select>';

   return $data;
}

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2024-05-31 22:53:26
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728