Page 28 of 65

Posted: Wed Jul 20, 2005 7:57 pm
by KI
Hi guys,

I installed this mod (v2.2.2) on an fresh phpbb 2.0.17 with easymod v0.2.1a. Of cource I have done alle databse changes as well. So far so good.
At first I got the error described a few posts ago: "left frame of Admin CP is blank."
So I followed the explanation of Ice Dead and *zack*: a nice Admin CP appears. Indeed I don't understand the difference between.

Code: Select all

function get_info($mode, $id)
and

Code: Select all

"function get_info($mode, $id)";
Furthermore I didn't get the fix for this problem:

Code: Select all

Wrong mode for generating select list

DEBUG MODE

Line : 87
File : /home/bacchus/users/icedead/icedead.iphpbb.de/www/admin/admin_medal.php
ycl6, you talked about another mod having the same function name?
As I have no mods installed, but easymod, its starnge to me...

Do you guys have a smashing solution to my problems?
>I just want to get this mod work properly! Or should I fall back to version 2.01?

Thanks
-KI

Posted: Thu Jul 21, 2005 12:01 pm
by Gremlinn
I too have this error in the ACP. I changed the name of the function and it still gave me the error (of course with the new name).

Left Side Error Message:
Fatal error: Cannot redeclare get_info() in \PATH\phpBB2\admin\admin_medal.php on line 68

Posted: Thu Jul 28, 2005 5:40 pm
by Sgt_Sack
SgtSack wrote: Ok, now to my question...
I have a PHPNUKE site and I am trying to get the Medals mod to work correctly. I have found and fixed many issues related to Nuke and I understand this mod was designed for PHPBB so I dont know if you can help but I have to ask.

I have everything working using version 2.2.2. Many things that need attention when using nuke. Im not sure of all the fixes but I feel I am fairly literate in PHP so I was able to fix most of them. My issue is I can not access the Medal Control Panel from medals.php. I have a list (one right now, since it isnt working proper) of medals in the Forums. The link just takes me to the main site page. I made myself the moderator of a medal and I am trying to add people to the Users List who deserve that medal. I have the Medal Name, Description, Medal List and Medal Moderator (me) displayed the way it should. I have loaded every version and unloaded, testing out different versions of this mod. 2.2.2 uses the security features I like to to use.

How can I fix the Medal Control Panel link to gain access to the control panel? I would like to add users but can't. I get this error at the top of the page... Code:

Code: Select all

Warning: Missing argument 3 for session_pagestart() in /home/XXXXX/public_html/includes/sessions.php on line 233 
Info:
PHPNuke 7.6
PHPBB Version 2.0.10


Ok, I finally got this working... As far as the:

Code: Select all

Warning: Missing argument 3 for session_pagestart() in /home/XXXXX/public_html/includes/sessions.php on line 233 

I found that I needed to add a $nukeuser to medals.php and error went away

Code: Select all

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_MEDALS, $nukeuser);
init_userprefs($userdata);
//
// End session management
And as far as the medals control panel goes this part really had me stumped. here is the code from the medals_body.tpl:

Code: Select all

<!-- BEGIN switch_mod_option --> 
            <span class="gensmall"><a href="{catrow.medals.U_MEDAL_CP}" class="gen">{L_LINK_TO_CP}</a></span> 
         <!-- END switch_mod_option --> 
Now all seems to work fine...

Now looking for some cool WW2 medals...

Posted: Thu Jul 28, 2005 6:34 pm
by songdove
I have it working, but the pcp addon entries aren't showing in my pcp area. Just a horizontal line where they should be. And that's after uploading the two pcp files and adding the two lang files to the lang pcp extends file. Otherwise the mod does work if I don't bother with anything showing in the pcp.

Posted: Thu Jul 28, 2005 10:31 pm
by KI
KI wrote: [...]

Furthermore I didn't get the fix for this problem:

Code: Select all

Wrong mode for generating select list

DEBUG MODE

Line : 87
File : /home/bacchus/users/icedead/icedead.iphpbb.de/www/admin/admin_medal.php
ycl6, you talked about another mod having the same function name?
As I have no mods installed, but easymod, its starnge to me...

