News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Awards System

Started by Windy, November 14, 2006, 09:01:54 PM

Previous topic - Next topic

Windy

Quote from: xxkylexx on October 08, 2007, 08:49:27 PM
The Display template code doesn't seem to display the images properly.
oops, out of everything that's the only thing I forgot to fix up, i've reuploaded again with that fixed up.

Quote from: Paracelsus on October 07, 2007, 10:41:26 AM
Is it possible for you to underline the changes from the previous version to this one so that one can try a manual install (because a automatic uninstall is somewhat difficult now). Tkx.
The changes are too numerous to mention, the best you could do is open up both modification.xml files from inside both packages and compare the changes.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Paracelsus

[quote author=Windy link=topic=127054.msg1268103#msg1268103
The changes are too numerous to mention, the best you could do is open up both modification.xml files from inside both packages and compare the changes.
[/quote]

Ok, tkx... it's probably the best way.

Nanobot

Hey I am having a problem with this mod. Does it work with all themes?

I get: "Unable to load the 'awards' template."

Help please.

Windy

Quote from: Nanobot on October 12, 2007, 08:36:22 PM
Hey I am having a problem with this mod. Does it work with all themes?

I get: "Unable to load the 'awards' template."

Help please.
As with all SMF Modifications, it only affects the default template, if the theme you're using uses a custom profile template then you will need to copy over the award template function (template_award i believe) from the profile.template.php file located in the default template directory into whatever profile.template.php file the theme is using.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

littleone

// Show the Awards they have.
echo '
', 'Awards:<br/>';
foreach($message['member']['awards'] as $award) {
echo '<img src="'.''.'awards/'.$award['fileName'].'" alt="'.$award['title'].'" title="'.$award['title'].'"/>';
} echo '<br/>';


That code is giving me this error:
2: Invalid argument supplied for foreach()
File: /home/xxxxxxxxx/public_html/forum/Themes/default/Display.template.php
Line: 508

I think it is conflicting with this part of my code and then isnt showing my awards:
// Show number of awards
echo '
', $txt['pogoAwards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';



But I was trying to make is so that Awards: wouldnt show if they had no awards so I was trying this:
if (!empty($message['member']['award']))
{
$award = parse_bbc($message['member']['award']);
echo '<br />Awards: ' . $award . '';
echo '<img src="'.''.'awards/'.$award['fileName'].'" alt="'.$award['title'].'" title="'.$award['title'].'"/>';
} echo '<br/>';
                        if(!empty($message['member']['award']))


So if possible if you could give me a fix using my "attempted" code, I would appreciate it ;)  Thanks!

artinjulio

Hi, one question sorry.

The installation ok (manually because custom theme)
Award in profile OK i can upload new pictures for awards  BUT

in display no image SHOW UP the content of the Display.template.php is
Quoteif(!empty($message['member']['awards']))
                           // Show the Awards they have.
                        
               echo '
                        ', 'Awards:<br/>';
                        foreach($message['member']['awards'] as $award) {
                           echo '<img src="'.''.'awards/'.$award['fileName'].'" alt="'.$award['title'].'" title="'.$award['title'].'"/>';
                        } echo '<br/>';

can you help my please





alexdias

Could someone fix this mod and make it work properly in smf 1.1.4?
SMF complains about missing vars/indexes and does not work at all in smf portuguese-utf8 even after the xml was edited.

mcliff1971

Windy,

I installed the mod today, and the Add Award section shows up under the profiles.  However, when I name the award, and browse and select an image then hit save, the screen just refreshes and no award is created.  Any ideas???

mrum

i have just installed it and it aint working any ideas why

mrum


dry3210

I'm having the same problem.

I added it, uploaded a test award, all went well

Then when i came back later to upload more awards and delete the test award, it wouldn't work any more.

The test award deleted fine but no new awards upload..it just refreshes the page when I hit to add

dave007

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

JenniferW

I installed the mod and made sure all the template changes were right and CHMOD my awards folder to write but the awards aren't showing up in posts. I can see them on the profile page where I add them though. I'm using v1.1.4

marinesct

I've come up with the following error:

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 'collate latin1_general_ci NOT NULL
AFTER memberNam
File: /homepages/32/d101410193/htdocs/usmcg/TEST/smf/Packages/temp/AwardSystemdb.php
Line: 69


Its referring to:
AFTER memberName",__FILE__,__LINE__);

Any recommendations on how to fix this? I removed the 'collate' reference as well as the references to 'latin1_general_ci'.  After the deletions, another error came to referencing the  log table at line 93.  Is [memberName] the correct variable?

Windy

Quote from: marinesct on November 11, 2007, 07:09:29 PM
I've come up with the following error:

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 'collate latin1_general_ci NOT NULL
AFTER memberNam
File: /homepages/32/d101410193/htdocs/usmcg/TEST/smf/Packages/temp/AwardSystemdb.php
Line: 69


Its referring to:
AFTER memberName",__FILE__,__LINE__);

Any recommendations on how to fix this? I removed the 'collate' reference as well as the references to 'latin1_general_ci'.  After the deletions, another error came to referencing the  log table at line 93.  Is [memberName] the correct variable?
you're going to have to provide me with more details, mysql version etc.  Otherwise there isn't much I can do to find out what's going wrong when you try to install it.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

musicman8oh8

I had this mod installed but when I went to actually use it, it does absolutely nothing... I can give the award a name go to upload a pic then submit it and nothing at all shows up. any suggestions.....
"Providing World Class Entertainment"
http://dangerousmindz.com/forum

ArchRaf

installing this mod make me no longer able to access member profiles at all.

I get HTTP error 500 when click to a members name or attempts to access the summary page of profile.

gh0stx

#57
if your images dont show on display pages, with smf 1.1.4 anf the latest version of this mod.

How to fix that? easy..

You have:
[pre]if(!empty($message['member']['awards']))
         // Show the Awards they have.
         echo '
                        ', 'Awards:<br/>';
                        foreach($message['member']['awards'] as $award) {
                           echo '<img src="'.''.'awards/'.$award['fileName'].'" alt="'.$award['title'].'" title="'.$award['title'].'"/>';
                        } echo '<br/>';[/pre]


Changue to:
if(!empty($message['member']['awards']))
            // Show the Awards they have.
            echo '
                                ', '<fieldset><legend>Premios</legend>';
                                foreach($message['member']['awards'] as $award) {
                                    echo '<img src="/awards/'.$award['fileName'].'" alt="'.$award['title'].'" title="'.$award['title'].'"/></fieldset>';
                                } echo '<br/>';


This is not only the fix, i add fieldset html tag, is most beautiful now, the way the awrds showed.
sorry my poor english but if i wrote in spanish i dont think you can understandme.

JMess22

I installed this mod.  I am running SMF 1.1.4.  Everything loaded and it tested fine. 

But, when i acutally went to the mod, and tried to use it nothing happened.  I input the name and the pic, and when I clicked add, the page kinda refreshed, but nothing was added.  Any reason why this is happening, or how to fix it?  thanks.
[email protected]

www.ShareHomeRecipes.com

netridge

I was trying to add this mod to my site but when I tried the display template would come up with an error.

Advertisement: