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: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 270
Total: 270

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 - MechSpecs

Pages: [1]
1
Support / Re: Rebadging after install
« on: April 09, 2014, 08:19:06 pm »
Is there a specific line I should be looking for to turn this feature off?

I would like to customize the badges, settings, layouts etc, on my live server before I actually start giving badges to people.

2
Support / Re: Badge for registering
« on: April 08, 2014, 11:09:48 am »
Hrmmmmm, ran in to a problem with this...

Code: [Select]
$badgeAction = 'firstpost1';
if ($memberContext[$memberID]['posts'] >= 1 && !in_array($badgeAction,$currentBadges))
{
$badgeID = GetBadgeIDByAction($badgeAction);
$ret = AddBadgeToMember($memberID,$badgeID,false);
if ($ret == true)
{
$currentBadges[] = $badgeAction;
$newBadges[]  = $badgeAction;
}

}

The problem is that even if I have other badges and over 200 posts, the very next post I make it gives me the three badges I set up. I was hoping to have it set to only give these badges on the FIRST post, not the 256th post LOL

UPDATE:

The way I got around this was to use the following code...

Code: [Select]
$badgeAction = 'firstpost1';
if ($memberContext[$memberID]['posts'] < 2 && !in_array($badgeAction,$currentBadges))
{
$badgeID = GetBadgeIDByAction($badgeAction);
$ret = AddBadgeToMember($memberID,$badgeID,false);
if ($ret == true)
{
$currentBadges[] = $badgeAction;
$newBadges[]  = $badgeAction;
}

}

This way any poster with LESS THAN 2 posts (the < symbol worked here) gets the badge but anyone with 2 OR more posts will not get it the badge.

3
Support / Re: Badge for registering
« on: April 08, 2014, 10:56:45 am »
That did it! I was able to easily add 3 new triggers for their first post and viola, all done. Cheers.

4
Ok, so in other words if they have 99 posts and they make another one, bringing them to 100 posts, they will AUTOMATICALLY get the 100 post badge. This means that I don't have to trigger an event to give them the badge as it is done automatically. Nice.

Hmmmm now that means I need to go into the mod and code it so that upon their first post they are automatically awarded 3 different badges.

Tricky tricky.

5
Support / Are badges automatically granted or do I have to trigger it?
« on: April 08, 2014, 07:45:43 am »
So I've had about 12 hours to dig my way into the code for the Mod and figure out my way around the stock badges etc.

Are the post badges given automatically or do I have to trigger the event to "re-badge" users? What I mean by this is that if someone registers and posts one time will they receive the "1 Post" badge automatically or do I have to trigger it myself and then everyone who has made 1 post will receive their badge? Essentially I'm going to copy the 1 Post code three times (with small edits here and there to make it work) so that when a user registers, and posts a single time, they will receive three badges to their account. I figured this was the only way to get around the lack of "Registration" badge(s).

6
Support / Re: Badge for registering
« on: April 08, 2014, 12:36:16 am »
This is something I am also looking in to.

I know that the basic badges, included with the mod, are coded to behave a certain way (ie: on 1000 posts, on 1 post etc) I am trying to hunt down that data so that I can alter some of the basic badges to behave the way I wish them to (ie: 3 different badges to be granted upon the 1st post).

7
Support / Re: Deleting Badges and starting from scratch
« on: April 07, 2014, 08:45:48 pm »
Thanks!

You can't remove the core ones nor the ones that you have added yourself. At least not through the interface. Will have to go into the database and pull them out manually. Having a DELETE option for custom badges might be a good idea in a future version.

8
Support / Re: Deleting Badges and starting from scratch
« on: April 07, 2014, 08:08:49 pm »
Badges in general.

I know how to delete the ones that users have earned.

I am putting the badge system together for custom badges only and don't want to wade through 8 pages of badges or a huge long master scroll list when awarding. I would like to clear them all out and add my own.

9
Support / Deleting Badges and starting from scratch
« on: April 07, 2014, 07:11:29 pm »
How does one delete badges out of the dbase and remove them from the master list entirely?

There is an option to ADD BADGE but I can't see one for REMOVE BADGE

10
Presales for Products / Three quick questions
« on: April 06, 2014, 05:14:55 pm »
Question #1: Does this work for 2.0.7?

Question #2: Can I easily add my own custom badges and award them manually?

Question #3: Can I also check/uncheck when and where the badges are displayed? ie: on a profile page but not in the signatures

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