Firefox PHP

Folders Icons

Posted by Matt 
Folders Icons
March 23, 2001 04:32AM
Hi

I have hacked 3.2.11 so it has folders (animated for busy threads) like UBB.

If any one wants me to post the code please let me know (and where i put it)

[www.brightonlife.com]

Also using pretty much all the emotion icons that come with MSN messenger -> thats using the bult in plug in though -- so no hacking by me there!

Matt
Re: Folders Icons
March 23, 2001 05:08AM
Hey, we live in free country, so it's free forum, post any hacks you have, somebody will defiantly use it.

Vulpes
Re: Folders Icons
March 23, 2001 05:14AM
although your hack doesn't seem to work with Threaded View.
So it's probobly giong to be in Beta Hcks
amy
Re: Folders Icons
June 26, 2001 08:13PM
Hi Matt .. please post your secret code for those neat folder icons!!!

Thanks much! :)
Everyone keeps talking about the "built in plug-in" for adding folder and smiley icons. I know how to access it in admin but how in the world do you use it?


Please help!
Re: Folders Ikons
September 17, 2001 02:22PM
Hi
Please send me hack for those folder icons (Forum 3.2.11).

Thank You

Ota
bbr
Re: Folders Icons
August 10, 2002 02:42PM
could u post the code & images?
bbr
Re: Folders Icons
August 10, 2002 02:43PM
dude, thats one pretty wicked forum :D
Re: Folders Icons
August 24, 2002 05:04PM
Nice icons, would you send the code to me?thx.
Re: Folders Icons
November 02, 2002 06:03PM
Could I have this hack>?

Re: Folders Icons
January 14, 2003 10:48PM
I too would love to use this hack, anyone have info on getting this up an going? Also, the roll overs are sweet!! Info on that too plz.
asif
Re: Folders Icons
February 18, 2004 05:24PM
Could you send me the code, please.

thx.
Re: Folders Icons
March 02, 2004 03:51PM
could you send me the code?
that forum is sweet...
MattyC
here's the code
March 02, 2004 04:26PM
file: include/threads.php (this is original hack from v3.4.4-dev)
You will need to create the folder images and upload them to phorum/images directory.
hot_red_folder.gif
red_folder.gif
hot_folder.gif
folder.gif

and also set the variable $hot_folder top the hot threshold level (i.e. number of posts before u get a flaming folder ;)

<?php
if ( !defined( "_COMMON_PHP" ) ) return;

settype($read, "boolean");

if (!isset($$phcollapse)) {
$$phcollapse=0;
}
?>
<table class="PhorumListTable" width="<?php echo $ForumTableWidth; ?>" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="PhorumListHeader" <?php echo bgcolor($ForumTableHeaderColor); ?>><FONT color="<?php echo $ForumTableHeaderFontColor; ?>">&nbsp;<?php echo $lTopics;?><img src="images/trans.gif" border=0 width=1 height=24 align="absmiddle"></font></td>
<td class="PhorumListHeader" <?php echo bgcolor($ForumTableHeaderColor); ?> nowrap="nowrap"><FONT color="<?php echo $ForumTableHeaderFontColor; ?>"><?php echo $lAuthor;?>&nbsp;</font></td>
<?php if ( empty($read) && $$phcollapse != 0) { ?>
<td class="PhorumListHeader" align="center" <?php echo bgcolor($ForumTableHeaderColor); ?> nowrap="nowrap"><FONT color="<?php echo $ForumTableHeaderFontColor; ?>"><?php echo $lReplies;?>&nbsp;</font></td>
<td class="PhorumListHeader" <?php echo bgcolor($ForumTableHeaderColor); ?> nowrap="nowrap"><FONT color="<?php echo $ForumTableHeaderFontColor; ?>"><?php echo $lLatest;?></font></td>
<?php }else{ ?>
<td nowrap="nowrap" class="PhorumListHeader" <?php echo bgcolor($ForumTableHeaderColor); ?>><FONT color="<?php echo $ForumTableHeaderFontColor; ?>"><?php echo $lDate;?></font></td>
<?php } ?>
</tr>
<?php
$x=0;
$loc=0;
@reset($headers);
$message = @current($headers);
if(empty($read) && !empty($message)){
$trec=$threads[$message["thread"]];
}

while (is_array($message)){
if(($x%2)==0){
$bgcolor=$ForumTableBodyColor1;
$fcolor=$ForumTableBodyFontColor1;
}
else{
$bgcolor=$ForumTableBodyColor2;
$fcolor=$ForumTableBodyFontColor2;
}
$t_id=$message["id"];
$t_thread=$message["thread"];
$t_subject=chop($message["subject"]);
if(!empty($users[$message["userid"]])){
$t_author=$users[$message["userid"]]["username"];
if(isset($moderators[$message["userid"]])){
$t_author="<strong>$t_author</strong>";
}
} else {
$t_author=chop($message["author"]);
}
$t_datestamp = date_format($message["datestamp"]);

if( ($$phcollapse != 0) && (empty($read)) ){
$t_latest=date_format($trec["latest"]);
$t_maxid=$trec["maxid"];
}
$message = next($headers);

if($t_thread!=$t_id){
$img = '<img src="images/l.gif" border=0 width=12 align="top">';
if(is_array($message)){
if($t_thread==$message["thread"]){
$img='<img src="images/t.gif" border=0 width=12 align="top">';
}
}
}
else{
$img="<img src=\"images/trans.gif\" border=0 width=1 height=21 align=\"absmiddle\">";
$loc=0;
}

if($read==true && $id==$t_id){
$t_subject = "<strong>$t_subject</strong>";
$t_author = "<strong>$t_author</strong>";
$t_datestamp = "<strong>$t_datestamp</strong>";
}
else{
$t_subject="<a href=\"$read_page.$ext?f=$num&i=$t_id&t=$t_thread$GetVars\">$t_subject</a>";
}

$color=bgcolor($bgcolor);
echo "<tr style=\"cursor:hand\" onClick=\"document.location='$read_page.$ext?f=$num&i=$t_id&t=$t_thread$GetVars';\" onMouseOver=\"this.bgColor='#FFFFFF';\" onMouseOut=\"this.bgColor='';\">";
// echo ' <td class="PhorumListRow" '.$color.'><FONT color="'.$fcolor.'">&nbsp;'.$img.'&nbsp;'.$t_subject."&nbsp;</font>";

if($UseCookies){
$isnew=false;
if($$phcollapse != 0 && empty($read)){
// collapsed code
if($use_haveread){
if ($old_message<$t_maxid) {
if(!in_array($t_maxid, $haveread)) {
$isnew=true;
}
}
}
elseif($old_message<$t_maxid){
$isnew=true;
}
} else {
// expanded code
if ($use_haveread) {
if ($old_message<$t_id) {
if(!in_array($t_id, $haveread)) {
$isnew=true;
}
}
} elseif ($old_message<$t_id) {
$isnew=true;
}
}
if($isnew){
if(($trec["tcount"]-1) >= $hot_folder){
$folder_img = "$forum_url/images/hot_red_folder.gif";
}
else{
$folder_img = "$forum_url/images/red_folder.gif";
}
}
else{
if(($trec["tcount"]-1) >= $hot_folder){
$folder_img = "$forum_url/images/hot_folder.gif";
}
else{
$folder_img = "$forum_url/images/folder.gif";
}
}
}

// HERE GOES THE NEW CODE

echo ' <td height="20" '.$color.'>';
echo ' <table border="0" cellspacing="0" cellpadding="0">';
echo ' <tr valign="top">';
echo ' <td><img src="'.$folder_img.'" width="13" height="16" hspace="5"></td>';
echo ' <td>';

echo ' <FONT color="'.$fcolor.'">'.$img.''.$t_subject."&nbsp;</font>";

echo "</td>\n</tr>\n</table>\n</td>\n";

echo ' <td class="PhorumListRow" '.$color.' nowrap="nowrap"><FONT color="'.$fcolor.'">'.$t_author.'&nbsp;</font></td>'."\n";
if( $$phcollapse != 0 && empty($read) ){
$t_count=$trec["tcount"]-1;
if(!empty($message)) $trec=$threads[$message["thread"]];
echo ' <td class="PhorumListRow" align="center" '.$color.' nowrap="nowrap"><FONT color="'.$fcolor.'">'.$t_count."&nbsp;</font></td>\n";
echo ' <td class="PhorumListRow" '.$color.' nowrap="nowrap"><FONT color="'.$fcolor.'">'.$t_latest."&nbsp;</font></td>\n";
}
else{
echo ' <td class="PhorumListRow" '.$color.' nowrap="nowrap"><FONT color="'.$fcolor.'">'.$t_datestamp.'&nbsp;</font></td>'."\n";
}
echo "</tr>\n";
$x++;
$loc++;
} // end while
?>
</table>
MattyC
here's the code
March 02, 2004 04:29PM
oops... forgot phorum would loose all the formatting so have attached the threads.php as threads.txt
Sorry, only registered users may post in this forum.

Click here to login