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: 0
Guests: 205
Total: 205

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

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