Welcome, Guest. Please Login or Register.
April 27, 2025, 08:35:39 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0/1.4.1] Attachment Download Counter « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: [Done 1.4.0/1.4.1] Attachment Download Counter  (Read 4613 times)
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] Attachment Download Counter
« Reply #15 on: June 20, 2002, 10:05:04 PM »
Reply with quote

Grand then ;)

BTW, I just wrote a mod that puts the clip.gif in the messageindex (beside the subject) if there is an attachment in the first post. I wrote it as a request. I was wondering should I put it in this mod, or should I release it seperately, or does anyone want this?
Logged

PHPNews has been released!!! Download it now!!!
Rpg Cyco
Full Member
***
Posts: 197


bradgordon51@hotmail.com WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #16 on: June 20, 2002, 10:06:39 PM »
Reply with quote

I uninstalled the mod for the same problem, only admins could view attachments... :(

l8ter

Rpg Cyco
Logged

Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done 1.4.0] Attachment Download Counter
« Reply #17 on: June 20, 2002, 10:09:23 PM »
Reply with quote

I think you should release it as a separate mod (or an extension to this mod) as it gives the forum administrator more installation options. They might want the download counter, but not the message index icon. Or vice-versa.
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] Attachment Download Counter
« Reply #18 on: June 20, 2002, 10:12:20 PM »
Reply with quote

Quote from: Mach8 on June 20, 2002, 10:09:23 PMI think you should release it as a separate mod (or an extension to this mod) as it gives the forum administrator more installation options. They might want the download counter, but not the message index icon. Or vice-versa.
Yeah I think so, but I'm not sure if its really wanted though. I'm putting it on my board, I saw vB has it too  :)

QuoteI uninstalled the mod for the same problem, only admins could view attachments...

l8ter

Rpg Cyco
See what Mach8 said? Open ManageAttachment.php. As I've already said, my mod doesn't even use a is_admin(); statement. Hmm..
Logged

PHPNews has been released!!! Download it now!!!
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done 1.4.0] Attachment Download Counter
« Reply #19 on: June 20, 2002, 11:05:55 PM »
Reply with quote

Okay, the ManageAttachments.php does have it in by default, I've just checked. Here's the fix (not sure if you want to include it or not):

Find:
is_admin();

function ManageAttachments (){

And replace with:

function ManageAttachments (){

is_admin();

The download counter should work then :)

It's because the admin check was being applied to the whole of the file, including your Download() function, so by incorporating it only into the admin function your download function is unaffected.
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done 1.4.0] Attachment Download Counter
« Reply #20 on: June 20, 2002, 11:09:49 PM »
Reply with quote

There's more:

Find:

function RemoveAttachmentByAge()
{

Replace with:

function RemoveAttachmentByAge()
{
is_admin();

Find:

function RemoveAttachmentBySize()
{

Replace with:

function RemoveAttachmentBySize()
{
is_admin();

Find:

function RemoveAttachment()
{

Replace with:

function RemoveAttachment()
{
is_admin();

Find:

function RemoveAllAttachments()
{

Replace with:

function RemoveAllAttachments()
{
is_admin();
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] Attachment Download Counter
« Reply #21 on: June 21, 2002, 11:01:36 AM »
Reply with quote

actually that was probably done deliberately as the whole file was meant to for admins only..
So technically its not a bug, but I didn't notice it  :-\
Do the fixes Mach8 put up there to get it to work. I could just add my function too another part, or make its own file. What do you think is best?
Logged

PHPNews has been released!!! Download it now!!!
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done 1.4.0] Attachment Download Counter
« Reply #22 on: June 21, 2002, 11:26:44 AM »
Reply with quote

Yeah, that makes sense come to think of it.

Not sure what everyone else thinks, but I'd put it in its own separate file, I like modular programming :)
It's also something less for people to edit.
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] Attachment Download Counter
« Reply #23 on: June 21, 2002, 05:43:26 PM »
Reply with quote

The mod has been repackaged and is now ready for download. The download function is in a seperate file. Let me know how you get on please.  ;)
Logged

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


Oh baby!!

WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #24 on: August 16, 2002, 04:15:19 PM »
Reply with quote

Got this to install ok on 1.4.1 after altering a couple of steps in the mod file as i got a couple of "string not found".  I think this was just as the format had changed slightly in the files for 1.4.1.  

Cool mods Big P  ;D
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:[Done 1.4.0] Attachment Download Counter
« Reply #25 on: September 04, 2002, 06:17:00 PM »
Reply with quote

i can attach Files, but they are not linked correctly :-(


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] Attachment Download Counter
« Reply #26 on: September 05, 2002, 05:20:59 PM »
Reply with quote

ahh crud, I missed this thread before. I'll fix up the mod for the 1.4.1 release, didn't know it wasn't compatible.
Surfy, which version of yabb are you using? 1.4.0? as thjis mod was designed for that version. I'll try get this working by tonight and I'll have the link up. ;)
Logged

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


Oh baby!!

WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #27 on: September 05, 2002, 05:27:37 PM »
Reply with quote

Quote from: Big P on September 05, 2002, 05:20:59 PMahh crud, I missed this thread before. I'll fix up the mod for the 1.4.1 release, didn't know it wasn't compatible.
Surfy, which version of yabb are you using? 1.4.0? as thjis mod was designed for that version. I'll try get this working by tonight and I'll have the link up. ;)

Its not completely compatible as i had to change a couple of search lines in it.
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:[Done 1.4.0/1.4.1] Attachment Download Counter
« Reply #28 on: September 05, 2002, 08:00:50 PM »
Reply with quote

Only 3/4 steps needed changing. The mod file is ready for download and includes both 1.4.0 and 1.4.1 compatible versions.  ;) If you have a problem let me know, but it does work for me anyway.
Logged

PHPNews has been released!!! Download it now!!!
3DGuy
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.4.0/1.4.1] Attachment Download Counter
« Reply #29 on: April 16, 2003, 08:24:30 PM »
Reply with quote

Can someone make this compatible with YaBBSE 1.5.1? I really need this mod.. its NEAT  ;D
Logged
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0/1.4.1] Attachment Download Counter « 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.032 seconds with 16 queries.