Do you guys have a smashing solution to my problems?
>I just want to get this mod work properly! Or should I fall back to version 2.01?

Thanks
-KI

I still didn't get it working! :evil:
So many of you get it going. Could you please tell me, what to do? :)




By the way. I read in another forum the fix for the "count problem":

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
medals.php
#
#-----[ FIND ]------------------------------------------
#
        //
        // Should we display this category/medal set?
        //
        $display_medal = false;
        for($k = 0; $k < $total_categories; $k++)


#
#-----[ Replace ]------------------------------------------
#
        //
        // Should we display this category/medal set?
        //
        $display_medal = false;
        for($k = 0; $k <= $total_categories; $k++)

Posted: Fri Jul 29, 2005 3:48 am
by Sgt_Sack
I don't know much about how your root directory is set but this line looks interesting to me...

Code: Select all

File : /home/bacchus/users/icedead/icedead.iphpbb.de/www/admin/admin_medal.php
I would think it should look like...

Code: Select all

File : /home/bacchus/users/icedead/www/admin/admin_medal.php
I may be wrong, just an observation...

Posted: Sat Jul 30, 2005 2:02 am
by rAdic
Hi When I go to install it everything goes ok until i get this messages:


SQL-query:

INSERT INTO `phpbb_config`
VALUES (

'allow_medal_display', '0'
)
MySQL said:

#1136 - Column count doesn't match value count at row 1

Posted: Sat Jul 30, 2005 9:54 am
by KI
Sgt_Sack wrote:

Code: Select all

File : /home/bacchus/users/icedead/www/admin/admin_medal.php
I may be wrong, just an observation...

Thanks for your answer.
I just copied the error message of icedead.
Mine looks like this:

Code: Select all

Wrong mode for generating select list

DEBUG MODE

Line : 87
File : admin_medal.php
Maybe I have done anything wrong to fix problem "left frame of Admin CP is blank"? Help :)

@rAdic
Which of phphbb do you use and which version of this mod?
The SQL stuff works for me...

Maybe try to add this step by step in phphmyadmin.

Posted: Mon Aug 01, 2005 11:42 am
by Gremlinn
rAdic: I would have to guess that you have the Category Heirarchy mod installed. If so, you will have to add another ,0

Code: Select all

INSERT INTO `phpbb_config` 
VALUES ( 

'allow_medal_display', '0', '0' 
) 

Posted: Fri Aug 05, 2005 11:11 am
by KI
That is really too bad, nobody can help me with version 2.2.2. :(
I mean, there are people who get it going and could be a help.

Nevertheless I'm using version 2.1.0 and wrote a german translation.

Here we go:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_german/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
#
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
// Medal MOD
$lang['Medal_Control_Panel'] = 'Medaillen&ndash;Kontrollsystem';
$lang['Medals'] = 'Medaillen';
$lang['View_More'] = 'mehr...';
$lang['Medal_amount'] = 'Anzahl: ';
$lang['Medal_Information'] = 'Medaillen&ndash;Informationen';
$lang['Medal_name'] = 'Medaillenname';
$lang['Medal_description'] = 'Medaillen&ndash;Beschreibung';
$lang['Medal_image'] = 'Medaillen&ndash;Bild';
$lang['Medal_details'] = 'Details';
$lang['Medal_reason'] = 'Begründung';
$lang['Medal_reason_explain'] = 'Du kannst hier eine Begründung angeben, warum dieser Benutzer diese Medaille verliehen bekommt<br />Das ist aber nicht notwendig';
$lang['Medal_no_reason'] = '<i>Es wurde keine Begründung angegeben</i>';
$lang['Medal_time'] = 'Zeit der Verleihung';
$lang['Medal_moderator'] = 'Medaillen&ndash;Moderator';
$lang['No_medal_mod'] = 'Kein Medaillen&ndash;Moderator';
$lang['Medal_userlist'] = 'Benutzerliste';
$lang['Medal_Members'] = 'Benutzer, die diese Medaille haben';
$lang['Medal_Members_explain'] = 'Klick auf den Benutzernamen um die Begründung der Verleihung zu verändern';
$lang['No_medal_members'] = 'Kein Benutzer hat diese Medaille';
$lang['No_medals_exist'] = 'Es sind keine Medaillen verfügbar';
$lang['Medal_not_exist'] = 'Diese Medaille gibt es nicht';
$lang['No_username_specified'] = 'Kein Benutzername festgelegt';
$lang['No_medal_id_specified'] = 'Keine Medaille festgelegt';
$lang['Medal_user_username'] = 'Belohne einen oder mehrere Benutzer mit dieser Medaille';
$lang['Medal_unmedal_username'] = 'Entferne diese Medaille von einem oder mehreren Benutzern';
$lang['Medal_unmedal_username_explain'] = 'Hier kannst du mehreren Benutzern auf einmal die Medaille abnehmen. Benutze dazu die Strg-Taste und die linke Maustaste (Windows)';
$lang['Medal_added'] = 'Dir ist diese Medaille verliehen worden.'; 
$lang['Medal_update_sucessful'] = 'Benutzer&ndash; und Medaillen&ndash;Informationen wurden erfolgreich aktualisiert';
$lang['Could_not_anonymous_user'] = 'Du kannst keine Medaille an Anonymous verleihen.';
$lang['Not_medal_moderator'] = 'Du bist kein Moderator dieser Medaille';
$lang['Link_to_cp'] = 'Medaillen&ndash;Kontrollsystem';
$lang['Click_return_medal'] = 'Klick %shier%s um zu den Medaillen&ndash;Informationen zurückzukehren';
$lang['No_medal'] = 'Es sind keine Medaillen verfügbar';

# 
#-----[ OPEN ]------------------------------------------ 
#  
language/lang_german/lang_admin.php

# 
#-----[ FIND ]------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
// Medal MOD
$lang['Medals'] = 'Medaillen';
$lang['Manage'] = 'Verwaltung';
$lang['Medal_Config'] = 'Medaillen&ndash;Einstellungen';
$lang['Medal_Config_explain'] = 'Dieses Formular erlaubt es dir, die allgemeinen Einstellungen des Medaillen&ndash;Systems vorzunehmen.';
$lang['Medal_setting'] = 'Medaillen&ndash;Optionen';
$lang['Allow_medal'] = 'Erlaube die Anzeige von Medaillen in der Themenansicht (viewtopic)';
$lang['Medal_rand'] = 'Aktiviere zufällige Anzeige von Medaillen in der Themenansicht (viewtopic)';
$lang['Medal_rand_explain'] = 'Die Medaillengrafiken erscheinen in zufälliger Reihenfolge. Vorausgesetzt die Anzeige von Medaillen in der Themenansicht ist aktiviert.';
$lang['Medal_dispaly'] = 'Medaillen&ndash;Tabelle (Reihen &times; Spalten)';
$lang['Medal_dispaly_explain'] = 'Hier kannst du festlegen wieviele Reihen bzw. Spalten die Medaillen&ndash;Tabelle in der Themenansicht enthalten soll<br />Eine Reihe und eine Spalte würden beispielweise ein Bild anzeigen und eine Reihe und zwei Splaten würden zwei Bilder anzeigen<br />Achte darauf, dass du diese Einstellung so machst, dass die Themenansicht dadurch nicht verschlechtert wird.';
$lang['Medal_size'] = 'Dimensionen der Medaillen in der Themenansicht (viewtopic)';
$lang['Medal_size_explain'] = '(Höhe &times; Breite in Pixeln)<br />Wenn diese Felder leer gelassen werden, werden die Bilder in ihrer Originalgröße angezeigt';
$lang['Click_return_medalcfg'] = 'Klick %shier%s um zu den Medaillen&ndash;Einstellungen zurückzukehren.';
$lang['Medal_admin'] = 'Medaillen&ndash;Verwaltung';
$lang['Medal_admin_explain'] = 'Von hier aus kannst du alle Medaillen verwalten. Dazu zählt das das Erstellen, Löschen und Editieren von Medaillen. Du kannst hier auch den Medaillen&ndash;Moderator festlegen.';
$lang['Updated_medal'] = 'Die Informationen zu dieser Medaille wurden erfolgreich aktualisiert';
$lang['Added_new_medal'] = 'Es wurde erfolgreich eine neue Medaille erstellt';
$lang['Deleted_medal'] = 'Die Medaille wurde erfolgreich gelöscht';
$lang['New_medal'] = 'Erstelle eine neue Medaille';
$lang['medal_name'] = 'Medaillenname';
$lang['medal_description'] = 'Medaillen&ndash;Beschreibung';
$lang['medal_image'] = 'Medaillen&ndash;Bild';
$lang['medal_image_explain'] = 'Hier gibst du den Pfad ein, der zu dem entsprechenden Medaillen&ndash;Bild führt. Zum Beispiel \"./medals/medal1.gif\"<br />(Relativ zum phpbb Stammverzeichnis)';
$lang['No_medal_name'] = 'Du musst einen Namen für die Medaille angeben';
$lang['No_medal_description'] = 'Du musst eine Beschreibung für die Medaille angeben';
$lang['No_medal_image'] = 'Du musst ein Bild für deine Medaille angeben';
$lang['Must_select_medal'] = 'Du musst eine Medaille auswählen';
$lang['Click_return_medaladmin'] = 'Klick %shier%s um zur Medaillen&ndash;Verwaltung zurückzukehren.';
$lang['Medal_mod'] = 'Medaillen&ndash;Moderator';
$lang['Medal_mod_admin'] = 'Verwaltung der Medaillen&ndash;Moderatoren';
$lang['Medal_mod_admin_explain'] = 'Hier kannst du Medaillen&ndash;Moderatoren für die Medaillen bestimmen.';
$lang['Medal_mod_username'] = 'Bestimme einen oder mehrere Benutzer Medaillen&ndash;Moderator zu sein';
$lang['Medal_unmod_username'] = 'Entferne einen oder mehrere Medaillen&ndash;Moderatoren';
$lang['Medal_unmod_username_explain'] = 'Hier kannst du mehrere Medaillen&ndash;Moderatoren auf einmal entfernen. Benutze dazu die Strg-Taste und die linke Maustaste (Windows)';
$lang['No_medal_mod'] = 'Kein Medaillen&ndash;Moderator';
$lang['Medal_mod_update_sucessful'] = 'Die Einstellungen für den Medaillen&ndash;Moderator wurden erfolgreich aktualisiert';
$lang['Click_return_medal_mod_admin'] = 'Klick %shier%s um zur Medaillen&ndash;Verwaltung zurückzukehren';

Posted: Sun Aug 07, 2005 2:51 pm
by OTmaster
how do you make the award reasons work with firefox with out the extened profile mod

Posted: Sun Aug 07, 2005 8:55 pm
by gonzo28
OTmaster wrote: how do you make the award reasons work with firefox with out the extened profile mod


I've got the same problem. Could someone perhaps explain how to get it work without the Javascript?
I don't need it that it fades in and out. It would be enough if it just appears in the pofile without clicking anything.

Thx
Gonzo

Posted: Mon Aug 08, 2005 11:45 am
by Gremlinn
Gonzo and OTMaster: You can also do this to get it to work with firefox. You don't have to have any other mods. Sorry if this confused you. Also, I think I made a mistake. It's not the PCP toggle.js, it is the one that comes with the topic calendar mod by http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=

Get the mod and extract the .js file. The files for these changes, file names will be different, but essentially the same. You will need to look around for the code, but they are about the same.

The .js files use different function names and arguments.
Gremlinn wrote: 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.

PCP Link

Posted: Mon Aug 08, 2005 5:04 pm
by socomcasper
Hi all,

I have read through this whole forum, and please forgive me. I would like to know if someone can either PM or reply to where I can find instructions on how to install this on PCP. I saw the link to the other forum, but that lost me as soon as I got there.

I would appreciate some help.

Posted: Tue Aug 09, 2005 2:53 pm
by OTmaster
well i dont have that profile CP. i just use the default :/