News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Fustrate

Open /Sources/ManageAwards.php and find
ID_AWARD, awardName, gameName, timeAdded, filename, width, height
and replace it with an asterik, then save and try again.
Steven Hoffman
Former Team Member, 2009-2012

tk2012

#901
Yoda

I went ahead and did all the edits manually because I couldn't get the package to install on the b4.0 forum.  I'm having a Template Parse Error that states the Profile.template.php file is incorrect.  The message I am getting says:

syntax error, unexpected T_VARIABLE

Here is my Profile.template.php file if you could take a look.  I have no idea really what I'm looking for here. 




On another note:

When I was doing the edit for the Display.template.php file, I noticed that the original code and the code to be replaced does not include the <lil> or </lil> .  Should I have put this in there?

The code in your edit says:


// Awards!
echo '
<a href="', $scripturl, '?action=profile;sa=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a>';


So, should I have put:


// Awards!
echo '
<lil><a href="', $scripturl, '?action=profile;sa=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a></lil>';


Fustrate

It's an <li>, not <lil> :P

And what line is this error on?
Steven Hoffman
Former Team Member, 2009-2012

tk2012

The first error with the template doesn't say anything other than getting a parse error in that file...

and then had "syntax error, unexpected T_VARIABLE" at the bottom




oops, yeah, meant <li>, so is that a YES for that one?

Fustrate

So it shows you nothing about where the error is? Screenshot?

And that's a yes on the <li> part
Steven Hoffman
Former Team Member, 2009-2012

khamseen

Hey there, wonder if you could help me out.

I am planning conversion to 2.0 Beta 4 so I've been playing with a version of it to see which mods I can keep.

I tried what you suggested about setting the package installer to compatibility mode and it appeared promising, I only got one error on the install and it told me what code it couldn't insert so I went and done that part manually. However, it's not working for me.

If I go to a profile I see where the "Awards" button should be, but there is no text and no link, simply a blank line.
I cannot access the admin control panel for the system either, even tried inputting the url straight to the browser with no luck.

Incase it helps to know, I'm using SMF 2.0 Beta 4 with the DarkRainV2 theme.

Thanks in advance. :)
"In hope we find despair and in despair we find truth." - Myself

Fustrate

Are you using a language other than english? Like english_utf-8?
Steven Hoffman
Former Team Member, 2009-2012

santanu

#907
can we display the awards won by the member beside the Avatar or below the link (display.templete.php page) and also the Profile page directly.

somewhat  like the simple awards

tk2012

Yoda -

I'm going to upload all the files from the upgrade to b4.0 again to my forum.  I think something may not have been completed correctly.  I'm going to reinstall all the mods again afterwards.  I think the templates are mixed up.

I'll hit you back once I start again.

Fustrate

Quote from: santanu on October 17, 2008, 10:36:36 AM
can we display the awards won by the member beside the Avatar or below the link (display.templete.php page) and also the Profile page directly.

somewhat  like the simple awards
There is an awards page in the profile, and there is code posted in an earlier page that showed how to add it to your posts. http://www.simplemachines.org/community/index.php?topic=114701.msg1152559#msg1152559

tk2012 - k
Steven Hoffman
Former Team Member, 2009-2012

Adalla

#910
Hi, is this mod incompatible with SimpleAwardSystem mod that adds little icons/awards to the user post profile info?

Because i think it might create an smf_awards table so maybe thats why this mod is not working.

I am getting a "awardName"  field not found, because it doenst exist.

My current sfm_awards table is like this:

ID_AWARD
ID_AWARDED_MEMBER
ittle
givenDate
ID_MEMBER
memberName
fileName

Are these the correct fields for this mod?

Also is it safe to uninstall this mod? I think I read earlier posts in this thread where people had display.template.php mess up on them upon uninstall.

Will uninstall delete the database table entries?

Thanx

Adalla

ah never mind, I fixed it. Uninstalled SimpleAwardsSystem mod and it works now.

Thanx for the mod, its great. If I may make a suggestion for future releases, to add access privilages to give awards by usergroup would be great :)

khamseen

Quote from: YodaOfSpookness on October 17, 2008, 01:08:33 AM
Are you using a language other than english? Like english_utf-8?

Nope just the standard English.
"In hope we find despair and in despair we find truth." - Myself

tk2012

#913
Ok, did the upgrade to b4.0 again and got much better results for the other mods, but still having some difficulty with this one.  I did all the edits manually.

I'm attaching the pictures of things that I know are wrong off hand, but it will take me a minutes to accumulate all the errors that are popping off because I have multiples of the same error.

all of this was on the default theme..





UPDATE:  I added a copy of my error log.  Before doing this mod, I had 5 errors stemming from something else unrelated.  Now, I have over 100 errors.  They are all multiple copies of these errors posted:

I'm attaching the Admin.php file as I don't know what the problem is

Fustrate

Did you make the edits to Modifications.english.php. and any other Modifications.________.php files?
Steven Hoffman
Former Team Member, 2009-2012

tk2012

#915
I made it to the languages/Modifications.english.php   (nothing to -utf8 because I don't have that)


(ignore the extra letter in front of my files.  That's my own way of knowing which file is the clean one and which is the modded one.)

Fustrate

Go to Admin > Maintenance > Forum Maintenance > Common Tasks

and click "Empty the file cache."
Steven Hoffman
Former Team Member, 2009-2012

tk2012

WTF????

That worked... what was that about?

Fustrate

2.0 caches the language files so that they don't need to be reloaded every time you load a page. Sometimes it forgets to empty the cache after you install a mod (or if it was installed manually) and so it uses the old language files.
Steven Hoffman
Former Team Member, 2009-2012

tk2012

Dang, well, that worked.  Sorry for making you go thru that!

Advertisement: