Hi , i´ve installed Experience Bar Mod, it work fine in default but in my theme no, why is that?
I implemented in Modifications_portuguese, and Display_template, and activated , and move the pictures...
This is the code i have in Display_template, it seems wright, whta is wrong , or what i must do more....
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
//Bar of Experience Mod
$bar_posts = $message['member']['posts'];
barExp();
if (!empty($modSettings['bar_exp_enabled']))
$bar_exper = '<br /><br />' . $bar_exps . '<br />';
else
$bar_exper = '';
echo '
<br /><br />', $bar_exper, '<br />';
}
// Otherwise, show the guest's email.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
-JayBachatero
i did xcorrectly but nothing hapened.....
Can you post the Dsplay.template.php for the theme you want to add it to?
-JayBachatero
You don't have any opening braces, so why do you have two closing braces in your code?
There are also 2 more files that should be edited, in $sources/ModSettings.php, and Display.php! Did these modifications go through as well?
Yes , but to my them only need to change these templates:
There it is my Display template, (default and of my theme), i put both because in defualt theme it works.....
EDIT
Problem solved.....
It was missing one line in the top of display.template
global $bar_exps, $bar_posts;
Thank you to all..and happy new year
i installed it too. it is very interesting mod.