Simple Awards System

Started by Windy, November 14, 2006, 09:01:54 PM

Previous topic - Next topic

Schachazubi

That's easy.

The System didn't find in your file the code lines exactly to 100%.

So it gives out the Error.

You have to search the right place for the code by your own and to edit the file manually. Then it will works.

Greetings, Schachazubi

Homage

I installed this mod into my forum!

Rain Forest

I am not sure if support is still on but I wonder how to remove ' Awards:' (as in text) from Topic view.

I tried to remove this from Display.php but the ' : ' was still there..

'title' => 'Awards',


if(!empty($modSettings['award_show_display']) && !empty($memberContext[$message['id_member']]['awards']) && empty($memberContext[$message['id_member']]['custom_fields']['awards']))
{
$award_str = '';
$award_limit = 0;

foreach($memberContext[$message['id_member']]['awards'] as $award)
{
$award_str .= '<img alt="' . stripslashes($award['title']) . '" src="' . $boardurl . '/awards/' . stripslashes($award['fileName']) . '" title="' . stripslashes($award['title']) . '" />';

$award_limit++;

if(!empty($modSettings['award_limit']) && $award_limit == $modSettings['award_limit'])
{
if($award != end($memberContext[$message['id_member']]['awards']))
$award_str .= '<a href="' . $scripturl . '?action=profile;area=awards;u=' . $message['id_member'] . '">...</a>';
break;
}
}

$memberContext[$message['id_member']]['custom_fields']['awards'] = array(
'title' => 'Awards',
'value' => '<span class="awards">' . $award_str . '</span>',
'placement' => false,
);
}

Kindred

well, you can not just delete the TITLE part of that...   as a matter of fact, by doing that, I would bet that your system is generating errors on every page load of a thread...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Rain Forest

Yes. as it says in topic view: ' Awards: (image) ' I wish it was the image as a standalone without the ' Awards: ' text :)

0Connors

Nice work, and it's working fine in 2.0.9, just need a little manual modification !

Thank you !
Site : www.pafteam.com

Projet : www.pafteam.com/beta-test/maj-site/

Version SMF : 2.0.9

0Connors

Hi all,

It's me again... I have question :

Can we give a award given to another user ?

Thank you,
Site : www.pafteam.com

Projet : www.pafteam.com/beta-test/maj-site/

Version SMF : 2.0.9

Kindred

no idea....   we are not the authors of that mod
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

0Connors

Ok, thank you for this answer.  ;)
Site : www.pafteam.com

Projet : www.pafteam.com/beta-test/maj-site/

Version SMF : 2.0.9

brynn

#469
Just fyi -- I tried to install on SMF 2.0.10 with Tiny Portal 1.107.  But error message says "either corrupt or not compatible with version".

Too bad!

Edit
However, I sure would appreciate if this could be updated.  I know there are some other mods for giving "thanks", "karma", and I think I saw an "advanced award system".  But I just need a simple system, and this one looks like it would be perfect - if I could only install it.

Or -- I've searched the mod site, but maybe I missed something.  If someone could point me to a simple award system for current versions, would be much appreciated.

Thanks   :)

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

brynn

Thanks for the info Kindred.  I'll read and try it.

ariescapes

#472
We decided to not use this MOD after some issues with the DB. And now I am getting this error:

Apply Filter: Only show the error messages of this
URL http://www.*****.com/index.php?topic=688.0
Apply Filter: Only show the errors with the same message
8: Undefined index: can_view_profile
Apply Filter: Only show the errors from this file
File: /home/*****/*****/Themes/default/Display.template.php
Line: 380


Quote// Is this already an article?
   $request = $smcFunc['db_query']('','
380      SELECT id_message
      FROM {db_prefix}sp_articles
      WHERE id_message = {int:message}',
      array(
         'message' => $context['topic_first_message'],
      )
   );


it's weird. Anyone with any suggestions?

The lines this works around is here:
Quote$memberContext[$message['id_member']]['is_guest'] = true;
WHERE MOD CODE SITS
      $memberContext[$message['id_member']]['can_see_warning'] = !isset($context['disabled_fields']['warning_status']) && $memberContext[$message

['id_member']]['warning_status'] && ($context['user']['can_mod'] || (!$user_info['is_guest'] && !empty($modSettings['warning_show']) && ($modSettings

['warning_show'] > 1 || $message['id_member'] == $user_info['id'])));
   }

MythicalMonkey

Is there a way to get this mod to work on 2.0.9 This is one of the big mods i want.

qf i Leno

I have an error, could someone help?

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE = MYISAM' at line 9
File: /home/sites/5a/f/f847ac7a67/public_html/Packages/temp/AwardSystemdb2.php
Line: 172

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.15, while your database is at version 2.0.12. The above error might possibly go away if you execute the latest version of upgrade.php.





I am running Ver 2.0.15, but emulating ver 2.0 rc2 (if I do not it says incompatible)

When I install, It fails, it cannot find a certain line to replace which is fine, I can do that myself, but once I click install, it gives the above error, and I'm not too sure what to do... I can't seem to find the upgrade.php?

Kindred

Thins for RC versions aren't unlikely to correctly work on the full release.

Additionally, smf does not officially support mariadb
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

qf i Leno

Quote from: Kindred on May 02, 2018, 10:35:36 PM
Thins for RC versions aren't unlikely to correctly work on the full release.

Additionally, smf does not officially support mariadb

I managed to get it working :)

thanks anyhoo!

Strannik64


shadav

Quote from: Strannik64 on January 30, 2022, 03:21:25 AMupgrade to 2.1 RC4 please
seeing as the last update to the mod was from 2009 for smf 2.0 rc2
the last time the mod author logged in was 2011
and the last post in this thread was from 2018

I highly doubt this will be updated for 2.1 rc4 or even 2.1 when it goes stable
*I mean it's possible, but kind of doubt it*

WolfJ

I know this is a shot in the dark given how outdated this mod is and how the world has moved on a lot but I've spent hours trying to find a way to install this mod but it's an issue with something in the database file I think

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE = MYISAM' at line 9
File: /home/wolfj/public_html/Packages/temp/AwardSystemdb2.php
Line: 172

That's the error and this is the part of the file

$smcFunc['db_query']('', '
    CREATE TABLE IF NOT EXISTS {db_prefix}awards (
        ID_AWARD int(10) unsigned NOT NULL auto_increment,
        ID_AWARDED_MEMBER mediumint(8) unsigned NOT NULL default \'0\',
        title tinytext NOT NULL,
        givenDate int(10) unsigned NOT NULL default \'0\',
        ID_MEMBER mediumint(8) unsigned NOT NULL default \'0\',
          memberName tinytext NOT NULL,
          fileName tinytext NOT NULL,
      PRIMARY KEY (ID_AWARD)) TYPE = MYISAM', array());

I'm ripping my hair out trying to understand this. Again I know this is horribly out of date but I'm desperate. I've seen other people seem to get this working but they didn't post how. Does anyone have a clue cause I'm dumb?

Thanks

Chewing on Cyanide


Advertisement: