News:

SMF 2.1.4 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

SD-X

Quote from: Mortuum on June 03, 2013, 07:30:46 AM
yeah i did from las previous page. Get worse.

Anyway way. I try on an other forum in other name domain. I work fine.
So i reinstall a clean version on the current forum, so no other mods, nothing. And it still do the same problem!
The fixes exist on multiple pages back. Some people were posting edits to just change the mod, so be careful which ones you try. Make sure they specifically say they are bug fixes.

CrazyCat

Quote from: SugarD-x on June 03, 2013, 12:44:40 PM
Quote from: Mortuum on June 03, 2013, 07:30:46 AM
yeah i did from las previous page. Get worse.

Anyway way. I try on an other forum in other name domain. I work fine.
So i reinstall a clean version on the current forum, so no other mods, nothing. And it still do the same problem!
The fixes exist on multiple pages back. Some people were posting edits to just change the mod, so be careful which ones you try. Make sure they specifically say they are bug fixes.
Having a final release without changes to add could be cool.

Mortuum

But what i don't get is that it is totally work fine on 1 naked forum (same hosting) but not on an other naked forum (,aked, i mean without other mod/theme). Oo

And honestly 150 pages to check ?! I used the recherche fonction before to post here and didnt find (maybe wrong keywords).

DeroZ

hi,

how can display a specific category in profile-post (below icons)?

hcfwesker

Quote from: Snoopix on June 04, 2013, 09:01:24 PMhow can display a specific category in profile-post (below icons)?

Random guess, haven't tested this so just reverse these edits if it doesn't work or an error happens.

sources/Load.php

Find

// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.id_member IN({array_int:members})
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);


Replace with

// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile, aw.id_category,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE aw.id_category = 777
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);



Where the new edit has "WHERE aw.id_category = 777"  ... replace 777 with the category id you want displayed.


CrazyCat

Quote from: Mortuum on June 03, 2013, 05:24:12 PM
But what i don't get is that it is totally work fine on 1 naked forum (same hosting) but not on an other naked forum (,aked, i mean without other mod/theme). Oo

And honestly 150 pages to check ?! I used the recherche fonction before to post here and didnt find (maybe wrong keywords).
I finally found the solution in this thread, searching "404". It was in the post made by shyrax (http://www.simplemachines.org/community/index.php?topic=114701.msg3369152;topicseen#msg3369152).
I've replaced all the ";id" with "&id" in the mod files, then upload and deploy. Works !

Caliberxiii

Can someone please post the fixed full version (in the zip) and all? Im having huge trouble with this :( Pleeeeease!!!

XHIBIT911

Yeah cause the parsing method just wasted 3 hours of my time and almost broke my forums. Is this abandoned or what ?

XHIBIT911

Quote from: Kindred on March 29, 2013, 09:47:12 PM
Probably not then. Spuds has not been active on this site in a while and the mod has not been touched in 2 years...

So, yes, it works just fine on 2.0.4 but ere will likely be no additional "official" updates.
Which does not make translating it a bad idea, since, as with the bug fixes, the community support for this mod exists.

Its NOT working just fine on 2.0.4, Ive installed and uninstalled this on multiple naked 2.0.4 forums. If this mod isnt being supported and is obviously outdated and abandoned why even continue listing it ?

Kindred

it works fine for me on my 2.0.4 forums...
and my forums are already heavily modded with other mods
Сл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."

XHIBIT911

#3050
For it to work "just fine" this sure is a heavily trafficked thread full of people having similar issues, goin back past 2.0.0


I've gotten the same error messages upon install as a large number of people here have also reported.


I've deleted the auto mod from my database completely, and did all the parse edits as instructed.
I've read 67 pages of this thread, I've uninstalled and reinstalled so many times that I cant even remember at this point. And its still not working .
If I uninstall and completely delete it I no longer can even access my profiles now.
So obviously this mod isn't working just fine, otherwise so many people wouldnt had posted for help.





Kindred

well, the auto-install failures are due to other mods... and you would have to manually apply this mod's changes to that file.
However, since the failures are due to other mods you can hardly blame it on this mod.

install uninstall and install again?
Really?
Do you think the computer is a dog which will learn the trick if you repeat?
Computers do not learn through repetition. You get the same result each and every time - so if you have problems, uninstalling and reinstalling is not going to do anything...
(although if there are failed bits of the uninstall along with the install, you will cause progressively worse errors.)
Сл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."

Sgt.Soldier™

Could someone tell me if it's possible to maybe edit one of the files to make it so you can also set auto-assigning badges
(E.G Assigned on Registering,Reaching Post Criteria,After being registered for X Time,etc)

Skaty

how can i delete award's description from PM ??

Quote from: Skaty on May 28, 2013, 05:47:12 AM
Quote from: hcfwesker on May 26, 2013, 02:43:52 PM
Quote from: Skaty on May 24, 2013, 07:35:54 AM
Can't find where was the codes for pm send when assign a award.

http://www.simplemachines.org/community/index.php?topic=114701.msg3482704#msg3482704

Thank you. i tried to delete description from pm body but when a delete it pm is sending empty. how can i delete award's desctiption from pm and gave a award's link to image or the award's title ?

function SendAwardPMByID()
{
global $smcFunc, $sourcedir, $txt;

$request = $smcFunc['db_query']('', "
SELECT
a.id_award, a.award_name, a.description, a.filename, m.uniq_id, m.id_award, m.id_member, m.date_received
FROM
({db_prefix}awards AS a)

LEFT JOIN {db_prefix}awards_members as m ON (a.id_award = m.id_award)
                ORDER BY m.uniq_id DESC LIMIT 1");


$row = $smcFunc['db_fetch_assoc']($request);

$smcFunc['db_free_result']($request);

                $image = $row['filename'];
                $awardname = $row['award_name'];
                $description = $row['description'];

$pm_register_recipients = array(
'to' => array($row['id_member']),
'bcc' => array(),
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, sprintf($txt['award_pm_subject'],$row['id_member']),
sprintf($txt['award_pm_body'],$image,$awardname,$description));

}


Kindred

change

                 $awardname = $row['award_name'];
                 $description = $row['description'];

to
                $awardname = $row['award_name'];
                $description = 'You have received the award: ' . $row['award_name'];

or add that text as a text string in modifications.english.php and call the text string instead (thus allowing for translation)
Сл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."

Skaty


Advertisement: