News:

Wondering if this will always be free?  See why free is better.

Main Menu

Enhanced Profile Header

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

Previous topic - Next topic

mghome59

#80
Same problem here. Maybe it`s a good idea to replace the code instead add after

On installation instructions you have

Find:

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings

Add after :
$user_info

I think the beter way is :

Find:

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings

Replace with :

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings, $user_info

Regards

societyofrobots

Simple feature request: allow us to control what does and doesn't get displayed.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

live627

I tried your attached file and the header for me is below. No errors.

    * Hello live
    * Show unread posts since last visit.
    * Show new replies to your posts.
    * Show Own Posts
      you have 0 messages 0 are new
    * January 30, 2010, 12:47:41 pm

Can you tell me again what you try to do?

Joker™

im getting error here when installing it



Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 286

277: echo '
278: <li class="notice">', $txt['maintain_mode_on'], '</li>';
279:
280: // Are there any members waiting for approval?
281: if (!empty($context['unapproved_members']))
282: echo '
283: <li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>
284: <hr>
285: <div align="center"><a href="'.$scripturl.'?action=profile">'.$txt['your_profile'].'</a> | <a href="'.$scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id'],'">'.$txt['mark_as_read'].'</a> | <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt['logout'] , '</a></div>';

286: <b>'.$txt['my_stats'].':</b><br />

287: &raquo; '.$txt['you_have'].' <b>'.$user_info['posts'].'</b> '.$txt[21].'<br />
288: &raquo;';
289:
290:


Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

live627

On line 285
<div align="center"><a href="'.$scripturl.'?action=profile">'.$txt['your_profile'].'</a>  | <a href="'.$scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id'],'">'.$txt['mark_as_read'].'</a> | <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt['logout'] , '</a></div>';

take out '; (the two characters at the end)

Joker™

Quote from: live627 on January 30, 2010, 03:07:51 PM
On line 285
<div align="center"><a href="'.$scripturl.'?action=profile">'.$txt['your_profile'].'</a>  | <a href="'.$scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id'],'">'.$txt['mark_as_read'].'</a> | <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt['logout'] , '</a></div>';

take out '; (the two characters at the end)


yup it worked :D

plz do make the correction in package also for other

thanx alot
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

live627

Version 1.2.2 fixes a bug that triggers a parse error in index.template.php. Only the 2.0 branch is affected.

tfs

I'm trying to install 1.22, but it's getting an install error upon install into a vanilla SMF 2.0 RC2 forum.

On     ./Themes/default/index.template.php

Find:
function template_body_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings 

Add After:
, $user_info


It appears the inability to do the find/add is based solely on placement of a carriage return and/or a tab.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

live627

I fixed and reuploaded as 1.2.3

tfs

Confirm install problem fixed on 1.2.3.

It appears to like Core more than Curve.  Here's what I get on Curve.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

~DS~

Quote from: tfs on January 30, 2010, 11:12:46 PM
Confirm install problem fixed on 1.2.3.

It appears to like Core more than Curve.  Here's what I get on Curve.
Same here. There is also a problem uninstall custom themes. It doesn't uninstall them, had to manually find the files where it install and comment out those lines to uninstall.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

live627

Quote from: Dismal Shadow on January 30, 2010, 11:57:13 PM
There is also a problem uninstall custom themes. It doesn't uninstall them, had to manually find the files where it install and comment out those lines to uninstall.

That sounds like another instance of when mods don't uninstall correctly on custom themes. I'm not sure though

rafalek

Quote from: tfs on January 30, 2010, 11:12:46 PM
Confirm install problem fixed on 1.2.3.

It appears to like Core more than Curve.  Here's what I get on Curve.

Hello Sirs :),

Thx for the great mod! I just get same layout as the Colleague above, seems like some items are missing (like Logout, Welcome new member and division lines) aby ideas why ? Should I use core theme instead ?

Thank you hugely for any advices on this issue and sorry if my question is stupid.

Warm regards from Warsaw!

GrassrootsPA

Folks, I'm a SMF newbie running 2.0 RC2.

Enhanced Profile Header 1.2.3 installs but does absolutely nothing.

My theme is 5th designed by pixelslot (the latest one). Tried switching to the default themes and still nothing.

Is this simply an issue where I will need to wait until RC3 is finished for it to work right?
I'm Feeling This!

.Crazy.Face.

I would use this if my forum even saw that!

haha, check it out: http://justcrazy.co.cc

how do i show it right underneath my logo area? (I want the Enhanced Profile Mod features added)

GrassrootsPA

I'm lost. Is there some sort of way to turn this on or off?

I'm running 2.0 RC2 and it seems to install fine but doesn't do anything. Is there something I'm missing?
I'm Feeling This!

7s-1k

Dutch translation ;)

$txt['my_stats'] = 'Mijn Statistieken';
$txt['you_have'] = 'U heeft';
$txt['own_posts'] = 'Laat eigen berichten zien';
$txt['last_login'] = 'Laatste keer ingelogd';
$txt['your_profile'] = 'Uw Profiel';
One Day, Two Many

live627

@Grassroots and .CrazyFace.: When you install the mod, you have the option to install in additional themes. The mod may need uninstalled first.

GrassrootsPA

Thanks live627. Will try uninstalling, reinstalling on the default theme and see if that works.

Even though I have not been able to activate this yet, hats off on your Mod. Looks very cool!  ;D
I'm Feeling This!

Advertisement: