Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Reply to $USERNAME in shoutbox (http://www.bvlist.com/showthread.php?t=9007)

Chez 21-03-13 11:43

Reply to $USERNAME in shoutbox
 
Hi guy's, can anyone help me with this mod?
Reply to $USERNAME in shoutbox

This is an example:

http://i.imgur.com/0xHh8tz.png
http://i.imgur.com/4uEo38d.png


Thanx in advance!

mat22 21-03-13 15:21

This is for YSE but should work for TBDev if you make small modifications:

Chez 21-03-13 18:34

I think is something more complex than that line but thanx anyway

mat22 21-03-13 18:43

No this is what I am using on YSE source. Since it's based on TBDev it should work with it too if you edit it a bit. Trust me - this is the part you need.

Chez 22-03-13 09:10

Thanx m8, i've modified the code and it's working perfectely!:drink::friend:

mat22 22-03-13 10:32

Glad I was able to help. Cheers!:drink:

Demon-Cod3rs 02-05-15 11:13

http://www.bvlist.com/images/avatars...tar16443_5.gif Chez


post the code please :drink:

djlive 22-05-16 22:29

code for tbdev
 
$reply = ($CURUSER['id'] != $arr['userid'] ? "\",\"shbox\",\"shbox_text\")'>Reply" : "" );


add in shoutbox.php

:coffee:

Chez 24-05-16 08:30

IN SHOUTBOX.PHP AFTER:

PHP Code:

if ($rowowner["class"] == "10")
$usercolor"<font color=#8b0000>" .htmlspecialchars($rowowner["username"]). "</font>";
elseif (
$rowowner["class"] == "9")
$usercolor"<font color=#FF0000>" .htmlspecialchars($rowowner["username"]). "</font>"

ADD:

PHP Code:

$reply "<a href='javascript:window.top.SmileIT(\"[b][i]=> [color=#".get_user_class_color($arr['class']) . "]".htmlspecialchars($arr['username'])."[/color] - [/i][/b]\",\"shbox\",\"shbox_text\")'><img height='12' widht='12' src='pic/comments.png' title='Reply' alt='Reply' style='border:none;' /></a>"

STILL IN SHOUTBOX.PHP FIND THIS LINE:

PHP Code:

print("<tr><td><font color=gray><span class='date'>".strftime("%d.%m | %H:%M",$arr["date"]).":.</font>
$del 

AFTER $del ADD $reply

Napon 26-05-16 18:40

Quote:

Originally Posted by Chez (Post 48902)
IN SHOUTBOX.PHP AFTER:

PHP Code:

if ($rowowner["class"] == "10")
$usercolor"<font color=#8b0000>" .htmlspecialchars($rowowner["username"]). "</font>";
elseif (
$rowowner["class"] == "9")
$usercolor"<font color=#FF0000>" .htmlspecialchars($rowowner["username"]). "</font>"

ADD:

PHP Code:

$reply "<a href='javascript:window.top.SmileIT(\"[b][i]=> [color=#".get_user_class_color($arr['class']) . "]".htmlspecialchars($arr['username'])."[/color] - [/i][/b]\",\"shbox\",\"shbox_text\")'><img height='12' widht='12' src='pic/comments.png' title='Reply' alt='Reply' style='border:none;' /></a>"

STILL IN SHOUTBOX.PHP FIND THIS LINE:

PHP Code:

print("<tr><td><font color=gray><span class='date'>".strftime("%d.%m | %H:%M",$arr["date"]).":.</font>
$del 

AFTER $del ADD $reply


now is for 09 or for old old as it will not work in 09 yes in the old yes so if any one wants a up to date shoutbox.php pm me

this line i would have not put

PHP Code:

if ($rowowner["class"] == "10")
$usercolor"<font color=#8b0000>" .htmlspecialchars($rowowner["username"]). "</font>";
elseif (
$rowowner["class"] == "9")
$usercolor"<font color=#FF0000>" .htmlspecialchars($rowowner["username"]). "</font>"



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

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