Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 21st March 2013, 11:43
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default Reply to $USERNAME in shoutbox
Hi guy's, can anyone help me with this mod?
Reply to $USERNAME in shoutbox

This is an example:

Click the image to open in full size.
Click the image to open in full size.


Thanx in advance!
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #2  
Old 21st March 2013, 15:21
mat22's Avatar
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
This is for YSE but should work for TBDev if you make small modifications:
Code:
<a href='userdetails.php?id=".$arr->userid."' onClick=\"parent.document.shoutform.shout.focus();parent.document.shoutform.shout.value='[".$arr->username."] '+parent.document.shoutform.shout.value;return false;\"><span style='font-weight:bold;'>".get_user_class_color_bold($arr->class, $arr->username)."</span></a>
Reply With Quote
The Following User Says Thank You to mat22 For This Useful Post:
Chez (22nd March 2013)
  #3  
Old 21st March 2013, 18:34
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
I think is something more complex than that line but thanx anyway
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #4  
Old 21st March 2013, 18:43
mat22's Avatar
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
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.
Reply With Quote
  #5  
Old 22nd March 2013, 09:10
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Thanx m8, i've modified the code and it's working perfectely!
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #6  
Old 22nd March 2013, 10:32
mat22's Avatar
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
Glad I was able to help. Cheers!
Reply With Quote
  #7  
Old 2nd May 2015, 11:13
Demon-Cod3rs's Avatar
Demon-Cod3rs Demon-Cod3rs is offline
Banned
 
Join Date: Apr 2015
P2P
Posts: 47
Default
Click the image to open in full size. Chez


post the code please
Reply With Quote
  #8  
Old 22nd May 2016, 22:29
djlive's Avatar
djlive djlive is offline
Banned
 
Join Date: Apr 2010
Ethiopia
Posts: 2
Default code for tbdev
$reply = ($CURUSER['id'] != $arr['userid'] ? "<a href='javascript:window.top.SmileIT(\" to ".htmlspecialchars($arr['username'])." -\",\"shbox\",\"shbox_text\")'><img height='10' img src='/pic/reply.png' title='Reply' alt='Reply' style='border:none;' /></a>" : "" );


add in shoutbox.php

Reply With Quote
  #9  
Old 24th May 2016, 08:30
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
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
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #10  
Old 26th May 2016, 18:40
Napon's Avatar
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
Quote:
Originally Posted by Chez View Post
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>"
Reply With Quote
Reply

Tags
$username , reply , shoutbox

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