| Author | Message |
lonestar Junior Member


|
| Post subject: [MOD] AUC in shoutbox + AUC Block Pack |
 |
|
has anyone managed to intergrate AUC listing into the shoutbox?
ive tried but keep fouling it up lol, i can add AUC to anywhere else on my except shoutbox :S plz help
Admin Edit: I think this should be in the mod releases now. Great job lonestar. Thank you for all your persistence and hard work on this. 
Last edited by Refiner on Sat 17 Mar, 2007 6:36 pm; edited 1 time in total |
|
Posted:
Sat 13 Jan, 2007 8:02 pm |
|
 |
| Thankful People |
| Thanks lonestar for his/her post |
|
SureFire Moderator


|
| Post subject: Re: AUC in shoutbox |
 |
|
this would take so much coding that its not even funny ...i no some one that could but it mean it would have to be paid thats how hard of code it would be _________________
 |
|
Posted:
Sun 14 Jan, 2007 5:54 am |
|
 |
lonestar Junior Member


|
| Post subject: |
 |
|
im not sure if anyone has done this yet but if not here u go
Click Here
if u would like a preview visit my site
My Website
Last edited by lonestar on Sat 10 Mar, 2007 4:00 am; edited 2 times in total |
|
Posted:
Sat 10 Mar, 2007 3:48 am |
|
 |
Refiner Site Admin


|
| Post subject: |
 |
|
| lonestar wrote:
|
im not sure if anyone has done this yet but if not here u go
Click Here
if u would like a preview visit my site
My Website
|
Do you mind if we paste the code in this topic? _________________
 |
|
Posted:
Sat 10 Mar, 2007 1:04 pm |
|
 |
lonestar Junior Member


|
| Post subject: |
 |
|
sure its for all
im sure sumone will be able to improve on this mod but its a start;)
Last edited by lonestar on Sat 10 Mar, 2007 1:12 pm; edited 1 time in total |
|
Posted:
Sat 10 Mar, 2007 1:12 pm |
|
 |
Refiner Site Admin


|
| Post subject: |
 |
|
thanks
| Code:
|
########################################################
########################################################
# #
# Shout Box Advanced Username Color Intergration Mod #
# #
# #
########################################################
########################################################
# #
# Version 1.0.1 #
# #
########################################################
########################################################
#
#-----[ OPEN ]-----------------
#
blocks/block_Shout_box.php
#
#-----[ FIND ]-----------------
#
if ((eregi("[u]", $ShoutComment)) AND (eregi("[/u]", $ShoutComment)) AND (substr_count("$ShoutComment","[u]") == substr_count("$ShoutComment","[/u]"))) {
$ShoutComment = eregi_replace("\[u\]","<span style=\"text-decoration: underline\">","$ShoutComment");
$ShoutComment = eregi_replace("\[\/u\]","</span>","$ShoutComment");
}
#
#----[ AFTER ADD ]-------------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$sqlZ = "select * from ".$prefix."_users where username='$row[name]'";
$nameresultN = $db->sql_query($sqlZ);
$rowZ = $db->sql_fetchrow($nameresultZ);
$color = $rowZ['user_color_gc'];
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ FIND ]-----------------
#
$tempContent[$i] .= "<b>$row[name]:</b> $ShoutComment";
#
#-----[ REPLACE WTIH ]-----------------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ FIND ]-----------------
#
$rowN = $db->sql_fetchrow($nameresultN);
#
#----[ AFTER ADD ]-------------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$color = $rowN['user_color_gc'];
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ FIND ]-----------------
#
$tempContent[$i] .= "<b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\">$row[name]</a>:</b> $ShoutComment";
#
#-----[ REPLACE WTIH ]-----------------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ FIND ]-----------------
#
$tempContent[$i] .= "<b>$row[name]:</b> $ShoutComment";
#
#-----[ REPLACE WTIH ]-----------------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ SAVE & CLOSE ]-----------------
#
#######################################
#
#-----[ OPEN ]-----------------
#
modules/Shout_Box/index.php
#
#-----[ FIND ]-----------------
#
# around line 268
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\">$row[name]</a>:</b> $comment<br />";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />"; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# around line 299
echo "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><b>$row[name]:</b></a> $comment<br />";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />"; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# around line 829
$rowN = $db->sql_fetchrow($nameresultN);
#
#----[ AFTER ADD ]-------------
#
$color = $rowN['user_color_gc']; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# around line 841
echo "<b>$row[name]:</b> $comment";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<font color=$color><b>$row[name]:</b></font> $comment"; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# near lin 868
echo "<b>$row[name]:</b> $comment";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<font color=$color><b>$row[name]:</b></font> $comment"; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# near line 903
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\">$row[name]</a>:</b> $comment<br />";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />"; // UsernameColor Addon
#
#-----[ FIND ]-----------------
#
# around line 934
echo "<b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\">$row[name]</a>:</b> $comment<br />";
#
#-----[ REPLACE WTIH ]-----------------
#
echo "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />"; // UsernameColor Addon
#
#-----[ SAVE & CLOSE ]-----------------
#
|
_________________
 |
|
Posted:
Sat 10 Mar, 2007 1:33 pm |
|
 |
martyn Developer


|
| Post subject: |
 |
|
Hi
Oh wow thanks lonestar. I have been bashing my head on this one for ages.
Regards
Martyn |
|
Posted:
Wed 14 Mar, 2007 3:05 pm |
|
 |
lonestar Junior Member


|
| Post subject: |
 |
|
if u visit my site ive added the flag hack to mine lol i can post code change for that too if needed?
| Code:
|
Requires AUC IN Shout-Box
#
#-----[ OPEN ]-------
#
blocks/block-Shout_Box.php
#
#-----[ FIND ]-------
#
$color = $rowZ['user_color_gc'];
#
#-----[ AFTER ADD ]-------
#
$user_flag = $rowZ['user_from_flag']; //Flag Hack Addon
#
#-----[ FIND ]-------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ REPLACE WITH ]-------
#
/************************************************/
/* MOD - Advanced Username Color START */
/* MOD - Country Flag Addon START */
/************************************************/
$tempContent[$i] .= "<img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/* MOD - Country Flag Addon END */
/************************************************/
#
#-----[ FIND ]-------
#
$color = $rowN['user_color_gc'];
#
#-----[ AFTER ADD ]-------
#
$user_flag = $rowN['user_from_flag']; //Flag Hack Addon
#
#-----[ FIND ]-------
#
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
#
#-----[ REPLACE WITH ]-------
#
/************************************************/
/* MOD - Advanced Username Color START */
/* MOD - Country Flag Addon START */
/************************************************/
$tempContent[$i] .= "<img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/* MOD - Country Flag Addon END */
/************************************************/
#
#-----[ SAVE & CLOSE ]--------
#
#
#-----[ OPEN ]-------
#
modules/Shout_Box/index.php
#
#-----[ FIND ]-------
# around line 268
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />";
#
#-----[ REPLACE WITH ]-------
#
echo "<img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />";
#
#-----[ FIND ]------
# around line 299
echo "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />";
#
#-----[ REPLACE WITH ]-------
#
echo "<img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />";
#
#-----[ FIND ]------
# around line 829
$rowN = $db->sql_fetchrow($nameresultN);
#
#-----[ AFTER ADD ]-------
#
$user_flag = $rowN['user_from_flag']; //Flag Hack Addon
#
#-----[ FIND ]-------
# around line 903
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />";
#
#-----[ REPLACE WITH ]-------
#
echo "<td valign='top' width='100%' style=\"background-color: $bgcolor;\"><img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <b><a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color>$row[name]</a>:</b></font> $comment<br />";
#
#-----[ FIND ]-------
# around line 934
echo "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />";
#
#-----[ REPLACE WITH ]-------
#
echo "<img src=\"modules/Forums/images/flags/$user_flag\" height=\"12\" width=\"18\"> <a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\"><font color=$color><b>$row[name]:</b></font></a> $comment<br />";
#
#-----[ SAVE & CLOSE ]-------
#
|
_________________

Last edited by lonestar on Wed 14 Mar, 2007 11:59 pm; edited 1 time in total |
|
Posted:
Wed 14 Mar, 2007 10:54 pm |
|
 |
Refiner Site Admin


|
| Post subject: |
 |
|
Posted:
Thu 15 Mar, 2007 11:55 am |
|
 |
lonestar Junior Member


|
| Post subject: |
 |
|
here are some premodded shout boxes _________________
 |
|
Posted:
Thu 15 Mar, 2007 1:12 pm |
|
 |
xGSTQ Member


|
| Post subject: Re: |
 |
|
excellent thanks, very help full indeed...
U have some very nice blocks on your site all using the AUC perhaps you might want to make a AUC block pack one day !
Would help all of us erm .. noobs ... lol
Thx  |
|
Posted:
Fri 16 Mar, 2007 7:34 am |
|
 |
Refiner Site Admin


|
| Post subject: |
 |
|
that is a great idea  _________________
 |
|
Posted:
Fri 16 Mar, 2007 8:40 pm |
|
 |
lonestar Junior Member


|
| Post subject: |
 |
|
Here is your request the pack consists of
Blocks:
AUC Nuke Treasury
AUC Latest Forum Scroll
AUC Top Posters & Points
AUC Universal Forum Block
AUC CZUser Info Universal 5
AUC Arcade Block Pack
Modules:
AUC Email List
AUC Shoutbox
AUC Shotubox with flag mod
Admin Features:
AUC User_List
AUC Email_List
Code Changes:
Code changes to Admin Userlist, Shoutbox Addons
Other Addons:
Profile Module
block pack was too big for attachment so link provided below
AUC Block Pack
more to come  _________________

Last edited by lonestar on Sat 17 Mar, 2007 4:23 am; edited 2 times in total |
|
Posted:
Sat 17 Mar, 2007 4:20 am |
|
 |
xGSTQ Member


|
| Post subject: Re: |
 |
|
OMG lonestar excellent , but i don't see no link ?
Sorry cancle my above you must have been editing the message whilst i was posting...
Well done lonestar an excellent contribution indeed !
Last edited by xGSTQ on Sat 17 Mar, 2007 4:24 am; edited 1 time in total |
|
Posted:
Sat 17 Mar, 2007 4:23 am |
|
 |
Refiner Site Admin


|
| Post subject: |
 |
|
thank you lonestar
great job  _________________
 |
|
Posted:
Sat 17 Mar, 2007 6:27 pm |
|
 |
|
|
|