[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.
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

It doesnt work with Firefox, which is a shame, as most of my users use that browser. :cry:

Ive been looking at the toggle code to display it, but im not smart enough to figure out why firefox doesnt like it. :oops:

Anybody else had any luck?
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

I was going to try to use the Topic Calendar's toggle script to see if it would work. One of my members noticed the same thing. I use Avant which is a wrapper for the IE engine and therefor doesn't have a problem with it.

I will let you know if this works (unless someone else beats me with this test and posts their results).
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

Thanks mate, your a champ! :D
BrooklynFUNK
Registered User
Posts: 7
Joined: Fri Mar 11, 2005 11:02 pm

Post by BrooklynFUNK »

Does Medal Mod work with the latest 2.0.14 version of phpBB?

I'm sure I've installed Medal Mod correctly (I did it three times on moded and on clean phpBB installation), but there's no Medal Admin options in administrator control panel.

There is 'Medals' options on index page, but nothing related to Medal displays in ACP.

And one more thing: Did anyone notice spelling mistake in one of the SQL commands during instalation?

#
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_config` VALUES ('allow_medal_dispaly', '0');

It says: 'dispaly' instead of 'display'.
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

yep change it. and theres spelling errors in the install too.

you can see it working on 2.0.1.4 here, as long as you dont ude firfox!

www.junglewraiths.net

Also, i installed a quick reply mod today, and the java toggle button for it works fine in firefox, as does the calendar one, so this should be fixable somehow! :P
pharaohseti
Registered User
Posts: 2
Joined: Sun Apr 24, 2005 11:51 pm

Problem

Post by pharaohseti »

Hi i installed your mod, but after installation the topics slipped down for the numbers of replies to messages. For example if the message has 14 replies, the first 14 lines are spaces, then the message starts.

I searched but i couldn't find where to change in the code.

I took a screen shot and sent you. Thanks for your help.

Image

I am waiting for your replies.
Bye.
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

its a simple error in the code you added for the viewtopic.tpl

i cant remember exactly, but the answer is in these pages somewhere. :P
pharaohseti
Registered User
Posts: 2
Joined: Sun Apr 24, 2005 11:51 pm

Post by pharaohseti »

thanx.
i made a step by step roll-back and solved problem.
the solution is as you said i that page.

bye
BrooklynFUNK
Registered User
Posts: 7
Joined: Fri Mar 11, 2005 11:02 pm

Post by BrooklynFUNK »

Kinsman wrote: you can see it working on 2.0.1.4 here, as long as you dont ude firfox!
www.junglewraiths.net


If it works on 2.0.14, wth am I dong wrong??? I don't use firefox.

I don't get 'Medal Admin' options in my ACP, can anyone help???
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

Try this to get the toggle to work with firefox.

Code: Select all

############################################################## 
## MOD Title:	Medals with PCP toggle.js
## MOD Author:	DragonFire < dragonfire@dfsquad.net > (Gen.DF-DFS) http://www.dfsquad.net/
## MOD Description:
##		This mod changes the Display Medals button to use the toggle_display.js that
##              comes with topic_calendar by Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
##              The toggle_display.js for topic_calendar works with Firefox web browsers.
##
## MOD Version: 1.0.0
## 
## Installation Level:	Easy
## Installation Time:	~5 Minutes
## Files To Edit:
##		profilcp/profilcp_medals.php
##		templates/subSilver/profilcp/profil_medals_body.tpl
##
## Included Files: n/a
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##
##		You will need to get the toggle_display.js file from the Topic Calendar Mod
##		and put it in the includes file.  If you don't already have it that is.
##	
## 
############################################################## 
## MOD History: 
## 
##   2005-05-17 - Version 1.0.0
##      - first public release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
profilcp/profilcp_medals.php
#
#-----[ FIND ]------------------------------------------------
#
                        'MEDAL_BUTTON' => '<button onclick="ToggleBox(\'toggle_medal\')">'.$lang['Medal_details'].'</button>')
#
#-----[ BEFORE, ADD ]------------------------------------------
#
                        /*
#
#-----[ AFTER, ADD ]------------------------------------------
#
                        */
                        'MEDAL_BUTTON' => '<button onclick="hdr_toggle(\'toggle_medal\',\'medal_open_close\')">'.$lang['Medal_details'].'</button>')
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profilcp/profil_medals_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<script language="Javascript" type="text/javascript" src="templates/toggle.js"></script>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
                        <!--
#
#-----[ AFTER, ADD ]------------------------------------------
#
                        -->
<script language="Javascript" type="text/javascript" src="includes/toggle_display.js"></script>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
FYI: The code block wraps some lines.
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

Thankyou very much, works great! :D
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

NP

Unfortunately, it doesn't do the scrolling action. I kinda liked that.
BrooklynFUNK
Registered User
Posts: 7
Joined: Fri Mar 11, 2005 11:02 pm

Post by BrooklynFUNK »

Am I stupid or what ? Were's the 'profilcp/profilcp_medals.php' file???
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

haha, no, your not stupid, you obviously dont have the profile control panel mod, i have no time now (late for work), but ill come back and tell you which files you need. :D
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman »

ok, the first one is includes/usercp_viewprofile.php , and the second one is
templates/YOUR TEMPLATE/profile_view_body.tpl.

These are the two files responsible for viewing your profile, so just make the changes there, and voila, firefox will work! :D
Post Reply

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