REGISTER or LOGIN to have the annoying ads removed.
Post Reply 
 
Thread Rating:
  • 5 Votes - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[r4] ThankYou!
May 01, 2009, 05:33 PM
Post: #51
RE: [r4] ThankYou!
Yes, already inside that template.
And the button shows up, but when clicked (java scripts hover normal - javascripts:wyXc()...), does not work. I thought there is browser issue? I test IE, Opera and FireFox cannot.

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply

This ad removed for subscribers.
May 01, 2009, 05:37 PM
Post: #52
RE: [r4] ThankYou!
And you're using this version ?
cause the function is called javascript:thxFunction();

Visit this user's website Find all posts by this user
Quote this message in a reply
May 01, 2009, 10:25 PM
Post: #53
RE: [r4] ThankYou!
Can i make this work with the prostats addon?
Find all posts by this user
Quote this message in a reply
May 02, 2009, 01:48 AM (This post was last modified: May 02, 2009 02:09 AM by LeX-.)
Post: #54
RE: [r4] ThankYou!
Gonna download it and see what you need to alter to make it work Wink

Open ./inc/plugins/prostats.php

Find && Replace the whole ps_GetMostThanks($NumOfRows) function with this
PHP Code:
function ps_GetMostThanks($NumOfRows)
{
    global 
$mybb$db$templates$theme$lang$ps_align;
    
    if(
$db->table_exists("thx"))
    {
        
$query $db->query("SELECT u.uid, u.username, u.usergroup, u.displaygroup, COUNT(t.adduid) as thxcount FROM ".TABLE_PREFIX."thx t LEFT JOIN ".TABLE_PREFIX."users u ON (t.adduid=u.uid) GROUP BY t.adduid ORDER BY thxcount DESC LIMIT 0,{$NumOfRows}");
        while(
$most_thanks $db->fetch_array($query))
        {
            
$uid $most_thanks['uid'];
            
$username ps_FormatName(htmlspecialchars_uni($most_thanks['username']), $most_thanks['usergroup'], $most_thanks['displaygroup']);
            
$thxnum $most_thanks['thxcount'];
            
$profilelink get_profile_link($uid);        
            eval(
"\$mostthanks_row .= \"".$templates->get("prostats_mostthanks_row")."\";");
        }
    }
    eval(
"\$column_mostthanks = \"".$templates->get("prostats_mostthanks")."\";");

    return 
$column_mostthanks;


Visit this user's website Find all posts by this user
Quote this message in a reply
May 02, 2009, 07:36 PM (This post was last modified: May 02, 2009 07:37 PM by technoman.)
Post: #55
RE: [r4] ThankYou!
i have a question Lex not sure if you can make it work this way to,

can you also have it display the users nick of each person after the thread that people said thanks on so it will display all the people that thanked the authour for the specific thread under that specific thread between that thread * just curious * ?
Find all posts by this user
Quote this message in a reply
May 03, 2009, 03:13 AM
Post: #56
RE: [r4] ThankYou!
on what page do you want to display it ?
showthread ?
A new box on top or bottom of the thread with all the usernames ?

Visit this user's website Find all posts by this user
Quote this message in a reply

This ad removed for subscribers.
May 03, 2009, 07:01 AM
Post: #57
RE: [r4] ThankYou!
between threads after the thread who got thanked !

if there is 2 threads with only 1 person saying thank you then it would show the people who thanked that thread and so forth only after the thread that got thanked.

   
Find all posts by this user
Quote this message in a reply
May 03, 2009, 07:05 AM
Post: #58
RE: [r4] ThankYou!
It shows them inline ?
Maybe gonna add an option where to show them; inline or after firstpost .

Visit this user's website Find all posts by this user
Quote this message in a reply
May 03, 2009, 07:19 AM
Post: #59
RE: [r4] ThankYou!
Thanks @LeX- for the prostats change. I would like to switch to your plugin as the new changes you made lately are exactly what I want/need.

Of two equivalent theories or explanations, all other things being equal, the simpler one is to be preferred.
simplified translation of Occam's razor

[Image: 82pwtx]
Visit this user's website Find all posts by this user
Quote this message in a reply
May 03, 2009, 08:18 AM (This post was last modified: May 03, 2009 08:30 AM by technoman.)
Post: #60
RE: [r4] ThankYou!
(May 03, 2009 07:05 AM)LeX- Wrote:  It shows them inline ?
Maybe gonna add an option where to show them; inline or after firstpost .

ok that would be nice but not for only first post if you understand what im trying to say ...

example:


topic starter of thread

technoman
"Apple is a fruit"

reply

joe blow = really explain

reply

technoman = yes apples are good for the body and explain to him why there good and blah blah ....

thanks me * with an icon *


so right after i had explined apples are good for the body

after my last reply underneith my thread since he thanks me of course in sequence

People who gave thanks for this thread
1.joe blow. ( if only 1 person in order of course)

if more people thanked for that thread specifically
this is what it would show

( align center )People who have said thanks to this thread(align center)
1. joe blow, 2.Lex, 3.Jane etc.......


if you know what i mean Lex ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:



icon buffet