[ABD] Medal System MOD for phpBB3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Braeden1992
Registered User
Posts: 1
Joined: Tue Dec 02, 2008 3:59 am

Re: [Beta] Medal System MOD for phpBB3

Post by Braeden1992 »

vert5 wrote:Hello gremlinn!

This mod is great. It work correctly approx. 6 moths. But here we go, I run into small bug. I want my moderator to award the medals. There is a problem. I allow awarding for moderators(In user presmissions-> Misc) but they have no access to "Award Medal" page. There is still: you have no permissions to access this page

I use Medal mod version: 0.11.1

Thank you very much for response.
Has there been any progress made on this issue? I posted this on the test forums and have gotten no response as of yet:
This is the exact same problem I am faced with currently. I have tried looking in the SQL but no luck. Any updates on this problem would definitely be appreciated!

P.S. I have tried putting all permissions for ACP, UCP, and MCP to "YES" for a non founder but this still hasn't worked. If I make someone a founder it works but I don't want to be giving those permissions to everyone.

Regards,
Braeden
chusk
Registered User
Posts: 6
Joined: Wed Sep 22, 2010 5:06 pm

Re: [Beta] Medal System MOD for phpBB3

Post by chusk »

Im having the same problem. Would be fine if someone could have a look.
User avatar
Praetorian Guard
Registered User
Posts: 789
Joined: Wed Oct 07, 2009 12:42 am

Re: [Beta] Medal System MOD for phpBB3

Post by Praetorian Guard »

I believe that I have version 0.11.0, how would I verify since I do not see a version number on the .mod tab? Also, I looked at the xml sheet for upgrade and need some help. What exactly do I need to replace (files and or code changes) for the upgrade? Finally, what does this mod have that the 0.11.0 version does not? Thanks!
prather6
Registered User
Posts: 17
Joined: Sat Sep 25, 2010 7:22 pm

Re: [Beta] Medal System MOD for phpBB3

Post by prather6 »

Every time I place this part of the code in
$lang = array_merge($lang, array(
// Medals System MOD for phpBB3
'MEDALS_VIEW' => 'Medals',
'MEDALS_VIEW_EXPLAIN' => 'View Medals',
));
Right Before ?>

It knocks my board off line can anyone explain to me why this is happening or what im doing wrong..
wolfman24
Registered User
Posts: 387
Joined: Tue Mar 07, 2006 12:07 pm

Re: [Beta] Medal System MOD for phpBB3

Post by wolfman24 »

What do you mean by knocks my board off line can you explain what is happening? An error message or so would be fine, otherwise how should we help?
User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by madmartyau »

prather6 wrote:Every time I place this part of the code in
$lang = array_merge($lang, array(
// Medals System MOD for phpBB3
'MEDALS_VIEW' => 'Medals',
'MEDALS_VIEW_EXPLAIN' => 'View Medals',
));
Right Before ?>

It knocks my board off line can anyone explain to me why this is happening or what im doing wrong..
My guess is you're using notepad to do the edit. Notepad will save the file in an incorrect format.
It needs to be saved as UTF-8 without BOM. You'll need to use an editor like Notepad++ otherwise you will get a white screen when you go to your forum.
Call me Grumpy.
User avatar
TatianaK
Registered User
Posts: 1
Joined: Sun Sep 26, 2010 8:13 pm
Location: Cyprus
Name: Tatiana K
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by TatianaK »

I've solved the issue with you have no permissions to access this page for not-founders.

Open medals.php
Find all

Code: Select all

