Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 237
Total: 237

Author Topic: Ease Of Expansion  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Ease Of Expansion
« on: June 01, 2012, 10:20:19 am »
How easy is it to add things this mod auto-awards for?   I currently run "the other" Gallery out there... how difficult would it be to incorporate awards for uploading / commenting / rating in that gallery system?  How difficult would it be to add an award for playing SMF Chess?  How about for winning a quiz in SMF Quiz?  How difficult would it be to add an award for handing out the most reputation using the Advanced Reputation mod or perhaps receiving the most rep in a certain time period?

Thanks!  VERY interested in the mod,  however ease of expansion is a key ...

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ease Of Expansion
« Reply #1 on: June 01, 2012, 11:04:55 am »
It is easy to expand. You can upload and edit your own badges. You can either give the custom badges manually or modify the SMF files and include the badge awards call.

It is easy to expand Badge Awards. To create a custom badge. Click on the Add Badge link inside the Badge Awards admin.
On that page the main requirement is a unique action name. You will use this action name in your call to badgeawards to add a badge to a member if you are using it dynamically.


The Badges_AwardBadge takes a couple different parameters only the memberid and actionname are required Badges_AwardBadge($memberID,$actionname,$sendpm)

Example code below for custom actions

Code for SMF 1.1.x
Code: [Select]
// Badge Awards
global $sourcedir, $ID_MEMBER;
require_once($sourcedir . '/badgeawards.php');
Badges_AwardBadge($ID_MEMBER,'customactionname');
Badges_CheckMember($ID_MEMBER);
// End Badge Awards

Code for SMF 2.0.x
Code: [Select]
// Badge Awards
global $sourcedir, $user_info;
require_once($sourcedir . '/badgeawards2.php');
Badges_AwardBadge($user_info['id'],'customactionname');
Badges_CheckMember($user_info['id']);
// End Badge Awards
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Ease Of Expansion
« Reply #2 on: June 01, 2012, 11:13:40 am »
If purchased... do you/would you provide support for idiots like me who know just enough about PHP to get himself in to trouble?

WARNING: Think about this before answering... i can be a pain in the ass.

;)

Thanks.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ease Of Expansion
« Reply #3 on: June 01, 2012, 11:23:54 am »
I can help with some placements just don't take up too many hours of support time that's all I ask.
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Ease Of Expansion
« Reply #4 on: June 01, 2012, 04:28:51 pm »
Couple more questions...

(1) I see the license includes a copy for 1 forum... I assume you have no problem with my installing the mod on my test forum (only accessable by me) plus my regular forum?

and...

(2) My regular forum uses a very modified version of 2.0.2 with a modified default "curve" theme.  Do you anticipate I'll have to do many manual edits or does the mod primarily use hooks, etc?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ease Of Expansion
« Reply #5 on: June 01, 2012, 04:33:45 pm »
1. A test forum is ok by me.


2. I do not use hooks for my mods at the moment. I do very few edits to the files that are easy to add to SMF 2.0 should work fine on even very modified forums.
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/

 

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 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

Powered by EzPortal