Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12349
Latest: SUCCESSForum
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 40048
Total Topics: 7051
Most Online Today: 76
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 35
Total: 36

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

Pages: [1] 2 3 ... 6
1
Support / Re: bug on template change
« on: May 20, 2018, 02:59:49 pm »
yep, fixed. Thanks

2
Support / bug on template change
« on: May 20, 2018, 01:21:59 pm »
I changed my template and the badges settings disappeared from the admin.

Any thoughts?

3
Support / Re: Badge block
« on: May 07, 2018, 01:08:01 pm »
Updated code

It's missing the images

4
Support / Re: Badge block
« on: May 07, 2018, 12:39:44 pm »
Where are you putting that code?
It is checking to see if the boardindex is enabled to display the badges you can take out that check and see if it runs

Sorry, it's a simpleportal block.

I removed the boardindex if... still nothing

Code: [Select]
//Start Badge Awards

global $modSettings, $boardurl, $smcFunc;
if (!empty($modSettings['badgeawards_enable']))
{
if (empty($modSettings['badgeawards_boardnumdisplay']))
$modSettings['badgeawards_boardnumdisplay'] = 10;

if (empty($modSettings['badgeawards_url']))
$modSettings['badgeawards_url'] = $boardurl . '/badges/';

$dbresult = $smcFunc['db_query']('', "SELECT
b.id_badge, b.title, b.image, b.enabled,
l.ID_MEMBER, l.date, l.id_log, m.real_name 
FROM ({db_prefix}badgeawards_badges as b, {db_prefix}badgeawards_badge_log as l)
LEFT JOIN {db_prefix}members as m ON (m.ID_MEMBER = l.ID_MEMBER)
WHERE l.id_badge = b.id_badge
ORDER BY l.id_log DESC
LIMIT " . $modSettings['badgeawards_boardnumdisplay']);

$context['badge_recentindex'] = array();
while($row = mysql_fetch_assoc($dbresult))
{
$context['badge_recentindex'][] = $row;

}
mysql_free_result($dbresult);
}


foreach ($context['badge_recentindex'] as $pic)
{


echo '<a href="' . $scripturl . '?action=badgeawards;sa=badges;u=' . $pic['ID_MEMBER'] . '">' . $pic['title'] . '</a> ' .   $txt['badges_to'], ' ', ($pic['real_name'] != '' ?  '<a href="' . $scripturl . '?action=profile;u=' . $pic['ID_MEMBER'] . '">' . $pic['real_name'] . '</a>' : '') . '
', timeformat($pic['date']), '<br />';


}

//END Badge Awards

5
Support / Re: Badge block
« on: May 07, 2018, 12:23:45 pm »
Some example code
Code: [Select]
//Start Badge Awards

global $modSettings, $boardurl, $smcFunc;
if ($modSettings['badgeawards_showboardindex'] == true && !empty($modSettings['badgeawards_enable']))
{
if (empty($modSettings['badgeawards_boardnumdisplay']))
$modSettings['badgeawards_boardnumdisplay'] = 10;

if (empty($modSettings['badgeawards_url']))
$modSettings['badgeawards_url'] = $boardurl . '/badges/';

$dbresult = $smcFunc['db_query']('', "SELECT
b.id_badge, b.title, b.image, b.enabled,
l.ID_MEMBER, l.date, l.id_log, m.real_name 
FROM ({db_prefix}badgeawards_badges as b, {db_prefix}badgeawards_badge_log as l)
LEFT JOIN {db_prefix}members as m ON (m.ID_MEMBER = l.ID_MEMBER)
WHERE l.id_badge = b.id_badge
ORDER BY l.id_log DESC
LIMIT " . $modSettings['badgeawards_boardnumdisplay']);

$context['badge_recentindex'] = array();
while($row = mysql_fetch_assoc($dbresult))
{
$context['badge_recentindex'][] = $row;

}
mysql_free_result($dbresult);
}


foreach ($context['badge_recentindex'] as $pic)
{


echo '<a href="' . $scripturl . '?action=badgeawards;sa=badges;u=' . $pic['ID_MEMBER'] . '">' . $pic['title'] . '</a> ' .   $txt['badges_to'], ' ', ($pic['real_name'] != '' ?  '<a href="' . $scripturl . '?action=profile;u=' . $pic['ID_MEMBER'] . '">' . $pic['real_name'] . '</a>' : '') . '
', timeformat($pic['date']), '<br />';


}

//END Badge Awards


This is not working for me. Anything that needs to be updated?

6
Support / Re: badge system messing with other mods
« on: May 06, 2018, 04:30:51 pm »
You can only see attachments if you part of the customer group found in the licenses area on top of the page.

Add my license, it is now there, but it gives this error.

"DATABASE ERROR
Please try again. If you come back to this error screen, report the error to an administrator."

Also the link to download again the product is not working...

7
Support / Re: Custom Badges
« on: May 06, 2018, 04:24:05 pm »
Done :D on .svg so it can be easily ported to any size for format.

Attached to the post...

8
Support / Re: badge system messing with other mods
« on: May 06, 2018, 04:10:05 pm »
Also, just posted an attachment here and it says: "[ You are not authorized to view attachments ]"

9
Support / badge system messing with other mods
« on: May 06, 2018, 04:09:06 pm »
So, just installed badge mod. It messed up with the alerts mod from the competition... :D

Basically it replaced the members name on the alerts mod. :/

[ Guests cannot view attachments ]

10
Support / Re: Custom Badges
« on: May 06, 2018, 04:05:00 pm »
Hi there, it would be nice to have badges for some of your other popular mods, like trader and classifieds.

For instance:
good trader = > 10 positive feedbacks
Active seller = > 10 ads posted

11
Support / Re: custom menu detecting the current action
« on: February 04, 2018, 01:14:34 pm »
I would echo the output of $current_action  to see what it is returning.

How can I do that?

12
Support / Re: custom menu detecting the current action
« on: February 04, 2018, 01:07:48 pm »
Is  $current_action a global set in the same function you are in?
You can also do with $_REQUEST['action']  to check the action name.

I added $current_action to the global set, now it identifies the action :)

Code: [Select]
' , $current_action == 'classifieds' ? 'current' : 'not' , '
this is not retrieving 'current' though, anything wrong here?

13
Support / custom menu detecting the current action
« on: February 04, 2018, 12:34:04 pm »
So, I'm trying to build a menu, not using smf menus. Basically I'm trying to get the active action, but with no luck. What am I doing wrong?

Code: [Select]
<li>
<a class="' , $current_action == 'SPortal' ? 'active' : 'not-active' , '" href="' , $scripturl , '">Home</a>
</li>
<li>
<a class="' , $current_action == 'classifieds' ? 'active' : 'not-active' , '"href="' , $scripturl , '?action=classifieds">Marketplace</a>
</li>

In this example, I'm trying to get the current actions for simpleportal and for the classifieds mod.

14
Latest Mods / Re: [Mod]Recent Forum Topics Extended
« on: January 29, 2018, 01:42:52 pm »
It shows topics from hidden forums? I saw you asked a similar question on simpleportal

the simpleportal mod provides this functionality but without number of topics/pagination. This one provides number of topics/pagination (and more options...).

which basically allows me to instead having a forum based on categories, It will be based on a feed of the most updated topics... Which I think it's pretty cool.

Basically allows you to do something like https://discuss.flarum.org/

The mod has the option to hide topics from certain boards, but for some reason I don't think it's working properly

15
Latest Mods / Re: [Mod]Recent Forum Topics Extended
« on: January 29, 2018, 01:28:15 pm »
well, it's a very useful mod and it's abandoned.

improvements:
- choose limit of topics and topics per page

bugs:
- display topics from hidden categories

Pages: [1] 2 3 ... 6

+- Recent Topics

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Powered by EzPortal