if ($user->data['user_type'] != USER_FOUNDER ||
Replace with

Code: Select all

if ($user->data['user_type'] != USER_FOUNDER &&
Othervise it demands both being the founder and having the permissions to award medals.
I'm clever and beautiful.
User avatar
agglax
Registered User
Posts: 13
Joined: Tue May 19, 2009 11:00 am
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by agglax »

up plz
agglax wrote:hi all ,

Should someone tell me how to display medals with another page, like for arcade mod for example :) pls ?

i would display medals under champion avatar with arcade_mod by jeff russo.

Thx
jimbursch
Registered User
Posts: 3
Joined: Sun Oct 03, 2010 7:11 pm

Re: [Beta] Medal System MOD for phpBB3

Post by jimbursch »

I found the problem with permissions when I try to go to the medals control panel.

The problem is that the link to the medals control panel doesn't include the session id (sid=), so when I visit the page, it thinks I am anonymous. The session id has to be carried in the url.

UPDATE:

I was wrong.

There is nothing wrong with the MSM code. The problem was that I had the wrong Cookie Domain under the Cookie Settings. I had originally installed phpbb under a different domain, and I didn't update the cookie domain in phpbb admin. Thus, MSM couldn't find the correct session cookie.

So, if you are having permissions problems with MSM, check the Cookie Domain under Cookie Settings and make sure it is correct.
prather6
Registered User
Posts: 17
Joined: Sat Sep 25, 2010 7:22 pm

Re: [Beta] Medal System MOD for phpBB3

Post by prather6 »

ok I got it to were I can install but when I do I get this when I visit the medals managment. Can anyone give me a hint on what Im doing wrong.

I used auto mod then I changed the templates so not sure why this is happening


General Error
SQL ERROR [ mysqli ]

Table 'hooligan_hooligan.MEDALS_TABLE' doesn't exist [1146]

SQL

SELECT * FROM MEDALS_TABLE ORDER BY order_id ASC

BACKTRACE


FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/acp/acp_medals.php
LINE: 155
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_medals->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by madmartyau »

prather6 wrote:ok I got it to were I can install but when I do I get this when I visit the medals managment. Can anyone give me a hint on what Im doing wrong.

I used auto mod then I changed the templates so not sure why this is happening


General Error
SQL ERROR [ mysqli ]

Table 'hooligan_hooligan.MEDALS_TABLE' doesn't exist [1146]

SQL

SELECT * FROM MEDALS_TABLE ORDER BY order_id ASC

BACKTRACE


FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/acp/acp_medals.php
LINE: 155
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_medals->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
The tables haven't been defined.
OPEN includes/constants.php
FIND

Code: Select all

// Additional tables
ADD AFTER

Code: Select all

define('MEDALS_TABLE',                $table_prefix . 'medals');
define('MEDALS_AWARDED_TABLE',            $table_prefix . 'medals_awarded');
define('MEDALS_CATS_TABLE',            $table_prefix . 'medals_cats');
Call me Grumpy.
conan_troutman
Registered User
Posts: 222
Joined: Mon Jul 19, 2010 11:06 am

Re: [Beta] Medal System MOD for phpBB3

Post by conan_troutman »

I have a small suggestion... is there a way to differentiate between ribbons and medals

I would love to see an ACP add on that allows me to select where to show the medals...

I would like medals to show in the sig but ribbons to show in the posters info area

my idea would be that ribbons would be awarded monthly and medals yearly... ribbons would be removed medals would not...

just a thought... not sure how easy it would be to do such a thing?
prather6
Registered User
Posts: 17
Joined: Sat Sep 25, 2010 7:22 pm

Re: [Beta] Medal System MOD for phpBB3

Post by prather6 »

Thanks for the help. I'm still getting one more error not sure why..

template->_tpl_load_file(): File ./styles/Prospace/template/medal_memberlist_view.html does not exist or is empty
I checked the members list view template and I seem to have the code in:
<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}:</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN and U_CAN_AWARD_MEDALS --><dt>&nbsp;</dt> <dd><a href="{U_CAN_AWARD_MEDALS}"><strong>{L_MEDAL_CP}</strong></a></dd><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN and U_NOMINATE --><dt>&nbsp;</dt> <dd><a href="{U_NOMINATE}"><strong>{L_NOMINATE}</strong></a></dd><!-- ENDIF -->
<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields -->

So I dont understand why im still getting this error.

I am placing all the coding using UTF-8 without BOM..
prather6
Registered User
Posts: 17
Joined: Sat Sep 25, 2010 7:22 pm

Re: [Beta] Medal System MOD for phpBB3

Post by prather6 »

Does anyone know what I am missing? After I click on a members name to view their profile I end up with this error.




I have checked and rechecked the installment and still cannot find what I am missing..

Code: Select all

http://hooligansunited.net/memberlist.php?style=28&mode=viewprofile&u=54
User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by madmartyau »

prather6 wrote:Does anyone know what I am missing? After I click on a members name to view their profile I end up with this error.




I have checked and rechecked the installment and still cannot find what I am missing..

Code: Select all

http://hooligansunited.net/memberlist.php?style=28&mode=viewprofile&u=54
What error?
Call me Grumpy.
Locked

Return to “[3.0.x] Abandoned MODs”