Welcome, Guest. Please Login or Register.
May 04, 2024, 03:13:24 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.0] Show Attachments in MessageIndex « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [DONE 1.4.0] Show Attachments in MessageIndex  (Read 8720 times)
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
[DONE 1.4.0] Show Attachments in MessageIndex
« on: June 20, 2002, 10:56:48 PM »
Reply with quote

This was made by request, so I've decided to release it.

Basically it puts the clip.gif in the subject of a message to show there is an attachment in the first post in that thread. (So users know when patchs or mods or whatever are posted) vBulletin has this feature, and I think it suits YaBB.

No extra queries are required. I had to replace the query string however.

The Mod is attached. ;)
Let me know how you get on.
Big P
« Last Edit: June 22, 2002, 01:55:30 PM by Big P » Logged

PHPNews has been released!!! Download it now!!!
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Show Attachments in MessageIndex
« Reply #1 on: June 21, 2002, 12:11:19 AM »
Reply with quote

I installed it which went ok, but on two of my boards, 80% of the threads show the paper clip even if there is not attachments in the post.  All the other boards are ok and if you post new message to a thread that is incorrectly showing a paper clip then it disappears but if you then delete the that new post from the tread the paperclip comes back. Very strange, but it works 100% for new posts. Any ideas  ???
« Last Edit: June 21, 2002, 12:13:33 AM by Stud Muffin » Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:Show Attachments in MessageIndex
« Reply #2 on: June 21, 2002, 12:13:51 AM »
Reply with quote

big p i tryed to tell u this but it was too late u ran off  :-\ and check the rpg mod thing out that is missing some info i recon. like what files it actually is gonna modify etc.. but how do i know lol.
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Show Attachments in MessageIndex
« Reply #3 on: June 21, 2002, 10:51:28 AM »
Reply with quote

That's odd. Does the image show up if there is an attachment in any post in that thread? Or just show up even if there are no attachments in that thread?
Logged

PHPNews has been released!!! Download it now!!!
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Show Attachments in MessageIndex
« Reply #4 on: June 21, 2002, 02:58:20 PM »
Reply with quote

It is showing on page 1 only on two boards.  Very strange.  It shows up even if no attachments are in a post, but if someone posts in that thread then the clip image disappears.  It works fine on new posts, so its not really a problem, thanks.  Check it out at my forum if you like.  I currently have it to shows 20 topics on the index and so it shows 20 clips on the first page, but if i set it to 15  then it only show 15 clips and none on the second page. Weird  :P
« Last Edit: June 21, 2002, 03:04:45 PM by Stud Muffin » Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[BETA] Show Attachments in MessageIndex
« Reply #5 on: June 21, 2002, 05:39:09 PM »
Reply with quote

fixed it. ;) The mod is attached in the first place, all in working order. I had to eval() the code.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:[BETA] Show Attachments in MessageIndex
« Reply #6 on: June 21, 2002, 07:41:17 PM »
Reply with quote

what changes did u make man.............. since i did it manual....... ill take a look at the mod now though to see if i can do the mod myself.
Logged
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:[BETA] Show Attachments in MessageIndex
« Reply #7 on: June 21, 2002, 08:28:04 PM »
Reply with quote

Cheers for the update Big P  :)

Note it also corrected the problem  ;D
« Last Edit: June 21, 2002, 09:07:46 PM by Stud Muffin » Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[BETA] Show Attachments in MessageIndex
« Reply #8 on: June 21, 2002, 09:14:16 PM »
Reply with quote

Broomop, I had to edit the code which changed the $attach variable to the image itself. Here's the new code:
if ($attachs > 0) {
$attimage = "<img src=\"$imagesdir/clip.gif\">"; }
eval("\$attach = \$attimage;");
if ($attachs == 0) { $attach = ""; }
The eval() statement distinguishes between each thread, and the next line just removes a "0" from the messageindex (its all to do with attachmentSize ::))

No problem Stud Muffin, just sorry it didn't work the first time.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:[DONE 1.4.1] Show Attachments in MessageIndex
« Reply #9 on: June 22, 2002, 12:16:31 AM »
Reply with quote

yeah i found that out like 3 mins after posting lol...... at least u helped me........ and im still busy trying to get u, u know what ;) o its my bd today lol
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[DONE 1.4.1] Show Attachments in MessageIndex
« Reply #10 on: June 22, 2002, 01:40:31 PM »
Reply with quote

Happy birthday!
What did you find out Broomop? That I check attachment Sizes? Well that's the only way to check if there is an attachment, as there is no single value saying there is an attachment in a thread.
Well, glad it works and glad you like it. ;)
Logged

PHPNews has been released!!! Download it now!!!
Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:[DONE 1.4.1] Show Attachments in MessageIndex
« Reply #11 on: June 22, 2002, 01:46:10 PM »
Reply with quote

probly best mod i got man.... is there a way to make a mod for ur name so u can do like #C1 H #C2 i like that... for ur name though. so u can have multicolour names or would that take alot of coding to do somthing like that... and have like on top of wher u change ur name the colour palletes. And it coudl be used for sig's or whateva. also another good idea would be to have like the yabbc tags on top of ur sig it would be really handy.
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[DONE 1.4.1] Show Attachments in MessageIndex
« Reply #12 on: June 22, 2002, 01:54:00 PM »
Reply with quote

YSE 2 will have the feature to change the colour of names I believe. And it should be hard to do anyway. I'd say it will use yabbc code for it rather than html. That what you mean? There isn't much point in doing it now.
Did you have the add more membergroups mod installed for YaBB SP1? In that you could change the colour of a users name, add code etc. That what you mean?
Logged

PHPNews has been released!!! Download it now!!!
Rowan Lewis
Noobie
*
Posts: 32


I'm a llama!

Re:[DONE 1.4.0] Show Attachments in MessageIndex
« Reply #13 on: October 01, 2002, 07:45:50 AM »
Reply with quote

Could someone post the updated php file? I can't use BoardMod and when I did it manualy, the file screwed up!
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[DONE 1.4.0] Show Attachments in MessageIndex
« Reply #14 on: October 01, 2002, 07:48:26 PM »
Reply with quote

Quote from: rowanjl on October 01, 2002, 07:45:50 AMCould someone post the updated php file? I can't use BoardMod and when I did it manualy, the file screwed up!
What updated php file? Does the first file not work in 1.4.1? I'm sure it does. You mean messageindex.php? Why can't you use boardmod? It's easy.  :P ::)
Logged

PHPNews has been released!!! Download it now!!!
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.0] Show Attachments in MessageIndex « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 19 queries.