AvatarOnBoard

Started by Bulakbol, February 18, 2008, 10:39:03 PM

Previous topic - Next topic

Bulakbol

To add "Avatar" column, edit your MessageIndex.template.php.
Code (find) Select
<td colspan="', !$modSettings['disable_avatar'] ? '2' : '', '" class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Code (replace) Select
<td class="catbg3 align="center">Avatar</td>
<td  class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

nay27uk

Quote from: JohnyB on October 31, 2008, 11:08:17 PM
To add "Avatar" column, edit your MessageIndex.template.php.
Code (find) Select
<td colspan="', !$modSettings['disable_avatar'] ? '2' : '', '" class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Code (replace) Select
<td class="catbg3 align="center">Avatar</td>

<td  class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';


Thanks it worked a treat

Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra

public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)

Undefined index: board_avatar_width

Undefined index: disable_avatar

the mods its working grat but i have this errors on my log is this normal?

Bulakbol

I deleted your bump sombra. Do not bump your post within 24 hours.
Maybe the mod was not installed properly. Attach your Sources/BoardIndex.php and I'll take a look.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

You attached the wrong file. I need to look at the Sources/BoardIndex.php.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra


Bulakbol

I assumed you were using SMF 1.1.6 that's why I asked for BoardIndex.php.  You didn't tell me that you are using Beta 4.  You were right the first time attaching Subs-BoardIndex.php.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra

#308
heres mi file hope you can help me out

Bulakbol

@sombra
There's nothing wrong with your file. Check your default/languages/ManageSettings.english.php and make sure the following lines exists.
$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';


If you are using language other than english, copy those lines to default/ManageSettings.{your language}.php.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra

they are there

$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';

im using darkbreak theme maybe its that?

Bulakbol

Can you post a link to your forum? I'm not sure where the error is coming from. Attach your theme's BoardIndex.template.php too. I'll take a look.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra

its working freat mi forum its only that i notice that i had som error on my log and was asking if its somthing serius or not dont know hehe

public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)

Undefined index: board_avatar_width

Undefined index: disable_avatar

but ill see if it comes up againt i had deleted the error log and see if its aprears again ill let you know

Bulakbol

Attach your BoardIndex.template.php and I'll try to get rid of the error.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra

i dont have that im the theme im using i need to bring you the one from the default them or?

Bulakbol

If the theme you are using does not have its own BoardIndex.template.php, then it is using the default one. Attach that one to your next post.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra


Bulakbol

@sombra
Attach your Sources/ManageSettings.php. There's something wrong with your installation.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sombra


Bulakbol

@sombra
I am baffled. I can't find anything wrong with your files. Try this BoardIndex.template.php.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: