News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Member Awards (2.0 Compatible!)

Started by Spuds, September 18, 2006, 03:14:03 PM

Previous topic - Next topic

Eudemon

#2040
whenever i click on the item, try the edit it, assign it to member or view members who has it
i get "501 method not implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


nvm i searched this topic and people mentioned it's the mod_security that my host has installed
i will contact them and ask
has anyone successfully overcame this problem?

IrateZebra

@TheMortician4, here is the parse link for Simple Awards. Since there are only minor changes between 1.1.x versions, there should be no problem using the 1.1.10 instructions to uninstall this mod. Simply reverse the edits. As for dropping the tables in the database, using a program like phpMyAdmin can help. If you need help with it, let me know.

@vaesir, that error means that either the database was not updated for this mod, the tables not created, or there is a conflict with another mod like Simple Awards. Try uninstalling then reinstalling again.

Joker002

#2042
IrateZebra
I have  the language strings into my language.

http://x.com/forum/index.php?action=profile;u=701;area=listAwards

8: Undefined index: view

File: /home/x/public_html/forum/Themes/default/Profile.template.php
Line: 3204

flutter

I really need a mod like this but I have a couple of mods that might be affected by it.  I have Ultimate Profile and Show additional member groups on profile.  Do you think this will conflict with any of them?

Bugo

Member Awards 2.2.2, Language: English, SMF: 2.0 RC4.

Add any award (to any user) and go to Profile » Profile Info » Awards List, then see in Error Log:
Quote
***/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: ***/www/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3165

Solution:
Open Profile-View.php, find block:
         $context['categories'][$row['id_category']] = array(
            'name' => $row['category_name'],
            'awards' => array(),
         );

and replace with:
         $context['categories'][$row['id_category']] = array(
            'name' => $row['category_name'],
            'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
            'awards' => array(),
         );

IrateZebra

Quote from: flutter on November 08, 2010, 09:16:39 AM
I really need a mod like this but I have a couple of mods that might be affected by it.  I have Ultimate Profile and Show additional member groups on profile.  Do you think this will conflict with any of them?
I don't believe it will conflict with either of these mods.

@Bugo, thanks.


Bugo

Error Log: Undefined boarddir.

Solution:

ManageAwards.php, find block:

function AwardsModify()
{
global $smcFunc, $context, $scripturl, $txt, $modSettings, $settings;

and replace with:

function AwardsModify()
{
global $smcFunc, $context, $scripturl, $txt, $modSettings, $settings, $boarddir;

because $boarddir is use in this function.

IrateZebra

v2.2.3 Released
! Minor bugfixes (thanks to Bugo)

Bugo

#2049
Don't hurry. I was just beginning :)

ManageAwards.english.php has two same variables:
Line 5: $txt['awards_description']
and Line 76: $txt['awards_description']

After fresh install, if no one award, go to Profile » Awards List and see corrupted template (look at screenshot). Please fix it.

Bugo

Quote from: Bugo on November 08, 2010, 09:57:43 AM
Member Awards 2.2.2, Language: English, SMF: 2.0 RC4.

Add any award (to any user) and go to Profile » Profile Info » Awards List, then see in Error Log:
Quote
***/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: ***/www/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3165

Solution:
Open Profile-View.php, find block:
         $context['categories'][$row['id_category']] = array(
            'name' => $row['category_name'],
            'awards' => array(),
         );

and replace with:
         $context['categories'][$row['id_category']] = array(
            'name' => $row['category_name'],
            'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
            'awards' => array(),
         );

This operation should be done 2 times (2 replaces).

flutter

This fails on my sources admin, the code I need to find to add isn't there.  I can add my admin file here for you to see if you like

Bugo

Valid XHTML Fix.

ManageAwards.template.php, find block:
<table class="table_grid" width="100%">
<thead>
<tr class="titlebg">
<th scope="col" class="smalltext" width="15%">', $txt['awards_image'], '</td>
<th scope="col" class="smalltext" width="15%">', $txt['awards_mini'], '</td>
<th scope="col" class="smalltext" width="25%">', $txt['awards_name'], '</td>
<th scope="col" class="smalltext" width="35%">', $txt['awards_description'], '</td>
<th scope="col" class="smalltext" width="10%">', $txt['awards_modify'], '</td>
</tr>
</thead>
<tbody>';

and replace all </td> with </th>...

Find this line:
<h3 class="catbg" valign="middle">
and replace with:
<h3 class="catbg">
because there is no attribute "valign"...

Bugo

Quote from: flutter on November 08, 2010, 03:32:10 PM
This fails on my sources admin, the code I need to find to add isn't there.  I can add my admin file here for you to see if you like
This text is not for you...

flutter

what text is not for me?  I'm talking about when I try to install the mod with my package manager, it fails on the sources-admin.  I would think that would mean I will not be able to administrate it, will it not?

TheMortician4

Quote from: IrateZebra on November 07, 2010, 10:58:30 PM
@TheMortician4, here is the parse link for Simple Awards. Since there are only minor changes between 1.1.x versions, there should be no problem using the 1.1.10 instructions to uninstall this mod. Simply reverse the edits. As for dropping the tables in the database, using a program like phpMyAdmin can help. If you need help with it, let me know.


Thank you Irate, just got in and will do this first thing tomorrow. Again thank you for the support...!!!
@vaesir, that error means that either the database was not updated for this mod, the tables not created, or there is a conflict with another mod like Simple Awards. Try uninstalling then reinstalling again.

Kindred

@TheMortician4,  please learn how to use quotes?
Сл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."

IrateZebra

Quote from: flutter on November 08, 2010, 04:18:22 PM
what text is not for me?  I'm talking about when I try to install the mod with my package manager, it fails on the sources-admin.  I would think that would mean I will not be able to administrate it, will it not?
You will have to manually edit that section if it is failing on install. It means that there is another mod conflicting, most likely with where the setting link is placed.

flutter

#2058
yes of course I have to edit it manually.  The problem is, the code I am looking for isn't there and I don't know where I should put the code for the mod, you know the bit add after, add after what?  This is why I asked about compatibility in the first place

This is what I have,  it's impossible to add code in a post right now, there must be something wrong.  Please don't anyone tell me how to add the tags, I've just tried several times

Where am I supposed to put the manual edits in if I can't find the sentence I've to add before or after.  I'll attach the sources > admin


T3CHN0

Flutter the admin.php file you uploaded was able to add the code fine.
Find
),
        ),

        'layout' => array(

Add Before

               'awards' => array(
                    'label' => $txt['awards'],
                    'file' => 'ManageAwards.php',
                    'function' => 'Awards',
                    'icon' => 'awards.gif',
                    'permission' => array('manage_awards'),
                    'subsections' => array(
                        'main' => array($txt['awards_main']),
                        'modify' => array($txt['awards_modify']),
                        'assign' => array($txt['awards_assign']),
                        'categories' => array($txt['awards_categories']),
                        'settings' => array($txt['awards_settings']),
                    ),
                ),

Find

    // You have to be able to do at least one of the below to see this page.
    isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum',

Add After
  'manage_awards',

I was able to make the edits without having to worry about conflicts



here is your Admin.php file done for you

Advertisement: