Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 290
Total: 290

Author Topic: Do not cost any credits if it's your own download  (Read 3071 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Do not cost any credits if it's your own download
« on: March 10, 2017, 12:13:38 am »
Could you help me put together a script that prevents the deduction of credits if it's your own download? :-\

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Do not cost any credits if it's your own download
« Reply #1 on: March 10, 2017, 08:54:40 am »
Add before for SMF 1.1.X
Code: [Select]
// Check if we need to use the downloads cost per megabyte setting

Add this
Code: [Select]
if ($ID_MEMBER == $row['ID_MEMBER'])
$checkCredits = false;
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Do not cost any credits if it's your own download
« Reply #2 on: March 10, 2017, 01:25:57 pm »
Thank you

Another suggestion, after an upload, a message should appear stating how many credits were earned after the upload.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Do not cost any credits if it's your own download
« Reply #3 on: March 10, 2017, 03:00:39 pm »
Another suggestion, on delete of item, the credits earned should be deleted too

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
6572 Views
Last post December 03, 2007, 10:33:30 pm
by SMFHacks
0 Replies
3356 Views
Last post January 17, 2010, 02:21:25 am
by Vincent Volmer
0 Replies
5226 Views
Last post September 22, 2010, 08:24:21 am
by petesky
13 Replies
12594 Views
Last post February 05, 2011, 05:01:07 pm
by SMFHacks
5 Replies
4440 Views
Last post July 15, 2015, 11:18:57 am
by pasqualino77

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Powered by EzPortal