Home
>
Outdated forums
>
Phorum 3 forums (READ ONLY)
>
Finished Mods and Plug-ins (READ ONLY)
>
Topic
Icon and size of attached files
Posted by Yann
Icon and size of attached files April 11, 2002 09:17AM |
Hi all,
I did some basic hack on phorum 3.2.11, to display 2 things when a file is attached to a message:
- one icon next to the message line
- the file size on the message display window.
The result can be seen on my site: [www.cactuspro.com]
(French web site dedicated to cacti & succulent plants).
If this is not already in the last version of Phorum, and if you are interested in it, I can send you the needed modifications (if what I did on 3.2.11 could apply on last version of Phorum).
As my forum users are attaching only plant photos, I have only one icon. But one could design a system with different icons depending of the file type (.txt, .jpg, .png, .doc, .xml, etc.)
Yann.
I did some basic hack on phorum 3.2.11, to display 2 things when a file is attached to a message:
- one icon next to the message line
- the file size on the message display window.
The result can be seen on my site: [www.cactuspro.com]
(French web site dedicated to cacti & succulent plants).
If this is not already in the last version of Phorum, and if you are interested in it, I can send you the needed modifications (if what I did on 3.2.11 could apply on last version of Phorum).
As my forum users are attaching only plant photos, I have only one icon. But one could design a system with different icons depending of the file type (.txt, .jpg, .png, .doc, .xml, etc.)
Yann.
Re: Icon and size of attached files April 11, 2002 12:23PM |
Hi!
I have sort of a similar question.
I modified the multithread.php file in order to display an icon next to the subject line whenever a moderator/admin posts a message:
if(!empty($users[$topic["userid"]])){
$author=$users[$topic["userid"]]["name"];
if(isset($moderators[$topic["userid"]])){
$author="<b>$author</b>";
$subject="$subject<img src=\"[www.jamie-stevens.de]\" border=\"0\" hspace=\"6\" alt=\"moderator\">";
}
} else {
$author=chop($topic["author"]);
}
Now I'd like to know if it's possible to display a different icon when a special user (for instant user No 3) posts a message. How to I indicate this? Any suggestions??
Thanks for your help.
JAMIE
I have sort of a similar question.
I modified the multithread.php file in order to display an icon next to the subject line whenever a moderator/admin posts a message:
if(!empty($users[$topic["userid"]])){
$author=$users[$topic["userid"]]["name"];
if(isset($moderators[$topic["userid"]])){
$author="<b>$author</b>";
$subject="$subject<img src=\"[www.jamie-stevens.de]\" border=\"0\" hspace=\"6\" alt=\"moderator\">";
}
} else {
$author=chop($topic["author"]);
}
Now I'd like to know if it's possible to display a different icon when a special user (for instant user No 3) posts a message. How to I indicate this? Any suggestions??
Thanks for your help.
JAMIE
Re: Icon and size of attached files April 16, 2002 12:16PM |
Registered: 22 years ago Posts: 10 |
Sorry, you do not have permission to post/reply in this forum.