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: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 157
Total: 158

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Garth

Pages: [1]
1
Support / Badge for registering
« on: September 20, 2012, 04:11:45 pm »
How do you give a badge when someone registers? No other requirements other than registering. I'd like to notify new members about the badge system the instant they register to get them involved in it from the off, and I figure a 'welcome to the forum' badge would be a good way to do that! :)

Maybe this functionality is there already? I've got some of the default badges turned off at the moment...

2
Support / Re: Just one more thing...
« on: September 15, 2012, 05:15:41 pm »
Thoughts on this?

Code: [Select]
$badgeAction = 'topicinboard';
if ($memberContext[$memberID]['posts'] != 0 && !in_array($badgeAction,$currentBadges))
{
$result = $smcFunc['db_query']('', "
SELECT COUNT(*) AS total FROM {db_prefix}topics  
WHERE ID_MEMBER_STARTED = $memberID
AND ID_BOARD = 1
");  
$totalRow = $smcFunc['db_fetch_assoc']($result);

if ($totalRow['total'] > 0)
{
$badgeID = GetBadgeIDByAction($badgeAction);
$ret = AddBadgeToMember($memberID,$badgeID,false);
if ($ret == true)
{
$currentBadges[] = $badgeAction;
$newBadges[]  = $badgeAction;
}
}

}

3
Presales for Products / Re: Couple of questions
« on: September 14, 2012, 08:28:55 pm »
Awesome, thanks so much!

4
Presales for Products / Re: Couple of questions
« on: September 14, 2012, 08:08:50 pm »
If I add about 50 of those would it still be OK or would it bog down the forum? Sorry for all the questions, I really appreciate your excellent support ;D

5
Presales for Products / Re: Couple of questions
« on: September 14, 2012, 07:34:07 pm »
Would any problems occur if I add a bunch of elseif statements to this custom badge so I can check for multiple topic ids and award a different badge for each one?

Like this:
Code: [Select]
// Badge Awards
global $sourcedir, $modSettings;
if (!empty($modSettings['badgeawards_enable']))
{

global $sourcedir;
require_once($sourcedir . '/badgeawards2.php');
if ($topicOptions['id'] == 7079)
{

Badges_AwardBadge($posterOptions['id'],'topicbadge7079');
}

elseif ($topicOptions['id'] == 9000)
{

Badges_AwardBadge($posterOptions['id'],'topicbadge9000');
}

elseif ($topicOptions['id'] == 9500)
{

Badges_AwardBadge($posterOptions['id'],'topicbadge9500');
}

elseif ($topicOptions['id'] == 9900)
{

Badges_AwardBadge($posterOptions['id'],'topicbadge9900');
}

}
// End Badge Awards

But with a lot more elseifs?

I expect there's a better way of doing that but I'm a bit of a noob!

6
Support / Re: Error logged
« on: September 14, 2012, 03:31:18 pm »
Looks like that fixed it, awesome! ;D

Cheers!

7
Support / Just one more thing...
« on: September 14, 2012, 11:24:34 am »
Is it possible to modify the badge for posting a topic so that it's only awarded when the topic is posted in a specific board?

Thanks again! :)

8
Support / Re: Language file edits
« on: September 14, 2012, 10:16:14 am »
Ah, found another instance of those bits or text in the modifications language file - that explains it! :)

9
Support / Error logged
« on: September 14, 2012, 09:43:09 am »
Just noticed this error in my forum's error log:

action=post2
2: Invalid argument supplied for foreach()
File: badgeawards2.php
Line: 2207

Any idea how to fix that? Something to do with the custom badge for replying to a specific topic maybe? I've been testing it out you see.

10
Support / Language file edits
« on: September 14, 2012, 08:24:19 am »
Hi, some of the language file changes I've made don't seem to be appearing while others do. For example, the PM sent when you get a badge award has the default message instead of the edit I've made. I've tried clearing the SMF cache and tried changing both badgeawards.english.php and badgeawards.english-utf8.php but it still stays the same - any idea where I'm going wrong? Cheers! :)

11
Presales for Products / Re: Couple of questions
« on: September 13, 2012, 09:32:39 pm »
That works just great, many thanks! ;D

12
Presales for Products / Re: Couple of questions
« on: September 13, 2012, 03:22:22 pm »
Mod installed, could do with assistance with the specific topic badge - cheers! :)

13
Presales for Products / Re: Couple of questions
« on: September 13, 2012, 08:32:30 am »
Sold! ;D

14
Presales for Products / Couple of questions
« on: September 10, 2012, 10:25:40 am »
Hi, this looks like a cool mod, just have a couple of noob questions before I buy!

1. Can you create an award given only when members reply to a specific topic?
2. My forum has close to 6000 members - if I activate awards that are based on post counts for instance, will all the relevant awards be given retroactively, and how server intensive would running this mod on a forum that size be?

Cheers!

Pages: [1]

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal