News:

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

Main Menu

Enhanced Profile Header

Started by Nibogo, January 30, 2009, 01:21:33 PM

Previous topic - Next topic

Nibogo


Enhanced Profile Header v1.2.3 - NIBOGO
Enhance the top of the forum for registered users.





Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customziation of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com

Author and Developer:
- NIBOGO

Features:
o New 'Show Own Posts' field
o New Personal Messages Info with this format: "Personal Messages : 1 messages, 0 are new"
o New Last Visit field
o New Links with 'Your Profile' 'Mark ALL messages as read' 'Logout'
o New My Stats Info with:
>> Your posts
>> Total Time Logged In
o New Forum Stats
>> Board info with this format: "11 posts in 4 topics by 3 members"
>> New Last User Info: "Please welcome [USERNAME], our newest member"


Compatibility:
- 1.1.X
- 2.0 RC2

Special Thanks:
- live627 (Taked the mod for sometime - Previous Developer)




Changelog:

1.2.3 - January 31, 2010, 12:12:00 AM
o Bug fix

1.2.2 - January 30, 2009, 03:43:00 PM
o Bug fix

1.2 - 10th January 2010
o Takeover by live627.
o Updated for 2.0 RC2.
o 1.1.11 support tag added.

1.1 - 08th October 2008
o Added 1.1.10 support tag

1.0 - 12th December 2008
o Initial Release.

Marcus Forsberg

Nice :)

Swedish translation:


$txt['my_stats'] = 'Min statistik';
$txt['you_have'] = 'Du har';
$txt['own_posts'] = 'Visa egna inlägg';
$txt['last_login'] = 'Senast inloggad';
$txt['your_profile'] = 'Din profil';

Nibogo

Quote from: Nas on January 30, 2009, 01:23:38 PM
Nice :)

Swedish translation:


$txt['my_stats'] = 'Min statistik';
$txt['you_have'] = 'Du har';
$txt['own_posts'] = 'Visa egna inlägg';
$txt['last_login'] = 'Senast inloggad';
$txt['your_profile'] = 'Din profil';


Thanks nas , i will update the package later with your translation ^^

Thanks

Looking

Great idea, my only concern are the number of extra queries this will take to show on every page, especially a busy forum.


Looking

How many extra queries is that 1 or 2 or more?

M-DVD

Quote from: Looking on January 30, 2009, 08:09:44 PM
How many extra queries is that 1 or 2 or more?

0 extra querys :P

--

Good MOD, makes most cute the Profile Header  :)


evil-angelist

Is there some switch to turn it on once installed ???

edi67

very intersting i will wait for smf 2
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

blondeamon

Hello

mna this is a cool mod. But i am having some trouble editing the index.template as the things i have to find and replace do not have the same names as the ones in the instruction.

Could you plz help me with the edit? Its attached.
Always looking for the best

www.kamenos.gr  Greek Gaming Community

evil-angelist

Quote from: NBG on January 30, 2009, 01:21:33 PM

Please use the modification thread for support with this modification.

(Please don't ask me to do the edits for you)

Quote from: blondeamon on January 31, 2009, 07:15:32 AM
Hello

mna this is a cool mod. But i am having some trouble editing the index.template as the things i have to find and replace do not have the same names as the ones in the instruction.

Could you plz help me with the edit? Its attached.

X your fingers.

blondeamon

Ιve edited dozens of mods for smf themes other than default but an admin cant rly do something if the theme he uses doesnt use the same comments as the one on the instructions. The only way is if the mod author helps him, ive been there many times.
Always looking for the best

www.kamenos.gr  Greek Gaming Community

p1tereq

Good work NBG.

1. Polish translation:

Quote$txt['my_stats'] = 'Moje statystyki';
$txt['you_have'] = 'Masz';
$txt['own_posts'] = 'Pokaż swoje wypowiedzi';
$txt['last_login'] = 'Ostatnio zalogowany';
$txt['your_profile'] = 'Twój profil';

2. Polish UTF-8 translation:

Quote$txt['my_stats'] = 'Moje statystyki';
$txt['you_have'] = 'Masz';
$txt['own_posts'] = 'Pokaż swoje wypowiedzi';
$txt['last_login'] = 'Ostatnio zalogowany';
$txt['your_profile'] = 'Twój profil';

Best luck ;)
Seeing the beauty of diversity in...

ke4obt

I like the mod, however, I have a small problem.
Due to other mods, I had to install the Enhanced Profile Header manually. Didn't get any errors after I uploaded the edited files (which for me is a pretty good thing), however, the log-in block at the top of the header still shows after you're logged in.
I'm sure I just overlooked something VERY simple, just can't wrap my brain around it right now.
If needed, I can post the code for that section of the index.template.php file, but I don't want to post it without somebody saying they would be able to look at it first.

Thanks in advance,
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE


ke4obt

nope, using SMF 1.1.7 default theme with some minor modifications. But, all the mods are ones we downloaded from SMF.
It's bedtime for us. We'll check later when we get up this evening.

Thanks,
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE


ke4obt

#18
1 - here's the index.template.php file - unmodified.
2 - since we have over 100 mods installed (as of now) I just made a text file of the list.
3 - this is a test site, so the mods may or may not remain on the "live" site when we're done testing which mods work together, which mods are actually needed, etc.
4 - thank you very much. :)

Edit--
Never mind the above post.
it took about 24 hours, but we figured out where we messed up and got it fixed and working right. So, I unattached the files.
One question, though, when it tells you that you have "4 message, 0 are new" - for the PMs - where can I go edit the code so that it says "message (s)"? I know it's a language string, but couldn't find it in modifications.english.php, so I figure it's somewhere else. :)

Thanks,
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

ke4obt

#19
ok, I think I have narrowed it down to this little section of code (I hope I didn't mess it up with my edits):

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
<a href="'.$scripturl.'?action=profile;sa=showPosts">'.$txt['own_posts'].'</a><br />';
if ($context['allow_pm'])
echo'
'.$txt[144].' : <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ?[i] $txt[471] : $txt[153],[/i] '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo'<br />';
if (!empty($user_info['last_login']))
echo ' '.$txt['last_login'].': '.timeformat($user_info['last_login']), '<br />';
}



I attached a screen shot so, hopefully you can see what I'm talking about for the problem I'm having. I believe it's calling text strings from the index.english.php, but since I'm not a coder I'm not positive and don't know how to check it out.
So, if anybody can at least point me in the right direction to fix this, I'd be very grateful.
Think the two text strings "153 and 471" need to be swopte, but not sure.

Thanks again,
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Advertisement: