Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 21-03-13, 11:43
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 257
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 21-03-13, 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 (22-03-13)
  #3  
Old 21-03-13, 18:34
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 257
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 21-03-13, 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 22-03-13, 09:10
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 257
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 22-03-13, 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 02-05-15, 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 22-05-16, 22:29
djlive's Avatar
djlive djlive is offline
Member
 
Join Date: Apr 2010
P2P
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 24-05-16, 08:30
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 257
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 26-05-16, 18:40
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
Posts: 71
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 21:47. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.