Welcome, Guest. Please Login or Register.
April 27, 2025, 07:49:10 AM
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/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 4612 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/1.4.1] Attachment Download Counter
« on: June 17, 2002, 10:30:26 AM »
Reply with quote

Attachment Download Counter:

This mod will count the number of downloads each of your attachments get. It requires running a DB script, and installing the mod (via BoardMod).

There shouldn't be any compatability problems, but if there are let me know.  :)

Downloads will be shown like so:
yourfile.zip (7 downloads)

The mod is attached; let me know how you get on ;)
Big P
« Last Edit: September 05, 2002, 07:58:34 PM by Big P » 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 #1 on: June 17, 2002, 01:15:57 PM »
Reply with quote

Thanks for this mod, great idea :)

You might want to update your signature btw...
Logged
trevsweb
Noobie
*
Posts: 31


EVILness is inside me

WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #2 on: June 17, 2002, 02:22:26 PM »
Reply with quote

wow boarbmod se make it so much more easier to install mods :)

ive got both of ure recent mods and frankly there the best on this board thanks big p keep rolling those cool mods out :D
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 #3 on: June 17, 2002, 05:11:58 PM »
Reply with quote

Quote from: Mach8 on June 17, 2002, 01:15:57 PMThanks for this mod, great idea :)

You might want to update your signature btw...
Thanks. I thought this should've been included in a proper yabb release, I've seen it in other board (like vB) and they people seem to like it ;) Oh well!

Um, I did now! I posted the above message before my last exam (art) and I didn't have much time lol.

Quotewow boarbmod se make it so much more easier to install mods

ive got both of ure recent mods and frankly there the best on this board thanks big p keep rolling those cool mods out  
Smilies SE I take it? Yay, glad you like the mods. If I get any inspiration, I always like to make a mod out of it. Glad you got Smilies SE working too! A lot of people are way too adament about using YaBBPak. And frankly, I really like the idea behind it, but it needs some work. ;)

Phew.  ;D
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 #4 on: June 18, 2002, 05:09:14 AM »
Reply with quote

Installed with Smilies SE, Serialize Attachments, and Preview Signature! So i'm happy :) Nice mod Big P :)

l8ter

Rpg Cyco
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 #5 on: June 18, 2002, 12:57:38 PM »
Reply with quote

Quote from: Rpg Cyco on June 18, 2002, 05:09:14 AMInstalled with Smilies SE, Serialize Attachments, and Preview Signature! So i'm happy :) Nice mod Big P :)

l8ter

Rpg Cyco
Phew, glad it works. And no bugs I take it?
I might do a YaBBpak version for it too, for those who dont have BoardMod but would like the mod. ;)
BTW, there text is hardcoded into yabb, but its not like people can't understand "downloads", right?  ::)
Logged

PHPNews has been released!!! Download it now!!!
Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #6 on: June 18, 2002, 02:36:16 PM »
Reply with quote

When i install the mod i take the folowing error message : 2: Supplied argument is not a valid MySQL result resource
(/homepages/10/d66473238/htdocs/yabbse/Sources/ManageAttachments.php ln 115)
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 #7 on: June 18, 2002, 05:22:55 PM »
Reply with quote

I take it you inserted the database entries as given? Plus theres even a DB script to run if you dont know how to do it manually.
That's most likely your error. If not let me know. ;)
Logged

PHPNews has been released!!! Download it now!!!
Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:[Done 1.4.0] Attachment Download Counter
« Reply #8 on: June 18, 2002, 05:28:46 PM »
Reply with quote

Yes. Sorry :)
I forgot to setup my database.
Now all is ok :)
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 #9 on: June 18, 2002, 05:30:37 PM »
Reply with quote

Quote from: Yngwiedis on June 18, 2002, 05:28:46 PMYes. Sorry :)
I forgot to setup my database.
Now all is ok :)
How do you forget something like that? ::) :P lol. Glad it workd for ya anyway.  ;)
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 #10 on: June 20, 2002, 01:22:30 PM »
Reply with quote

I found a problem which I corrected - don't know if it affects 1.4.0 generally, since I've edited a lot of my board, but I swear I haven't touched ManageAttachments.php...

Anyway, the is_admin() check was outside the main function, so whenever non-admins clicked attachment links on my board, they got a "You can't access this" error. I moved the is_admin() statement into the first function, and it all works fine now - non-admins still can't access the attachments manager, but they can view attachments.
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 #11 on: June 20, 2002, 05:08:38 PM »
Reply with quote

Non admins should never be able to view the attachment manager. Thats an admin function.
And if you open attach.mod, you'll see not once do I search for or add a is_admin(); statement. So, um.. I dunno!  ::)
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 #12 on: June 20, 2002, 07:01:33 PM »
Reply with quote

I know your mod doesn't add the line :)

When I opened up my manageattachments.php file, at the top there was an is_admin statement, which was preventing the Download() function you'd added from being executed by non-admins.

It could just be me though, the is_admin line might not be there by default, I might have added it a while back during a bug fix or something, before it was fixed in an official release.
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 #13 on: June 20, 2002, 09:15:03 PM »
Reply with quote

 ::) erm, yes... lol. Well as long as it works for you. I've tested the mod quite a bit and can't find any problems with it anyway, so I dunno why the is_admin() statement was printed.. 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 #14 on: June 20, 2002, 09:52:20 PM »
Reply with quote

Ah well, just ignore my strange rants then ;D
I bet if I was alive in medieval times I'd have been burned as a witch ;)

Nice mod, works great, and my members are happy...
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.030 seconds with 16 queries.