[BETA] Medal System MOD [ Latest: 0.4.6 ]

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Huey
Registered User
Posts: 3
Joined: Wed Jul 21, 2004 8:37 am

Post by Huey »

double checked it. found the error. it was in the code that you are first told to find not the code you are told to replace.

Code: Select all

		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>
when it shouldve been

Code: Select all

		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
		  <td><b><span class="gen">{INTERESTS}</span></b></td>
		</tr>
odd that that was already changed. i thought it was strange at first but ignored it. i wonder how it got that way. oh well thanks
User avatar
DianaRae
Registered User
Posts: 163
Joined: Fri Mar 22, 2002 9:45 pm
Contact:

Post by DianaRae »

ycl6 wrote: Hi, the Admin part of this is done two weeks ago, and I am going to start with the frontend. Because I can only work on phpBB MODs during the weekends (working during weekdays :cry: ), it's going to be 1 ~2 weeks I guess.

~Mac


No problem! Looking forward to it and thanks for all of your hard work! :)
Diana Rae
~I was blonde in another life..that explains a LOT of things~
dawgs63
Registered User
Posts: 1
Joined: Thu Dec 04, 2003 4:36 pm

Post by dawgs63 »

ycI6 -

I was wondering how I would be able to change where the medals are displayed in the viewtopic. I would rather have them in the signature, rather than below their avatars. Could you tell me how I would go about doing this?
tm6tech
Registered User
Posts: 166
Joined: Mon Apr 14, 2003 1:51 pm

Post by tm6tech »

Great mod, but I'm getting an error that seems rather strange.

When I try to update the medal configuration, I get the following sql error:
Failed to update general configuration for site_desc

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'm just testing shit here' WHERE config_name = 'site_desc''

UPDATE phpbb_config SET config_value = 'i'm just testing shit here' WHERE config_name = 'site_desc'

Line : 63
File : /home/httpd/vhosts/titaniumarchives.com/httpdocs/newtestforum/admin/admin_medal_cfg.php


Any ideas?
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

tm6tech wrote:

Code: Select all

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'm just testing *beep* here' WHERE config_name = 'site_desc'' 

UPDATE phpbb_config SET config_value = 'i'm just testing *beep* here' WHERE config_name = 'site_desc'

Because you uses the ' sign. try avoiding it for the time being

~Mac
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

dawgs63 wrote: I was wondering how I would be able to change where the medals are displayed in the viewtopic. I would rather have them in the signature, rather than below their avatars.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/viewtopic_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
{postrow.POSTER_FROM}

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
<br />{postrow.POSTER_MEDAL_COUNT}<br />
		<!-- BEGIN medal -->
		<table border="0" cellspacing="0" cellpadding="5">
		<!-- BEGIN medal_row -->
		<tr align="left" valign="middle"> 
		  <!-- BEGIN medal_col -->
		  <td><img src="{postrow.medal.medal_row.medal_col.MEDAL_IMAGE}" border="0" alt="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" title="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" {postrow.medal.medal_row.medal_col.MEDAL_WIDTH} {postrow.medal.medal_row.medal_col.MEDAL_HEIGHT} /></a></td>
		  <!-- END medal_col -->
		</tr>
		<!-- END medal_row -->
		</table>
		<!-- END medal -->
This is the code that is relavant to viewtopic

POSTER_MEDAL_COUNT will display the medal number, and those other lines will draw a table to display your medals. Edit accordingly to suit your need

~Mac
tm6tech
Registered User
Posts: 166
Joined: Mon Apr 14, 2003 1:51 pm

Post by tm6tech »

oh! that's fixed it :)

thanks for the quick reply and thanks also for this great mod! I am going to have a lot of fun with it :)
User avatar
DianaRae
Registered User
Posts: 163
Joined: Fri Mar 22, 2002 9:45 pm
Contact:

Post by DianaRae »

DianaRae wrote:
ycl6 wrote:Hi, the Admin part of this is done two weeks ago, and I am going to start with the frontend. Because I can only work on phpBB MODs during the weekends (working during weekdays :cry: ), it's going to be 1 ~2 weeks I guess.

~Mac
Hey Mac! :) Any updates on this? :)
Diana Rae
~I was blonde in another life..that explains a LOT of things~
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

DianaRae wrote: Hey Mac! :) Any updates on this? :)

I wrote this last week :wink:

http://macphpbbmod.sourceforge.net/phpB ... =1081#1081

~Mac
User avatar
Shaftsbury
Registered User
Posts: 44
Joined: Mon Feb 24, 2003 8:16 am
Location: Alberta, Canada
Contact:

Post by Shaftsbury »

Is there any way I can have the Medal Moderators create the medals?
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

No, you need to assign a medal moderator to "moderate" a medal, not to have admin power within the medal system.

I'm now writing the guide for new & update installation, and also take screenshots in phpBB 2.0.10 (it was first developed on 2.0.6, and those screenshots have been used ever since...). So without further delay, Medal System 2.2.0 will be released tomorrow 8)

~Mac
User avatar
Shaftsbury
Registered User
Posts: 44
Joined: Mon Feb 24, 2003 8:16 am
Location: Alberta, Canada
Contact:

Post by Shaftsbury »

Ok thanks, I'll check back for the update.
deja vu
Registered User
Posts: 3
Joined: Sun Aug 01, 2004 10:46 pm

Medals System 2.1.0 HELP Please!

Post by deja vu »

I have this MOD installed and running correctly. I can see the Medals link, add, remove and award medals.

But when trying to change the configuration in Admin to 'Allow Medal Display in Viewtopic' I recieve this error -

Code: Select all

Failed to update general configuration for EM_ftp_pass 

DEBUG MODE 

SQL Error : 1064 You have an error in your SQL syntax near 'EM_ftp_pass'' at line 2 

UPDATE phpbb_config SET config_value = '—RƒËgmFÔñ³cn'' WHERE config_name = 'EM_ftp_pass' 

Line : 63 
File : c:\phpdev\www\public\forum\admin\admin_medal_cfg.php
I have Easy_Mod installed, but did not use it to install this MOD as it would not allow it.

The wierdest thing about this error is the part '—RƒËgmFÔñ³cn'.

Can anyone help with this dilema?
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

Hi, this will be fixed in the newer version of Medal System MOD 2.2.0. Actually I've already fix this weeks ago :oops: and going to release it today :D

Howevery I need to point out that, this 'EM_ftp_pass' bug isn't related to Medal System at all. This error occur in admin_medal_cfg.php is because it is reading every value in phpbb_config TABLE (not just those related to Medal System MOD). So, in the 2.2.0, admin_medal_cfg.php is going to get, read & update values related to this MOD ONLY.

This bug you mentioned is known issue with EasyMOD

Plz read: http://www.phpbb.com/phpBB/viewtopic.ph ... 21#1144321

~Mac
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

Hi all,

Medal System 2.2.0 has been released for testing. Please let me know if everything goes well. And please remember to read the installation guide carefully 8)

~Mac
Post Reply

Return to “[2.0.x] MODs in Development”