Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

JBlaze

It's activated now. You can change it yourself ;)
Jason Clemons
Former Team Member 2009 - 2012

KensonPlays

Thanks JB! (most questions for this will be directed there, is that ok?)

Owner of Mesozoic Haven

KensonPlays

Made a topic in Member Awards board, needs a moderator review...

Owner of Mesozoic Haven

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

KensonPlays


Owner of Mesozoic Haven

enCyde

Parse error: syntax error, unexpected ',' in /home/w139901/public_html/forum/Sources/Subs.php  on line 3177


can someone see what is wrong with the code? when I have parsed and modified it manual.

I've attached the Subs.php if someone would like to take a look and help

twotonetwo

Quote from: JBlaze on May 29, 2010, 04:31:19 PM
Quote from: twotonetwo on May 29, 2010, 04:04:16 PM
hello,

Just a quick one, teh "awards" tab is not showing up in my admin > config drop down. I am in as an adminsitrator, so i have full permissions and have taken teh forum to the default theme, but i still cant access the awards admin. Any help or pointer in which files i should be looking at to fix?

Thx

SMF 2.0RC3
T

Make sure the edit to Admin.php was made when installing. Other than that, all I can suggest is to make sure that you have the 'manage_awards' permission as well.

thx i did have to manualy edit the admin php, could you tell me if this is correct please. (i only have 3 mods installed, TP, karma description and gallery lite if that helps)

),),
),


'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']), ), ),
'title' => $txt['layout_controls'],
'layout' => array(

'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(


I am logged in as admin so have full permissions. Thx for the quick response and a great mod  ;)
SMF 2.0 RC3  |  Tiny Portal 1.0 Beta 5.1

enCyde

okey I'm getting this to work now :) only one thing, is the awards suppose to show up on the profile? or do I have to goto the profile and click on "awards" to see the members profile.

JBlaze

@twotonetwo, check this out: Manual Installation of Mods

@enCyde, awards are shown in the profile section under 'showAwards' and 'listAwards'. There are links in the main profile menu.
Jason Clemons
Former Team Member 2009 - 2012

droganto

Quote from: Babalui on May 29, 2010, 09:51:47 AM
What doc?
No, no such graph issue with this mod, but had similar with something else. I guess it is theme related. What smf/theme do you have?

Im Sorry I meant to say the link you sent.

droganto

Quote from: C4G-TK on May 29, 2010, 12:42:09 PM
Quote from: droganto on May 29, 2010, 03:17:30 AM
OK I started adding the Awards to my server, and everything was looking fine until I click under Award List then I noticed this



At the beginning my icons were Big 200 and Mini 40, so I though it was the size of the icon so I resized it to Big 125 and Mini 20. And that didnt make a difference

Two pages previous to this page a fix was posted in reply #1765.  Did you do that edit?

(Please read most recent pages when asking questions.  It keeps repeated fixed problems from clogging up the support topic and makes it easier for everyone to find answers to their problems.)

Thank you C4. Sorry for not searching, but when I see 91 pages of posting is not very appealing to me to read all of them until I find the possible solution. But next time at least I will go backtrack 4 pages at least but that doesnt guarantee that I will find the solution immediately  if the answer is in page 47 :-) But Thanks I will read that reply now.

|Fran|

Help Please



Help want to look so

And change this in the display.template.php

Search:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';

echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';


and down


//Emepezamos el mostraje de premios     
               $resulty = db_query("SELECT it.gameName, it.filename, it.ID_AWARD FROM {$db_prefix}awards_members AS adw, {$db_prefix}awards AS it WHERE adw.ID_MEMBER = {$message['member']['id']} AND adw.ID_AWARD = it.ID_AWARD LIMIT 24", __FILE__, __LINE__);
               if(mysql_num_rows($resulty) > 0){
               $miramoss = mysql_query("SELECT * FROM {$db_prefix}awards_members WHERE ID_MEMBER='".$message['member']['id']."'");
               $total_premios = mysql_num_rows($miramoss);
               echo'
               <table border="0" cellpadding="0" cellspacing="0" width="100%">
                 <tbody>
                  <tr>
                    <td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbleft.gif" alt="left" width="8" height="18" /></td>
                    <td style="background: rgb(116, 169, 192) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(255, 255, 255); font-size: 11px; font-weight: bold;"><div align="center">Mi colecci&oacute;n de premios - Actualmente tengo '.$total_premios.' premio(s)</div></td>
                    <td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbright.gif" width="8" height="18" /></td>
                  </tr>
                 </tbody>
               </table>';
               while ($roww = mysql_fetch_assoc($resulty)){
               echo "<center><img src='{$boardurl}/awards/{$roww['filename']}'title='{$roww['gameName']}'></center>";
               }
               }
               //Fin del mostraje de premios.


From there I went to the folder display.php sources and put

Search:
   mysql_free_result($request);
   $posters = array_unique($posters);


and add below


   // Load the members awards
   $awards_request = db_query("
      SELECT pab.filename, pam.ID_MEMBER
      FROM {$db_prefix}awards_members AS pam
         LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
      WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
         AND pam.favorite = 1
      GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);

   $context['awards'] = array();
   while ($row = mysql_fetch_assoc($awards_request))
      $context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';

   mysql_free_result($awards_request);


and went to see a post and I came

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 'AND adw.ID_AWARD = it.ID_AWARD LIMIT 24' at line 1
Archivo: /home/a9526973/public_html/foros/Sources/Load.php(1776) : eval()'d code
Línea: 522



PLAYKONG.NET/FOROS

JBlaze

@thejoker.emerson, I don't do custom edits for people. This software is provided as-is.
Jason Clemons
Former Team Member 2009 - 2012

|Fran|

Quote from: JBlaze on May 30, 2010, 03:56:59 PM
@thejoker.emerson, I don't do custom edits for people. This software is provided as-is.
Please help me


PLAYKONG.NET/FOROS

JBlaze

Jason Clemons
Former Team Member 2009 - 2012


Jdracup

#1836
This is a great mod, but I had a quick question.
Is there a way to remove the "Awards" and black line frame around the actual awards under the avatar?

Also, the edit/delete/add new etc icons only seem to be appearing in the default "curve" theme for RC3; any work around for that?

Thanks!
-JD

JBlaze

Quote from: Jdracup on May 30, 2010, 06:24:46 PM
This is a great mod, but I had a quick question.
Is there a way to remove the "Awards" and black line frame around the actual awards under the avatar?
Remove the <fieldset> element.

Quote from: Jdracup on May 30, 2010, 06:24:46 PM
Also, the edit/delete/add new etc icons only seem to be appearing in the default "curve" theme for RC3; any work around for that?
Make sure that you either install the mod on custom themes, or copy the ./Themes/default/images/awards directory to your custom theme.
Jason Clemons
Former Team Member 2009 - 2012

Jdracup

Forgive me - total noob; remove <fieldset> element from what file?

Thanks for the prompt reply.

JBlaze

Quote from: Jdracup on May 30, 2010, 07:13:28 PM
Forgive me - total noob; remove <fieldset> element from what file?

Thanks for the prompt reply.
./Themes/default/Display.template.php
Jason Clemons
Former Team Member 2009 - 2012

Advertisement: