News:

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

Main Menu

AvatarOnBoard

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

Previous topic - Next topic

MissyNL

Hi Johny.. maybe a stupid question, but wich version should i install? I have the 1.1.4 version of SMF.

Thanks!
Sorry for my poor English, but i think it's probably better then your Dutch :)

Bulakbol

Quote from: Lafemme on April 06, 2008, 11:43:33 AM
Hi Johny.. maybe a stupid question, but wich version should i install? I have the 1.1.4 version of SMF.

Thanks!

Hi Lafemme. Sorry for the confusion. The version 2.0 is for smf 1.1.4. The 2.0.2 is for SMF 2 beta 3 public. Thanks for trying/using this mod.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

MissyNL

Yes offcourse.. I think i almost have installed every mod from you :D  When my forum is online.. i'm writing a article sobthat all the girls on my forum can thank you writers for the mods.. :D 


Sorry for my poor English, but i think it's probably better then your Dutch :)

Bulakbol

Quote from: Lafemme on April 06, 2008, 12:10:23 PM
Yes offcourse.. I think i almost have installed every mod from you :D  When my forum is online.. i'm writing a article sobthat all the girls on my forum can thank you writers for the mods.. :D 


awww haha that will be too much Lafemme. A "thank you" from you is good enough for me. I thank you too for using my mods. If you need any help, just yell. lol  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

MissyNL

Well.. then your welcome :D

And thank you all for writing!! :D   lol
Sorry for my poor English, but i think it's probably better then your Dutch :)

Bulakbol

Quote from: Lafemme on April 07, 2008, 02:13:36 PM
Well.. then your welcome :D

And thank you all for writing!! :D   lol

Thanks again for the compliment.  ;) I enjoy writing but sometimes frustrated hehe.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

MissyNL

Yes.. i can imagine.. also the help you provide to people.. i guess it takes up a lot of your time..
Sorry for my poor English, but i think it's probably better then your Dutch :)

Bulakbol

Quote from: Lafemme on April 08, 2008, 09:52:12 AM
Yes.. i can imagine.. also the help you provide to people.. i guess it takes up a lot of your time..

When I asked for help, SMF community rushed and I appreciated their effort. I am returning the favor. I would like to help as much as I can.  ;)


<note to everyone>
I combined the two versions to 1 package earlier but I forgot to include the noavatar.gif to the installation file. There were 15 downloaders.

Please redownload the package, uninstall and reinstall or copy the noavatar.gif from the package to avatars folder your self to save time. I apologize for my mistake.

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

jmil

Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D

Bulakbol

Quote from: jmil on April 10, 2008, 02:54:09 PM
Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D

Thanks jmil. If you need assistance, Im here.  :P I know you installed manually by your self.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sorosh1

#170
Hai JohnyB GREAT MOD

I didnt have any problems with installing and it shows on my default theme (Core SMF theme)
But i use the Dilber MC (multi color) theme and it doesnt show up there.
Can you please help me? Can you tell me what to edit?
I would be really thankfull!

Sorosh

Bulakbol

@sorosh1. This mod support the dilbermc but if it didn't show up, then edit your BoardIndex.template.php and the MessageIndex.template.php. Try using the Package parser to edit manually. If you need assistance, let me know.  Thanks for using this mod.


Quote from: jmil on April 10, 2008, 02:54:09 PM
Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D

Thanks for the compliment jmil. And thanks for using this mod.  8)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sorosh1

Thanks for your quick repley JohnyB. Package parser is not working. It get this:

QuoteGeneral Package Information
This is general information about the package, such as the package ID and name.
Package ID: JB:AOB
Package name: AvatarOnBoard
Package version: 2.0
Package type: modification


Installation instructions for SMF versions: 1.1 - 1.1.99
Readme:
Author:JohnyB Mod Name:AvatarOnBoard Version:2.0.2
Tested:Freshly installed SMF 1.1.4 and SMF 2.0 Beta 3 Public


This will install AvatarOnBoard mod version 2.0

AvatarOnBoard 2.0 - SMF 1.1.4
- This mod will display the avatar of last poster in Board index, Child board index and topic index.
- This will also disable or enable the display and hide the childboards.
- The switches on or off of child boards and avatars and the width and the height can be configured in
~ Admin -> Features and options -> Layout and Options. It's in the bottom.
- The default avatar width is 35 pixels and the default height is sero (0) pixels.
- Zero (0) in width, the settings in (Admin -> Attachments and Avatars Settings) will be used.
- Added switch on or off for the avatar on Board. To disable the avatar, tick the checkbox.
- Extended to last poster in topic index.

Supported SMF 1.1.4 Themes
- Aa New Damage
- Babylon
- Classic
- Default Core
- Dilber Multi Color
- Helios_multi
- wowdk_114v1

Supported SMF 2.0 Beta 3 Public Themes
- Babylon
- Classic
- Default Core

Note:
If during the installation skipped your theme, there must be something wrong. Do not continue the installation.
Install the mod manually. Use the Package Parser.


--------------------------------------------------------------------------------

PHP script to execute: AvatarOnBoardDB114.php

Files installed
noavatar.gif will be copied to $boarddir/avatars
Modifications to SMF files

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 676: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE7 0xE3 0x6F 0x20 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$helptxt['who_enabled'] = ' Esta op��o per in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpwf9Lm4', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Can you please tell me what to edit in BoardIndex.template.php and the MessageIndex.template.php? Or a other Package Parser?
Anyway thanks for all your help ;)

Bulakbol

Hi soroshi1. The parser have problem parsing other language strings. Go here and under the mod's filename, you can see "Manual Install Instructions for SMF'. Select the version of SMF and click submit button. You can see the details. Let me know if you still have problem. 
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Alan S

#174
Hey , Bit of a problem

Using the Themis TP theme , I manualy installed it on the board index which works find. , However on the message index either the wrong avatar appears , the blank avatar icon appears , or its just a blank space?

It only happens on the topics within a board , The child board avatars display fine.

Screen: http://xs126.xs.to/xs126/08160/untitled388.jpg ( Sorry for the messyness , i done it quickly )

MessageIndex code ( A few lines of the code below the avatar code and above created )


   if (!empty($board['children']))
                        {
                                $children = array();
                                foreach ($board['children'] as $child)
                                {
                                        $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                        $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                }

                                echo '
                                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                        }

                        echo '
                                </td>';
if (!$modSettings['disable_avatar']) echo ' <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center"> ', $board['last_post']['member']['avatar'], ' </td>'; echo '


                                <td class="smalltext" valign="middle" width="22%">';

                        if (!empty($board['last_post']['id']))
                                echo '
                                        ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
                                        ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];

                        echo '
                                </td>
                        </tr>';
                }


2nd bit in the messageindex


// Is this topic new? (assuming they are logged in!)
                if ($topic['new'] && $context['user']['is_logged'])
                        echo '
                  <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                                <span class="smalltext">', $topic['pages'], '</span>
                                        </td>
                                        <td class="windowbg2" valign="middle" width="14%">
                                                ', $topic['first_post']['member']['link'], '
                                        </td> ';
                                              if (!$modSettings['disable_avatar']) echo ' <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center"> ', $board['last_post']['member']['avatar'], ' </td>'; echo '

                                        <td class="windowbg2" valign="middle" width="22%"><span class="small2text">
                                               <a href="', $topic['last_post']['href'], '">
                                               <img alt="go" src="', $settings['images_url'], '/newmark.gif" align="right" hspace="3" border="0" /></a>
                                                ', $topic['last_post']['time'], '<br />
                                                ', $txt[525], ' ', $topic['last_post']['member']['link'], '

                                        </span></td>';

                // Show the quick moderation options?


Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Bulakbol

Hi AlanS. I apologize for the late reply. I lost my ISP for 3 days and used cafe (slow) to login. I got back my ISP and am here again. Please attach your edited BoardIndex.template.php and MessageIndex.template,php. I would like to see them both.

Again, I apologize for the late reply.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Alan S

#176
No problem , I know these things can happen! Experienced it myself a few times so no worries!

Board & Message Index attached

The forum is running 1.1.4 , It is a heavly moded forum and there are a few custom edits in both the files i made myself

Theme is Tinyportal_Themis

Thanks
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Scferg

Well, here's where you told me to post.

I've attached my two files.

Thanks!  ;)

Marcus Forsberg

Swedish translation:

ModSettings.swedish.php:
$txt['disable_avatar'] = 'Göm avatarer på tavlan?';
$txt['board_avatar_width'] = 'Bredd på avatar.';
$txt['board_avatar_height'] = 'Höjd på avatar.';
$txt['display_childboards'] = 'Göm deltavlorna?';

Help.swedish.php
$helptxt['disable_avatar'] = 'Denna funktion aktiverar eller avaktiverar avatarer på tavlor';
$helptxt['board_avatar_width'] = 'Här skriver du vilken bredd avatarer ska ha. Skriv 0 för att använda standardbredden.';
$helptxt['board_avatar_height'] = 'Här skriver du vilken höjd avatarer ska ha. Skriv 0 för att använda standardhöjden.';
$helptxt['display_childboards'] = 'Denna funktion gör att avatarerna syns/inte syns på deltavlor.';

Bulakbol

#179
@AlanS. I'll check your template files. I'll get back to you of course.  :)

@scferg. I'll attach your template files after I finish editing them.

@MTF95. Thanks for the translation. I'll update the package later.


<EDIT>
@AlanS. Can you check something for me because the first version has a bug.  In Sources/Message.php, look for
att.ID_ATTACH, att.attachmentType, att.filename, meml.avatar,
and make sure that the last field is meml.avatar and not memf.avatar.

@scferg. Your theme use the default/MessageIndex.template.php so you don't have to edit that one. Here's your edited BoardIndex.template.php. Make sure you install the mod before using this template.

@MTF5. Package is updated. Thanks.
</EDIT>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: