Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Who Referred ?
#21
This user has been denied support. This user has been denied support.
(2014-12-13, 10:27 AM)Eldenroot Wrote: Is possible to style username?

http://community.mybb.com/thread-163440-...pid1124331
Beep Boop          
                                          ~ RIP Server 2014-2014
Reply
#22
Its totally possible, but I have not released updated plugin Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#23
This user has been denied support. This user has been denied support.
(2014-12-13, 01:13 PM)Leefish Wrote: Its totally possible, but I have not released updated plugin Smile

Basically omar wants u to do it like,

$whorefer_referrals = $lang->no_referrer;

if ((int)$memprofile['referrer'] > 0)
    if (($referral = $db->fetch_array($db->simple_select('users', 'uid, username, usergroup, displaygroup'))) && !empty($referral))
        $whorefer_referrals = build_profile_link(format_name(htmlspecialchars_uni($referral['username']), $referral['usergroup'], $referral['displaygroup']), $referral['uid']);


(Most likely out using var assignments in the if statement cuz it looks ugly but I love it, and I hate how we're using a fixed layout)
Beep Boop          
                                          ~ RIP Server 2014-2014
Reply
#24
(2014-12-13, 01:20 PM)Rakes Wrote:
(2014-12-13, 01:13 PM)Leefish Wrote: Its totally possible, but I have not released updated plugin Smile

Basically omar wants u to do it like,


$whorefer_referrals = $lang->no_referrer;

if ((int)$memprofile['referrer'] > 0)
    if (($referral = $db->fetch_array($db->simple_select('users', 'uid, username, usergroup, displaygroup'))) && !empty($referral))
        $whorefer_referrals = build_profile_link(format_name(htmlspecialchars_uni($referral['username']), $referral['usergroup'], $referral['displaygroup']), $referral['uid']);


(Most likely out using var assignments in the if statement cuz it looks ugly but I love it, and I hate how we're using a fixed layout)

Only Instaflam could do something like this.
Reply
#25
New version uploaded - now with username styling and only queries if a query is actually needed.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#26
This user has been denied support. This user has been denied support.
(2014-12-15, 02:37 PM)Leefish Wrote: New version uploaded - now with username styling and only queries if a query is actually needed.

Not even a thanks for helping you understand that hook?
Beep Boop          
                                          ~ RIP Server 2014-2014
Reply
#27
Please move lang file into inc/languages/english

now you have it in inc/languages and it makes issues with language forum selection Sad

EDIT: nevermind - it was an issue from your outdated version Wink

EDIT: Please change compatibility line to "18*"
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#28
You should be credited in the top of the plugin file Rakes; I already did say thank you I thought? Sorry if I omitted to do so because it was a very good idea to only query when I needed to.

And the format username also very useful.

Thank you Smile

EDIT: No, you are credited in ShowRefer which I am just finishing. I will add it also in who refer.

Ok, file updated with the compatibility fix, languages in all correct place, Rakes immortalised in plugin file Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#29
Don't know if you ever plan on updating this but I have an idea.

Only show the Referred by: on profiles that actually used a referral upon signup. Less confusion that way.
Reply


Forum Jump:


Users browsing this thread: 10 Guest(s)