Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on June 23, 2008, 05:19:47 PM

Title: Images On Board
Post by: Bulakbol on June 23, 2008, 05:19:47 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1266)

Author: JohnyB    Mod Name: ImagesOnBoard    Version: 1.0
Tested: Freshly installed SMF 1.1.5 and SMF 2.0 Beta 3.1 Public

   
Images On Board 1.0
     
Supported Themes

Supported languages

December 21, 2008

Here's how the upgrade work. At least the way I did it.

For version 1.1.7
What you will see after uploading the upgrade.
Quote
9. Images On Board 1.1           [ Uninstall ] [ List Files ] [ Delete ] 
10. Images On Board 2.0          [ Upgrade ] [ List Files ] [ Delete ]

After the upgrade.
Quote
9. Images On Board 1.1                           [ List Files ] [ Delete ] 
10. Images On Board 2.0        [ Uninstall ] [ List Files ] [ Delete ]

After uninstallation.
Quote
9. Images On Board 1.1       [ Apply Mod ] [ List Files ] [ Delete ] 
10. Images On Board 2.0     [ Apply Mod ] [ List Files ] [ Delete ]

You can install either the version 2.0 or the version 1.1.


For verson 2.0 Beta 4
It is different. Install and uninstall only the upgrade just like any other mod.

February 18, 2009
Released update for version 2.0 RC1



June 19, 2009
Images On Board
Supported Themes
Supported languages
Note:

June 19, 2009
+ Added Italian language. (Thanks SilvioTO).
Title: Re: Images On Board
Post by: jossanaijr on June 23, 2008, 08:25:09 PM
Great Mod!
Title: Re: Images On Board
Post by: 4Kstore on June 23, 2008, 09:43:44 PM
perfect mod !! thanks man !!
Title: Re: Images On Board
Post by: Bulakbol on June 23, 2008, 09:53:27 PM
Thanks guys for trying or using this mod.

The default images directory is Themes/default/images/ImagesOnBoard folder.
Title: Re: Images On Board
Post by: Nibogo on June 23, 2008, 10:39:59 PM
Awesome mod:

Spanish

Quote$txt['board_image'] = '<b>Nombre de la imagen para esta categoria:</b><br />Incluyendo la extension del archivo. (ejemplo: xx.gif)';
Title: Re: Images On Board
Post by: Qayyom Ashraf on June 24, 2008, 03:00:59 AM
Nice Mod

Any live demo?
Title: Re: Images On Board
Post by: Bulakbol on June 24, 2008, 04:11:34 AM
I updated the mod and added Spanish language. Thanks NIBOGO.

I also corrected my mistake. :P The modifications.{language}.php was changed to Modifications.{language}.php.

Live Demo (http://www.shinyblue115.kalesangbayan.com)


Title: Re: Images On Board
Post by: Yağız... on June 24, 2008, 05:51:20 AM
Nice mod. Turkish Translation:
$txt['board_image'] = '<b>Bu bölüm için resim ismi:</b><br />Dosyanın uzatısınıda yazmalısınız. (örnek. xx.gif)';
Title: Re: Images On Board
Post by: Bulakbol on June 24, 2008, 05:56:48 AM
Thanks Yağız. I'll update the mod later.


edit:
Turkish language translation added.
Title: Re: Images On Board
Post by: FerociousSM on June 24, 2008, 10:43:47 AM
Nice mod. Any plans on getting it to work with Musiconica theme?
Title: Re: Images On Board
Post by: Yağız... on June 24, 2008, 10:45:47 AM
Quote from: JohnyB on June 24, 2008, 05:56:48 AM
Thanks Yağız. I'll update the mod later.


edit:
Turkish language translation added.

Thank you too Johny.
Title: Re: Images On Board
Post by: Apllicmz on June 24, 2008, 04:30:50 PM
Nice work
good mod
Update portuguese and brazilian support utf8 smf 1.1.x and 2.0 beta 3.1

<file name="$languagedir/modifications.portuguese.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['board_image'] = '<b>Nome da imagem para esta quadro:</b><br />Incluir arquivo extens&atilde;o. (i.e. xx.gif)';
]]></add>
      </operation>
   </file>   
   <file name="$languagedir/modifications.brazilian.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['board_image'] = '<b>Nome da imagem para esta quadro:</b><br />Incluir arquivo extens&atilde;o. (i.e. xx.gif)';
]]></add>
      </operation>
   </file>   


<file name="$languagedir/modifications.portuguese-utf8.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['board_image'] = '<b>Nome da imagem para esta quadro:</b><br />Incluir arquivo extens&atilde;o. (i.e. xx.gif)';
]]></add>
      </operation>
   </file>   
   <file name="$languagedir/modifications.brazilian-utf8.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['board_image'] = '<b>Nome da imagem para esta quadro:</b><br />Incluir arquivo extens&atilde;o. (i.e. xx.gif)';
]]></add>
      </operation>
   </file>         
</modification>   


<!-- default/languages/Modifications.portuguese_pt.php -->
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
  <operation>
   <search position="end" />
   <add><![CDATA[
$txt['disable_iob'] = 'N&atilde;o mostrar imagens do quadro.';
$txt['board_image'] = 'Nome da imagem para este f&oacute;rum';
$txt['board_image_desc'] = 'Incluir extens&atilde;o. (i.e. stop.png)';
$txt['board_img_link'] = 'Link para a imagem acima';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';
$txt['upload_title'] = 'Fazer upload de imagens';
$txt['select_files'] = 'Selecione um ficheiro';
$txt['valid_file_types'] = 'V&aacute;lidar tipos de ficheiros que s&atilde;o';
$txt['invalid_file_extension'] = 'Desculpas. <span style="color: #FF0000;">%s</span> tinha uma extens&atilde;o de ficheiro inv&aacute;lido. Enviar abortado.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Falha no upload! Desconhecido erro.</span><br />';
$txt['file_too_big'] = 'Desculpas. <span style="color: #FF0000;">%s</span> era muito grande. Enviar abortado.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> n&atilde;o se pode mover. Erro desconhecido.';
$txt['upload_successful'] = '<span style="color: blue;">Ficheiro carregado com sucesso. Obrigado.</span> - %s<br />';
$txt['file_exists'] = 'Desculpas. %s j&aacute; existem. Experimente um outro ficheiro ou renomear o ficheiro.<br/>';
$txt['maximum_allowed'] = 'O tamanho m&aacute;ximo permitido pelo servidor &eacute; <strong>%s</strong> kilobytes ou <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'O tamanho m&aacute;ximo permitido para upload &eacute; <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
  </operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
  <operation>
   <search position="end" />
   <add><![CDATA[
$txt['disable_iob'] = 'N&atilde;o mostrar imagens do quadro.';
$txt['board_image'] = 'Nome da imagem para este f&oacute;rum';
$txt['board_image_desc'] = 'Incluir extens&atilde;o. (i.e. stop.png)';
$txt['board_img_link'] = 'Link para a imagem acima';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';
$txt['upload_title'] = 'Fazer upload de imagens';
$txt['select_files'] = 'Selecione um ficheiro';
$txt['valid_file_types'] = 'V&aacute;lidar tipos de ficheiros que s&atilde;o';
$txt['invalid_file_extension'] = 'Desculpas. <span style="color: #FF0000;">%s</span> tinha uma extens&atilde;o de ficheiro inv&aacute;lido. Enviar abortado.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Falha no upload! Desconhecido erro.</span><br />';
$txt['file_too_big'] = 'Desculpas. <span style="color: #FF0000;">%s</span> era muito grande. Enviar abortado.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> n&atilde;o se pode mover. Erro desconhecido.';
$txt['upload_successful'] = '<span style="color: blue;">Ficheiro carregado com sucesso. Obrigado.</span> - %s<br />';
$txt['file_exists'] = 'Desculpas. %s j&aacute; existem. Experimente um outro ficheiro ou renomear o ficheiro.<br/>';
$txt['maximum_allowed'] = 'O tamanho m&aacute;ximo permitido pelo servidor &eacute; <strong>%s</strong> kilobytes ou <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'O tamanho m&aacute;ximo permitido para upload &eacute; <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
  </operation>
</file>


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
  <operation>
   <search position="end" />
   <add><![CDATA[
$txt['disable_iob'] = 'N&atilde;o mostrar imagens do quadro.';
$txt['board_image'] = 'Nome da imagem para este f&oacute;rum';
$txt['board_image_desc'] = 'Incluir extens&atilde;o. (i.e. stop.png)';
$txt['board_img_link'] = 'Link para a imagem acima';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';
$txt['upload_title'] = 'Fazer upload de imagens';
$txt['select_files'] = 'Selecione um ficheiro';
$txt['valid_file_types'] = 'V&aacute;lidar tipos de ficheiros que s&atilde;o';
$txt['invalid_file_extension'] = 'Desculpas. <span style="color: #FF0000;">%s</span> tinha uma extens&atilde;o de ficheiro inv&aacute;lido. Enviar abortado.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Falha no upload! Desconhecido erro.</span><br />';
$txt['file_too_big'] = 'Desculpas. <span style="color: #FF0000;">%s</span> era muito grande. Enviar abortado.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> n&atilde;o se pode mover. Erro desconhecido.';
$txt['upload_successful'] = '<span style="color: blue;">Ficheiro carregado com sucesso. Obrigado.</span> - %s<br />';
$txt['file_exists'] = 'Desculpas. %s j&aacute; existem. Experimente um outro ficheiro ou renomear o ficheiro.<br/>';
$txt['maximum_allowed'] = 'O tamanho m&aacute;ximo permitido pelo servidor &eacute; <strong>%s</strong> kilobytes ou <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'O tamanho m&aacute;ximo permitido para upload &eacute; <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
  </operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
  <operation>
   <search position="end" />
   <add><![CDATA[
$txt['disable_iob'] = 'N&atilde;o mostrar imagens do quadro.';
$txt['board_image'] = 'Nome da imagem para este f&oacute;rum';
$txt['board_image_desc'] = 'Incluir extens&atilde;o. (i.e. stop.png)';
$txt['board_img_link'] = 'Link para a imagem acima';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';
$txt['upload_title'] = 'Fazer upload de imagens';
$txt['select_files'] = 'Selecione um ficheiro';
$txt['valid_file_types'] = 'V&aacute;lidar tipos de ficheiros que s&atilde;o';
$txt['invalid_file_extension'] = 'Desculpas. <span style="color: #FF0000;">%s</span> tinha uma extens&atilde;o de ficheiro inv&aacute;lido. Enviar abortado.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Falha no upload! Desconhecido erro.</span><br />';
$txt['file_too_big'] = 'Desculpas. <span style="color: #FF0000;">%s</span> era muito grande. Enviar abortado.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> n&atilde;o se pode mover. Erro desconhecido.';
$txt['upload_successful'] = '<span style="color: blue;">Ficheiro carregado com sucesso. Obrigado.</span> - %s<br />';
$txt['file_exists'] = 'Desculpas. %s j&aacute; existem. Experimente um outro ficheiro ou renomear o ficheiro.<br/>';
$txt['maximum_allowed'] = 'O tamanho m&aacute;ximo permitido pelo servidor &eacute; <strong>%s</strong> kilobytes ou <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'O tamanho m&aacute;ximo permitido para upload &eacute; <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
  </operation>
</file>

Title: Re: Images On Board
Post by: Holyfrey on June 24, 2008, 05:42:23 PM
I wonder if you can tell me what I most do to make it work in other themes to ?

I have installed this theme (see Attach) named Tritin11 and I cant get it to work because I cant
find where I shell put in the code.
Title: Re: Images On Board
Post by: Bulakbol on June 24, 2008, 08:47:11 PM
@perociousSM
It's easy to edit BoardIndex.template.php and MessageIndex.template.php. There are only three lines. Try your hands on it and if you think it's hard to do, then attach your BoardIndex.template.php and MessageIndex.template.php.

@Joomlamz
Package is updated with your additional languagse translation. Thanks.

@tmyrdal
If your theme is Triton11, then here's what you have to do. Open your Triton11/BoardIndex.template,php and look for
Quote<td class="windowbg2" valign="top" style="padding: 5px 10px 5px 10px;">
replace with
Quote<td class="windowbg2" valign="top" style="padding: 5px 10px 5px 10px;">';
            if (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
            
            echo '

then the Triton11/MessageIndex.template.php, find
Quote<td class="windowbg2">
and replace with
Quote<td class="windowbg2">';
            if (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
            
            echo '

That's all.
Title: Re: Images On Board
Post by: Garry1953 on June 25, 2008, 12:57:07 AM
Handy Mod.
Thanks
Title: Re: Images On Board
Post by: jezzb on June 25, 2008, 04:21:11 AM
Excellent Mod - Well Done & Thanks

Jezzb
Title: Re: Images On Board
Post by: keyboard on June 25, 2008, 09:17:57 AM
Many,many thanks for this mod.. :) :) :)   You can really dress up a sometimes bored and lifeless default theme with this..

We need more mods like this, that will work with default template, that will address the " how it looks "

again thank you very much
Ron
Title: Re: Images On Board
Post by: Relyana on June 25, 2008, 12:59:19 PM
Thanks a lot JohnyB ! Awesome mod  :D

It did take me some good minutes to figure it out what to edit and where (on Dilber MC) but it works out now.  ;D
Title: Re: Images On Board
Post by: Nugget on June 25, 2008, 02:59:10 PM
Here's an idea - instead of the image being beside the board name - shift it to the left and replace the SMF image logo.
The default SMF logos in a vertical row do not look the best.
Nugget
Title: Re: Images On Board
Post by: Relyana on June 25, 2008, 03:18:57 PM
Quote from: Nugget on June 25, 2008, 02:59:10 PM
Here's an idea - instead of the image being beside the board name - shift it to the left and replace the SMF image logo.
The default SMF logos in a vertical row do not look the best.
Nugget

What are you talking about ? What SMF image logo ?  :-\ (sorry but I'm a little bit confused  :P )
Title: Re: Images On Board
Post by: CrazyHorse80 on June 25, 2008, 03:29:10 PM
Quote from: Nugget on June 25, 2008, 02:59:10 PM
Here's an idea - instead of the image being beside the board name - shift it to the left and replace the SMF image logo.
The default SMF logos in a vertical row do not look the best.
Nugget

Try this:
http://www.simplemachines.org/community/index.php?topic=126263.0
Bye,
PS
Title: Re: Images On Board
Post by: Bulakbol on June 25, 2008, 03:46:35 PM
@FerociousSM 
   Do you still need assistance?

@Gary1953,  jezzb, keyboard
   Thanks a bunch for trying/using this mod. :)

@Relyana
   That's great! You found out that this mod is not hard to install manually. Congratz!

@nugget.
   CrazyHorse80 is correct. There's a mod for altering board icons already. It is called "Custom Board Icon" or CBI in short. :)
Title: Re: Images On Board
Post by: MaXiForum.cz on June 26, 2008, 07:48:59 AM
Hi, help me anybody with BlueAce theme? - attach
It´s a perfekt mod and I don't know how modificated this theme :-[
Pls. I am sad...  :-\  O:)
THX  ;) :)
Title: Re: Images On Board
Post by: 7earitup on June 26, 2008, 03:43:35 PM
Hey JohnyB,

Could you edit these for me? I tried doing it manually but failed utterly everytime. I really appreciate any help, even if you just point me to a guide.

Thanks  :D

EDIT: PS> JohnyB - I would also like your Avatar on Board mod implemented too if possible. Thanks
Title: Re: Images On Board
Post by: Bulakbol on June 26, 2008, 10:41:16 PM
@MaxiPes.
  Upload your BoardIndex.template.php and MessageIndex.template.php.

@7earitup.
  I will get back to you with your files. Remind me about the AvatarOnBoard here (http://www.simplemachines.org/community/index.php?topic=223656.220)
Title: Re: Images On Board
Post by: MaXiForum.cz on June 27, 2008, 01:45:41 AM
2 JohnyB it is in attach :) THX ;)
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 01:49:14 AM
Quote from: MaxiPes on June 27, 2008, 01:45:41 AM
2 JohnyB it is in attach :) THX ;)

Ok MaxiPes, I'll look at them later. I'll get back to you.
Title: Re: Images On Board
Post by: MaXiForum.cz on June 27, 2008, 06:52:46 AM
Quote from: JohnyB on June 27, 2008, 01:49:14 AM
Ok MaxiPes, I'll look at them later. I'll get back to you.

THX JohnyB ;) :)
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 08:06:19 AM
@MaxiPes.
   Here's your BoardIndex.template.php and MessageIndex.template.php. Install the mod first before using them. Make a back up the original ones.


@7earitup.
   I am adding the AvatarOnBoard as well so it is taking me a while. What custom theme are you using?
Title: Re: Images On Board
Post by: jepot5 on June 27, 2008, 09:36:16 AM
hey JohnyB can u please help me too?
i tried doing it myself and here's what happened
http://www.simplemachines.org/community/index.php?topic=246644.0

Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 09:47:08 AM
Attach your BoardIndex.template.php. What custom theme are you using?

edit: Got it. I need the name of your theme to make sure.



@jpot5.
   I can't do the edit for you if you won't tell me the name of the theme you are using.
Title: Re: Images On Board
Post by: jepot5 on June 27, 2008, 10:30:35 AM
dark fantasy
sorry for the late reply
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 10:45:13 AM
Got it. Here's your BoardIndex.template.php jpot5. Thanks for using this mod.

Title: Re: Images On Board
Post by: jepot5 on June 27, 2008, 11:00:19 AM
thanks heaps that worked
Title: Re: Images On Board
Post by: 7earitup on June 27, 2008, 12:27:42 PM
@ JohnyB

The themes name is colatesi_v3. It is attached below. Alot of the stuff is in Turkish, which I have been converting to English so I can use it on my website at http://www.go-diaf.com/index.php?option=com_smf&Itemid=60

Thanks  :D
Title: Re: Images On Board
Post by: Holyfrey on June 27, 2008, 01:39:36 PM
Thanks JohnyB you are so nice, big big thanks.
Title: Re: Images On Board
Post by: runvs on June 27, 2008, 05:37:14 PM
Installations actions for "Images On Board":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    ImagesOnBoardDB115.php    
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test failed
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
18.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.portuguese-utf8.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    Skipping file
23.    Execute Modification    ./Themes/default/languages/Modifications.brazilian-utf8.php    Skipping file
24.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file

Using default theme
smf 1.1.5
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 07:31:03 PM
@7earitup.
Ok, I just got the theme that you attached. I'll get back to you.


@runvs.
You can send me a copy of your default/MessageIndex.php before you install the mod.  After I send it back to you, then install the mod.



<EDIT>
@7earitup
Sorry, I just did the imagesOnBoard for now. I tried to insert the AvatarOnBoard but I am having a hard time. Messy codes is to be blamed. I will try again next time. I'll let you know when it's done.
MessageIndex.template.php and BoardfIndex.template.php with imagesOnBoard mod attached.
</EDIT>
Title: Re: Images On Board
Post by: secangel on June 27, 2008, 10:59:05 PM
JohnyB,

I have manually installed the mod on the smfone_multicolour theme, smf 1.1.5

at www.secblitz.com and am getting this at the top of every forum page:


$txt['board_image'] = 'Name of image for this board:
Include file extension. (i.e. xx.gif)';


Can you please tell me what I have done wrong?  Please
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2008, 11:27:21 PM
Hi secangel.
    Open default/languages/Modifications.english.php and look for ?> tag. Move that tag at the very end of the file and must be on it's own line. Like this.

Quote$txt['board_image'] = '<b>Name of image for this board:</b><br />Include file extension. (i.e. xx.gif)';
?>
Title: Re: Images On Board
Post by: secangel on June 28, 2008, 12:27:38 AM
Quote from: JohnyB on June 27, 2008, 11:27:21 PM
Hi secangel.
    Open default/languages/Modifications.english.php and look for ?> tag. Move that tag at the very end of the file and must be on it's own line. Like this.

Quote$txt['board_image'] = '<b>Name of image for this board:</b><br />Include file extension. (i.e. xx.gif)';
?>



Thank you!  That fixed it...   I have one more question though   :)

It looks like it is still trying to pull all the images from:

Location: http://secblitz.com/Themes/smfone_multicolour/images/blue/off.gif

(I get this when I click on the board icon and select properties)



Have I missed something else?
Title: Re: Images On Board
Post by: Bulakbol on June 28, 2008, 12:31:46 AM
Attach your BoardIndex.template.php and I'll check it for you. If you are using a custom theme, let me know the name/title of the theme too.  Do you have your own images already?
Title: Re: Images On Board
Post by: secangel on June 28, 2008, 12:40:21 AM
Quote from: JohnyB on June 28, 2008, 12:31:46 AM
Attach your BoardIndex.template.php and I'll check it for you. If you are using a custom theme, let me know the name/title of the theme too.  Do you have your own images already?


Sorry... dumb question coming up.

You want the BoardIndex.template.php from the custom theme I am using, rather than themes/default... right?

I am using the smfone_multicolour theme.

I do have the images  :D and I am working on resizing/making transparent/renaming them...


Thank you so much
Title: Re: Images On Board
Post by: secangel on June 28, 2008, 01:22:24 AM
Here is one of the 12 images I will be using. They will all be the same size.


If I understand correctly... I create a folder with my images named: ImagesOnBoard

and upload that to:  Themes/default/images/

and not Themes/smfone_multicolour/images/

right?   :-\


Again, thank you so much...  I wish I had found you before I spent hours and hours trying to manually install it myself!



Do you have a donations account, where I can thank you properly?



Title: Re: Images On Board
Post by: Bulakbol on June 28, 2008, 01:38:07 AM
Here's your edited smfone_multicolor/BoardIndex.template.php cecangel.  Backup the original one, install the mod then use this. Thanks for using this mod. Do not forget to store your images in default/images/ImagesOnBoard folder.

Be a charter member or donate to SMF if you want. :)
Title: Re: Images On Board
Post by: secangel on June 28, 2008, 01:54:31 AM
It looks wonderful!    You're the man!   Thank you!
Title: Re: Images On Board
Post by: Mr_Lon on June 28, 2008, 08:46:19 AM
 :( I tryed to install "Images on Board" in my SMF 1.1.5 and I get this error?

4. Execute Modification ./Sources/MessageIndex.php Test failed

Any help. I looks like a great mod.
Title: Re: Images On Board
Post by: MaXiForum.cz on June 28, 2008, 10:19:07 AM
2 JohnyB i am on holiday
Wen i come i will look at it.
THX very much ;)
Title: Re: Images On Board
Post by: runvs on June 28, 2008, 11:23:06 PM
Quote from: JohnyB on June 27, 2008, 07:31:03 PM

@runvs.
You can send me a copy of your default/MessageIndex.php before you install the mod.  After I send it back to you, then install the mod.





ok
Title: Re: Images On Board
Post by: Bulakbol on June 29, 2008, 12:37:02 AM
@MaxiPes
   Enjoy your holiday! Come back soon.  :D


@runvs
   Here's your MessageIndex.php. Backup your old one. Use this before installation. Not after
Title: Re: Images On Board
Post by: runvs on June 29, 2008, 01:23:03 AM
Thank you much!!  Do you have a website that gives a good selection of images I could use for this?
Title: Re: Images On Board
Post by: Bulakbol on June 29, 2008, 01:47:34 AM
You are welcome. Just google crystal icons.
Title: Re: Images On Board
Post by: MaXiForum.cz on June 29, 2008, 09:45:25 AM
Quote from: JohnyB on June 27, 2008, 08:06:19 AM
@MaxiPes.
   Here's your BoardIndex.template.php and MessageIndex.template.php. Install the mod first before using them. Make a back up the original ones.

Thank you!
but i have problem.
In admin settings is all OK:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmegaupload.cz%2Fmini%2F200%2Fyzl1.jpg&hash=55984ebe8d3ce24c980292719996b4192c71022f) (http://megaupload.cz/nahled/yzl1.jpg)

But there's no image before board name at BlueAce Theme :(
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmegaupload.cz%2Fmini%2F200%2FZeV2.jpg&hash=40676c0a99eee35de545d48b441b3599baa37c9d) (http://megaupload.cz/nahled/ZeV2.jpg)

Where is error?  :-[ :-\
Install in others files is correctly :)
THX, THX, THX ...

EDIT:
i have already done it
THX! Very good mod :)
Title: Re: Images On Board
Post by: InsaneneSs on June 29, 2008, 11:38:34 PM
JohnyB can you install this mod on this 2 themes for me please?

Thank you =D
Title: Re: Images On Board
Post by: Bulakbol on June 30, 2008, 08:20:42 AM
@MaxiPes
   Not really hard isn't it? In BoardIndex.template.php, just look for
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'],
and stick the three lines of codes above that line.
Quoteif (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
            
               echo '


@hitmandt
Ok, wait. I'll tell your which lines to find and where to stick the codes. I'll get back to you.

Title: Re: Images On Board
Post by: MaXiForum.cz on June 30, 2008, 01:40:19 PM
Quote from: MaxiPes on June 29, 2008, 09:45:25 AM
EDIT:
i have already done it
THX! Very good mod :)

;) THX THX THX :)
Title: Re: Images On Board
Post by: Bulakbol on June 30, 2008, 06:01:11 PM
I know I know MaxiPes.  :D I posted the three lines for other people who might be wondering how you did it.
Title: Re: Images On Board
Post by: stefano8663 on July 02, 2008, 07:18:00 PM
I am not able to install it. The error:

Installations actions for "Images On Board":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    ImagesOnBoardDB115.php   
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard   
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test failed
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
18.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.portuguese-utf8.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    Skipping file
23.    Execute Modification    ./Themes/default/languages/Modifications.brazilian-utf8.php    Skipping file
24.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file



I'm using SMF 1.1.5 and the default core. It could be because of some mods I installed.

I attach my /Sources/MessageIndex.php. Can someone help me out, please?  ;)
Title: Re: Images On Board
Post by: Bulakbol on July 02, 2008, 09:35:09 PM
@stefano8663
Here's your edited MessageIndex.php. I edited already. Thanks for using this mod.
Title: Re: Images On Board
Post by: stefano8663 on July 03, 2008, 01:58:07 AM
Johny, is a big THANK YOU enough?  :D

Installed, now I just need to set it up. Thank you for developing this great mod and fixing my problem  ;)
Title: Re: Images On Board
Post by: MaXiForum.cz on July 03, 2008, 03:35:45 AM
This mod is amazing!
Fórum looks (http://www.maxiforum.cz) terrific!!! :)
JohnyB is real Simple Machines Hero ...
THX again
Title: Re: Images On Board
Post by: jayc7176 on July 03, 2008, 04:51:25 AM
This is a great Mod!!! Many Many Thanks
Title: Re: Images On Board
Post by: DBO on July 03, 2008, 12:28:03 PM
looks a top mod this mate....well done

i have attached my files for the Black Rain v.2 .......if you get time can you take a look and let me know where to put the code please

thanks
Dave
Title: Re: Images On Board
Post by: Bulakbol on July 03, 2008, 05:50:23 PM
@ALL
   Thanks a bunch guys for the good words. :)

@mr_fix_it
Try to edit your files first and if can't (don't know why) then get back to me. Here's how. Edit the BoardIndex.template.php. Find
echo '</a></td>
      <td>
         <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
         ', $board['description'];

and replace.
echo '</a></td>
      <td>';
      if (!empty($board['image']))
echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

echo '
         <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
         ', $board['description'];


Edit also your MessageIndex.template.php and look for
echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];


and replace.
echo '</a>
</td>
<td class="windowbg2">';
if (!empty($board['image']))
echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];


That's all.


For those who use other custom theme.
In your BoardIndex.template.php and MessageIndex.template.php, find
', $board['name']
and above that line where the ', $board['description'] is in, add
';

if (!empty($board['image']))
echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

echo '
Title: Re: Images On Board
Post by: InsaneneSs on July 03, 2008, 09:16:18 PM
JohnyB

The last thing you say above works for me?
Title: Re: Images On Board
Post by: Bulakbol on July 03, 2008, 09:19:22 PM
Good to hear/read became17. Did it also work on your other themes? (Outline and Outbreak).
Title: Re: Images On Board
Post by: DBO on July 04, 2008, 06:54:52 AM
thanks for getting back to me johny......i tried what you told me but it didn't seem to work mate  :'(

Dave
Title: Re: Images On Board
Post by: Bulakbol on July 04, 2008, 08:01:58 AM
Ok mr_fix_it. Here's your package that contains edited MessageIndex.template.php and BoardIndex.template.php. Have fun. :)
Title: Re: Images On Board
Post by: DBO on July 04, 2008, 03:11:36 PM
thanks for that johny but i still have a prob. when i try to install the mod it fails on ./Sources/MessageIndex.php. i have tried to manually add the code for this but to no avail. i have attached my Sources/MessageIndex.php file and if you could take a look for me when you get a bit of free time that would be great.

top work you do here mate
regards
Dave

Title: Re: Images On Board
Post by: Bulakbol on July 04, 2008, 03:21:14 PM
Ok mr_fix_it. Fix it now. :) Here's your file back.

Title: Re: Images On Board
Post by: The Omen on July 04, 2008, 03:43:48 PM
I always seem to screw these things up when I edit them, and end up having to restore from backup. Your help would be much appreciated.

This is from the XD-Zeda theme directory
Title: Re: Images On Board
Post by: Bulakbol on July 04, 2008, 03:58:34 PM
@TheOmen
Here's your BoardIndex.template.php. I forgot about your MessageIndex.template.php. You can do it yourself I think.  Find
<td class="row111" width="100%" height="50" align="left">
and replace with
<td class="row111" width="100%" height="50" align="left">';
    if (!empty($board['image']))
echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

echo '
Title: Re: Images On Board
Post by: The Omen on July 04, 2008, 04:01:37 PM
Again, I need to edit the one in the Theme I am going to use correct? Not the one in the default theme folder?

Omen
Title: Re: Images On Board
Post by: Bulakbol on July 04, 2008, 04:04:59 PM
The MessageIndex.template.php of Zelda theme.
Title: Re: Images On Board
Post by: The Omen on July 04, 2008, 04:06:18 PM
gotcha, I uploaded the other file and it works.  The reason for the message template edit?

Omen

Opps, forgot to thank you for the previous file, THANKS A BUNCH :D
Title: Re: Images On Board
Post by: Bulakbol on July 04, 2008, 04:11:15 PM
It could be, yes.  Now go and find some images. :) You're welcome.
Title: Re: Images On Board
Post by: The Omen on July 04, 2008, 07:03:46 PM
 Thanks working great, great addition to my forums ;D
Title: Re: Images On Board
Post by: Fat_Man on July 04, 2008, 10:30:33 PM

Anybody got some before/after shots using this mod?
I'd like to see what boards looked like before/after the mod.

Thanks
Title: Re: Images On Board
Post by: Mr_Lon on July 05, 2008, 08:33:38 AM
Quote from: Mr_Lon on June 28, 2008, 08:46:19 AM
:( I tryed to install "Images on Board" in my SMF 1.1.5 and I get this error?

4. Execute Modification ./Sources/MessageIndex.php Test failed

Any help. I looks like a great mod.

Here is my MessageIndex.php
Thanks for any help that you can give me.....
Title: Re: Images On Board
Post by: Bulakbol on July 07, 2008, 03:21:29 AM
@Omen
   Thanks for using this mod.

@Fat_Man
   I don't have the images handy. Maybe next time.

@Mr_Lon
   Here's your BoardIndex.php. Use this file before the installation not after the installation.
Title: Re: Images On Board
Post by: baz.g on July 08, 2008, 01:15:59 AM
hi, i cant seem to make any new boards now, it just hangs in my admin area after installing this mod, i have tried uninstalling the mod and manually made sure all the code was gone from the different files and now sometimes i get this error:


Database Error: Field 'img_filename' doesn't have a default value
File: D:\home\Default\houseexchangewanted.co.uk\htdocs\forums\Sources\Subs-Boards.php
Line: 1100


please help :)
Title: Re: Images On Board
Post by: NYChamps on July 08, 2008, 01:32:29 AM
Just wanted to say -   great Mod!!  I had a great time adding the pics - and it was all soooooo simple!

Thanks!
Title: Re: Images On Board
Post by: Bulakbol on July 08, 2008, 04:17:17 AM
Quote from: baz.g on July 08, 2008, 01:15:59 AM
hi, i cant seem to make any new boards now, it just hangs in my admin area after installing this mod, i have tried uninstalling the mod and manually made sure all the code was gone from the different files and now sometimes i get this error:


Database Error: Field 'img_filename' doesn't have a default value
File: D:\home\Default\houseexchangewanted.co.uk\htdocs\forums\Sources\Subs-Boards.php
Line: 1100


please help :)

You have to delete any instances of img_filename in the Sources/Subs-Boards.php. Find and delete
if (isset($boardOptions['img_filename']))
$boardUpdates[] = 'img_filename = \'' . $boardOptions['img_filename'] . '\'';

b.img_filename,
'image' => $row['img_filename'],



@NYChamps
   Thanks for using this mod and for the kind words.
Title: Re: Images On Board
Post by: baz.g on July 08, 2008, 05:17:08 AM
Quote from: JohnyB on July 08, 2008, 04:17:17 AM
Quote from: baz.g on July 08, 2008, 01:15:59 AM
hi, i cant seem to make any new boards now, it just hangs in my admin area after installing this mod, i have tried uninstalling the mod and manually made sure all the code was gone from the different files and now sometimes i get this error:


Database Error: Field 'img_filename' doesn't have a default value
File: D:\home\Default\houseexchangewanted.co.uk\htdocs\forums\Sources\Subs-Boards.php
Line: 1100


please help :)

You have to delete any instances of img_filename in the Sources/Subs-Boards.php. Find and delete
if (isset($boardOptions['img_filename']))
$boardUpdates[] = 'img_filename = \'' . $boardOptions['img_filename'] . '\'';

b.img_filename,
'image' => $row['img_filename'],



@NYChamps
   Thanks for using this mod and for the kind words.

There isnt a single trace of img_filename or img or filename in sources/subs-boards.php

i didnt actually want to uninstall this mod but it wouldnt let me add new boards, and still wont after uninstalling :(

EDIT:
i have tried reinstalling the mod, i can modify any exisiting board to include an image or have that field blank. but i still cannot add new boards, the transaction either hangs or i get that same error as above. :(
Title: Re: Images On Board
Post by: Bulakbol on July 08, 2008, 05:30:07 AM
Use your phpMyAdmin (MySQL) control panel and drop the img_filename column from smf_boards table then.
Title: Re: Images On Board
Post by: baz.g on July 08, 2008, 05:31:40 AM
ok, will have to go down that route, has nobody else had this problem? everybody else can still add new boards after installing this mod?
Title: Re: Images On Board
Post by: Bulakbol on July 09, 2008, 12:50:19 AM
@baz.g
   This is a comment/support thread. If you can help, I would appreciate it. If you have suggestion, I will listen. If the mod doesn't work for you, uninstall it.
Title: Re: Images On Board
Post by: baz.g on July 09, 2008, 02:14:30 AM
thats what i am trying to do mate, thats why i asked if anybody else had had this problem, i have uninstalled it and am waiting for phpmyadmin access from my host. i liked the mod but the fact that i could not make any new boards after installing it was a big problem. i was just trying to find out if anybody else had had the problem and whether it was a known bug or whether there was a known cure.

i will let you know whether i was successful after gaining phpmyadmin access
Title: Re: Images On Board
Post by: Bulakbol on July 09, 2008, 02:47:25 AM
This mod was tested and found to be safe to use. It looks like there's problem with your database. Perform maintenance such as "Find and repair any errors." It might help.

If you think this mod is not safe, report it. Other customizers will look at the mod and will pull the mod out of the download site if it is truly unsafe.
Title: Re: Images On Board
Post by: baz.g on July 09, 2008, 05:30:02 AM
i was not suggesting it is unsafe, nor wish to report it, i was trying to help. i have optimised the tables, there are no errors, i have now had the tale removed from phpmyadmin, and i can add new boards again.

Thank you
Title: Re: Images On Board
Post by: L'AltroWeb on July 09, 2008, 12:53:38 PM
Hi!
I have installed this mod and is fantastic :)
Thank for your work :)
PS: i have edit alt attribute (alt="$boardname" instead of alt="*") and now image is click able ;)
One questions: because you have used alt="*"  ???
Title: Re: Images On Board
Post by: Bulakbol on July 09, 2008, 07:09:34 PM
@baz.g
    Good to hear your issue is resolved. AFAIK, this mod if properly installed will not cause any problem.

@Dark-Worf
    Instead of using alt="" (null), I used alt="*". Al least there's asterisk (*) in place of a missing image if there's a mistake.

Anyone who uses this mod is welcome to modify the mod for their own use.  Thanks for the kind words and thanks for using this mod.
Title: Re: Images On Board
Post by: L'AltroWeb on July 09, 2008, 07:16:55 PM
Thank'u too :)
PS i have changed like this:
if (!empty($board['image']))
echo '<div style="float:left; margin-right: 4px;"><a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" title="', $board['name'], '" /></a></div>';
You can see results here: http://darkwolf.altervista.org/forum/  8)
Title: Re: Images On Board
Post by: Bulakbol on July 09, 2008, 08:50:40 PM
Looking good Dark-Wolf. Your tip might be beneficial to others. Thanks.
Title: Re: Images On Board
Post by: L'AltroWeb on July 09, 2008, 09:02:22 PM
OK! :)
Now i go to sleep :D
Title: Re: Images On Board
Post by: apa yak?? on July 11, 2008, 03:24:56 PM
plis help me, my BoardIndex.php has a problem. This is my php..

help meeee..
thx for the support
Title: Re: Images On Board
Post by: Bulakbol on July 11, 2008, 09:41:56 PM
@Dark-Wolf
   Sleep tight. :)


@apa yak??
   What a name ha. :) Here's your edited BoardIndex.template.php.

Thanks for using this mod.


EDIT

ack! Sorry apa yak?? One of those days. Can you check if this is the right one for you?  I am mixed up now  :P

/EDIT
Title: Re: Images On Board
Post by: apa yak?? on July 12, 2008, 01:02:55 AM
@ johny b..

after get the edited BoardIndex, i just copy it.
but i still hav an error with my BoardIndex.template.php  >:(
what should i do??

:'(
Title: Re: Images On Board
Post by: reo4ua on July 12, 2008, 10:08:54 AM
Great Mod!

Install was a breeze with absolutely no issues using SMF 2.0.

Is there a way to have the graphic display to the left of the board category/name where the default smf icon is???
Title: Re: Images On Board
Post by: Bulakbol on July 13, 2008, 12:58:31 AM
@apa yak??
   What error are you getting? Is it related to this mod?

@southeastsportsforum.com
   If you'll do that, your logged-in members will not know if there are new posts. Try this mod instead.
http://custom.simplemachines.org/mods/index.php?mod=511

Title: Re: Images On Board
Post by: apa yak?? on July 13, 2008, 02:28:04 AM
yes, i think.. this is my printed screen when i install the mod..
still don't know what to do.. :'(
Title: Re: Images On Board
Post by: Bulakbol on July 13, 2008, 02:36:51 AM
Go ahead with the installation and use this BoardIndex.template.php that I attached. Use this file after the installation and not before.
Title: Re: Images On Board
Post by: apa yak?? on July 13, 2008, 07:53:46 AM
it works!!!!!

finally... thx JohnyB for the support..^^ what a great mod..

bravo!!!

but, why it doesn't work on childboard??
Title: Re: Images On Board
Post by: chrisb on July 19, 2008, 09:19:08 PM
Hey Johnny b,

Is there a site that we are able to get more images for our board, or where did you find images for these boards at all. please let us know.

By the way , what a great mod you have completed
Title: Re: Images On Board
Post by: Bulakbol on July 19, 2008, 09:54:47 PM
@apa yak??
  It should work on childboards as well.

@chrisb
  Thanks. Eliana posted a link. You can visit the link and see if they have what you are looking for.
Quote from: Eliana Tamerin on July 13, 2008, 12:42:54 PM
http://search.creativecommons.org/
Title: Re: Images On Board
Post by: Neipol on July 20, 2008, 02:17:01 PM
Good mod. Very Thanks :P
Title: Re: Images On Board
Post by: Bulakbol on July 22, 2008, 06:42:10 AM
Thanks Neipol.  ;)
Title: Re: Images On Board
Post by: Kimmen on July 22, 2008, 07:07:48 AM
Hey Johny.

I like this mod, but it was not what i was looking for. I have searched and this was the closest mod to what i want. Is it possible to write a mod that adds a picture in the Board Category far to the left? instead of adding it to the board at the right?

Here is a screenshot: http://bildr.no/view/230457
Title: Re: Images On Board
Post by: PocketChange on July 25, 2008, 04:01:37 PM
Hey JohnyB,

First I want to say "Thanks" for a great MOD!

I was able to successfully modify my theme and get the MOD to work, but just one little issue...

The image displays "under" the board name, instead of on the left!  What can I do to fix this and display on the left?

My code in BoardIndex.template.php is as below:

<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">


<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a><br />
', $board['description'];

if (!empty($board['image']))
echo '
<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

            

Thanks in advance!  :)
Title: Re: Images On Board
Post by: PocketChange on July 25, 2008, 06:06:09 PM
Update:

I see that the image code needs to come before the board title code, but when I do this I get a Parse Error:  :(

Parse error: parse error, unexpected '<' in .../Themes/Dilber_Blue/BoardIndex.template.php on line 158

149:             <td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">';
150:             
151:              if (!empty($board['image']))
152:             
153:                echo '
154:                <div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
155:             
156:          
157:             

158:                <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b> <a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a><br />

159:                   ', $board['description'];


Please help, this is driving me crazy! :'(
Title: Re: Images On Board
Post by: Bulakbol on July 25, 2008, 08:10:20 PM
@Kim Arne
   Sorry Kim, you can request that as a mod in the mod request board.

@PocketChange
   Try this instead.
<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">';

if (!empty($board['image']))
echo '
<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a><br />
', $board['description'];


Title: Re: Images On Board
Post by: PocketChange on July 25, 2008, 08:45:20 PM
Quote from: JohnyB on July 25, 2008, 08:10:20 PM
@Kim Arne
   Sorry Kim, you can request that as a mod in the mod request board.

@PocketChange
   Try this instead.
<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">';

if (!empty($board['image']))
echo '
<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a><br />
', $board['description'];



JohnyB, you are the man!  :)  Worked like a charm!

Thank you very much for your fast help, and a great MOD!  8)
Title: Re: Images On Board
Post by: pheasant_plucker on July 28, 2008, 06:55:13 AM
Is it possible to have the image act as a hyperlink? I want to use board sponsors and have the image link to their web sites.
Thanks.

Gerry
Title: Re: Images On Board
Post by: mitochondria on July 28, 2008, 08:29:08 AM
i try to put an image on the board in my forum using your mods, but i have some problems :
1. im not using the supported themes (i forgot the theme thats used and i lost its installation)
2. when i try to install, this thing show up :
Quote
1.     Execute Code     ImagesOnBoardDB115.php     
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
3.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
4.    Execute Modification    ./Sources/MessageIndex.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Skipping file
19.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.portuguese-utf8.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    Skipping file
23.    Execute Modification    ./Themes/default/languages/Modifications.brazilian-utf8.php    Skipping file
24.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file

would like to help me  :-[

;)
Title: Re: Images On Board
Post by: pheasant_plucker on July 28, 2008, 06:51:06 PM
Quote from: pheasant_plucker on July 28, 2008, 06:55:13 AM
Is it possible to have the image act as a hyperlink? I want to use board sponsors and have the image link to their web sites.
Thanks.

Gerry

I've just done this today, I can now link the images to other pages and I have integrated it in to the Admin panel too.
This is a great mod you should consider adding this feature to it.

Gerry
Title: Re: Images On Board
Post by: Bulakbol on July 29, 2008, 03:16:49 AM
@PocketChange
   You're welcome.  8)

@mitochondria
   You can attach your Sources/Subs-Boards.php and I'll edit it for you.

@pheasant_plucker
   How did you do it? I can add another field for the link. It will be different link for each image then we'll call this mod AdsOnBoard.  :D

If I will do it, additional language string will be gone.
Title: Re: Images On Board
Post by: pheasant_plucker on July 29, 2008, 03:44:13 AM
I went through and modified each file in turn and added a database field manually. I'm a bit tied up at the moment but when I get chance I'll add all the changes to the mod and send you a copy if you wish.
Basically though I went through and duplicated every line you had img_filename in but used image_link instead.
I created a column after img_filename in the database called image_link
I added the following to manageboards.template <tr>
<td>
', $txt['board_link'] , '
</td>
<td valign="top" align="right">
<input type="text" name="image_link" value="', $context['board']['image_link'], '" size="30" />

</td>
</tr>

I changed messageindex.template and boardindex.template to show the link
echo '<div style="float:left; margin-right: 4px;"><a href="'.$board['image_link'].'"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="" /></a></div>';


added this to modifications.english
$txt['board_link'] = '<b>Hyperlink for this board Image:</b><br />Must Include http://';


Gerry
Title: Re: Images On Board
Post by: Bulakbol on July 29, 2008, 04:09:01 AM
Thanks. That's the way I did it. :) The update is ready. I will uplad it now.

EDIT:
Images On Board 1.1
     
Supported Themes

Supported languages

Note:
Title: Re: Images On Board
Post by: mitochondria on July 29, 2008, 05:06:11 AM
Quote from: JohnyB on July 29, 2008, 03:16:49 AM
@mitochondria
   You can attach your Sources/Subs-Boards.php and I'll edit it for you.

here's...  :)
Title: Re: Images On Board
Post by: Bulakbol on July 29, 2008, 05:23:31 AM
Here's your file. Use this before you install the mod. Let me know how it goes.
Title: Re: Images On Board
Post by: mitochondria on July 29, 2008, 06:14:03 AM
thx bro...ill try it :)
Title: Re: Images On Board
Post by: PocketChange on July 29, 2008, 09:21:03 AM
Sweet!  A great MOD just got better... :)  Adding this into my theme now.

Thanks Pheasant_Plucker & JohnyB!  Nice work...  ;)
Title: Re: Images On Board
Post by: pheasant_plucker on July 29, 2008, 12:18:02 PM
No problem, I take no credit for this Mod whatsoever I just wanted the images with hyperlink functionality. Non of which would have been possible without the superb work of JohnyB

Gerry
Title: Re: Images On Board
Post by: mitochondria on July 29, 2008, 11:36:52 PM
Quote from: JohnyB on July 29, 2008, 05:23:31 AM
Here's your file. Use this before you install the mod. Let me know how it goes.


now im installing mods without problems. But when i put an image, its not show up at the board forum using my theme.....  :-[

;)
Title: Re: Images On Board
Post by: katb on July 30, 2008, 08:20:17 AM
i am using smf 1.1.5(upgraded from 1.1.4) when i try to install this mod , i am getting following error

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
Author: JohnyB    Mod Name: ImagesOnBoard    Version: 1.1
Tested: Freshly installed SMF 1.1.5 and SMF 2.0 Beta 3.1 Public

--------------------------------------------------------------------------------
This will install ImagesOnBoard mod version 1.1
     
Images On Board 1.1

This mod will add images on the board.
You can add external link for the image. The default (empty) is board link.
When editing or creating a board, enter the filename of the image for that board including the filename extension.
There will be only one image folder for all themes used.
The default location for all images is Themes/default/images/ImagesOnBoard folder.
The dimension of images displayed will depend on the size of your images.

Supported Themes

Default Core
babylon
classic
shinyblue

Supported languages

English
english-utf8

Note:

Need language translation again because of the additional language string.



Install Actions
Installations actions for "Images On Board":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code ImagesOnBoardDB115.php 
2. Extract Tree ./Themes/default/images/ImagesOnBoard 
3. Execute Modification ./Sources/Subs-Boards.php Test successful
4. Execute Modification ./Sources/MessageIndex.php Test failed
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Sources/ManageBoards.php Test successful
7. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
8. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
11. Execute Modification ./Themes/babylon/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
13. Execute Modification ./Themes/classic/MessageIndex.template.php Test successful
14. Execute Modification ./Themes/shinyblue115/BoardIndex.template.php Skipping file
15. Execute Modification ./Themes/shinyblue115/MessageIndex.template.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful


Any help appriciated
Title: Re: Images On Board
Post by: Bulakbol on July 30, 2008, 05:41:21 PM
@pheasant_plucker
   Thanks for the suggestion. It's cool.

@mitochondria
   You have to edit your custom BoardIndex.template.php to show the images. Which theme are you using?

@katb
   There might be other mod that altered your Sources/MessageIndex.php. If you know how to edit files, Use the built-in parser and do the edit manually. If you have problem doing it, attach the file in question and I'll see what I can do.
Title: Re: Images On Board
Post by: mitochondria on July 30, 2008, 10:55:14 PM
Quote from: JohnyB on July 30, 2008, 05:41:21 PM
@mitochondria
   You have to edit your custom BoardIndex.template.php to show the images. Which theme are you using?

i forget the real name of the theme (the name has been changed) and also i lost the its intallation file. Can you edit the BoardIndex.template.php of my theme. Ill send it to you

;)
Title: Re: Images On Board
Post by: jayc7176 on July 31, 2008, 12:27:25 AM
Quote from: mitochondria on July 30, 2008, 10:55:14 PM
Quote from: JohnyB on July 30, 2008, 05:41:21 PM
@mitochondria
   You have to edit your custom BoardIndex.template.php to show the images. Which theme are you using?

i forget the real name of the theme (the name has been changed) and also i lost the its intallation file. Can you edit the BoardIndex.template.php of my theme. Ill send it to you

;)

Here you go Mate - Try this one. Make sure you Back your Originals  and then replace with this one . Lets see if this one works ..

good luck
Title: Re: Images On Board
Post by: katb on July 31, 2008, 02:08:31 AM
Quote from: JohnyB on July 30, 2008, 05:41:21 PM

@katb
   There might be other mod that altered your Sources/MessageIndex.php. If you know how to edit files, Use the built-in parser and do the edit manually. If you have problem doing it, attach the file in question and I'll see what I can do.


I am attaching messageIndex.php file, can you please have a look ..Thanks for your suggestions
Title: Re: Images On Board
Post by: Bulakbol on July 31, 2008, 02:15:05 AM
You attached MessageIndex.template,php. It's the Sources/Message.php that failed the test.
Title: Re: Images On Board
Post by: mitochondria on July 31, 2008, 05:40:53 PM
Quote from: jayc7176 on July 31, 2008, 12:27:25 AM
Here you go Mate - Try this one. Make sure you Back your Originals  and then replace with this one . Lets see if this one works ..

good luck

wow...it works.... very thx bro  ;D

;)
Title: Re: Images On Board
Post by: katb on August 01, 2008, 12:34:01 AM
Quote from: JohnyB on July 31, 2008, 02:15:05 AM
You attached MessageIndex.template,php. It's the Sources/Message.php that failed the test.

Thanks for your  reply i am attaching the correct files
ie; ./Sources/MessageIndex.php



Title: Re: Images On Board
Post by: Bulakbol on August 01, 2008, 01:23:18 AM
Here's your file katb. Use it after installing the mod.
Title: Re: Images On Board
Post by: katb on August 01, 2008, 02:10:24 AM
Thanks JohnyB , iw will try this and let you know.
Title: Re: Images On Board
Post by: katb on August 01, 2008, 02:52:05 AM
Quote from: JohnyB on August 01, 2008, 01:23:18 AM
Here's your file katb. Use it after installing the mod.

:) Thanks  JohnyB it work like a charm!! Great mod and support!!
Title: Re: Images On Board
Post by: Bulakbol on August 01, 2008, 01:32:59 PM
@katb
  No problem. Thanks too.

@TorstenE
  I thank you for the German translation.  8)
Title: Re: Images On Board
Post by: Fat_Man on August 04, 2008, 03:21:11 AM

Hello JohnyB,

I installed the Images On Board modification today and got the following error.  I have attached the file for you to look at.

I look forward to to using this great modification.  :D





1.     Execute Code     ImagesOnBoardDB115.php
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
3.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
4.    Execute Modification    ./Sources/MessageIndex.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file



Title: Re: Images On Board
Post by: Bulakbol on August 04, 2008, 05:52:05 AM
Here Fat_Man. Use this file before installation so you can uninstall the mod if you decide not to use it.
Title: Re: Images On Board
Post by: God Of Mana on August 05, 2008, 04:15:29 PM
Nice mod, but did you know, that you can do this just by putting a html image code in the board title? I guess this way, its shorter
Title: Re: Images On Board
Post by: Bulakbol on August 06, 2008, 08:18:52 PM
Quote from: God Of Mana on August 05, 2008, 04:15:29 PM
Nice mod, but did you know, that you can do this just by putting a html image code in the board title? I guess this way, its shorter

Thanks. No, I didn't know. I also can't do it. Can you share us how you did it or how to do it? It is a good alternative if you are correct.
Title: Re: Images On Board
Post by: jayc7176 on August 07, 2008, 12:49:58 AM
Quote from: mitochondria on July 31, 2008, 05:40:53 PM
Quote from: jayc7176 on July 31, 2008, 12:27:25 AM
Here you go Mate - Try this one. Make sure you Back your Originals  and then replace with this one . Lets see if this one works ..

good luck

wow...it works.... very thx bro  ;D

;)

No Problem Mate :) Glad you got it working..
Title: Re: Images On Board
Post by: Bulakbol on August 07, 2008, 01:14:28 AM
Thanks for your help jayc7176. I apreciate it. I appreciate it.
Title: Re: Images On Board
Post by: jayc7176 on August 07, 2008, 02:41:16 AM
Anytime Johnny!  your welcome :)

This is my fav Mod, so i am glad to help out and make sure everyone else also gets to enjoy it :) 

i ve been rocking this mod on my forum for some time now:)

your dang good coder for a 4yr old {LoL} 
Title: Re: Images On Board
Post by: digiwench on August 07, 2008, 02:53:01 AM
I love this mod...we used it on our first site, makes the board look sharp

But for some reason I can't make it work with Mesh...tried the fix posted for Triton (without the padding) but no luck

Any suggestions?

Thanks again...wonderful mod!
Title: Re: Images On Board
Post by: Fat_Man on August 07, 2008, 06:30:31 AM
Heh JohnyB

I can not get the picture to show at all. I have installed the php file you gave me.

There is a stop.png file in the /ImageOnBoard folder that I'm using to test with.

Name of image for this board: stop.png
Link for the above image:http://www.myurl.com/forum/Themes/default/images/ImagesOnBoard

Any ideas whats wrong?

Thanks  :)
Title: Re: Images On Board
Post by: Bulakbol on August 07, 2008, 07:09:36 AM
@digiwinch and Fat_Man
   Attach your Boardindex.template.php.
Title: Re: Images On Board
Post by: Fat_Man on August 07, 2008, 08:13:03 AM

BoardIndex attach JohnyB.

Thanks.
Title: Re: Images On Board
Post by: Bulakbol on August 07, 2008, 08:54:41 AM
@Fat_Man
   Here's your BoardIndex.template.php. Let me know if there's an error.
Title: Re: Images On Board
Post by: Fat_Man on August 07, 2008, 06:56:20 PM
Quote from: JohnyB on August 07, 2008, 08:54:41 AM
@Fat_Man
   Here's your BoardIndex.template.php. Let me know if there's an error.

No errors my friend, just smiles! 
;D
Thank you very much - very much appreciated JohnyB.

Keep up the great work.

Title: Re: Images On Board
Post by: Fat_Man on August 08, 2008, 02:25:23 AM
Hello JohnyB

I spoke a little to soon. If I use the stop.png supplied, everything is okay, but if I try and put a file in the ImagesOnBoard folder it won't let me. (file as in another png)

The permissions for the folder is set to 755.

Any ideas whats going on?

Thanks.
Title: Re: Images On Board
Post by: Fat_Man on August 08, 2008, 09:23:44 PM

Just to update this problem:

If I try and use another folder in the "Link for the above image:", the folder path URL appears where the image should be.


______
FATMAN

Title: Re: Images On Board
Post by: Bulakbol on August 09, 2008, 03:24:35 AM
@digiwench
   Attach the BoardIndex.template.php of your theme.

@Fat_Man
   Just upload your image files in ImagesOnBoard folder and then edit your Boards and enter the filename of your images. If you still require assistance, PM me temporary admin access to your forum.
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 10:28:09 PM
I am using the theme called silent wave. Can you tell me the edits for it please, I tried to do it, but didnt run quite successful. The field appeared up in the creation/modification of the boards.. but when i add in the image link or the direct link from the forum, it doesnt appear up... maybe that where the manual edits are necessary...

Can you let me know about the edits please?

thank you.
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 14, 2008, 02:34:07 PM
i actually did the theme edits.. but dunno if its all right.. anyways.. what the prob is.. as i add in the image url it doesnt appear up.. and when i add in the direct image name... the text just comes up double.. (just the main board name.) see the image...

Can you let me know the solution please.. Thank you.
Title: Re: Images On Board
Post by: Bulakbol on August 14, 2008, 11:37:56 PM
Post a link to your forum please. I don't know what is going on.
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 03:57:32 AM
http://goldysun.com is the forum URL.

See the -| World News |- board which would appear when you arnt registered yet.

The image is taken from the directory and shown up there, but the image which is given in the url box, doesnt appear up. Is there some specific extention which i needed for it to appear ? I use http://imageshack.us for uploading/hosting images. and the image doesnt appear up if entered the URL.

The problem is not that the image doesnt appear up, the problem is that if there is some text written in the box where it says the url or the *.gif file the topic name appears up double. I think it maybe a bug which should be solved i think.

Another bug i suppose is that.. when entered in both the fields, the URL link text appears up normally just before the board. I think if it catches the 1st image from the folder, it takes the lin as normal text in the URL box. I think it shouldnt accept the URL when the direct file path is given. That is kind of noobish, but people would like to keep both of them, if one of them trips down, just as a backup plan or something.

Please check it. Thank you.
Title: Re: Images On Board
Post by: Bulakbol on August 15, 2008, 04:12:28 AM
The textbox (Name of image for this board:) is only for filename of image that is stored in default/images/ImagesOnBoard folder.  You can't use url here. It is not designed that way.

The link (Link for the above image:) is yes, use url to link the above image.
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 05:32:46 AM
I am having 4 errors in the forum error log due to this mod... it says..

8: Undefined index: board_image
File: /home/actionen/public_html/goldysun/Themes/default/ManageBoards.template.php (eval?)
Line: 327

8: Undefined index: board_img_link_desc
File: /home/actionen/public_html/goldysun/Themes/default/ManageBoards.template.php (eval?)
Line: 336

8: Undefined index: board_img_link
File: /home/actionen/public_html/goldysun/Themes/default/ManageBoards.template.php (eval?)
Line: 335

8: Undefined index: board_image_desc
File: /home/actionen/public_html/goldysun/Themes/default/ManageBoards.template.php (eval?)
Line: 328


I think i know what the problem is. In the boards which we create or modify, I dont see the text which says "enter URL of the image" or "Enter path of the image".

Please let me know what to do.
Title: Re: Images On Board
Post by: Bulakbol on August 15, 2008, 05:49:35 AM
Open your default/languages/Modifications.{language}.php and add these lines at the very bottom before the ?> tag.

$txt['board_image'] = 'Name of image for this board';
$txt['board_image_desc'] = 'Include file extension. (i.e. xx.gif)';
$txt['board_img_link'] = 'Link for the above image';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 06:15:07 AM
worked thanks.
Title: Re: Images On Board
Post by: MadVelvet on August 16, 2008, 05:22:29 PM
Will you be making this compatible with Dilber theme?  I thought I could change it manually but well can't figure it out.

I've attached my BoardIndex and MessageIndex.php files.

I must say you have to be the nicest person on here, I looked through all the posts hoping to find a  Dilber fix and saw how helpful you are to everyone. 
Title: Re: Images On Board
Post by: Bulakbol on August 16, 2008, 09:37:42 PM
@F.L.A.M.E.R
  You are welcome. Is everything ok now?

MadVelvet
   We are here to help. :) I'll get back to you with your files.
Title: Re: Images On Board
Post by: Adish - (F.L.A.M.E.R) on August 17, 2008, 05:42:51 AM
yep.. currently all fine... probably i wouldnt get any errors in future...
Title: Re: Images On Board
Post by: robbie93 on August 17, 2008, 10:57:31 AM
hi johnyB  :D

i get this when i try and upload the mod

Type Action Description
1. Execute Code ImagesOnBoardDB115.php 
2. Extract Tree ./Themes/default/images/ImagesOnBoard 
3. Execute Modification ./Sources/Subs-Boards.php Test successful
4. Execute Modification ./Sources/MessageIndex.php Test failed

is there anyway you're mod will work with our board matey we are using Gothic_Rose theme 8)

cool mod again man!
Title: Re: Images On Board
Post by: Ni©holąś™ on August 17, 2008, 04:16:46 PM
good job.Thanks :)
Title: Re: Images On Board
Post by: Bulakbol on August 18, 2008, 12:14:36 AM
@F.L.A.M.E.R
   Cool. Good to hear.

@robbie
  Attach your MessageIndex.template.php.

Thank you too Nicholas for using/trying this mod.
Title: Re: Images On Board
Post by: robbie93 on August 18, 2008, 09:34:55 AM
hi johny ;D

heres my messageIndex.php
Title: Re: Images On Board
Post by: Yağız... on August 19, 2008, 10:09:44 AM
Hi JohnyB. Sorry for the delay. Update for Turkish translation:

$txt['board_image'] = 'Bu bölüm için resim ismi';
$txt['board_image_desc'] = 'Dosya uzanstısınıda ekleyin. (örn. xx.gif)';
$txt['board_img_link'] = 'Yukarıdaki resim için link';
$txt['board_img_link_desc'] = '(örn. http://www.simplemachines.org)';
Title: Re: Images On Board
Post by: Bulakbol on August 19, 2008, 06:39:55 PM
@robbie
  Here's your MessageIndex.php. Use this file before installation.

Yağız
   Thank you for the language translation. I will update the package now.
Title: Re: Images On Board
Post by: robbie93 on August 19, 2008, 06:46:16 PM
hi johny :D

there's no attachment in the last post  :D
Title: Re: Images On Board
Post by: Bulakbol on August 19, 2008, 07:33:32 PM
Awww mannn. how can I forget! haha Sorry, I really forgot. Here it is. :)

 
Title: Re: Images On Board
Post by: robbie93 on August 19, 2008, 08:16:07 PM
 thank you so much JohnyB  :D you are a legend man ;D  I love this guys mods ;D
Title: Re: Images On Board
Post by: Bulakbol on August 19, 2008, 08:20:26 PM
LOL, your reply occupied my whole screen. LMHO
Title: Re: Images On Board
Post by: robbie93 on August 19, 2008, 10:00:17 PM
hehe :D cool mod johny thanks for you're help :D  hehe
Title: Re: Images On Board
Post by: xrunner on August 20, 2008, 09:14:03 PM
Thanks JohnyB for this great mod! It's just what i was wanting - except it has made me waste untold hours looking for the perfect icons for my boards.
Title: Re: Images On Board
Post by: Bulakbol on August 21, 2008, 04:46:44 PM
Yeah, that's the hard part. To find suitable icons for your boards.

You're welcome guys and thank you too.
Title: Re: Images On Board
Post by: jimbo007 on August 22, 2008, 12:22:08 PM
Hi JohnyB, this looks like a great mod, do you know what I have to do to get it working with the PSP theme? Thanks.
Title: Re: Images On Board
Post by: Bulakbol on August 25, 2008, 07:52:33 PM
@jimbo007
   You can manually install the mod by using  SMF Parser - ImagesOnBoard (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1266;attach=65399;smf_version=1.1.5).
Title: Re: Images On Board
Post by: ddarrell on August 26, 2008, 05:59:11 PM
JohnyB,

I also get the the Following error on install with ver 1.1.5 Default theme:

4.    Execute Modification    ./Sources/MessageIndex.php    Test failed

Can you fix for me, too?

TNX
ddarrell



Title: Re: Images On Board
Post by: jimbo007 on August 26, 2008, 07:34:27 PM
Quote from: JohnyB on August 25, 2008, 07:52:33 PM
@jimbo007
   You can manually install the mod by using  SMF Parser - ImagesOnBoard (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1266;attach=65399;smf_version=1.1.5).

Thanks JonnyB, I actually managed to get it working before you replied but I'll take a look at that as you probably have a better way of doing it. Brilliant mod by the way, my forum doesn't look as boring anymore :) :)
Title: Re: Images On Board
Post by: Bulakbol on August 27, 2008, 04:41:24 AM
@ddarrell
   Attach the file that failed the test so helpful people can look at it if I am not around.

@jimbo007
  hehe I encourage all new admins to do the manual edit theirselves. Admins should learn how to do it.  Glad to know you did it.  8)
Title: Re: Images On Board
Post by: ddarrell on August 27, 2008, 06:04:25 AM
Thanks for looking at it, JohnyB  :)

--attached file.

Title: Re: Images On Board
Post by: Bulakbol on August 27, 2008, 07:25:56 AM
Here ya go ddarrell. Use this file before installation. NOT after. Backup your old file, upload this file then install the mod. Good luck!
Title: Re: Images On Board
Post by: ddarrell on August 27, 2008, 10:33:53 AM
 :D :D :D

Thanks a bunch, JohnyB, worked and installed perfectly!!

You Da Man!!

best regards,

ddarrell

:D :D :D
Title: Re: Images On Board
Post by: linette97 on August 28, 2008, 10:07:08 PM
Hiya again Johny! I'm just loving your mods! So far I've been installing mods pretty well (sometimes)
anyways, I installed this one and as you might remember I'm using the Fire theme... I tried to install and I can't find the lines for me to replace/add.. I started with my BoardIndex.template.php...
I was using the codes for default theme... can't find nada
So if you have the time could you please check them out for me? Let me know where to start! I really did try. It's not as hard as I thought but this one has me stumped!

oh as for the image folder, should I be placing it in my fire theme directory or leave in default? because I get and error trying to upload a gif to the default folder here it is

QuoteWarning: ftp_put() [function.ftp-put]: /httpdocs/Themes/default/images/ImagesOnBoard/iphone.gif: Permission denied in /var/www/vhosts/filemanager3.freepgs.com/httpdocs/includes/filesystem.inc.php on line 1283
icon

Another thing.. I do have the options available under modify boards
Thanks! 
Title: Re: Images On Board
Post by: linette97 on August 29, 2008, 08:42:00 PM
Johny you might kill me :o.. But I decided to change themes completely. Now I'm using Dilber MC.

Same thing happens though... I'm thinking another mod? Well it looks like you might of downloaded one of the files & are over there trying to check things out...  :o So sorry about that.

I have attached the same 2 files but from Dilber MC. I did not install your mod to this theme so I hope that's ok.  I hope this hasn't inconvenienced you. You can take as long as you like. My site is FAR from opening. Just wanted to have all things set into place before I do.

Here are the mods I have installed in case you need to check that out.

QuoteMod Name     Version     
1.    Advanced Login Form    1.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Auto Email Inactive Users    1.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    Lots_o_Smileys    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    AvatarSelect    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    AvatarOnBoard    2.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Mood Stars    2.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    YouTube BBCode    2.3    [ Uninstall ] [ List Files ] [ Delete ]
8.    nCode Image Resizer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
10.    Simple ImageShack    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
11.    Images On Board    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
12.    Profil Moderator Managment    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Registered Links    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Allowed Groups Embedded Flash    1.2.3    [ Uninstall ] [ List Files ] [ Delete ]
15.    Look But No Read    1.1    [ Apply Mod ] [ List Files ] [ Delete ]

Thanks! Again NO RUSH!
Title: Re: Images On Board
Post by: Bulakbol on August 30, 2008, 06:48:18 PM
linette97
   Make up your mind 'cause I don't have all the time in the world. :) The folder ImageOnBoard should be inside default/images folder. (i.e. Themes/default/images/ImagesOnBoard).
Title: Re: Images On Board
Post by: linette97 on August 31, 2008, 12:42:31 AM
Sorry about that Johny :(. Well, I'm 37 yrs old so, My time is limited as well.. say if everything goes right I have about a good 40-50 years left LOL  ;D!  I just was having so many issues with that fire theme. Like I said whenever you DO have the time it's just fine with me.  I know you are busy with all this mod stuff and that's not including your personal life! So no rush, remember, I'll be here another 40-50 years I can wait!  ;)
Title: Re: Images On Board
Post by: Mr.IT on August 31, 2008, 07:03:14 PM
Now I'm using Bethesna Theme . Can i use "Image On Board" on Bethesna Theme . How to use it !
Title: Re: Images On Board
Post by: Bulakbol on August 31, 2008, 10:45:20 PM
@linette97
  Here are your edited files.


@chitlar
   Install the mod and edit your theme's BoardIndex.template.php and MessgeIndex.temlate.php. I't not hard.
Title: Re: Images On Board
Post by: linette97 on August 31, 2008, 11:29:14 PM
Ok Johny! Thanks! I've downloaded Notepad++ to help me with all this editing stuff! I will do this tomorrow and let you know how things went! THANKS again!
Title: Re: Images On Board
Post by: MultiformeIngegno on September 08, 2008, 04:34:50 PM
Hi!
This MOD doesn't work with the beta 4... :(
Title: Re: Images On Board
Post by: Bulakbol on September 09, 2008, 06:48:55 PM
I'll update this first then.
Title: Re: Images On Board
Post by: Bancherd on September 09, 2008, 10:30:17 PM
Quote from: JohnyB on September 09, 2008, 06:48:55 PM
I'll update this first then.

Thanks....
Title: Re: Images On Board
Post by: MultiformeIngegno on September 10, 2008, 01:46:37 AM
Quote from: JohnyB on September 09, 2008, 06:48:55 PM
I'll update this first then.
Thanks!! :)
Title: Re: Images On Board
Post by: SlipperyDuck on September 10, 2008, 08:14:34 AM
I've tried and Tried, but I can't quite fathom the code - I'm not proficient enough in PHP.
Every time I try appending the code from the 3rd/4th (and from several of your other examples done for others) I get some strange message that it cannot load my index.php because of a ' or / in the wrong place or something. I'm stumped after trying for a few days.

My theme is 7dana, i think it's not your usual theme, perhaps explains why the code doesnt work? Not sure.

Anyway I'm attaching the BoardIndex and MessageIndex ....
simply because I'd love to have this installed on my forum and I'm stumped - I've managed to manually add a bunch of other mods, just stumped with this one.


Title: Re: Images On Board
Post by: Bulakbol on September 11, 2008, 10:05:21 PM
I'll see what I can do. Bit busy because of mods update so, it might take a while.

<edit>
SlipperyDuck
   I can't find your theme. I can'r make changes withour a copy of your theme.
</edit>
Title: Re: Images On Board
Post by: masternewbie on September 13, 2008, 03:30:23 PM
JohnyB,

I can't seem to upload images to the ImagesOnBoard folder using my FTP client. I tried two different ones and also tried to change mod the file permissions to 777 and it would not accept. It seems to be stuck on 755. I also tried to change it in my control panel and it also would not accept the change to 777.

I was wondering if this has to do with something on my server hosting or is it something that I can resolve easily?

I am missing something here and can't figure what it is. I was trying to upload images to the directory through FTP. 

Thanks a lot for all your help.
Title: Re: Images On Board
Post by: Bulakbol on September 13, 2008, 06:21:12 PM
Talk to your host. Maybe they don't want you to upload anything.
Title: Re: Images On Board
Post by: masternewbie on September 13, 2008, 07:23:36 PM
Quote from: JohnyB on September 13, 2008, 06:21:12 PM
Talk to your host. Maybe they don't want you to upload anything.

I will do that.

What is strange is I am able to upload everything into every directory except that ImagesOnBoard directory.
Title: Re: Images On Board
Post by: apc73 on September 15, 2008, 09:17:43 AM
Problem with 2.0 beta 4

Seemed to install OK, but would not work?
I uninstalled the mod and the config for the boards is messed up

have a look at the attached pic
Title: Re: Images On Board
Post by: apc73 on September 15, 2008, 09:38:02 AM
Sorted

I uninstalled all mods
copied over

ManageBoards.template.php
ManageSettings.english.php

reinstalled the mods and everything is back to normal
Title: Re: Images On Board
Post by: Sabre™ on September 15, 2008, 09:43:40 PM
Hi JohnyB :)

Good mod mate, cheers for sharing.

My custom theme has two settings, to show the boards normal, and to show them as tabs.
I have figured out how to make this visible when you select to view as tabs, but cannot figure out how to add the images to the normal structure.
I end up with my structure all over the place lol

Could you take a look at my template please?
I have removed the code from the first instance(normal view), but have left it where the tab view is, so you can see what Im talking about.

Thank You in advance :)
Title: Re: Images On Board
Post by: Bulakbol on September 15, 2008, 09:53:11 PM
Hi Sabre. I'll get back to you.
Title: Re: Images On Board
Post by: Sabre™ on September 15, 2008, 09:53:50 PM
Yea cool.
Thanks mate :)
Title: Re: Images On Board
Post by: Bulakbol on September 15, 2008, 10:12:36 PM
Try this copy Sabre.
Title: Re: Images On Board
Post by: Sabre™ on September 15, 2008, 10:16:41 PM
Brilliant mate!
Works perfect! :D

Thanks for that Johny :)
Title: Re: Images On Board
Post by: Bulakbol on September 15, 2008, 10:19:39 PM
np mate. Thanks too.
Title: Re: Images On Board
Post by: SlipperyDuck on September 18, 2008, 06:27:21 AM
Hi Jonny,

Phew been busy too, I don't expect a fast response, but I'd really apreciate help.
Your Mod seems aweseome and I'd love to have it work on my site so I've attached the Theme.

Was from:
http://www.7dana.com/download/pafiledb.php?action=file&id=48

I inherited this forum/community from someone, so the theme was not my choice, so I have to adapt to it as it is almost a brandname - the theme colours etc.

Anyways, take your time, I'm sure you have more important things to deal with ;)
Title: Re: Images On Board
Post by: katb on September 19, 2008, 03:25:06 AM
Jonny,

I have one doubt , how can i link a image inside my forum folder...in  your example you are give a url link image..i mean http://somesite.com/image.jpg . My  question is how can i specify if image is uploaded under my forum..is it possible to give a absolute or relative path like /forum/default/boardonimage/imgae.jpg or
forum/default/boardonimage/imgae.jpg  . Because if i specift image as url it will not work on my forum..i have some security settings  for image hot linking . OR is it possible to upload a image on board creation, like users doing in their profile display image option.

Thanks in advance.
Title: Re: Images On Board
Post by: Bulakbol on September 19, 2008, 05:07:47 AM
@slipperyduck
I'll check your theme later.

@katb
Images should be in default/images/ImagesOnBoard folder. Sorry but that's the way it is. Only the link that you can use url.
Title: Re: Images On Board
Post by: katb on September 19, 2008, 05:15:18 AM
Quote from: JohnyB on September 19, 2008, 05:07:47 AM

@katb
Images should be in default/images/ImagesOnBoard folder. Sorry but that's the way it is. Only the link that you can use url.

thanks for your reply jhony.. if you can... please keep my request in mind, like use a path inside the forum( url linking have lot problems), hope you will include this in future release
Title: Re: Images On Board
Post by: Bulakbol on September 19, 2008, 05:25:20 AM
I'll add it to my "todo" list for future version. Thanks.
Title: Re: Images On Board
Post by: expertsarena on September 19, 2008, 02:32:18 PM
Hello Johny iam getting error while installing iam using 1.1.6

   Type     Action     Description

1.    Execute Code    ImagesOnBoardDB115.php    
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
10.    Execute Modification    ./Themes/dilbermc/BoardIndex.template.php    Skipping file
11.    Execute Modification    ./Themes/dilbermc/MessageIndex.template.php    Skipping file
12.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Skipping file
13.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Skipping file
14.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
17.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
18.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
20.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
Title: Re: Images On Board
Post by: Bulakbol on September 20, 2008, 11:54:50 AM
@slipperyduck
BoardIndex.template.php and MessageIndex.template.php of your theme attached.

@expertsarena
Attach your BoardIndex.template.php and MessageIndex.template.php to your next post if you want me to edit it for you.
Title: Re: Images On Board
Post by: expertsarena on September 20, 2008, 02:50:31 PM
Ok i have attach thanks for helping me

EDIT:No Prob i find my self Thanks Johny
Title: Re: Images On Board
Post by: HappyChinchilla on September 20, 2008, 04:15:20 PM
Hi Johny B,

I am new to SMF. Would you please show me how to install this mod? I am using Dilber MC theme. I tried installing it using the package manager, but it failed. I tried editing the files myself, but they dont seem to work. I read the messages posted on this board, and am very confused. Would you please have me?

Thanks in advance.
Title: Re: Images On Board
Post by: lapinette on September 21, 2008, 01:18:13 AM
Hi everyone,


I just modify the code as following the instruction, but when i lauch the installation program, the notice is " file permission is not correct, pls use the function chmod to change it (sth. like this...)", i tried to change all the files concerned such as :

/Sources
Subs-Boards.php
BoardIndex.php
ManageBoards.php
MessageIndex.php

/Theme/Cennetbahcesi
BoardIndex.template.php
MessageIndex.template.php

/Theme.default/languages
Modifications.english.php
Modifications.chinese-simplified-utf8.php

above files: chmod 777

I don't know why system give me this kind of the notice, pls help!!

Tks


Title: Re: Images On Board
Post by: Kadimi on September 21, 2008, 01:07:02 PM
Nice mod,

I suggest that you update it to work for LTR languages.

On the XML installation files replace
echo '<div style="float:'left'; margin-right: 4px;">';

with this
echo '<div style="float:'.($context['right_to_left']? 'right' : 'left').'; margin-'.($context['right_to_left']? 'left' : 'right').': 4px;">';
Title: Re: Images On Board
Post by: I AM Legend on September 22, 2008, 04:52:46 PM
Hi All,
I installed the Images On Board 1.1 mod, went on fine no issues, got the hang of it and have images now on my board.
My question is this, when I click on an image ie: (image for jokes) it goes to the jokes corner, but it opens the jokes in a new window.
What html code do i need to use to stay within the board index not going to a new window?.

Thanks All.
Title: Re: Images On Board
Post by: Bulakbol on September 23, 2008, 05:30:28 PM
@HappyChinchilla
How would you like me to help you?

@expertsarena
Here are your files. Use them after installing this mod.

@nabil_kadimi
That's a very good idea. I have no way to test the mod if it actually work or not. Could you confirm the right code for me please before I make the changes? Thanks.

@I AM Legend
BoardIndex.template.php, find
echo '<a href="', $board['img_link'], '" target="_blank">
and remove the target="_blank" attribute.

Title: Re: Images On Board
Post by: klra on September 23, 2008, 09:01:47 PM
Great mod, installed and worked just great on 1.1.6.

Does anyone have a source of free buttons ?

Thanks
Title: Re: Images On Board
Post by: I AM Legend on September 24, 2008, 05:54:16 AM
Thats Awesome, worked a treat.
Thanks JohnyB
Title: Re: Images On Board
Post by: 0000000 on September 24, 2008, 09:31:06 AM
I installed this on a 1.1.6 board, default theme, but when I tried to fetch an external image from the web it just put a link to the image where the image should have went..
Title: Re: Images On Board
Post by: SlipperyDuck on September 24, 2008, 03:48:47 PM
Jonny - you legend - works well - you really support your mod - Big ups to you mate!
Title: Re: Images On Board
Post by: klra on September 24, 2008, 06:41:00 PM
Disregard, I ended up making my own images.

http://klrworld.com/forums/
Title: Re: Images On Board
Post by: Bulakbol on September 25, 2008, 06:16:03 PM
Quote from: 0000000 on September 24, 2008, 09:31:06 AM
I installed this on a 1.1.6 board, default theme, but when I tried to fetch an external image from the web it just put a link to the image where the image should have went..

It wasn't intended to do it that way that's why there's a folder for the images. But if you want it, we can try something. Not fully tested but you can try. BoardIndex.template.php and MessageIndex.template.php.
Code (find) Select
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';

Code (find) Select
if (!empty($board['img_link']))
{
if (substr($board['image'], 0, 7) == 'http://')
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
}


@klra
Looking good. You own images matches your foum.

@I AM Legend
You're welcome.  8)
Title: Re: Images On Board
Post by: HappyChinchilla on September 27, 2008, 03:17:37 PM
Hi JohnyB,

I always get errors when I install the mod to my Dilber MC theme forum. I tried the following methods:

1) downloaded the mod and installed it using the package manager, but it failed. It says "Execute Modification ./Sources/MessageIndex.php Test failed "

2) followed the instructions, and edited the files myself, but they dont seem to work. I then got an error message saying that the database is not up-to-date.

I read the messages posted on this board, but I am still very confused. For some forums, they need to replaced some files before they install the mod, and others need to do it the other way around.

Sorry, I am new to SMF. Maybe there is something that I dont understand...could it be other mods that i installed causing the errors? I also have Auto Embed Video Clips, Board Notes, FavIcon, and Ad Managment.

Hope you can help me. Thanks~
Title: Re: Images On Board
Post by: Bulakbol on September 28, 2008, 01:11:07 AM
@HappyChinchilla
Attach your BoardIndex.template.php and I'll look at it or edit it for you.
Title: Re: Images On Board
Post by: HappyChinchilla on September 29, 2008, 03:35:26 PM
Hi JohnyB,

Here is my file. Hope you can to help me.

Thanks~
Title: Re: Images On Board
Post by: MothMan on October 01, 2008, 05:59:00 PM
I installed this mod on a new 2.0 b4 forum, but I'm now trying to unistall it (trying to troubleshoot something) but in the uninstaller I get :

   Type                                    Action                Description
   1.    Execute Modification    install-2B.xml    Modification parse error
   2.    Execute Modification    install-2B.xml    Modification parse error
   3.    Execute Modification    install-2B4.xml    Modification parse error
   4.    Execute Modification    install-2B4.xml    Modification parse error
   5.    Delete Tree    ./Themes/default/images/ImagesOnBoard    
Title: Re: Images On Board
Post by: Bulakbol on October 01, 2008, 06:56:35 PM
@HappyChinchilla
I apologize for the delay. I'll get back to you after I edit your BoardIndex.template.php

@MothMan

Try the new package that I uploaded. (ImagesOnBoard2b4.zip). Sorry about the error. I don't know what happened.
Title: Re: Images On Board
Post by: MothMan on October 02, 2008, 01:45:59 AM
Thanks JohnyB, that worked.
Title: Re: Images On Board
Post by: Radioime on October 02, 2008, 08:55:50 AM
hello JohnyB.
Thanks for this mod i was useing the onld version but on deferent Themes it did work but now i did change the theme to Dark Night it looks nice on my forum so i wold like you to help me if you can help me who to edit this theme

Theme = Dark Night
http://custom.simplemachines.org/themes/index.php?lemma=577
Title: Re: Images On Board
Post by: Bulakbol on October 03, 2008, 02:36:18 PM
@radioime
Edit your dn/BoardIndex.template.php.
Code (find) Select
<td class="windowbg" align="left">

Code (replace) Select
<td class="windowbg" align="left">';
if (!empty($board['image']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}
echo '


That's all.



@HappyChinchilla
Try the attached BoardIndex.template.php (dilberMC).
Title: Re: Images On Board
Post by: HappyChinchilla on October 04, 2008, 01:04:27 AM
Thanks, JohnyB. I replaced my BoardIndex.template.php with yours. After that, I uploaded your mod, but I got this error:

Execute Modification ./Sources/MessageIndex.php Test failed

Should I install it anyway??

Thanks.
Title: Re: Images On Board
Post by: MultiformeIngegno on October 04, 2008, 08:53:35 AM
Quote from: HappyChinchilla on October 04, 2008, 01:04:27 AM
Should I install it anyway??
Try to install it, but before save the file with that error, so you can replace the old file if the MOD doesn't work! :)
Title: Re: Images On Board
Post by: Lamarck on October 04, 2008, 10:06:04 AM
Hello,JohnyB. Your MOD is just what I was looking for...but I can't make It run with Energy Theme (SMF 2.0 b4).Can you (or someone) help me,please?.

Here i attach my files.Thanks in advance.
Title: Re: Images On Board
Post by: Bulakbol on October 04, 2008, 03:41:15 PM
@HappyChinchilla
You attached BoardIndex.template.php so I figured it's the only file that failed the scan test. You can install the mod but you have to edit the MessageIndex.template.php manually.

@Lamarck
I'll get back to you after editing your files.
Title: Re: Images On Board
Post by: HappyChinchilla on October 04, 2008, 06:33:48 PM
JohnyB,

Sorry, I am not an expert in editing php files. Do I follow what you posted online under ./Themes/default/MessageIndex.template.php?

Thanks.
Title: Re: Images On Board
Post by: Bulakbol on October 04, 2008, 06:42:12 PM
Attach your MessageIndex.php then so I can edit it for you. After I edit it, install this mod ignoring failed test and then use the edited file.
Title: Re: Images On Board
Post by: HappyChinchilla on October 04, 2008, 06:56:09 PM
Here is my MessageIndex.php file from my sources folder.

Thanks.
Title: Re: Images On Board
Post by: Bulakbol on October 04, 2008, 07:33:54 PM
Opps my mistake. It should be default/MessageIndex.template.php.

<edit>
  Here's your MessageIndex.php, use it before you install this mod. The BoardIndex.template.php, use it after the installation of this mod. Confused? :)
</edit>
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 04, 2008, 09:33:55 PM
JohnyB can you help me T_T
I'm new in this kind of forum, i have smf 2.0 beta4 using spanish[es] language and I use the blackrain theme.

When i try to install this mod, the config of board get and error about sub-boards.php (I don't remember the line), I tried to change the language to english but still with the error. what can I do.

Saludos!
Title: Re: Images On Board
Post by: HappyChinchilla on October 05, 2008, 01:35:17 AM
Thank you, JohnyB. It works!! You are a real hero!! A dumb person like me wouldn't have done it without your big help. Thank you very much~~ You are the BEST!!!
Title: Re: Images On Board
Post by: edi67 on October 06, 2008, 10:02:44 AM
let me try
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 04:28:01 PM
Pwn Kyuubi
Attach the file that has error and I'll check it or edit it if need be.

@HappyChinchilla
Cool. Good to know it's working. You're welcome. TY too.

@edi67
Have you tried it?  :D
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 05:00:32 PM
Quote@Lamarck
I'll get back to you after editing your files.                                                                                                                  
                        
[/q]

Ok,thank you very much  :)

                        
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 05:19:59 PM
Oppsss, apologies. I misoverlooked. Here are your files. Lamark.
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 06:31:53 PM
Hey,no problem... ;)

BTW,when installed I get this:

Unknown column 'b.img_link' in 'field list'
Archivo: /home/vol3/byethost9.com/b9_222711/silvanost.byethost31.com/htdocs/foro/Sources/Subs-Boards.php
Línea: 1048

When I click the boards tab in the ACP  :(
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 06:35:55 PM
The field was not added to the boards table. Can you add it manually? Did you install the mod manually?
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 06:40:08 PM
No,I installed It via package manager,and then just uploaded BoardIndex.template.php and MessageIndex.template.php.

That field is not installed by the DB file included?
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 06:48:35 PM
It should be installed by the file included. I don't know why it didn't. Try uninstalling the mod and re-install again.
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 07:08:29 PM
I tried re-installing It,but I get the same error  >:(
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 07:21:03 PM
Any errors in the error log other than the "Unknown column 'b.img_link' in 'field list'" ? Can you check your boards table and see if there's no img_link column?
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 07:37:14 PM
No,no more errors...I checked and there is no img_link column inside smf_board table u.u
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 07:45:39 PM
Can you add the missing column (img_link)? It's tinytext. I don't know why it wasn't added. I don't know how many people encountered this problem.
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 07, 2008, 08:43:22 PM
Here Johny

intalling..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg509.imageshack.us%2Fimg509%2F3452%2Fcuadro1hi6.th.jpg&hash=131526c75574eafa1c79b0140c5e4febb86c80a5) (http://img509.imageshack.us/my.php?image=cuadro1hi6.jpg)

the error when i try to access de config for the forum threads

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg520.imageshack.us%2Fimg520%2F5775%2Fcuadro2na2.th.jpg&hash=212fb7406bc0fe9ba06822d18727adbd8fbdad5b) (http://img520.imageshack.us/my.php?image=cuadro2na2.jpg)

Sorry my english sucks im from Venezuela  :-[
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 08:49:20 PM
I created that column...however,when I add an image name and link in board settings,It doesn't show at forum index.It's like the info doesn't get stored inside the DB,when I return to board settings,the fields are empty.Maybe I missed something when created that columns?.

BTW,I think that the problem because img_link column wasn't created is in ImagesOnBoardDB2B3.php file,It seems that the sql querry is missed o.O..

Thanks again for your help ;)
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 09:02:30 PM
The image should be added in default/images/ImagesOnBoard folder before you can use it. Try the "stop.png" as the name of the image.
Title: Re: Images On Board
Post by: Lamarck on October 07, 2008, 09:09:11 PM
Yes,I tried...but nothing.I used stop.png and other image (mine),but they don't show in the index :(
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 09:17:27 PM
Link to your forum?
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 07, 2008, 10:12:41 PM
Here is the file sorry XD this is my subs-boards.php
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 10:28:05 PM
@Pwn Kyuubi
The mod was properly installed in your Subs-Boards.php. Can I have a link to your forum?

<edit>
Try navigating to Admin => Boards and modify a board. Enter "stop.png" without quotes in "Name of image for this board:" textbox . See if that will work.
</edit>
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 07, 2008, 11:31:39 PM
Quote from: JohnyB on October 07, 2008, 10:28:05 PM
@Pwn Kyuubi
The mod was properly installed in your Subs-Boards.php. Can I have a link to your forum?

<edit>
Try navigating to Admin => Boards and modify a board. Enter "stop.png" without quotes in "Name of image for this board:" textbox . See if that will work.
</edit>

The problem is that i can't acces to "Board and modify boards" menu, because the error that i show you in the reply#259 in this thread :S

here is the link http://vzlamods.0fees.net/index.php
Title: Re: Images On Board
Post by: Bulakbol on October 07, 2008, 11:36:44 PM
Ow, can you create column manually? I am not sure why the img_link is not created. I will look at the code again.
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 07, 2008, 11:43:49 PM
Quote from: JohnyB on October 07, 2008, 11:36:44 PM
Ow, can you create column manually? I am not sure why the img_link is not created. I will look at the code again.

I dont know how to create the column T_T, sorry Im new in this kind of things :S
Title: Re: Images On Board
Post by: Bulakbol on October 08, 2008, 12:09:25 AM
Uninstall the mod and wait if I can change the code. I'll let you know tomorrow.

Your host should provide you a sql control panel to access your database and add a column. Do you have PhpMyAdmin?
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 08, 2008, 10:08:06 AM
Quote from: JohnyB on October 08, 2008, 12:09:25 AM
Uninstall the mod and wait if I can change the code. I'll let you know tomorrow.

Your host should provide you a sql control panel to access your database and add a column. Do you have PhpMyAdmin?

Ok no problem i'll wait :)

yes i have, I can enter to my database


Title: Re: Images On Board
Post by: Bulakbol on October 09, 2008, 10:20:52 PM
Sorry, I have not found a sulution yet.  :P
Title: Re: Images On Board
Post by: Pwn Kyuubi on October 10, 2008, 12:38:00 AM
xD dont worry take your time   :D
Title: Re: Images On Board
Post by: tk2012 on October 10, 2008, 07:53:19 PM
tried to load this up for v2.0 b4.0, but I get a test failed notification for the ManageBoards.template.php file.  I went to manually edit and the string is much longer now (if that's even the string.) 
Title: Re: Images On Board
Post by: Bulakbol on October 11, 2008, 02:57:18 AM
@tk2012
Attach your ManageBoards.template.php and I'll edit it for you.
Title: Re: Images On Board
Post by: cafenubia on October 12, 2008, 07:23:36 PM
Hi
Ive installed this mod and everything seems in order except the image doesnt show just the link i placed in the admin settings shows before the topic.

Anyone have a clue what i missed?
Title: Re: Images On Board
Post by: Bulakbol on October 14, 2008, 12:45:37 AM
Quote from: cafenubia on October 12, 2008, 07:23:36 PM
Hi
Ive installed this mod and everything seems in order except the image doesnt show just the link i placed in the admin settings shows before the topic.

Anyone have a clue what i missed?

You have to use your own images and must be stored in default/images/ImagesOnBoard folder. Then enter the filename of the image to use in Admin => Boards => (modify) "Name of image for this board:" including the file extension. (i.e. stop.png).
Title: Re: Images On Board
Post by: cafenubia on October 14, 2008, 12:02:19 PM
Quote from: JohnyB on October 14, 2008, 12:45:37 AM
Quote from: cafenubia on October 12, 2008, 07:23:36 PM
Hi
Ive installed this mod and everything seems in order except the image doesnt show just the link i placed in the admin settings shows before the topic.

Anyone have a clue what i missed?

You have to use your own images and must be stored in default/images/ImagesOnBoard folder. Then enter the filename of the image to use in Admin => Boards => (modify) "Name of image for this board:" including the file extension. (i.e. stop.png).

Thats what ive done................is it because im using a custom them ,i placed the folder in my custom theme as i do others that require default theme image modifications.

When i go the my forum home page it shows a clickable link to the image before the board name?
Title: Re: Images On Board
Post by: cafenubia on October 14, 2008, 01:31:40 PM
Quote from: JohnyB on October 14, 2008, 12:45:37 AM
Quote from: cafenubia on October 12, 2008, 07:23:36 PM
Hi
Ive installed this mod and everything seems in order except the image doesnt show just the link i placed in the admin settings shows before the topic.

Anyone have a clue what i missed?

You have to use your own images and must be stored in default/images/ImagesOnBoard folder. Then enter the filename of the image to use in Admin => Boards => (modify) "Name of image for this board:" including the file extension. (i.e. stop.png).

Thanks
I have it now!
Title: Re: Images On Board
Post by: Bulakbol on October 14, 2008, 10:20:06 PM
Cool. Glad to know you have it fixed. Thanks for using this mod.
Title: Re: Images On Board
Post by: Rap4Life on October 16, 2008, 01:09:42 PM
Hi!
great mod!!

i have the Extreme6 theme and i can't make it work!
can someone please help me?

thanks
Title: Re: Images On Board
Post by: Bulakbol on October 16, 2008, 07:41:18 PM
@Rap4Life
Re: Extreme 6 theme. Edit extreme6/BoardIndex.template.php
Code (find) Select
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />


Code (replace) Select
<td class="windowbg2">';
if (!empty($board['image']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
Title: Re: Images On Board
Post by: Rap4Life on October 18, 2008, 04:20:33 PM
Quote from: JohnyB on October 16, 2008, 07:41:18 PM
@Rap4Life
Re: Extreme 6 theme. Edit extreme6/BoardIndex.template.php
Code (find) Select
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />


Code (replace) Select
<td class="windowbg2">';
if (!empty($board['image']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />



i did the change but i still can't see any new option in the forum edit panel \=

is there any change that need to be done with some admin files?

and thanks!
Title: Re: Images On Board
Post by: Bulakbol on October 18, 2008, 10:22:17 PM
@Rap4Life
Did you install the mod? Attach your edited BoardIndex.template.php and I'll try to fix it.
Title: Re: Images On Board
Post by: Rap4Life on October 19, 2008, 09:39:16 AM
Quote from: JohnyB on October 18, 2008, 10:22:17 PM
@Rap4Life
Did you install the mod? Attach your edited BoardIndex.template.php and I'll try to fix it.

yes... i install it.

Title: Re: Images On Board
Post by: Bulakbol on October 19, 2008, 11:21:26 PM
Rap4Life
Your BoardIndex.template is fine. If there's no text box when you modify a board, then it's not probably installed properly. Check your ManageBoards.template.php and see if the following lines are there.
<textarea name="desc" rows="2" cols="29">', $context['board']['description'], '</textarea>
</td>
</tr><tr>
<td>
<strong>', $txt['board_image'], ':</strong><br />
<span class="smalltext">', $txt['board_image_desc'], '</span><br />
</td>
<td valign="top" align="right">
<input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
</td>
</tr><tr>
<td>
<strong>', $txt['board_img_link'] , ':</strong><br />
<span class="smalltext">',$txt['board_img_link_desc'], '</span><br /><br />
</td>
<td valign="top" align="right">
<input type="text" name="img_link" value="', $context['board']['img_link'], '" size="30" />


Title: Re: Images On Board
Post by: Rap4Life on October 20, 2008, 10:06:12 AM
Quote from: JohnyB on October 19, 2008, 11:21:26 PM
Rap4Life
Your BoardIndex.template is fine. If there's no text box when you modify a board, then it's not probably installed properly. Check your ManageBoards.template.php and see if the following lines are there.
<textarea name="desc" rows="2" cols="29">', $context['board']['description'], '</textarea>
</td>
</tr><tr>
<td>
<strong>', $txt['board_image'], ':</strong><br />
<span class="smalltext">', $txt['board_image_desc'], '</span><br />
</td>
<td valign="top" align="right">
<input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
</td>
</tr><tr>
<td>
<strong>', $txt['board_img_link'] , ':</strong><br />
<span class="smalltext">',$txt['board_img_link_desc'], '</span><br /><br />
</td>
<td valign="top" align="right">
<input type="text" name="img_link" value="', $context['board']['img_link'], '" size="30" />




i install it manually... and the above code dosen't apper in the ManageBoards.template.php file.
Title: Re: Images On Board
Post by: Bulakbol on October 20, 2008, 08:19:34 PM
@Rap4Life
Try the attached copy.

Title: Re: Images On Board
Post by: Rap4Life on October 21, 2008, 12:33:29 PM
Quote from: JohnyB on October 20, 2008, 08:19:34 PM
@Rap4Life
Try the attached copy.



finaly!!!
thanks alot!
works like a charm.
Title: Re: Images On Board
Post by: jaimemarco on October 25, 2008, 08:23:07 AM
Hello JohnyB , I´ve the same problem like Lamarck, when I try to access to the ACP in boards, appear
a message:
Unknown column 'b.img_link' in 'field list'
how can i solve it!!?? Thanks a lot for your time!
Title: Re: Images On Board
Post by: peterinwa on October 26, 2008, 04:15:51 PM
After a lot of struggling and a lot of help from Kat, I got this mod working. It's great, and I really appreciate it. But I have one question.

It works for me when I put the image I want to display in:

Themes/default/images/ImagesOnBoard

and enter the name of the image in the first of the two fields the mod provides.

My question then is what is the second (link) field for?

I had hoped I could just enter the URL for the image there so I wouldn't have had to duplicate all the images and put them in the ImagesOnBoard folder.

Could someone please explain the purpose of the TWO fields?

Thanks so much,

Peter
Title: Re: Images On Board
Post by: Bulakbol on October 28, 2008, 02:35:08 AM
Sorry for the late reply. I was offline for few days.

@Rap4Life
You are welcome. Thank you too for using or trying this mod.  8)

@jaimemarco
Not sure why the mod didn't add column to your table. Add the field manually via MyPhpAdmin if you can do it. I'll change the code when I have time. Sorry about that.

@peterinwa
The purpose of the second link is if you want to redirect your members somewhere when they click on the image.  It is optional.
Title: Re: Images On Board
Post by: peterinwa on October 28, 2008, 01:18:16 PM
Quote@peterinwa
The purpose of the second link is if you want to redirect your members somewhere when they click on the image.  It is optional.

Oh, that's a great feature. And it seems obvious... in hindsight. Sorry if it said that somewhere and I missed it. I've never done a mod before.

Though actually I'm leaving it blank and it takes me right into the board which is just what I want.

Thanks... the mod makes my board look much more interesting!

Peter
Title: Re: Images On Board
Post by: leonardus on October 30, 2008, 11:58:40 AM
QuoteNot sure why the mod didn't add column to your table. Add the field manually via MyPhpAdmin if you can do it. I'll change the code when I have time. Sorry about that.

can you help me to add manually the field in my php amdmin?

My error is:

Colonna sconosciuta 'b.img_link' in 'field list'
File: /users/l/a/r/larabafenice/public_html/Sources/Subs-Boards.php
Riga: 1048

Title: Re: Images On Board
Post by: Bulakbol on October 31, 2008, 10:59:42 PM
@peterinwa
Few people requested the feature. It's there if needed.

@leonardus
Here's a php file that will add the img_link column. Upload the file to your root directory via FTP and use your browser to run it.  Run it once only. Delete it after.
Title: Re: Images On Board
Post by: tyhgdgh on November 01, 2008, 01:07:39 AM
2. Execute Modification ./Sources/MessageIndex.php Test failed
3. Execute Modification ./Sources/BoardIndex.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
6. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
7. Execute Modification ./Themes/default/BoardIndex.template.php Test failed


I tried to find, but they cant be found, can you do it for me?

Title: Re: Images On Board
Post by: leonardus on November 02, 2008, 02:15:37 AM
Quote from: JohnyB on October 31, 2008, 10:59:42 PM
@leonardus
Here's a php file that will add the img_link column. Upload the file to your root directory via FTP and use your browser to run it.  Run it once only. Delete it after.

here is one error...
Fatal error: Call to undefined function db_query() in /users/l/a/r/larabafenice/public_html/uno.php on line 10

can you help me again?
Title: Re: Images On Board
Post by: lapinette on November 03, 2008, 07:20:35 AM
Nice mod!

Here's the chinese translation, hope it does useful.


<?php
// Version: 1.1; Modifications
$txt['board_image'] = '这个板块的图片名称';
$txt['board_image_desc'] = '包括扩展名. (比如. xx.gif)';
$txt['board_img_link'] = '以上图片的链接';
$txt['board_img_link_desc'] = '(例如.. http://www.simplemachines.org)';
?>
Title: Re: Images On Board
Post by: SISPro on November 03, 2008, 08:58:44 AM
Hope you can help me out on this one.

Error I am getting.


Database Error

Unknown column 'b.img_link' in 'field list'
File: /home2/ac919h/public_html/Sources/Subs-Boards.php
Line: 1031


Theme I am using. - BK-SMF-Dark-2.0B4

No mods at all installed this is the first mod.

Quote from: JohnyB on October 31, 2008, 10:59:42 PM
@peterinwa
Few people requested the feature. It's there if needed.

@leonardus
Here's a php file that will add the img_link column. Upload the file to your root directory via FTP and use your browser to run it.  Run it once only. Delete it after.

I try to install that file but get this error when I try

Fatal error: Call to undefined function db_query() in /home2/ac919h/public_html/add_img_link.php on line 10

Title: Re: Images On Board
Post by: Bulakbol on November 03, 2008, 09:22:34 PM
@leonardus and SISPro
Try this one (add_img_link_2b4.php) then. Delete it after running.

@lapinette
Thanks for the translation. If my text editor will handle the characters, I will add the translation to the next update.
Title: Re: Images On Board
Post by: SISPro on November 03, 2008, 09:32:38 PM
that worked thank you for this
Title: Re: Images On Board
Post by: SISPro on November 03, 2008, 11:00:59 PM
ok got a problem i have tried to upload a image to the default folder and it won't let me all my folders have my name on them but this one has user 99 and telling i don't have access to it. can you tell me what is going on here.

Title: Re: Images On Board
Post by: Pspuser007 on November 06, 2008, 05:23:22 PM
Hello!

I have installed this mod and i am using smf 1.1.6 and custom theme.
I tried to add the code but i get this "
width="50%">  New Member Introduction
width="50%">  General Discussion"

I have attached my BoardIndex.tempate.php file.

What can i do?

Thank you for your time!
Title: Re: Images On Board
Post by: Bulakbol on November 06, 2008, 08:59:21 PM
@SISPro
That would be a file permission. Use your FTP to chmod the folder to 755 or 777.

@Pspuser007
Which custom theme are you using?
Title: Re: Images On Board
Post by: Pspuser007 on November 07, 2008, 12:58:20 AM
Ds,it is a premium one..
Title: Re: Images On Board
Post by: leonardus on November 08, 2008, 01:21:54 PM
Quote from: JohnyB on November 03, 2008, 09:22:34 PM
@leonardus and SISPro
Try this one (add_img_link_2b4.php) then. Delete it after running.

@lapinette
Thanks for the translation. If my text editor will handle the characters, I will add the translation to the next update.

thx you! it works very well!
Title: Re: Images On Board
Post by: shanksta13 on November 08, 2008, 03:54:56 PM
I'm having trouble getting this mod to work.  I've manually edited the parts that needed to because they didn't install properly on the extract.  Any ideas?  I've got the folders set up correctly and I can set the images in the admin panel when I go to modify the boards.  But the images don't actually show up on the board index.  Any help would be greatly appreciated.  I can attach files if necessary.
Title: Re: Images On Board
Post by: Bulakbol on November 08, 2008, 06:10:16 PM
Quote from: Pspuser007 on November 07, 2008, 12:58:20 AM
Ds,it is a premium one..

I don't have a copy of your theme so this is shot in the dark. Try the attached BoardIndex.temmplate.php and see if it will work.


@shanksta13
Attach your BoardIndex.template.php. Which theme is it from?
Title: Re: Images On Board
Post by: shanksta13 on November 08, 2008, 08:01:52 PM
Quote from: JohnyB on November 08, 2008, 06:10:16 PM
Quote from: Pspuser007 on November 07, 2008, 12:58:20 AM
Ds,it is a premium one..

I don't have a copy of your theme so this is shot in the dark. Try the attached BoardIndex.temmplate.php and see if it will work.


@shanksta13
Attach your BoardIndex.template.php. Which theme is it from?

It's the default theme.  Here it is.
Title: Re: Images On Board
Post by: Bulakbol on November 08, 2008, 09:12:42 PM
Here you go shanksta13.
Title: Re: Images On Board
Post by: shanksta13 on November 08, 2008, 11:16:10 PM
Thanks, works great!  :D
Title: Re: Images On Board
Post by: SISPro on November 08, 2008, 11:35:28 PM
Quote from: JohnyB on November 06, 2008, 08:59:21 PM
@SISPro
That would be a file permission. Use your FTP to chmod the folder to 755 or 777.

@Pspuser007
Which custom theme are you using?

i have tried and it won't let me change the permission that is what i am talking about.
i am using theme BK-SMF-Dark-2.0B4
Title: Re: Images On Board
Post by: leonardus on November 09, 2008, 02:12:57 AM
hi jonny! i've fixed the database error, but now when i press "save" for the changement, nothing happens. my board doesn't show the .png file. if i return in admin panel-->board-->modify, I realize that the two lines are empty, nothing is saved! why???

i put th images in /Themes/default/images/ImagesOnBoard/

and i've write in the mod line:

Name of image for this board: images.png (the image name)
Link for the above image: http://larabafenice.helloweb.eu (my forum)

i'm using black rain theme.

i attach my file.

thx
Title: Re: Images On Board
Post by: Bulakbol on November 09, 2008, 11:46:21 PM
@SISPro
Talk to your host about the file permission. I can't do anything about it.

@leonardus
I'll take a look at your files. I'll get back to you tomorrow.
Title: Re: Images On Board
Post by: funcouldron on November 10, 2008, 06:29:05 AM
it is not woking on smf2.0b4 version


bcause after intaling this mod when i go to boards in admin panel it gives databse error
Title: Re: Images On Board
Post by: Pspuser007 on November 10, 2008, 02:47:34 PM
Thanks a lot JonhyB!!!
It worked!!!!
Title: Re: Images On Board
Post by: Mikepara on November 10, 2008, 10:56:37 PM
Hi JohnyB,

great mod and really excited to see it in action.

have uploaded and installed, but has errors in MessageIndex.template.php and BoardIndex.template.php

Read forums, seems it is a small issue so tried to mod the files, but unfortunately failed miserably :-p

I think it may be a board hover mod which is giving me issues..in any case would you mind to check the 2 files in question and if you have time could you possibly mod them for me? or point me in the right direction.

Many thanks




Title: Re: Images On Board
Post by: Bulakbol on November 11, 2008, 07:01:54 PM
@ leonardus
Here are your files.

@funcouldron
Any errors in the error log?

@Pspuser007
You're welcome.

@Mikepara
I'll get back to you after editing your files.
Title: Re: Images On Board
Post by: Bulakbol on November 11, 2008, 07:09:46 PM
@Mikepara
I'm back. :) Here are your edited files. Use them after installing this mod.
Title: Re: Images On Board
Post by: MeowMommy on November 11, 2008, 08:21:44 PM
I'd like to do something like this (http://www.modelevi.com/smf/index.php?action=forum) on my forum. Unfortunately I'm a total PHP n00b.

I've figured out how to add images to the board descriptions, but I haven't figured out how to basically use an image only as the descriptor for each board. I'm using a custom theme (Saturn by Fussilet). Is this something I can do by using this mod?

Thanks!
Brenda  :)
Title: Re: Images On Board
Post by: funcouldron on November 12, 2008, 12:15:27 AM
when i click on forum in my admin panel,,i get this error

Unknown column 'b.img_link' in 'field list'
File: /www/110mb.com/f/u/n/c/o/u/l/d/funcouldron/htdocs/fc/Sources/Subs-Boards.php
Line: 1031
Title: Re: Images On Board
Post by: Bulakbol on November 12, 2008, 02:39:15 AM
Sorry about that. There's attached file in reply #294. Download it and run it.

http://www.simplemachines.org/community/index.php?topic=246022.msg1777170#msg1777170
Title: Re: Images On Board
Post by: funcouldron on November 12, 2008, 08:30:00 AM
whr to upload?
Title: Re: Images On Board
Post by: funcouldron on November 12, 2008, 08:35:05 AM
Notice: Undefined index: sp-forum in /www/110mb.com/f/u/n/c/o/u/l/d/funcouldron/htdocs/fc/Sources/Subs.php on line 3757

Fatal error: Call to undefined function db_query() in /www/110mb.com/f/u/n/c/o/u/l/d/funcouldron/htdocs/fc/add_img_link.php on line 10

whn i run it ..i got this error
Title: Re: Images On Board
Post by: Bulakbol on November 12, 2008, 05:40:16 PM
Sorry, I gave you the wrong link. Here's the right one.
http://www.simplemachines.org/community/index.php?topic=246022.msg1781673#msg1781673
Title: Re: Images On Board
Post by: MeowMommy on November 12, 2008, 09:29:14 PM
Sorry if I'm being a pain, just thought maybe this got missed since it was at the bottom of the page.  :)

Quote from: MeowMommy on November 11, 2008, 08:21:44 PM
I'd like to do something like this (http://www.modelevi.com/smf/index.php?action=forum) on my forum. Unfortunately I'm a total PHP n00b.

I've figured out how to add images to the board descriptions, but I haven't figured out how to basically use an image only as the descriptor for each board. I'm using a custom theme (Saturn by Fussilet). Is this something I can do by using this mod?

Thanks!
Brenda  :)
Title: Re: Images On Board
Post by: funcouldron on November 13, 2008, 02:23:15 AM
thxx,,but got this
Notice: Undefined index: sp-forum in /www/110mb.com/f/u/n/c/o/u/l/d/funcouldron/htdocs/fc/Sources/Subs.php on line 3757
Database updates complete!
Title: Re: Images On Board
Post by: Bulakbol on November 13, 2008, 08:26:56 PM
@MeowMommy
I took a good look at the site and it requires editing BoardIndex.template.php but beyond the scope of this mod. You don't need this mod to use images as board background. I can give you idea but this is support/comment for ImagesOnBoard mod. You can post in the Coding Discussion (http://www.simplemachines.org/community/index.php?board=60.0) board or in the Mod Request (http://www.simplemachines.org/community/index.php?board=79.0) board and I will try to help you there.

@funcouldron
This mod does not have "sp-forum" index or txt string so I don't know where that error is coming from. If you can, just add the column manually using your PhpMyAdmin. I ran out of ideas.
Title: Re: Images On Board
Post by: xmusic on November 13, 2008, 11:16:53 PM
hai sir i installed on serve its saying this error, i install through packages and upload it, its showing this error ((Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.)) what to do plz help me sir
Title: Re: Images On Board
Post by: Bulakbol on November 14, 2008, 12:08:04 AM
@xmusic
Talk to your host. If your host is smfforfree then you are not allowed to install mods and themes.
Title: Re: Images On Board
Post by: funcouldron on November 14, 2008, 02:26:21 AM
i never added colum manualy ,, and i tried adding images but it dosent show up on my board
Title: Re: Images On Board
Post by: xmusic on November 14, 2008, 06:39:26 AM
no sir i use 110mb,in 110mb smf is allowded sir,themes r working fine
Title: Re: Images On Board
Post by: funcouldron on November 14, 2008, 08:51:10 AM
@xmusic

i m also 110mb user,,, u just login through your FTP and make all ur file in forum to chmod 777 and it will work,,, littel time consuming though,,, i think there was one setting to make that also ,,, ask in support forum..
Title: Re: Images On Board
Post by: klra on November 14, 2008, 12:22:45 PM
Here's another forum that installed this excellent mod to-

http://nighthawk-forums.com/index.php

I made all of the images.

I especially liked making the big red arrow to directs guests to read.
Title: Re: Images On Board
Post by: Bulakbol on November 14, 2008, 09:46:17 PM
@xmusic
Uninstall the mod and download the new package. Reinstall the mod then let me know how it goes.

Thanks for trying/using this mod guys.
Title: Re: Images On Board
Post by: leonardus on November 15, 2008, 03:44:16 AM
Quote from: JohnyB on November 11, 2008, 07:01:54 PM
@ leonardus
Here are your files.

hi JohnyB.
thx for you mod, i've replaced the new file in themes-->defaul and in thems-->blackrain, but, nothing happen. the database don't save my modification... whats wrong? thanks.

EDIT:: i 've installed your new version. now it works very well!!! thanks.
Title: Re: Images On Board
Post by: villasg on November 15, 2008, 08:33:12 AM
Thanks for this good mod
Title: Re: Images On Board
Post by: Bulakbol on November 15, 2008, 03:10:34 PM
@leonardus
There was a slight error in the code when I last updated the package for beta 4. It is now corrected so I suggest you download the new package and reinstall this mod. I apologize for my mistake.

Thank you all for the compliment. I thank you too for trying/using this mod.  ;)
Title: Re: Images On Board
Post by: Boby_ on November 17, 2008, 09:33:11 AM
I installed the mod in the beginning but I never made it work.
After some modifications on the forum I tried to remove it because it is not working for me anyway but I can't.

I am using SMF 1.1.7 and the default theme.

I thing that the search string uninstaller looks for could not be found.
You can see the attached file.
Title: Re: Images On Board
Post by: Bulakbol on November 17, 2008, 10:34:55 PM
@boby_
You can attach the files in question and I'll remove the codes for you.
Title: Re: Images On Board
Post by: Boby_ on November 18, 2008, 01:45:17 AM
Quote from: JohnyB on November 17, 2008, 10:34:55 PM
@boby_
You can attach the files in question and I'll remove the codes for you.

@JohnyB, thanks a lot!

Looking at these files do you have any idea how to make the mod work?

Edit: Now I remember what was wrong with this mod for me. When I enter the name of the picture and the path to it in the board settings area, on the main index the link itself is shown as a text, not the image. If someone can help, I wouldn't remove the mod! :-)

Title: Re: Images On Board
Post by: tyhgdgh on November 19, 2008, 12:48:37 AM
Images won't show
ERRORS:
Title: Re: Images On Board
Post by: Amalcamus on November 19, 2008, 03:48:56 AM
Hallo Johnny, Sorry to bug you, But how can I get your mod to work on the Marque theme. Dont know what to deit and what to replace. I have installed the mod but it does not work. Any sugestions?

EDIT:
I have attached the files. Please I think this mod is the coolest thing, If only I can get it to work.

OOPS I see the attachements came up twice
Title: Re: Images On Board
Post by: Rhine on November 19, 2008, 08:55:08 AM
The installtion went good but when I look in the board I can't find the "add an url" textbox it's just not there but the "add an image" textbox is there?
Title: Re: Images On Board
Post by: Bulakbol on November 19, 2008, 06:24:58 PM
@Rhine
Please download the new package and reinstall.

@Nfanthr33
I need to know which theme you are using.

Title: Re: Images On Board
Post by: pooya on November 19, 2008, 08:11:58 PM
Just used this and its awsome. thank you
Title: Re: Images On Board
Post by: tyhgdgh on November 20, 2008, 12:36:22 AM
easy, Default
Title: Re: Images On Board
Post by: Rhine on November 20, 2008, 01:00:40 AM
Alright worked, thanks.

Is it possible to rewrite this mod so you have a board as an link like they have in phpbb3?
Title: Re: Images On Board
Post by: Boby_ on November 20, 2008, 01:47:23 AM
Quote from: Boby_ on November 18, 2008, 01:45:17 AM
Edit: Now I remember what was wrong with this mod for me. When I enter the name of the picture and the path to it in the board settings area, on the main index the link itself is shown as a text, not the image. If someone can help, I wouldn't remove the mod! :-)

I am a complete and total idiot!  >:(
The mod works perfectly well - all the time I've just neglected the instructions!

Thanks, @JohnyB
Title: Re: Images On Board
Post by: Amalcamus on November 21, 2008, 03:06:56 PM
@JohnyB: Is it possible for the mod to work on the Marque theme, See I have a virtual Ride website, and I think your mod will work perfect for it, please let me know. This is my website
http://xactgraphix.co.za/forum/index.php (http://xactgraphix.co.za/forum/index.php)
I also send the files about 7posts back. Thanks in advanced.
Title: Re: Images On Board
Post by: Bulakbol on November 23, 2008, 10:16:09 PM
@pooya
Thank you too for using/trying this mod.  ;)

@Nfanthr33
Here are your edited files. Attached.

@Rhine
The default is board's link if you'll leave the image link box empty in the board configuration.

Boby_
LOL. Good to hear you're okay.  8)
Title: Re: Images On Board
Post by: Bulakbol on November 23, 2008, 10:18:23 PM
@Amalcamus
I separated my reply to you so there will be no confusion. Sorry for the delayed replay.
Here are your edited files. If there's problem with them, let me know.
Title: Re: Images On Board
Post by: Amalcamus on November 24, 2008, 07:16:05 AM
Thanks JohnyB, I will try them out and let you know.  ;)
Title: Re: Images On Board
Post by: Amalcamus on November 24, 2008, 09:02:10 AM
JohnyB, Thanks man, all is working well. Keep up with the cool mods.
Title: Re: Images On Board
Post by: Bulakbol on November 25, 2008, 08:08:24 AM
Cool. Thanks also for trying or using this mod.
Title: Re: Images On Board
Post by: Amalcamus on November 26, 2008, 02:27:29 AM
It is a pleasure, If you have any more mods like this one please let me know... I like the concept of putting more pics on my forum, just looks better.
Title: Re: Images On Board
Post by: Rhine on November 26, 2008, 10:57:44 AM
Quote@Rhine
The default is board's link if you'll leave the image link box empty in the board configuration.

I mean to like make the board name like "Join Us" a link to the register.
Title: Re: Images On Board
Post by: orw on November 27, 2008, 05:50:20 PM
Hello mate, great mod.

I installed it without any problems on default theme but on my forum theme I can't seem to find a way to show.

My theme is RedRapsody, I attached the 2 php files. Hope you can help me.

King Regards
Title: Re: Images On Board
Post by: Bulakbol on November 28, 2008, 03:29:56 AM
@Amalcamus
I have few more mods. Check them out. You might like some of them. Check mi signature.

Rhine
Check the Redirection Board (http://custom.simplemachines.org/mods/index.php?mod=38) board. Maybe it's the one you need.

orw
I'll get back to you. I have to download and install your theme before I can make changes to your files.

Ok orw, I just got back. :) Here are your edited files. Use them after you install this mod.
Title: Re: Images On Board
Post by: orw on November 28, 2008, 09:19:16 AM
thanks alot JonnyB. It worked great  ;D
Title: Re: Images On Board
Post by: unik63 on November 29, 2008, 06:08:19 PM
Hey guys,
I'm running 2.0 beta4. I managed to install Images on the board, but when I go to Forum page it says:
Database Error
Unknown column 'b.img_filename' in 'field list'
File: F:\xxxxxx\vvvxxxxsss\mywebsite.com\folder\Sources\Subs-BoardIndex.php
Line: 85 


If I try to go to edit boards, it says:

Database Error
Unknown column 'b.img_filename' in 'field list'
File: F:\xxxxxx\vvvxxxxsss\mywebsite.com\folder\Sources\Subs-Boards.php
Line: 1039 


I have the following mods installed:

Modification Packages
Mod Name Version 
1. Anti-Bot Registration Puzzles 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
2. Activate account redirection 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. Advanced Login Form 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
4. Advanced Contact Form 1.02   [ Uninstall ] [ List Files ] [ Delete ] 
5. Ad Managment 2.3.4   [ Uninstall ] [ List Files ] [ Delete ] 
6. Auto Embed Video/Audio Clips 4.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
7. Age on post 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Attachments In Message 1.2.0   [ Uninstall ] [ List Files ] [ Delete ] 
9. Avatar On Board 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
10. BBC [you] 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
11. BK-SMF Drop Down Menu 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
12. BK-SMF Sub-Board 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
13. Bookmarks 2.2.1   [ Uninstall ] [ List Files ] [ Delete ] 
14. Custom_Greeting_Depending_on_Time 0.8   [ Uninstall ] [ List Files ] [ Delete ] 
15. Custom Copyright 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
16. Double Post Stopper 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
17. Auto Email Inactive Users 1.7   [ Uninstall ] [ List Files ] [ Delete ] 
18. EmailValidator 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
19. Enhance Recent Post 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
20. Favicon 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
21. RSS Feed Icon 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
22. Help Linktree & Breadcrumbs Fix 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
23. Hide SMF Version 1.0.3a   [ Uninstall ] [ List Files ] [ Delete ] 
24. Highlight Search Keywords 1.21   [ Uninstall ] [ List Files ] [ Delete ] 
25. Images On Board 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
26. Last Active On MemberList 1.01   [ Uninstall ] [ List Files ] [ Delete ] 
27. last login in post 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
28. Last Post On MemberList 1   [ Uninstall ] [ List Files ] [ Delete ] 
29. Look But No Read 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
30. MessagePreviewOnHover 1.7   [ Uninstall ] [ List Files ] [ Delete ] 
31. More Spiders 1.2  [ Apply Mod ] [ List Files ] [ Delete ] 
32. New Style Message Icon 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
33. No More Ugly Avatar Scrollbars 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
34. Order News 1.0.6   [ Uninstall ] [ List Files ] [ Delete ] 
35. Page_Reload_Mod 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
36. PDF Tag 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
37. Pm_Informer 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
38. PortaMx v0.95.1 0.951   [ Uninstall ] [ List Files ] [ Delete ] 
39. Prettier_Quotes 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
40. reCAPTCHA for SMF 0.9.5.3   [ Uninstall ] [ List Files ] [ Delete ] 
41. Redirect on Login and/or Logout mod 0.3   [ Uninstall ] [ List Files ] [ Delete ] 
42. Reflection Avatar 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
43. Reg Bar 1.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
44. Registration redirection 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
45. Remove SMF Logo 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
46. Advanced Reputation System 1.5.2   [ Uninstall ] [ List Files ] [ Delete ] 
47. Separated Birthdays from Events 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
48. Show Joined, Location, Username In Topic View 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
49. SMF Articles 1.0.1.4   [ Uninstall ] [ List Files ] [ Delete ] 
50. Stop_guests_and_spiders_being_counted 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
51. TextSizer 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
52. The Rules 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
53. Todays Birthday 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
54. TopicStarter Mod 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
55. Unread and Replies Tabs in Main Menu 2.0  [ Apply Mod ] [ List Files ] [ Delete ] 
56. User Control Panel By Alan S 3.0   [ Uninstall ] [ List Files ] [ Delete ] 
57. Users Online Today 1.5.4   [ Uninstall ] [ List Files ] [ Delete ]




GUYS, PLEASE HELP ME TO RUN THIS MOD, SINCE I'M A NEWBIE, I HAVE NO IDEA HOW TO MAKE IT WORK.

THANKS
Title: Re: Images On Board
Post by: fmofmpls on December 02, 2008, 09:11:02 AM
Hi. I'm running 1.1.7. Just tried to install this mod and received the following error message:

Execute Modification    ./Sources/Subs-Boards.php   Test failed

Must be a conflict with another mod? I'm using the default color themes.

Help is appreciated! Thanks!

Title: Re: Images On Board
Post by: Bulakbol on December 02, 2008, 06:33:10 PM
@orw
You're welcome. Thanks too for using or trying this mod.

@unik63
Try running the attached file. Upload it to your root folder.


@fmofmpls
Attach your Sources/Subs-Board.php and I'll try to rdit it for you manuallt.
Title: Re: Images On Board
Post by: unik63 on December 02, 2008, 07:03:21 PM
you mean put it in the root folder and go mywebsite.com/add_img_link_2b4.php and than install the mod
Title: Re: Images On Board
Post by: Bulakbol on December 02, 2008, 07:12:28 PM
That's right. Run only once though.
Title: Re: Images On Board
Post by: unik63 on December 02, 2008, 07:14:54 PM
i ran it, and it gave me the following:
Notice: Undefined index: forum in Sources\Subs.php on line 3844

Notice: Undefined index: PortaMx in \Sources\Subs.php on line 3846

Notice: Undefined index: pmx_settings in \Sources\Subs.php on line 3895

Notice: Undefined index: pmx_blocks in \Sources\Subs.php on line 3900

Notice: Undefined index: PortaMx in \Sources\Subs.php on line 4130
Database updates complete!
Title: Re: Images On Board
Post by: unik63 on December 02, 2008, 07:17:22 PM
installed and it shows the same:

To create a new board, click the Add Board button. To make the new board a child of a current board, select "Child of..." from the Order drop down menu when creating the board.
   

Modify Boards    Create New Category  Settings   


Database Error
Unknown column 'b.img_filename' in 'field list'
File: \Sources\Subs-Boards.php
Line: 1039 

Back


under forum:

Database Error
Unknown column 'b.img_filename' in 'field list'
File: \Sources\Subs-BoardIndex.php
Line: 85 


Title: Re: Images On Board
Post by: Bulakbol on December 02, 2008, 07:26:25 PM
@unik63
The PortaMx errors are not part of this mod.
Try running this one. It will add the "img_fuilename" column. Good luck.
Title: Re: Images On Board
Post by: unik63 on December 02, 2008, 07:41:16 PM
The same...... :(

Notice: Undefined index: forum in \Sources\Subs.php on line 3844

Notice: Undefined index: PortaMx in \Sources\Subs.php on line 3846

Notice: Undefined index: pmx_settings in \Sources\Subs.php on line 3895

Notice: Undefined index: pmx_blocks in \Sources\Subs.php on line 3900

Notice: Undefined index: PortaMx in \Sources\Subs.php on line 4130
Database updates complete!
Title: Re: Images On Board
Post by: fmofmpls on December 02, 2008, 09:49:33 PM
Quote from: Bulakbol on December 02, 2008, 06:33:10 PM
@fmofmpls
Attach your Sources/Subs-Board.php and I'll try to rdit it for you manuallt.

Here you go. Thanks for the support!
Title: Re: Images On Board
Post by: Bulakbol on December 04, 2008, 09:00:16 PM
@fmofmpls
I modified your file so use it after installing this mod. Here it is.
Title: Re: Images On Board
Post by: taha116 on December 11, 2008, 11:46:48 PM
I teid this on my site it didnt work i really wanted it. Last time i tried tests were successful but when i entered URL for image i didnt get anything except the dreded X and the title of the image. I really want it so will someone help through this manulay
Title: Re: Images On Board
Post by: Bulakbol on December 13, 2008, 04:42:05 PM
@taha116
There's is only one image that came with this mod. You should add your own images in default/images/ImagesOnBoard folder. Photo host (url) are not supported.
Title: Re: Images On Board
Post by: taha116 on December 14, 2008, 02:22:13 PM
Quote from: Bulakbol on December 13, 2008, 04:42:05 PM
@taha116
There's is only one image that came with this mod. You should add your own images in default/images/ImagesOnBoard folder. Photo host (url) are not supported.

Can you elaborate cauz im not sure but i think you jsut said external link are not allowed... I thought it said on the mod page that it is... im confused
Title: Re: Images On Board
Post by: InsaneneSs on December 14, 2008, 09:23:43 PM
Johnny can you make it on Cargo by dzinerstudio?

Can you edit him for me?
Title: Re: Images On Board
Post by: Judgey on December 15, 2008, 10:38:33 AM
when u say

   
Quoteecho '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

and add width="xx" after the alt="*" attribute.
Quote

    echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" width="35" /></div>';

I can not find the text :(
Title: Re: Images On Board
Post by: Bulakbol on December 17, 2008, 12:52:42 AM
@taha116
You are confused. Images are read from default/images/ImagesOnBoard, not from photobucket or some photo host. It is the link that you can link to anywhere you want.

@Became17
You have to attach a copy of your custom theme's BoardIndex.template.php and MessageIndex.template.php. I can't test it tho without the whole theme.

@Judgey
Download the latest package. Your copy might be old. If you are using custom theme, then it might be coded differently.
Title: Re: Images On Board
Post by: haito on December 17, 2008, 08:38:54 PM
im using outline themes...
how make it appear?
Title: Re: Images On Board
Post by: InsaneneSs on December 17, 2008, 09:09:41 PM
Quote from: Bulakbol on December 17, 2008, 12:52:42 AM
@Became17
You have to attach a copy of your custom theme's BoardIndex.template.php and MessageIndex.template.php. I can't test it tho without the whole theme.

Here are the files you ask. But if you want i can give you the hole theme
Title: Re: Images On Board
Post by: Bulakbol on December 17, 2008, 09:20:16 PM
@haito
You have to do the edit manually. If you can't find the codes for some reason, attach your BoardIndex.template.php and MessageIndex.template.php and I'll see what I can do.

@Became17
I got your files. I'll get back to you.
Title: Re: Images On Board
Post by: haito on December 18, 2008, 01:21:34 AM
outline themes hasnot MessageIndex.template.php...
Title: Re: Images On Board
Post by: InsaneneSs on December 18, 2008, 07:53:36 PM
Quote from: Bulakbol on December 17, 2008, 09:20:16 PM
@haito
You have to do the edit manually. If you can't find the codes for some reason, attach your BoardIndex.template.php and MessageIndex.template.php and I'll see what I can do.

@Became17
I got your files. I'll get back to you.

Johnny please edit this 2 files and not the other ones, sorry for the mistake! I thanks for helping!
Title: Re: Images On Board
Post by: taha116 on December 18, 2008, 07:55:49 PM
Sorry i dont think im writing clearly i know i cant use /iamges blablalba to get to photobucket i need the ful URL , but that didnt work when i tried it, anyways its ok im letting this go ive got an intrest in 1 of ur other mods, already posted there
Title: Re: Images On Board
Post by: moonjo on December 19, 2008, 02:20:19 PM
This is a very nice mod. I just wish it would allow uploading the images from the admin panel.
Title: Re: Images On Board
Post by: taha116 on December 19, 2008, 04:07:57 PM
agreed  thats a good idea, an uploader should be enabled to make evryones life easier
Title: Re: Images On Board
Post by: Sabre™ on December 19, 2008, 04:17:42 PM
You might want to check out [THIS] (http://custom.simplemachines.org/mods/index.php?mod=477) mod then.
It allows you to upload from the Admin Panel.
Title: Re: Images On Board
Post by: taha116 on December 19, 2008, 04:21:45 PM
Kewl checing it out now... in 3... 2... 1
Title: Re: Images On Board
Post by: taha116 on December 19, 2008, 04:24:09 PM
AWWWW im a beta user, that sucks 4 me, But it looks like a great mod, cannot wait untill betas are done and the programers dive into modding for 1 version of SMF instead of like 1.0.x or 1.1.x or Betas and RCs...
Title: Re: Images On Board
Post by: Sabre™ on December 19, 2008, 04:30:06 PM
lol
Sorry bud, I shouldve mentioned its for 1.1.x at the mo.
Aärons waiting for the beta to come clear till he updates it, but it will definitely be ready for ya when it does :)
Title: Re: Images On Board
Post by: Bulakbol on December 20, 2008, 07:56:24 PM
@haito and Became17
I'll get back to you after editing your files.

@taha116 and moonjo
I will try to add a simple upload. A very simple one. Here's what I am going to do. I'll use an orange asterisk (*) that should look like this when you edit/create a board.
Name of image for this board: *
Click the asterisk and it will open another tab for the upload. It will upload only to default/images/ImagesOnBoard folder. Give me couple of days.


<edit>
@Became17
Your BoardIndex.template.php and MessageIndex.template.php are attached. Please use them after installing this mod.
</edit>
Title: Re: Images On Board
Post by: Bulakbol on December 21, 2008, 05:26:53 PM
Upgrade uploaded (ImagesOnBoard2.0_up.zip (http://custom.simplemachines.org/mods/index.php?mod=1266)).  Here's how the upgrade work. At least the way I did it.

For version 1.1.7
What you will see after uploading the upgrade to your Packages folder.
Quote
9. Images On Board 1.1           [ Uninstall ] [ List Files ] [ Delete ] 
10. Images On Board 2.0          [ Upgrade ] [ List Files ] [ Delete ]

After the upgrade.
Quote
9. Images On Board 1.1                           [ List Files ] [ Delete ] 
10. Images On Board 2.0        [ Uninstall ] [ List Files ] [ Delete ]

After uninstallation.
Quote
9. Images On Board 1.1       [ Apply Mod ] [ List Files ] [ Delete ] 
10. Images On Board 2.0     [ Apply Mod ] [ List Files ] [ Delete ]

You can install either the version 2.0 or the version 1.1.


For verson 2.0 Beta 4
It is different. Install and uninstall only the upgrade just like any other mod.


@haito
Your BoardIndex.template.php (outline) is attached. Please use this file after installation.
Title: Re: Images On Board
Post by: taha116 on December 23, 2008, 09:47:05 PM
0_O Yay! Cant wait to see if its still compatible with all the mods im currently using... Wich reminds me of a question why is there so often sooo much confliction in SMF mods but almost never in wordpress?
Title: Re: Images On Board
Post by: davieb on December 24, 2008, 09:03:41 AM
Having problems with installing this one

Only fails at ./Sources/MessageIndex.php everything else works ok

Can anyone point me in the direction of what to do?

Thanks
Title: Re: Images On Board
Post by: Bulakbol on December 24, 2008, 08:26:04 PM
@taha116
Maybe wordpress have few mod authors and few mods. If you know how the mod and the package manager work, you'll understand. Try your hand on making a mod and you'll find out.  ;)

@davieb
You can attach the file with issue to your next post and I'll edit it for you after the holiday.
Title: Re: Images On Board
Post by: jayc7176 on December 25, 2008, 02:54:16 AM
Johny thanks for all the work you have put in and continue to put in . ! !

Title: Re: Images On Board
Post by: davieb on December 27, 2008, 04:55:39 PM
Quote from: Bulakbol on December 24, 2008, 08:26:04 PM
@davieb
You can attach the file with issue to your next post and I'll edit it for you after the holiday.

file attached as requested. Thanks for the help
Title: Re: Images On Board
Post by: taha116 on December 27, 2008, 05:01:16 PM
I understand sorta why. Just Wondering why SMF dosent try re-arranging their system to one similar to wordpress (I think the answer that that will take alot more resourses)
Title: Re: Images On Board
Post by: Relyana on December 28, 2008, 02:21:21 PM
Just because I love this mod I thought I could give back a little :)

Romanian-utf8

$txt['board_image'] = 'Numele imaginii pentru această secţiune';
$txt['board_image_desc'] = 'Include extensia fişierului. (i.e. xx.gif)';
$txt['board_img_link'] = 'Link pentru imaginea de deasupra';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';


Never used friendly html codes in order to display diacritics but if that's needed just tell me and I'll edit the above translation.  :)

or ...

Romanian (without diacritics - native Romanians will understand it perfectly, although I don't like disrespecting my language this way - the www is full of Romanian articles without diacritics though)

$txt['board_image'] = 'Numele imaginii pentru aceasta sectiune';
$txt['board_image_desc'] = 'Include extensia fisierului. (i.e. xx.gif)';
$txt['board_img_link'] = 'Link pentru imaginea de deasupra';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';







Title: Re: Images On Board
Post by: taha116 on December 28, 2008, 05:28:09 PM
dammit i tried the new version on 1.1.7
I got this when i clicked on the *


Unable to load the 'iobuploads' template.

any ideas?

EDIT


OH yeah! one important point... I once had a similar issue with a ratigns mod and it truned out it was cuz my server was case senssative... this account that i tested it on was on another server but that dosent mean its a similar issue, in wich case.... what do i do?
Title: Re: Images On Board
Post by: NukeGaming on December 30, 2008, 07:09:57 PM
Hello i also got this mod and instaled but for some reason i try put image there with imageshack and it dont show me the image on the board is just show the link of that image on  board i have put.

Can u guys help me  this cause i dont know how image work in boards and theme i using is DILBER MC i also put there name of image and still wehn i open forum it shows on the board the link of image.

Title: Re: Images On Board
Post by: Bulakbol on December 30, 2008, 08:19:52 PM
@davieb
Here's your MessageIndex.php. Use it after installing this mod.

@taha116
Have you tried your hand on making a simple mod? You'll find out that two mod authors modifying the same location will have a conflict. Profile for example.

@Relyana
Thanks for the language translation. I'll add it to the next update.

@taha116
Make sure the "'iobuploads.template.php" exist in default folder. Upload it if it is not there.

@Sirkonrads
Upload your images in default/images/ImagesOnBoard folder.
Title: Re: Images On Board
Post by: taha116 on December 30, 2008, 08:26:10 PM
Quote from: Bulakbol on December 30, 2008, 08:19:52 PM
@davieb
Here's your MessageIndex.php. Use it after installing this mod.

@taha116
Have you tried your hand on making a simple mod? You'll find out that two mod authors modifying the same location will have a conflict. Profile for example.

@Relyana
Thanks for the language translation. I'll add it to the next update.

@taha116
Make sure the "'iobuploads.template.php" exist in default folder. Upload it if it is not there.

@Sirkonrads
Upload your images in default/images/ImagesOnBoard folder.

will do!
Title: Re: Images On Board
Post by: NukeGaming on December 31, 2008, 03:11:41 AM
hmm are u sure that will work cause that is too complicated,and i not sure if i can do that by the look i see that hmm i dont know.

I do know that i  image dont work.

And mods that is just a thing i will not do u beter belive me and it is a thing i not worried about.

Title: Re: Images On Board
Post by: davieb on December 31, 2008, 03:45:57 AM
Quote from: Bulakbol on December 30, 2008, 08:19:52 PM
@davieb
Here's your MessageIndex.php. Use it after installing this mod.

@taha116
Have you tried your hand on making a simple mod? You'll find out that two mod authors modifying the same location will have a conflict. Profile for example.

@Relyana
Thanks for the language translation. I'll add it to the next update.

@taha116
Make sure the "'iobuploads.template.php" exist in default folder. Upload it if it is not there.

@Sirkonrads
Upload your images in default/images/ImagesOnBoard folder.

Cheers, will give it a try over the next couple of days and let you know how I get on
Title: Re: Images On Board
Post by: davieb on December 31, 2008, 08:56:20 AM
Quote from: davieb on December 31, 2008, 03:45:57 AM
Quote from: Bulakbol on December 30, 2008, 08:19:52 PM
@davieb
Here's your MessageIndex.php. Use it after installing this mod.

@taha116
Have you tried your hand on making a simple mod? You'll find out that two mod authors modifying the same location will have a conflict. Profile for example.

@Relyana
Thanks for the language translation. I'll add it to the next update.

@taha116
Make sure the "'iobuploads.template.php" exist in default folder. Upload it if it is not there.

@Sirkonrads
Upload your images in default/images/ImagesOnBoard folder.

Cheers, will give it a try over the next couple of days and let you know how I get on

Works spot on. Cheers.

Are you able to help with a 2nd theme? I've looked back through the earlier posts and can only assume it must be specific coding to each theme and not a standard one. The theme is FS Gray. I've attached the boardindex and messageindex files
Title: Re: Images On Board
Post by: keru.x3 on December 31, 2008, 07:30:13 PM
i have... or use Cargo by DzinerStudio... How do you coax it it in that theme?? plisss ^_^  O:)

Title: Re: Images On Board
Post by: Bulakbol on January 01, 2009, 05:19:21 PM
@davieb
Try these files. They are edited. FS Gray theme. BoardIndex.template.php and MessageIndex.template.php.


@keru.x3
Cargo theme. BoardIndex.template.php,
Code (find) Select
<td class="windowbg2">
<b><a href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'], '<br />';

Code (replace) Select
<td class="windowbg2">';
if (!empty($board['image']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'], '<br />';




MessageIndex.template.php.
Code (find) Select
<td class="windowbg2 board">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'], '<br />';

Code (replace) Select
<td class="windowbg2 board">';
if (!empty($board['image']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'], '<br />';
Title: Re: Images On Board
Post by: davieb on January 02, 2009, 03:04:25 AM
Quote from: Bulakbol on January 01, 2009, 05:19:21 PM
@davieb
Try these files. They are edited. FS Gray theme. BoardIndex.template.php and MessageIndex.template.php.

Thanks for taking the time to do these. I've installed then but get the following error

QuoteTemplate Parse Error!
There was a problem loading the /Themes/Fs_Gray/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Fs_Gray/BoardIndex.template.php on line 397

388:    {
389:        echo '
390:             <tr>
391:                <td class="titlebg" colspan="2">', $txt[159], '</td>
392:             </tr><tr>
393:                <td class="windowbg" width="20" valign="middle" align="center">
394:                   ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" />', $context['allow_pm'] ? '</a>' : '', '
395:                </td>
396:                <td class="windowbg2" valign="top">
397: if (!empty($board['image']))
398:                   echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
399:             
400:             echo '
401:                   <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
Title: Re: Images On Board
Post by: Bulakbol on January 03, 2009, 04:47:51 PM
Line 396, add '; at the end.
<td class="windowbg2" valign="top">';


<edit>
Wait.. I'll check your files again. I'll get back to you davieb.
</edit>
Title: Re: Images On Board
Post by: Bass_Chaz on January 05, 2009, 09:07:57 PM
I was able to install with no errors but all I got when I put the imahe url and the name in their proper places all I got was a link to the image..

1.1.7
Title: Re: Images On Board
Post by: romper on January 06, 2009, 11:12:59 AM
Can i get help with dilberMc theme, I just had problems with changing boardindex, so I'm a little reluctant to do manual change again...here is what i get:
SMF 1.1.7 btw:
1.     Execute Code     ImagesOnBoardDB115.php     
2.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test failed
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/shinyblue115/BoardIndex.template.php    Skipping file
15.    Execute Modification    ./Themes/shinyblue115/MessageIndex.template.php    Skipping file
16.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
18.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Skipping file
19.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file

I'll attach my boardindex and messageindex:
Title: Re: Images On Board
Post by: Bulakbol on January 08, 2009, 10:12:24 PM
@davieb
Try these edited files. Sorry for the delayed reply. FS Gray theme. Let me know if you still get errors.

@Bass_Chaz
Maybe the images were not in their proper folder. Upload your images in default/images/ImagesOnBoard folder.

@romper
It's the Sources/MessageIndex.php that failed the search test. You attached the wrong ones.
Title: Re: Images On Board
Post by: SilverKnight on January 09, 2009, 10:19:54 AM
I get errors when trying to install it on 1.1.7  :'(
Title: Re: Images On Board
Post by: davieb on January 09, 2009, 11:00:48 AM
Quote from: Bulakbol on January 08, 2009, 10:12:24 PM
@davieb
Try these edited files. Sorry for the delayed reply. FS Gray theme. Let me know if you still get errors.

Almost. No error message this time, but no images showing either  :'(
Title: Re: Images On Board
Post by: thomaspp on January 09, 2009, 02:07:44 PM
Quote from: Bulakbol on July 08, 2008, 05:30:07 AM
Use your phpMyAdmin (MySQL) control panel and drop the img_filename column from smf_boards table then.

I used MySQL Administrator and opened the "smf_boards" table and unchecked "Not Null" option for both the "img_filename" and "img_link fields", clicked on "Apply Changes".  I was able to create a new board.  Thank you Sooooooo very much.
Title: Re: Images On Board
Post by: romper on January 09, 2009, 03:16:57 PM
Crap, haven't even realized...here it is:
Title: Re: Images On Board
Post by: Pwn Kyuubi on January 09, 2009, 08:10:06 PM
Bulakbol i want this mod for my new forum that use the theme Fnight --> http://custom.simplemachines.org/themes/index.php?lemma=1220
.

I'm using SMF 1.1.7 with Simple Portal  :P
Title: Re: Images On Board
Post by: Burke ♞ Knight on January 09, 2009, 08:20:52 PM
Quote from: Pwn Kyuubi on January 09, 2009, 08:10:06 PM
Bulakbol i want this mod for my new forum that use the theme Fnight --> http://custom.simplemachines.org/themes/index.php?lemma=1220
.

I'm using SMF 1.1.7 with Simple Portal  :P


You will need to manually install the mod into that theme.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Images On Board
Post by: Bulakbol on January 12, 2009, 07:06:23 PM
@SilverKnight
Well, what kind of errors?

@Pwn Kyuubi
If you know how to install mod manually, you can do what BurkeKnight suggested.

@thomaspp
You are welcome.  8)

@davieb
Try removing all the id's you entered from Admin => Features and Options => Basic Features - "Arrange additional group id to be displayed." and see if it will display the badges properly.

@BurkeKnight
Thanks for the help. Appreciated.

@romper
I'll get back to you. Here's your MessageIndex.php. Upload this file before you install this mod.
Title: Re: Images On Board
Post by: davieb on January 13, 2009, 04:39:29 AM
Quote from: Bulakbol on January 12, 2009, 07:06:23 PM
@davieb
Try removing all the id's you entered from Admin => Features and Options => Basic Features - "Arrange additional group id to be displayed." and see if it will display the badges properly.

I don't have "Arrange additional group id to be displayed." in the admin section as far as I can tell.
Title: Re: Images On Board
Post by: romper on January 13, 2009, 06:58:41 AM
It worked, passed the install, I see the block on default theme...but I can't upload any gif. picture in the folder...strange thing...have to see what's wrong!
THX!
Title: Re: Images On Board
Post by: Bulakbol on January 17, 2009, 03:42:35 PM
@davieb
Maybe the mod wasn't installed. or maybe there's something wrong.

@romper
How is it going?  Did you chmod the ImagesOnBoard folder to 777?
Title: Re: Images On Board
Post by: davieb on January 18, 2009, 06:28:57 AM
Quote from: Bulakbol on January 17, 2009, 03:42:35 PM
@davieb
Maybe the mod wasn't installed. or maybe there's something wrong.

Yeah the mod is definitely installed as I can see the logos ok on the default theme, just not on the FS-Gray one.
Title: Re: Images On Board
Post by: romper on January 18, 2009, 09:01:32 AM
Quote from: Bulakbol on January 17, 2009, 03:42:35 PM
@romper
How is it going?  Did you chmod the ImagesOnBoard folder to 777?

Didn't have time for copuple of days...your modification of MessageIndex.php installed mod without errors..and I see the column in admin>boards where i should put xx.gif..and i see a folder in defalut theme, but I can't put any files in it...it says: error, something with premission?....The bold part I didn't understand, sorry O:)
Title: Re: Images On Board
Post by: romper on January 18, 2009, 07:58:37 PM
Oo, I learnt the proces, after I try to change it sais: cannot change atributes of remote files!
Anything I can do or I must contact my provider?
Title: Re: Images On Board
Post by: NukeGaming on January 19, 2009, 05:24:36 AM
I just want to say that finnaly i got this working thx guys and i can put images i want in ther on any costume themes.


CHEERS M8S ;)
Title: Re: Images On Board
Post by: Bulakbol on January 19, 2009, 01:40:07 PM
@romper
You have to contact your provider. Maybe they don't want you to change file permissions.

@Sirkonrads
Glad to know.

@davieb
So the FS theme files I gave you didn't work?
Title: Re: Images On Board
Post by: davieb on January 19, 2009, 04:09:02 PM
Quote from: Bulakbol on January 19, 2009, 01:40:07 PM
@davieb
So the FS theme files I gave you didn't work?

Spot on mate, back to where we were at the start, with the logos showing in the default theme but nothing in the FS Gray
Title: Re: Images On Board
Post by: romper on January 20, 2009, 01:32:47 PM
Quote from: Bulakbol on January 19, 2009, 01:40:07 PM
@romper
You have to contact your provider. Maybe they don't want you to change file permissions.

I will, I know him, so hopefully it want be a problem, since it's a great mod!
Title: Re: Images On Board
Post by: Bulakbol on January 22, 2009, 10:01:17 PM
@davieb
Do you still need help with this mod?
Title: Re: Images On Board
Post by: davieb on January 23, 2009, 01:58:10 AM
Quote from: Bulakbol on January 22, 2009, 10:01:17 PM
@davieb
Do you still need help with this mod?

Please, about half my users view the site in FS Gray
Title: Re: Images On Board
Post by: p1tereq on January 25, 2009, 07:48:41 AM
Hi Bulakbol!

I've got a simple problem with Open Door template... I can't just start with ION on it.
I'll be grateful for a help ;) Now, some files... Cheers!
Title: Re: Images On Board
Post by: Bulakbol on January 25, 2009, 08:23:27 PM
@davieb
Do you want me to edit FS theme BoardIndex.template.php and MessageIndex.template.php again?

@p1tereq
I'll see what I can do. I'll get back to you.
Title: Re: Images On Board
Post by: davieb on January 26, 2009, 08:18:53 AM
Quote from: Bulakbol on January 25, 2009, 08:23:27 PM
@davieb
Do you want me to edit FS theme BoardIndex.template.php and MessageIndex.template.php again?


Yeah please. Might as well give it another try.
Title: Re: Images On Board
Post by: Bulakbol on January 26, 2009, 03:01:00 PM
@p1tereq
You need only to modify The_Open_Door/BoardIndex.template.php. Install this mod before using the attached BoardIndex.template.php.

@davieb
Attach your FS BoardIndex.template.php and MessageIndex.template.php then.
Title: Re: Images On Board
Post by: p1tereq on January 27, 2009, 04:01:35 AM
@Bulakbol You're amazing! Thanks very much for that. Good Stuff!
Working better than perfect ;) If You're looking for some who can give u a hand with some translations (polish - English)... than I'm inn ^_^
Title: Re: Images On Board
Post by: davieb on January 27, 2009, 02:07:42 PM
Quote from: Bulakbol on January 26, 2009, 03:01:00 PM

@davieb
Attach your FS BoardIndex.template.php and MessageIndex.template.php then.

They are on reply #411  ;)
Title: Re: Images On Board
Post by: Bulakbol on January 27, 2009, 04:24:40 PM
@davieb
We are going in circle. I attached edited FS files in reply#411 for you. Have you tried them? I am trying to help you.
Title: Re: Images On Board
Post by: Gunny on February 01, 2009, 07:47:52 AM
Hi, i have downloaded and installed the Image on Board mod on my forum. But how do i go doing making it works, i just can't understand what the instructions says. My version is SMF 1.1.5.
I have attached the needed files. Pls help..
Title: Re: Images On Board
Post by: Bulakbol on February 01, 2009, 10:06:07 PM
@Gunny
If you are using custom theme, which one?
Title: Re: Images On Board
Post by: Gunny on February 02, 2009, 11:07:10 AM
Quote from: Bulakbol on February 01, 2009, 10:06:07 PM
@Gunny
If you are using custom theme, which one?
I am currently using Blue Ace theme. But if it takes to works by changing the theme back to Babylon or one of the orginal SMF theme, i will do it. But if you could work out the mod on Blue Ace, i will be more than happy.
Title: Re: Images On Board
Post by: Bulakbol on February 02, 2009, 08:27:53 PM
@Gunny
This mod was properly installed in the BlueAce's BoardIndex.template.php and Message.template.php. There's something else wrong with your files and I don't know what it is. Have you done edits on them lately?
Title: Re: Images On Board
Post by: davieb on February 03, 2009, 08:49:13 AM
Quote from: Bulakbol on January 27, 2009, 04:24:40 PM
@davieb
We are going in circle. I attached edited FS files in reply#411 for you. Have you tried them? I am trying to help you.

Yeah they were tried as per my reply on 413 which was why I assumed you'd want to pick it up from the files you attached on 411 (the one's I currently have but which don't show the images)

Cheers for your continued assistance here.

Dave
Title: Re: Images On Board
Post by: Gunny on February 03, 2009, 09:05:06 AM
Quote from: Bulakbol on February 02, 2009, 08:27:53 PM
@Gunny
This mod was properly installed in the BlueAce's BoardIndex.template.php and Message.template.php. There's something else wrong with your files and I don't know what it is. Have you done edits on them lately?

I really appreciate it for helping me out. I haven't touch any of the html recently so what is wrong with my files? How do i go doing putting the image for the board.
Title: Re: Images On Board
Post by: Bulakbol on February 06, 2009, 02:03:15 AM
@davieb
If you still need assistance, attach the files to your next post.

@Gunny
I can't edit your files because there's something wrong with them and I don't know why. Sorry. They won't run.
Title: Re: Images On Board
Post by: Amzen on February 07, 2009, 03:54:12 PM
hello :)
thanks Bulakbol  for your work,

i've the same probleme than taha116, "Unable to load the 'iobuploads' template." when i click on the * to give an url

i read and try many things, but no change,
i had no error during the install, and i modified some language files,

my SMF is in french, and i use babylon skin,

could you give me please a way to follow?

(sorry for my english)

Title: Re: Images On Board
Post by: Bulakbol on February 09, 2009, 10:49:05 PM
@Amzen
The "*" is only for uploading images to the image folder.  To enter a link for an image, you have to go to Admin => Boards => Modify Boards. Click on the "Modify" and look for "Link for the above image:".  Enter the link here. (Example: http://www.google.com).
Title: Re: Images On Board
Post by: Amzen on February 10, 2009, 04:21:59 AM
Goodmorning

thanks, it works perfect now,
(put images on the ImagesOnBoard Dir).

;)

Title: Re: Images On Board
Post by: six_L on February 10, 2009, 04:26:57 AM
hope Images to support smf 2 RC1.
Title: Re: Images On Board
Post by: MultiformeIngegno on February 10, 2009, 09:33:48 AM
Quote from: six_L on February 10, 2009, 04:26:57 AM
hope Images to support smf 2 RC1.
Seconded! :)
Title: Re: Images On Board
Post by: Bulakbol on February 17, 2009, 04:50:01 PM
Ok ok. :) I apologize for the delay. I will update all my mods of course but might take time. I got sick and my health is not fully back yet. Stand by. :)
Title: Re: Images On Board
Post by: Groundhog on February 18, 2009, 10:50:26 AM
Apologies if this question is already answered here.

Is there or will there be a mod for ImagesOnBoard - SMF v1.1.8?

Have just converted my YaBB boards and used this feature in YaBB so it would be good to have it on my new SMF board also if possible.

Many Thanks
Title: Re: Images On Board
Post by: L'AltroWeb on February 18, 2009, 11:03:14 AM
I'm use in 1.1.8 without problem!
Title: Re: Images On Board
Post by: Groundhog on February 18, 2009, 12:39:45 PM
Quote from: Dark-Wolf on February 18, 2009, 11:03:14 AM
I'm use in 1.1.8 without problem!

Excellent thanks. I'll give it a try then.  :)
Title: Re: Images On Board
Post by: romper on February 18, 2009, 02:05:11 PM
I managed to get premission to move files, but I need help with dilberMc theme....here are board.index, and message.index...from dilberMc theme.....default theme works now, after you did modifications on source/message.*....
Title: Re: Images On Board
Post by: Bulakbol on February 18, 2009, 11:12:01 PM
@romper
This mod support the dilber MC theme.
Title: Re: Images On Board
Post by: fotografo74 on February 19, 2009, 01:48:34 AM
Thanks for this perfect Mod! (sorry for my english)
A question: it's possible remove link to image when i click to image? If i click to board's name,i go to boards....if i click to board's image,i go to image's page!
thanks
antonio
Title: Re: Images On Board
Post by: Xepernas on February 19, 2009, 10:51:59 AM
I have two questions about this mod's present or future :

1) Is it possible to make the images theme-dependant ? That is, for instance, to have the image path like "[current variable theme name]/images/ImagesOnBoard" ?

2) Is it possible to add a toggable option in the user profiles, to allow members to choose themselves if they want the images displayed or not ?
Title: Re: Images On Board
Post by: romper on February 20, 2009, 07:24:22 AM
Quote from: Bulakbol on February 18, 2009, 11:12:01 PM
@romper
This mod support the dilber MC theme.

Hm...than I don't know where is the problem, i see the block where to put image.gif, I created folder, and I see the image in default theme but nothing on dilberMc...completly nothing, like I didn't put anything!
Title: Re: Images On Board
Post by: six_L on February 24, 2009, 04:40:13 AM
SMF RC1.
ERROR has been happened.
Title: Re: Images On Board
Post by: Bulakbol on February 25, 2009, 11:07:33 PM
@fotografo74
The default link for image is the board's url. If you want to link the image somewhere else, you have to enter the url in the "Link for the above image:" text box. For example, try to enter the following when modifying a board.
Name of image for this board:  stop.png
Link for the above image: http://www.simplemachines.org


@Xepernas
1.Yes but what is the purpose?
2. Yes. I will add that option to version 2.1. Good idea.

@romper
The folder is already there for you. You don't have to create a folder. I tried this mod again and it install in DilberMC with no problem. You can attach your dilbermc BoardIndex.template.php and I'll try to find the problem.

@six_L
Uncompress the package, upload the img_link.php and run it once. It should add the img_link column to your boards table.
Title: Re: Images On Board
Post by: six_L on February 26, 2009, 01:06:23 AM
Quote@six_L
Uncompress the package, upload the img_link.php and run it once. It should add the img_link column to your boards table.
error messages:
QuoteNotice: Undefined index: forumProfile in D:\smf\Sources\Subs.php on line 3766
Database updates complete!
Title: Re: Images On Board
Post by: Bulakbol on February 26, 2009, 01:16:39 AM
ImagesOnBoard mod does not touch the Sources/Subs.php file. Additionally, version 2.0 RC1 uses "forumprofile" (lowercase) where version 2.0 Beta 4 uses "forumProfile" (camelCase). Try changing the "forumProfile" to "forumprofile".
Title: Re: Images On Board
Post by: six_L on February 26, 2009, 02:06:14 AM
QuoteTry changing the "forumProfile" to "forumprofile".
DateBase updates complete!
but the Error about snap000.jpg has still been happened
Title: Re: Images On Board
Post by: GohighVoltage on February 26, 2009, 06:56:02 AM
hi!   When I Click on the *  ( next to "Name of image for this board: *)   I get this error:


Unable to load the 'iobuploads' template.


No matter what I do or try.    I read in one post that this is for uploading pictures,   why am I getting an error then?   How is the * suppose to be used and how do I fix this problem?  Thanks!
Title: Re: Images On Board
Post by: romper on February 26, 2009, 03:26:18 PM
Quote from: Bulakbol on February 25, 2009, 11:07:33 PM
@romper
The folder is already there for you. You don't have to create a folder. I tried this mod again and it install in DilberMC with no problem. You can attach your dilbermc BoardIndex.template.php and I'll try to find the problem.

Thx...here it is:
Title: Re: Images On Board
Post by: sandmannd on March 02, 2009, 08:49:35 PM
I love this mod, but I'm having a problem. It shows the image as double. Also, how do you get the image to show under the board name?

Here's what I see when I go to add the image:

http://i128.photobucket.com/albums/p170/sandmannd/forum%20junk/DoublImage.jpg

Here's what it looks like when posted.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi128.photobucket.com%2Falbums%2Fp170%2Fsandmannd%2Fforum%2520junk%2FDoubleSponsorpic.jpg&hash=980442d6756102e60f1116fb98f82389a8d52ac4)

After reading through this thread I attached a couple of files as well.
Title: Re: Images On Board
Post by: Bulakbol on March 02, 2009, 08:55:33 PM
@Six_L and GoHighVoltage
Try the new package. Then post here if you still getting errors or problems.

@romper
I don't know what the problem is but here's your edited dilberMC BoardIndex.template.php.

Title: Re: Images On Board
Post by: Bulakbol on March 02, 2009, 09:17:01 PM
@sandmannd
Here are your edited BoardIndex.template.php and MessageIndex.template.php. You probably forgot or you didn't uninstall the old version.

Title: Re: Images On Board
Post by: GohighVoltage on March 02, 2009, 11:27:29 PM
Hi,  Ok,  I installed the new package,   When I go into a board,  and I click on that  "*",  not it gives me an error that says:

Fatal error: require_once() [function.require]: Failed opening required '/html/forum/Sources/IOBUploads.php' (include_path='.:/usr/local/php5/lib/php') in /html/forum/index.php on line 349
Title: Re: Images On Board
Post by: GohighVoltage on March 02, 2009, 11:33:07 PM
Nevermind,  I fixed it!  Error on my part!

Thanks!!  Works great now!
Title: Re: Images On Board
Post by: kingkingston on March 02, 2009, 11:37:24 PM
I go to install the mod and i get this problem

4. Execute Modification ./Sources/MessageIndex.php Test failed

how do i fix it ?
Title: Re: Images On Board
Post by: Xepernas on March 03, 2009, 06:59:36 AM
Quote from: Bulakbol on February 25, 2009, 11:07:33 PM
@Xepernas
1.Yes but what is the purpose? 

You can have several available themes on your forum, with several kinds of colours. So, this would allow, for instance, to use differently tinted versions of your images, to integrate them better in the used theme.

In fact it would even allow to use completely different sets of images to match the style of the theme (jolly or brutal, woody or metallical, cartoonish or realist, etc). But even with just one set of images (in particular if stylized or silhouetted ones), adaptating them to the surrounding colour schemes would be useful. Or else it can get hard to find one colour that doesn't clash with any of the selectable themes.
Title: Re: Images On Board
Post by: shaolin25 on March 03, 2009, 07:44:16 AM
Hello my board is located at http://forums.domain-and-web-talk.com
Im trying to install this mod, it goes through alright but after editing the boxes with the relevant , it only shows links, and not the images, whats up? im using version 1 of this mod
Title: Re: Images On Board
Post by: shaolin25 on March 03, 2009, 07:51:17 AM
I get "Unable to load the 'iobuploads' template."

..kk
Title: Re: Images On Board
Post by: sandmannd on March 03, 2009, 12:05:55 PM
Quote from: Bulakbol on March 02, 2009, 09:17:01 PM
@sandmannd
Here are your edited BoardIndex.template.php and MessageIndex.template.php. You probably forgot or you didn't uninstall the old version.

You da man Johnny B! Thank you so much.

One last question. How do I get the banner to show under the board name instead of in front of it?
Title: Re: Images On Board
Post by: foghorn on March 03, 2009, 08:05:27 PM
FYI - I installed the mod, and it screwed up maintenance's ability to check versions, so I uninstalled it.
Title: Re: Images On Board
Post by: romper on March 08, 2009, 01:51:37 PM
Quote from: Bulakbol on March 02, 2009, 08:55:33 PM
@romper
I don't know what the problem is but here's your edited dilberMC BoardIndex.template.php.

It works...GREAT..many THX!
Title: Re: Images On Board
Post by: berrylife on March 12, 2009, 11:42:31 PM
great mod! is there any way of making it so the pictures arnt clickable tho?
Title: Re: Images On Board
Post by: kingkingston on March 13, 2009, 04:37:10 AM
I want to add this great mod but got this problem

4. Execute Modification ./Sources/MessageIndex.php Test failed

how can i fix it ?
Title: Re: Images On Board
Post by: Dariano on March 21, 2009, 01:13:22 AM
Hey, I really like your mod but I just can't seem to get it to work. I've tried modifying the board index template and stuffs but I just can't get it right. Would really appreciate it if you could help me with it. I'm using the Blue Ace theme. I've attached the files. Thanks a bunch in advance.
Title: Re: Images On Board
Post by: Xepernas on March 23, 2009, 10:31:56 AM
So, what's the news for the next version ? Any chance to see it soon, with the "toggle images off" option and/or the "theme-dependant images" system ?

I'm merely asking because we're about to install and use the mod, and not sure if we should wait a little longer for a more convenient version, or just go ahead with the current one (maybe trying to tweak it ourselves in the themes).
Title: Re: Images On Board
Post by: Neverhurry on March 23, 2009, 04:27:08 PM
Hello,
is there anybody, please help, it is urgent.
When i installed the first time a version imagesonboard2b4 it didn't work properly, don't know why, so i download the other version imagesonboard2.1 and i installed it, so i got double images on board, and don't know how to do with it.

i got doubled info in "Modify Boards":

"Name of image for this board:
Include file extension. (i.e. xx.gif): *
Include file extension. (i.e. stop.png)
   
Link for the above image:
(i.e. http://www.simplemachines.org)

Name of image for this board:
Include file extension. (i.e. xx.gif): *
Include file extension. (i.e. stop.png)
   
Link for the above image:
(i.e. http://www.simplemachines.org)"

what shall i do, please help! THank you very much!
Title: Re: Images On Board
Post by: Neverhurry on March 23, 2009, 04:55:35 PM
And, after i uninstalled both of the version, there is still something left in the "Modify boards" area, how can i totally clean it, and reinstall again this mod? Thank you very much!
Title: Re: Images On Board
Post by: sandmannd on March 25, 2009, 06:32:51 PM
I love this mod, but I have two questions.

1. How do I make it so when you click on the image it will go to a different site (like a sponsors site)? It's clickable now but it just goes into that board.

2. How can I get the image to show under the board name? Right now it shows to the left of the board name.

You can see them at www.uppermidwestoutdoors.com (http://www.uppermidwestoutdoors.com)
Title: Re: Images On Board
Post by: Lamarck on March 28, 2009, 09:48:36 AM
I have been using this mod for some months,and works very good.
However,I have a question/request: how can I show images hosted in a external server (such as imageshack,etc),so I don't need to upload the images inside my hosting? I have problems with bandwith,and I need this very much.

Thanks..
Title: Re: Images On Board
Post by: Bulakbol on March 28, 2009, 11:43:00 AM
@kingkingston
Quote from: kingkingston on March 02, 2009, 11:37:24 PM
4. Execute Modification ./Sources/MessageIndex.php Test failed
how do i fix it ?
Attach your Sources/MessageIndex.php and I'll try to find the problem.

@Xepernas
Quote from: Xepernas on March 03, 2009, 06:59:36 AM

You can have several available themes on your forum, with several kinds of colours. So, this would allow, for instance, to use differently tinted versions of your images, to integrate them better in the used theme.

In fact it would even allow to use completely different sets of images to match the style of the theme (jolly or brutal, woody or metallical, cartoonish or realist, etc). But even with just one set of images (in particular if stylized or silhouetted ones), adaptating them to the surrounding colour schemes would be useful. Or else it can get hard to find one colour that doesn't clash with any of the selectable themes.
Point taken. The problem is that the mod will become complicated. I don't even know how to do it. :P

@shaolin25
Quote from: shaolin25 on March 03, 2009, 07:51:17 AM
I get "Unable to load the 'iobuploads' template."
Have you tried installing the newest update of this mod? Do you still need help?

@sandmannd
Quote from: sandmannd on March 03, 2009, 12:05:55 PM
You da man Johnny B! Thank you so much.

One last question. How do I get the banner to show under the board name instead of in front of it?
You are welcome. Open your BoardIndex.template.php and find
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

replace
<td class="windowbg2">';
echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}
Title: Re: Images On Board
Post by: Bulakbol on March 28, 2009, 12:11:28 PM
@foghorn
Quote from: foghorn on March 03, 2009, 08:05:27 PM
FYI - I installed the mod, and it screwed up maintenance's ability to check versions, so I uninstalled it.
You should report this mod so other customizers can check the code. You might have other mods that is giving you issues, but hey, if you have proof I will be more than glad to change and update this mod.

@romper
Thanks for the compliment. Thank you for using/trying this mod.

@berrylife
Quote from: berrylife on March 12, 2009, 11:42:31 PM
great mod! is there any way of making it so the pictures arnt clickable tho?
Thanks. The pictures default link is the board link. If you want to remove the link, let me know. You have to edit your BoardIndex.template.php.

@Dariano
I have your files. I'll get back to you after I edit them.

@Xepernas
Quote from: Xepernas on March 23, 2009, 10:31:56 AM
So, what's the news for the next version ? Any chance to see it soon, with the "toggle images off" option and/or the "theme-dependant images" system ?
The latest version is 2.1 and your member have the ability to turn the display of images on or off. Default is on. Profile => Look and Layout Preferences => " Don't show images on board." checkbox.

@neverhurry
You have to do the manual uninstall and remove all the codes.

@sandmannd
Quote from: sandmannd on March 25, 2009, 06:32:51 PM
1. How do I make it so when you click on the image it will go to a different site (like a sponsors site)? It's clickable now but it just goes into that board.

2. How can I get the image to show under the board name? Right now it shows to the left of the board name.
1. When you modify a board, enter the link or url in the "Link for the above image:" text box.
2. See my previous post above this post.

@Lamarc
Quote from: Lamarck on March 28, 2009, 09:48:36 AM
I have been using this mod for some months,and works very good.
However,I have a question/request: how can I show images hosted in a external server (such as imageshack,etc),so I don't need to upload the images inside my hosting? I have problems with bandwith,and I need this very much.

Thanks..
I have to add another column/field for the external server. If I have time, I will add it to the next version.
Title: Re: Images On Board
Post by: Xepernas on March 28, 2009, 04:59:35 PM
Quote from: Bulakbol on March 28, 2009, 11:43:00 AM@Xepernas
Quote from: Xepernas on March 03, 2009, 06:59:36 AM

You can have several available themes on your forum, with several kinds of colours. So, this would allow, for instance, to use differently tinted versions of your images, to integrate them better in the used theme.

In fact it would even allow to use completely different sets of images to match the style of the theme (jolly or brutal, woody or metallical, cartoonish or realist, etc). But even with just one set of images (in particular if stylized or silhouetted ones), adaptating them to the surrounding colour schemes would be useful. Or else it can get hard to find one colour that doesn't clash with any of the selectable themes.
Point taken. The problem is that the mod will become complicated. I don't even know how to do it. :P

Ok. Not much of a problem anyway. As we have to manually add the code to the "unsupported" themes anyway, whenever I do I just replace all occurences of "$settings['default_images_url']" with "$settings['images_url']", and make an "ImagesOnBoard" folder in the theme's "images" repertory (with its own set of icons inside). It seems to do the trick very well.

Quote from: Bulakbol on March 28, 2009, 12:11:28 PMThe latest version is 2.1 and your member have the ability to turn the display of images on or off. Default is on. Profile => Look and Layout Preferences => " Don't show images on board." checkbox.

Excellent. Thanks.
Title: Re: Images On Board
Post by: kingkingston on March 29, 2009, 12:20:00 AM
Quote from: Bulakbol on March 28, 2009, 11:43:00 AM
@kingkingston
Quote from: kingkingston on March 02, 2009, 11:37:24 PM
4. Execute Modification ./Sources/MessageIndex.php Test failed
how do i fix it ?
Attach your Sources/MessageIndex.php and I'll try to find the problem.

@Xepernas
Quote from: Xepernas on March 03, 2009, 06:59:36 AM

You can have several available themes on your forum, with several kinds of colours. So, this would allow, for instance, to use differently tinted versions of your images, to integrate them better in the used theme.

In fact it would even allow to use completely different sets of images to match the style of the theme (jolly or brutal, woody or metallical, cartoonish or realist, etc). But even with just one set of images (in particular if stylized or silhouetted ones), adaptating them to the surrounding colour schemes would be useful. Or else it can get hard to find one colour that doesn't clash with any of the selectable themes.
Point taken. The problem is that the mod will become complicated. I don't even know how to do it. :P

@shaolin25
Quote from: shaolin25 on March 03, 2009, 07:51:17 AM
I get "Unable to load the 'iobuploads' template."
Have you tried installing the newest update of this mod? Do you still need help?

@sandmannd
Quote from: sandmannd on March 03, 2009, 12:05:55 PM
You da man Johnny B! Thank you so much.

One last question. How do I get the banner to show under the board name instead of in front of it?
You are welcome. Open your BoardIndex.template.php and find
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

replace
<td class="windowbg2">';
echo '
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}


it's cool mate,got it worked out thanks though :)
Title: Re: Images On Board
Post by: Bulakbol on March 29, 2009, 01:28:19 AM
@Xepernas
Cool. You know your way around it. Good to know it's working fine.

@kingkingston
8) Ok. Nice to hear. Thanks for using/trying this mod.
Title: Re: Images On Board
Post by: C4G-TK on March 29, 2009, 06:25:42 PM
I have this working fine in Firefox, but I'm not getting images to display in IE 7.0.5730.13.

Default theme on RC1

Is this because I use .ico files for the images and not .png or .gif files?
Title: Re: Images On Board
Post by: frriction on March 29, 2009, 10:04:54 PM
I will  try today only
Title: Re: Images On Board
Post by: EZ1 on March 31, 2009, 02:14:47 PM
4. Execute Modification ./Sources/MessageIndex.php Test failed

I have this MessageIndex.php attached

can anyone help me with this ??

thanks
Title: Re: Images On Board
Post by: Bulakbol on March 31, 2009, 04:51:47 PM
@C4G-TK
Try not using icon files. IE might have problem with .ico.

@Dariano
Here are your edited files. Try them after installing this mod. Keep a backup first.
Title: Re: Images On Board
Post by: Bulakbol on March 31, 2009, 05:01:24 PM
@EZ1
Use this file before you install this mod. Make a backup first.
Title: Re: Images On Board
Post by: EZ1 on March 31, 2009, 06:55:30 PM
thank you for your time  ;D
Title: Re: Images On Board
Post by: C4G-TK on March 31, 2009, 09:02:13 PM
Quote from: Bulakbol on March 31, 2009, 04:51:47 PM
@C4G-TK
Try not using icon files. IE might have problem with .ico.


I'll try that later tonight and see if that's the problem.  Thanks!
Title: Re: Images On Board
Post by: C4G-TK on April 01, 2009, 01:11:40 PM
Well, it has nothing to do with the files being .ico  I changed an image to .gif and .png and got the same results.  All the other images are showing up fine on IE.  It's just the Images On Board that aren't showing in IE.

The only error that I had when installing was the 1st edit of the ManageBoards.template file.  I'm going to go back and see what that edit involved and see if I missed something there.

This is how I have the edit there:
Remember, using RC1 on default
images appear fine in firefox but not in IE

<tr valign="top" class="windowbg2">
<td>
<b>', $txt['mboards_description'], ':</b><br />
<span class="smalltext">', $txt['mboards_description_desc'], '</span><br />
</td>
<td valign="top" align="left">
<textarea name="desc" rows="3" cols="35" style="color: ', !empty($context['board']['desc_color']) ? $context['board']['desc_color'] : '', ';">', $context['board']['description'], '</textarea><br />
<b>', $txt['colorize_color'], '</b> <input type="text" name="desc_color" style="color: ', !empty($context['board']['desc_color']) ? $context['board']['desc_color'] : '', ';" value="' . $context['board']['desc_color'] . '" size="11" />
</td>
</tr>
<tr valign="top" class="windowbg2">
<td>
<strong>', $txt['board_image'], ':</strong> <a href="', $scripturl, '?action=iobuploads" target="_blank"><img src="', $settings['default_images_url'], '/iobuploads.gif" alt="*" /></a><br />
<span class="smalltext">', $txt['board_image_desc'], '</span><br />
</td>
<td valign="top" align="left">
<input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
</td>
</tr>


UPDATE:

All working now.  I switched them a second time to .png and this time they worked w/o problems.  I don't know what I did to make it work this time.  Anyway, THANKS for another great mod!
Title: Re: Images On Board
Post by: PRaDiUS on April 04, 2009, 01:32:59 PM
MessageIndex.php failed

attatched file below
Title: Re: Images On Board
Post by: WVPreacher on April 04, 2009, 04:04:02 PM
Bulakbol, thanks for taking the time to do this mod and support for it.

I'm having a little difficulty installing it though.  Here's the error message I get when applying the mod:

10.     Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
12.    Execute Modification    ./Themes/dilbermc/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/dilbermc/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test failed
15.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test failed

Any ideas on what I'm doing wrong???
Title: Re: Images On Board
Post by: C4G-TK on April 04, 2009, 08:22:09 PM
@WVPreacher

The reasons your tests failed are because you probably have other mods which altered the code that this mod is looking for when testing the edits.

1) What version of SMF are you using?


Also, if you aren't going to be using the other themes, all you need to worry about are #10 & #11.

2) Are you using default theme or are you using all three of these themes?


All the failed tests mean is you will have to edit these manually.
Title: Re: Images On Board
Post by: xPreatorianx on April 05, 2009, 12:43:46 AM
I need some help with this. Im using Black rain v.2 latest version with SMF 1.1.8 and cannot for the life of me find the code in the files to edit.

Im attaching my files so someone can help me. Thanks if anyone can! :)
Title: Re: Images On Board
Post by: Bulakbol on April 05, 2009, 04:27:18 AM
@PRaDiUS
Here's your MessageIndex.php. Use this file before installing the mod, not after.


@WVPreacher
as C4G-TK said, what theme are you using?

<edit>
@xPreatorianx
I'll get back to you. I'll have to find time to edit your two files.
Title: Re: Images On Board (Sir i am facing this error please help me)
Post by: adi4u on April 05, 2009, 07:57:16 AM
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=302845.0;attach=93209;image)


(https://www.simplemachines.org/community/index.php?action=dlattach;topic=302845.0;attach=93211;image)


I wants to place image in board how can i apply i am facing this problem.. i apply all thing on image have a look on it and give me any suggestion what can i do for that
Title: Re: Images On Board
Post by: Bulakbol on April 05, 2009, 08:07:12 AM
@adi4u
Did you try what I told you in the other topic? Try typing stop.png in the Name of image for this board textbox and see what will happen.
Title: Re: Images On Board
Post by: adi4u on April 05, 2009, 08:13:12 AM
Quote from: Bulakbol on April 05, 2009, 08:07:12 AM
@adi4u
Did you try what I told you in the other topic? Try typing stop.png in the Name of image for this board textbox and see what will happen.


Sir that is not working.. but thanks i found the solution for that  thanks alot
Title: Re: Images On Board
Post by: foobs on April 05, 2009, 12:22:16 PM
Cannot get the images to show on the board, tried everything. Hopefully you can find something in these templates that points to the problem.
Title: Re: Images On Board
Post by: PRaDiUS on April 05, 2009, 08:20:26 PM
You are the MAN! Thanks so much for your help and this great mod.

Quote from: Bulakbol on April 05, 2009, 04:27:18 AM
@PRaDiUS
Here's your MessageIndex.php. Use this file before installing the mod, not after.
Title: Re: Images On Board
Post by: Bulakbol on April 05, 2009, 08:36:35 PM
@PRaDiUS
You're welcome.


@foobs
What theme are you using? I edited your BoardIndex.template.php. Your MessageIndex.template.php is fine. Try the attached file. Use it after you installed the mod. If there's problem, I want to know the theme you are using so I can test the modified files.
Title: Re: Images On Board
Post by: sandmannd on April 05, 2009, 09:07:49 PM
Quote from: Bulakbol on February 25, 2009, 11:07:33 PM
@fotografo74
The default link for image is the board's url. If you want to link the image somewhere else, you have to enter the url in the "Link for the above image:" text box. For example, try to enter the following when modifying a board.
Name of image for this board:  stop.png
Link for the above image: http://www.simplemachines.org

I have a problem of when I go to do this I just have "name of image for this board" listed twice. I have nothing that  How do I fix this?  It seems to be working ok, but I just checked it and it's listed three times. I modified the messageboard.php and didn't see anything in there in triplicate.

By the way, thanks for the fix to get the banner under the board name. Looks awesome now. Thank you for all you do with this mod.
Title: Re: Images On Board
Post by: xPreatorianx on April 05, 2009, 09:26:43 PM
IM sorry to bother you johnny. Was wondering how is the edits going for you? The ones I requested. Only reason why im alittle impatient is because im trying to get a deadline to my staff so they can create custom icons  for my forum.

But ill leave ya alone :)
Title: Re: Images On Board
Post by: foobs on April 06, 2009, 03:37:57 AM
Quote from: Bulakbol on April 05, 2009, 08:36:35 PM
@foobs
What theme are you using? I edited your BoardIndex.template.php. Your MessageIndex.template.php is fine. Try the attached file. Use it after you installed the mod. If there's problem, I want to know the theme you are using so I can test the modified files.

That worked perfectly, thanks!
Title: Re: Images On Board
Post by: WVPreacher on April 06, 2009, 05:01:02 PM
Quote from: C4G-TK on April 04, 2009, 08:22:09 PM
@WVPreacher

The reasons your tests failed are because you probably have other mods which altered the code that this mod is looking for when testing the edits.

1) What version of SMF are you using?


Also, if you aren't going to be using the other themes, all you need to worry about are #10 & #11.

2) Are you using default theme or are you using all three of these themes?


All the failed tests mean is you will have to edit these manually.
Quote from: Bulakbol on April 05, 2009, 04:27:18 AM
@WVPreacher
as C4G-TK said, what theme are you using?

My apologies, I keep forgetting to post the version.  I'm using 1.1.8 and no, I do not use the Babylon theme.  I do use Default and a modified version if His Own by Crip.  Jade(Alundra) was kind enough to update His Own to work with Version 1.1.8
Title: Re: Images On Board
Post by: Bulakbol on April 06, 2009, 11:52:22 PM
@xPreatorianx
Oppss sorry, thanks for bumping. I forgot. Here's your edited files. Use them after installing this mod.


@WVPreacher
Attach the BoardIndex.template.php and MessageIndex.template.php of the theme you are using. I'll find time to edit them for you.


@foobs
You're welcome.  8)


@sandmannd
Check your ManageBoards.template.php and remove the duplicated code.
Title: Re: Images On Board
Post by: 6aro on April 08, 2009, 09:43:33 AM
Hi, this is Bulgarian translation UTF-8


$txt['disable_iob'] = 'Непказвай  картинките в таблицата.';
$txt['board_image'] = 'Име на картинката за тази таблица';
$txt['board_image_desc'] = 'Валидни фаилови разширения. (т.е. stop.png)';
$txt['board_img_link'] = 'Линк до картинката';
$txt['board_img_link_desc'] = '(т.е. http://www.simplemachines.org)';

$txt['upload_title'] = 'Качи картинки';
$txt['select_files'] = 'Избери файл';
$txt['valid_file_types'] = 'Валидните типове файл са';
$txt['invalid_file_extension'] = 'Съжалявам. <span style="color: #FF0000;">%s</span> е невалидно фаилово разширение. Качването е прекратено.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Качването провалено! Неизвестна грешка.</span><br />';
$txt['file_too_big'] = 'Съжалявам. <span style="color: #FF0000;">%s</span> е твърде голям. Качването е прекратено<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> неможеда се премести.  Неизвестна грешка.';
$txt['upload_successful'] = '<span style="color: blue;">файла е качен успешно. Благодария Ви.</span> - %s<br />';
$txt['file_exists'] = 'Съжалявам. %s вече съществува. Пробвай друг файл или смени име.<br/>';
$txt['maximum_allowed'] = 'Максималния размер разрешен от хоста е <strong>%s</strong> kilobytes или <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'Максималния размер на файл за качване е <strong>%s</strong> kilobytes или  <strong>%d</strong> megabyte(s).<br /><br />';

Title: Re: Images On Board
Post by: Bulakbol on April 23, 2009, 03:08:48 AM
Members can do this modification without using this customization so if you want to do it yourself, see this topic (http://www.simplemachines.org/community/index.php?topic=305425.msg2021205#msg2021205).
Title: Re: Images On Board
Post by: nina-nina on May 02, 2009, 02:00:43 PM
Would this mod work on my forum? I am using 1.1.8 and I have a custom theme named Callisto.
Title: Re: Images On Board
Post by: Bulakbol on May 02, 2009, 07:12:52 PM
@nina-nina
You have to edit your BoardIndex.template.php and MessageIndex.tamplate.php of your custom theme.
Title: Re: Images On Board
Post by: nina-nina on May 04, 2009, 03:24:49 PM
Quote from: Bulakbol on May 02, 2009, 07:12:52 PM
@nina-nina
You have to edit your BoardIndex.template.php and MessageIndex.tamplate.php of your custom theme.

And how should I edit those? :o
Title: Re: Images On Board
Post by: sandmannd on May 04, 2009, 05:13:26 PM
I have a quesiton for you Johny. I while ago you helped me so the images were under the name of the board and it's great. I started adding images to some child boards and those show up a little goofy again. Do you know where I would go to image that?

Here's what I'm talkig about:
http://www.uppermidwestoutdoors.com/index.php?board=119.0 (http://www.uppermidwestoutdoors.com/index.php?board=119.0)

And I would like them to look like this:
http://www.uppermidwestoutdoors.com/index.php?action=forum (http://www.uppermidwestoutdoors.com/index.php?action=forum)
Title: Re: Images On Board
Post by: Bulakbol on May 05, 2009, 10:29:54 PM
@nina-nina
You mean... you haven't done any edits before? Download the file in question to your PC using FTP program, edit the file and upload it back. Don't forget to make a backup just in case something goes wrong.  How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)


@sandmannd
I have to look at your BoardIndex.template.php tho. Then I can tell you what to do.
Title: Re: Images On Board
Post by: kizley on May 06, 2009, 01:55:55 AM
SMF 1.1.8,DEFAULT

getting this error

Execute Modification ./Sources/MessageIndex.php Test failed


any help plsssssssssssss
Title: Re: Images On Board
Post by: Bulakbol on May 06, 2009, 02:01:45 AM
@kizley
Attach your MessageIndex.template.php to your next post and I'll see what I can do.
Title: Re: Images On Board
Post by: flid on May 14, 2009, 06:20:56 AM
I am also getting Execute Modification ./Sources/MessageIndex.php Test failed

I have 1.1.8 Default theme.

I've attached my MessageIndex.php
Title: Re: Images On Board
Post by: Chas Large on May 15, 2009, 06:18:04 PM
Hi Bulakbol,

I have installed V2.1 of the mod on my board (running SMF 1.1.8 and it works great on the default themes. Thank you.

I also have the Dilber Multicolor 1.1 theme and have tried to modify the Board and Message index templates. It seemed to work for test but then members kept getting Template Parse errors and could not navigate the forum correctly. I restored backups of the original templates and all was well, thus proving it was what I had done that caused the errors.

Could I please ask you to do the mod for me on the two templates, see attached.

Regards

Chas
Title: Re: Images On Board
Post by: Bulakbol on May 17, 2009, 02:35:49 AM
I'll see what I can do guys.
Title: Re: Images On Board
Post by: nina-nina on May 17, 2009, 11:08:58 AM
I installed this mod and it looked as it was installed succesfully. But I can't make images to show.  I have followed all the instructions (file extension, etc.), but nothing shows. 

Does it works on all themes?  I have a premium theme-Callisto- and I have 1.1.8 version.

I would love to be able to have images adde to identify my boards!
Title: Re: Images On Board
Post by: Chas Large on May 17, 2009, 06:00:08 PM
Quote from: nina-nina on May 17, 2009, 11:08:58 AM
I installed this mod and it looked as it was installed succesfully. But I can't make images to show.  I have followed all the instructions (file extension, etc.), but nothing shows. 

Does it works on all themes?  I have a premium theme-Callisto- and I have 1.1.8 version.

I would love to be able to have images adde to identify my boards!
No it doesn't hence my request for a mod to the Dilber theme. I'm sure, given time Bulakbol will help you out and there is a mod given on page 1 if you're confident with coding.
Title: Re: Images On Board
Post by: sandmannd on May 18, 2009, 08:45:00 PM
Quote from: Bulakbol on May 05, 2009, 10:29:54 PM

@sandmannd
I have to look at your BoardIndex.template.php tho. Then I can tell you what to do.

Been busy so didn't get back to you. Here is my php file. Thanks.
Title: Re: Images On Board
Post by: MaXiForum.cz on May 20, 2009, 03:31:19 AM
Hi guys,
this modification is amazing, but in the error log I have errors in BoardIndex.template.php file.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.maxipicture.cz%2Fthumb.php%3Fpicture%3D.%2Fuploaded_files%2F39%2F1242804524-img.jpg&hash=89a660f3a48e09252ab3fed70cad1a9706237dd1) (http://www.maxipicture.cz/ukaz/uploaded_files/39/1242804524-img.jpg)

Where would be a mistake please?
Original BoardIndex.template.php is in the attach.

Thanks a lot!
Title: Re: Images On Board
Post by: Bulakbol on May 20, 2009, 05:21:53 AM
@Chas_Large
Sorry for the delayed reply. Try the attached edited files.
Title: Re: Images On Board
Post by: Bulakbol on May 20, 2009, 05:23:31 AM
@flid
Here's your edited MessageIndex.php.


@sandmannd and MaxiPes
I'll get back to you. If you are using custom theme, let me know.
Title: Re: Images On Board
Post by: MaXiForum.cz on May 20, 2009, 05:32:52 AM
Hi Bulakbol,
my mistake.
Sorry and thank ;)
Title: Re: Images On Board
Post by: Chas Large on May 20, 2009, 05:57:54 AM
Quote from: Bulakbol on May 20, 2009, 05:21:53 AM
@Chas_Large
Sorry for the delayed reply. Try the attached edited files.
Thanks Bulakbol, that did the trick, much obliged. :)
Chas
Title: Re: Images On Board
Post by: kingkingston on May 21, 2009, 01:38:21 AM
Anyone know how to make a picture blend in to the background better ?

like a transparent picture or something
Title: Re: Images On Board
Post by: Chas Large on May 21, 2009, 04:57:57 AM
Quote from: kingkingston on May 21, 2009, 01:38:21 AM
Anyone know how to make a picture blend in to the background better ?

like a transparent picture or something
Use an image editing program and save it as PNG or GIF, these are the only two formats that support TRANSPARENCY. Most good graphics programs will allow you to specify the background colour as the transparent colour.
Try SUMOPAINT.com or netpaint
Title: Re: Images On Board
Post by: Bulakbol on May 21, 2009, 01:41:14 PM
@Chas_Large
You're welcome. Thank you too for helping.

@KingKingston
Chas_Large is right. I am using photoshop though.

@sandmannd
SMF is rejecting the file. I cannot attach to my post. I'll try it again later.

@MexiPes
This mod was properly installed in your BoardIndex.template.php.
Title: Re: Images On Board
Post by: MaXiForum.cz on May 21, 2009, 03:22:08 PM
Yes, my mistake sorry ;)
Title: Re: Images On Board
Post by: Bulakbol on May 21, 2009, 03:54:52 PM
@MaxiPes
Cool. Thank you for letting me know.

@sandmannd
Here's your edited BoardIndex.template.php. Please try it.
Title: Re: Images On Board
Post by: romper on May 23, 2009, 08:35:17 PM
Bulakbol, you helped me with my boardindex.template.php before, it worked great, but I had some problems with forum so I deleted all packages, changed many things and re-install. I see that again I need to change chmod to 777, but that is not the problem. Installation of your package went without problems and I tested it with stop.png...it works but it shows 2 images instead of 1. So I help stop sign and another one with it. What changed to create this double image?

Here is my boardindex...if it helps.
Title: Re: Images On Board
Post by: Bulakbol on May 26, 2009, 01:42:38 AM
@romper
Your BoardIndex.template.php is fine. I can't find any problem with it.
Title: Re: Images On Board
Post by: Verso on May 26, 2009, 04:38:55 AM
I have installed this mod but for some reason the images appear twice............

http://www.suffolksportsforum.co.uk/index.php?action=forum


Any ideas on how to fix this?
Title: Re: Images On Board
Post by: romper on May 26, 2009, 08:33:00 AM
Quote from: Verso on May 26, 2009, 04:38:55 AM
I have installed this mod but for some reason the images appear twice............

http://www.suffolksportsforum.co.uk/index.php?action=forum


Any ideas on how to fix this?

:D :D just asked this....but I will check my problem again, because I restarded everything!
Title: Re: Images On Board
Post by: romper on May 26, 2009, 10:12:38 AM
Quote from: Bulakbol on May 26, 2009, 01:42:38 AM
@romper
Your BoardIndex.template.php is fine. I can't find any problem with it.

Thx, It was my problem with other things, now it's great....I manually (from what you posted here) installed images in Blues MC...i just have problem with avatars on board...that is also your mod?
Title: Re: Images On Board
Post by: Verso on May 26, 2009, 10:51:34 AM
As you can see two places for images............

Title: Re: Images On Board
Post by: Frelo21 on May 28, 2009, 04:26:41 AM
http://www.newgnr.com/forum/index.php


so will this mod work, by playing images on each of the boards, like the site above?

cause the site above is using the musiconica theme (same one as mine) but I have no idea how they can have images in each board section..

someone please explain it to me?
ta
Title: Re: Images On Board
Post by: computel on May 28, 2009, 11:43:21 PM
hello Bulakbol

here is my ./Themes/default/MessageIndex.template.php it fails. When you get a chance can you see if it will work.

Thanks
Title: Re: Images On Board
Post by: Bulakbol on May 29, 2009, 02:36:12 AM
I apologize for the delayed reply.

@computel
I edited your BoardIndex.template.php. Install the mod disregarding the MessageIndex.template.php failed test, then use the attached file after the installation. Do not forget to make a backup of the original MessageIndex.template.php in case something goes wrong.

@Frelo21
The wedsite you posted is using modified theme. They use images as a background. This mod add only images on the left hand side of board names, and is not used as a background.

@Verso
This mod was installed twice maybe. All you can do is edit the file in question manually and remove the duplicate coding.


If I missed any question, please let me know.
Title: Re: Images On Board
Post by: Verso on May 29, 2009, 05:17:32 AM
I fixed my issue. It was an upgrade issue (I tried to cheat but ended up screwing things)


This mod is working on my site:- http://www.suffolksportsforum.co.uk/index.php?action=forum


Just need a few more icons and then I'm all done........


Superb mod
Title: Re: Images On Board
Post by: MaXiForum.cz on May 29, 2009, 03:27:15 PM
Yes Bulakbol is real Simple Machines Hero :-)
Title: Re: Images On Board
Post by: Bulakbol on May 31, 2009, 03:01:35 AM
@Verso
Good to hear. Nice site btw.

@MaxiPes
LOL. Thanks for the compliment though.
Title: Re: Images On Board
Post by: dzinerfusion on May 31, 2009, 03:18:29 PM
hi in the package parser it said edit this

In file Themes/[your theme]/BoardIndex.template.php
Find:

<td class="windowbg2 info">



Add after:

';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<span style="float:left; margin-right: 2px; margin-left: 2px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span>';
}
echo '




In file Themes/[your theme]/MessageIndex.template.php
Find:

<td class="windowbg2 info">



Add after:

';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<span style="float:left; margin-right: 2px; margin-left: 2px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span>';
}
echo '



But in my theme I do not have this where would i edit this? I included the files
Title: Re: Images On Board
Post by: sandmannd on June 01, 2009, 04:57:33 PM
Quote from: Bulakbol on May 21, 2009, 03:54:52 PM
@MaxiPes
Cool. Thank you for letting me know.

@sandmannd
Here's your edited BoardIndex.template.php. Please try it.

Sorry it took me a while, I uploaded this to my site and still have the same problem. The title is to the side of the picture on the child boards.
Title: Re: Images On Board
Post by: Bulakbol on June 02, 2009, 01:13:45 AM
@bluesinjid
Try these edited files. I haven't tested them but I think they are ok.

Title: Re: Images On Board
Post by: Bulakbol on June 02, 2009, 01:18:06 AM
@sandmannd
Sorry, I think I mislooked the error. Try this one instead.
Title: Re: Images On Board
Post by: sandmannd on June 02, 2009, 07:30:36 AM
Quote from: Bulakbol on June 02, 2009, 01:18:06 AM
@sandmannd
Sorry, I think I mislooked the error. Try this one instead.

This one actually messed up the ones on my main page so I went back to the old one.

Site is at www.uppermidwestoutdoors.com. If you look at the main page you will see them setup up right. If you click on "guide services" you will see them messed up.
Title: Re: Images On Board
Post by: RPro1975 on June 02, 2009, 11:26:33 AM
Yes, hi.  I'm new to the whole forum thing so maybe you have already answered this question before.  BTW, great mod.  The installation went fine, so I think it is just the way I am trying to enter the photos.  I am using Photobucket because I did not know how to get a URL for the photos otherwis.  I put the filename where it goes (ex -xxx.jpg) and then I put in the link.  Where the picture should be instead of a pic I get the URL and a little "X" where the photo icon should be.  If you click on it, it brings up the photo in another window.  I know I'm close, but I just can't seem to get there on my own.  Could you please help me out?  BTW, i'm using default theme V. 1.1.9.  Thanks,

Chris
Title: Re: Images On Board
Post by: RPro1975 on June 02, 2009, 01:37:08 PM
I tried everything.  I can't do it.  I'm getting close to throwing in the towel.  Please help.
Title: Re: Images On Board
Post by: Bulakbol on June 02, 2009, 11:00:26 PM
@sandmannd
Can you post a screen cap?

@RPro1975
To use external images, you have to edit BoardIndex.template.php and MessageIndex.template.php. In Admin => Boards => modify => "Name of image for this board", enter
[img]http://www.photobucket...jpg[/img]
Then edit BoardIndex.template.php.
Code (find) Select
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';

Code (replace) Select
if (substr($board['image'],0 ,5) == '[img]')
{
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank">', parse_bbc($board['image']);
else
echo '<a href="', $board['href'], '">', parse_bbc($board['image']);
}
else                 
{                 
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
}


MessageIndex.template.php. 2 instances.
Code (find) Select
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';

Code (replace) Select
if (substr($board['image'],0 ,5) == '[img]')
{
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank">', parse_bbc($board['image']);
else
echo '<a href="', $board['href'], '">', parse_bbc($board['image']);
}
else                 
{                 
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
}

Title: Re: Images On Board
Post by: sandmannd on June 02, 2009, 11:41:57 PM
Quote from: Bulakbol on June 02, 2009, 11:00:26 PM
@sandmannd
Can you post a screen cap?

Here's what they look like on my main boards (how I would like them all to look)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi128.photobucket.com%2Falbums%2Fp170%2Fsandmannd%2FMainScreanBanner.jpg&hash=a057a19b46ddc5c5cf0017589aa98bc081061d28)

Here's how my child boards look.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi128.photobucket.com%2Falbums%2Fp170%2Fsandmannd%2FChildBoardBanner.jpg&hash=431c6969ddf982ee254dd5d092922ccae5bc964d)

I would like the name of the board on top of the banner on the child boards instead of next to them.

Title: Re: Images On Board
Post by: Bulakbol on June 02, 2009, 11:59:49 PM
Do you want the description on top of the image too? I'll look at the code again for you.
Title: Re: Images On Board
Post by: sandmannd on June 03, 2009, 12:22:20 AM
Yes please
Title: Re: Images On Board
Post by: RPro1975 on June 03, 2009, 01:50:20 AM
Great, thank you so much.  Now I've got this problem though.  I can't seem to get at the files for the current theme I am using.  the other themes I have installed I can get to their files, but the one I am actually using, I can't find how you get into the files to do the edits??? It seems like I can finsd the other ones fine, but I'm using the default theme, and there are no files when you try to to bring them up.  There are files for the Babylon, and the other Yabb I think it is, but not this one.  I'm stumped. This might be the biggest challenge I've ever had in my lifr (I'm exagerrating-LOL)  I need help, as usual!!!! 
Title: Re: Images On Board
Post by: Bulakbol on June 03, 2009, 01:58:20 AM
@sandmannd
I'll get back to you on this one. Have to try it first.

@RPro1975
SMF does not want you to edit the default theme templates. You need FTP program to download or edit them.
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Title: Re: Images On Board
Post by: RPro1975 on June 03, 2009, 04:15:34 AM
Quote from: Bulakbol on June 03, 2009, 01:58:20 AM
@sandmannd
I'll get back to you on this one. Have to try it first.

@RPro1975
SMF does not want you to edit the default theme templates. You need FTP program to download or edit them.
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

Ok, so if I'm understanding this right, here's what I need to do:

1.  download and install FTP software
2.  download the SMF files I need(basically download all the files from the theme I am using)
3.  open the SMF files and make the edits you gave me
4.  make sure I am entering all of the info correctly when I insert the picture

Is that it, in a nutshell?  You'll have to bear with me, I'm newer than an infant at this!  Thank you for your time, patience, and valuable information.

Chris
Title: Re: Images On Board
Post by: RPro1975 on June 03, 2009, 09:05:04 PM
I downloaded and installed Filezilla(FTP)  today.  What should be my next step to get closer to accomplishing this?
Title: Re: Images On Board
Post by: sandmannd on June 03, 2009, 10:10:48 PM
Quote from: RPro1975 on June 03, 2009, 09:05:04 PM
I downloaded and installed Filezilla(FTP)  today.  What should be my next step to get closer to accomplishing this?

Are you able to FTP to your site? If not, that's your next step. Once you have that connection made you can transfer files back and forth between your PC and your Website.
Title: Re: Images On Board
Post by: RPro1975 on June 04, 2009, 02:24:59 AM
Quote from: sandmannd on June 03, 2009, 10:10:48 PM
Quote from: RPro1975 on June 03, 2009, 09:05:04 PM
I downloaded and installed Filezilla(FTP)  today.  What should be my next step to get closer to accomplishing this?

Are you able to FTP to your site? If not, that's your next step. Once you have that connection made you can transfer files back and forth between your PC and your Website.
Great, and how would I go about getting that done?  I'll be the first to admit I don't know much, but I'm learning awfully fast!
Title: Re: Images On Board
Post by: RPro1975 on June 04, 2009, 01:36:07 PM
What I really need is someone to give me step by step instructions.  I need to get the following done:

1.Access the default theme v.1.1.9 files which seem inaccessible from the admin panel(I was told because SMF does not want you to make changes to them)

2.  Configure Filezilla to operate with my website(download the theme files to my pc so I can work on them, then save them to my SMF forum files-I think???)

3.  Download and edit the proper files (I already have the edits, just need to cut & paste them in)

I know what I have to do from there.  I someone would be kind enough to shoot me an e-mail with some step by step instructions, that would be greatly appreciated.  My address is:  [email protected]

Thank you so much for all of the help you all have given me so far.  I have a lot to learn, but I need to learn by doing.  I can do that but I want the proper instructions so I don't really screw something up and then be in a real bad bind!

Title: Re: Images On Board
Post by: C4G-TK on June 04, 2009, 04:48:00 PM
Every mod that you add pretty much makes some kind of edit to the default theme.  SMF doesn't want you to take off the copyright info from the program, but edits are allowed.


Looks like you are using Firefox, so try looking for the add-on FireFTP.  I use that to FTP my files from my computer to the server.   ;)
Title: Re: Images On Board
Post by: RPro1975 on June 04, 2009, 09:42:53 PM
Quote from: C4G-TK on June 04, 2009, 04:48:00 PM
Every mod that you add pretty much makes some kind of edit to the default theme.  SMF doesn't want you to take off the copyright info from the program, but edits are allowed.


Looks like you are using Firefox, so try looking for the add-on FireFTP.  I use that to FTP my files from my computer to the server.   ;)
Yes, I've added mods, but never had to do manual edits.  Now that I have to do one, I noticed there is no way to pull up the files from the admin panel like you can with the other themes.  So, I was told I need FTP, which I have.  I downloaded Filezilla, not Firefox.  I need to know how to have access to the files in the dfault theme so I can make the edits necessary for the mod to work properly.  Basically, I have never used an FTP, so I really don't know what I'm doing here.
Title: Re: Images On Board
Post by: C4G-TK on June 04, 2009, 10:26:04 PM
I'm not familiar with Firezilla.  But, if you need a program to edit your files, Notepad++ is great (and free)! 

http://download.cnet.com/Notepad/3000-2352_4-10327521.html?tag=mncol

Title: Re: Images On Board
Post by: Bulakbol on June 05, 2009, 01:13:53 AM
@RPro1975
Sorry to interrup guys. Please post your issue in the support board for help. More people can help you there.
Title: Re: Images On Board
Post by: W7 riso on June 05, 2009, 05:02:30 AM
Hi your Mod looks great there is only one prob. it won't work! I get this error:
Execute Modification ./Sources/MessageIndex.php Test failed
Is this a common problem? or is the Mod not suitable for Smf 1.1.9 ?
I'm trying to use it at
[link removed by K@]

Tnx in advance!
riso
Title: Re: Images On Board
Post by: Bulakbol on June 05, 2009, 05:15:32 AM
@W7 riso
It is acutally only couple of edits required. You should have done it yourself. :)
Attached is your MessageIndex.php. Upload the file before you install this mod. Let me know if you encounter any more failed test problem.
Title: Re: Images On Board
Post by: ngoclanbaby86 on June 05, 2009, 06:29:47 AM
Yeah ! nice mod . i'm using it on my site. it work verry good.  everybody can check it here (http://driver4vn.com). now using version SMF 1.1.9
Title: Re: Images On Board
Post by: W7 riso on June 05, 2009, 06:56:55 AM
Hi,
Tnx a Million! it works..

1. Execute Code ImagesOnBoardDB115.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs-Boards.php Test successful
4. Execute Modification ./Sources/MessageIndex.php Test successful
At my W7 Forum it works fine
P.s: I wished I could do the change by myself but I'm just to unknown with Smf programming..I was looking with PHP editor at the W7 messageindex file and saw some dif. between the original and a changed file at line 159, 430, 431,460 etc. but to me it's still ''Chinese'' 

>
I just did a checkup at my second Forum (W8 forum) and the file has a dif. size so if you would help me out with this last one, tnx in advance!
www.windows8newsinfo.com/smf

Attached W8 newsinfo Forum messageindexfile
Title: Re: Images On Board
Post by: Bulakbol on June 06, 2009, 03:25:31 PM
@ngoclanbaby86
Your forum is nice. Thanks for using/trying this mod.

@W7 riso
Try the attached MessageIndex.php. It is edited but use it before installing this mod.
Title: Re: Images On Board
Post by: RPro1975 on June 11, 2009, 02:37:06 PM
Why do I need a url for the image?  Can I just use an image I have saved?  Does it have to be an outside image?  The mod installed correctly with no problems so I don't think it needs a manual edit.  I just think I am entering the info wrong or don't know how to get the image entered in right.  How do you do it?  All I get when I enter the filename is a box with a little red "x" and the name of the board in it but no picture.
Title: Re: Images On Board
Post by: Mraza on June 11, 2009, 02:47:40 PM
thanks for this great Mod...is there any images available to use with this mod..as some people are not designer so they can use ready images to upload..thanks for any help  :)
Title: Re: Images On Board
Post by: C4G-TK on June 11, 2009, 05:21:49 PM
Quote from: RPro1975 on June 11, 2009, 02:37:06 PM
Why do I need a url for the image?  Can I just use an image I have saved?  Does it have to be an outside image?  The mod installed correctly with no problems so I don't think it needs a manual edit.  I just think I am entering the info wrong or don't know how to get the image entered in right.  How do you do it?  All I get when I enter the filename is a box with a little red "x" and the name of the board in it but no picture.

Did you FTP the image to the ImagesOnBoard folder in the theme?  The image needs to be uploaded to the ImagesOnBoard directory in order for it to pull that image to be displayed.  Also, be sure you typed in the image name correctly (complete with the .gif, .png, etc etc extension)
Title: Re: Images On Board
Post by: chefjohnnie on June 11, 2009, 05:44:34 PM
the image dose not show i have tried it a couple difrent way cant fig it out
i get no error just wont show
Title: Re: Images On Board
Post by: C4G-TK on June 11, 2009, 05:58:18 PM
You have it set to use both the file from the server directory and the link from the URL.  I'm not sure if that is the problem or not. 

If you didn't upload the image to your forum server (inside the themes/default/ImagesOnBoard directory) then take out the info that is placed in the first box for the image and keep the information that is for the URL with the photobucket info.

Try that.



Title: Re: Images On Board
Post by: chefjohnnie on June 11, 2009, 07:25:08 PM
this is the http://[email protected]/ptuforum/Themes/default/images/poker_host_lrg.jpg
then i uploaded it to photobucket and still nothing
i  feel so stupid im in the wrong directory let me try again ignore this for now thanks

solved dude thanks
Title: Re: Images On Board
Post by: C4G-TK on June 11, 2009, 07:35:52 PM
Here's the reason:

There should be a directory called ImagesOnBoard

Upload the image to this location.

It should be here:

Themes/default/images/ImagesOnBoard/(this is where you upload your images to)

You have the image in this location:

Themes/default/images

It won't pull the image from that directory, but from the sub directory which is one more level called ImagesOnBoard...  Check to see if you have that directory created.


Once you upload the image to the ImagesOnBoard directory, it should show.  (Also, take out the link information from your board info.)

Title: Re: Images On Board
Post by: chefjohnnie on June 11, 2009, 07:58:14 PM
perfect that worked but is there a way to center the pic or prevent wraping of the description text
thanks again
Title: Re: Images On Board
Post by: Bulakbol on June 12, 2009, 12:41:37 AM
@C4G-TK
Thanks for the help. I appreciated it.

@chefjohnnie
It requires editing your BoatdIndex.template.php manually. Are you comfortable with editing yourself? Or attach your BoardIndex.template.php. What custom theme are you using?
Title: Re: Images On Board
Post by: dzinerfusion on June 12, 2009, 09:27:10 AM
Quote from: bluesinjid on May 31, 2009, 03:18:29 PM
hi in the package parser it said edit this

In file Themes/[your theme]/BoardIndex.template.php
Find:

<td class="windowbg2 info">



Add after:

';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<span style="float:left; margin-right: 2px; margin-left: 2px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span>';
}
echo '




In file Themes/[your theme]/MessageIndex.template.php
Find:

<td class="windowbg2 info">



Add after:

';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<span style="float:left; margin-right: 2px; margin-left: 2px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span>';
}
echo '



But in my theme I do not have this where would i edit this? I included the files


Hi sorry for the inconvience, but I have added a lot of mods before you told me this  and I don't wanna redo all my mods, can you tell me what you editted instead so I can plug it in??
Title: Re: Images On Board
Post by: Bulakbol on June 13, 2009, 08:11:43 PM
@bluesinjid
Sorry, I edited so many files and I can't remember everything. In fact, not even one.
Title: Re: Images On Board
Post by: chefjohnnie on June 13, 2009, 09:39:23 PM
 
Quote from: Bulakbol on June 12, 2009, 12:41:37 AM
@C4G-TK
Thanks for the help. I appreciated it.

@chefjohnnie
It requires editing your BoatdIndex.template.php manually. Are you comfortable with editing yourself? Or attach your BoardIndex.template.php. What custom theme are you using?

yes i feel somewhat compatant but i tend to make a lot of mistakes ill include the file
Title: Re: Images On Board
Post by: Bulakbol on June 15, 2009, 04:30:06 AM
@chefjohnnie
This mod was installed already but I think it is an old version. Make sure you are using the latest version before you use the attached edited BoardIndex.template.php.
Title: Re: Images On Board
Post by: SilvioTO on June 18, 2009, 10:13:31 AM
I installed now this mod on SMF 1.1.9 with default theme. An error occured during pre-installation on file MessageIndex.php. I manually made change on file following the mod page instruction for smf 1.1.9. All fine, mod works, but in the description field I only wiew ":", no description. See image in attach. The language of the smf is italian.

Thanks in advance for your help and congratulation for this great mod!
Silvio.
Title: Re: Images On Board
Post by: SilvioTO on June 18, 2009, 10:24:24 AM
Reading description of the mod seems the italian language is supported: http://custom.simplemachines.org/mods/index.php?mod=1266
Title: Re: Images On Board
Post by: SilvioTO on June 18, 2009, 10:58:22 AM
Solved translating the file Modifications.italian.php in the /Themes/default/languages folder. In attach the php file with translation, i hope is useful to someone.

Thanks.  :)
Title: Re: Images On Board
Post by: Bulakbol on June 19, 2009, 01:00:35 AM
@Arantor
Thanks for your help. I appreciated it.

@SilvioTO
Thanks for the translated $txt strings. It will be added in the next update.


<edit>
Package updated. ImagesOnBoard2.1.zip.
Title: Re: Images On Board
Post by: Hassan_the best on June 19, 2009, 09:19:49 AM
Hey first i am gonna thank the creater for this AWSOME Mod...
I am having a problem the third board u can see has bad image....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg200.imageshack.us%2Fimg200%2F8558%2Fimagesonboard.jpg&hash=d73b918da8f619cbf94607d11edc75e3ef9ff1d5)
Title: Re: Images On Board
Post by: Mayhem30 on June 19, 2009, 10:17:24 PM
If I uninstall v1.0 and install v2.1 will I be required to go to all the boards again to re enter in the filename for the pics?

Or does that stay saved in the SQL DB?
Title: Re: Images On Board
Post by: Bulakbol on June 20, 2009, 03:38:36 PM
Quote from: Mayhem30 on June 19, 2009, 10:17:24 PM
If I uninstall v1.0 and install v2.1 will I be required to go to all the boards again to re enter in the filename for the pics?

Or does that stay saved in the SQL DB?

You don't have to re-enter the filename but you have to re-upload your images.
Title: Re: Images On Board
Post by: Mayhem30 on June 20, 2009, 07:02:45 PM
Not a problem at all. Thanks for the heads up!
Title: Re: Images On Board
Post by: MyOwnInsanity on June 21, 2009, 05:20:26 AM
Quote from: Bulakbol on June 24, 2008, 08:47:11 PM
If your theme is Triton11, then here's what you have to do. Open your Triton11/BoardIndex.template,php and look for
Quote<td class="windowbg2" valign="top" style="padding: 5px 10px 5px 10px;">
replace with
Quote<td class="windowbg2" valign="top" style="padding: 5px 10px 5px 10px;">';
            if (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
            
            echo '

then the Triton11/MessageIndex.template.php, find
Quote<td class="windowbg2">
and replace with
Quote<td class="windowbg2">';
            if (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';
            
            echo '

That's all.
Does that work for any theme? im running the XD_Reborn theme and wouldnt mind using your mod :)
Title: Re: Images On Board
Post by: Iviiik on June 24, 2009, 02:28:57 PM
Hi, could you modify your mod for BlackRainV2 theme ? Needed files in attachement. Thank You
Title: Re: Images On Board
Post by: nina-nina on June 26, 2009, 08:09:35 PM
Would this mod work for the premium theme 'Callisto'?.  If not, is there anyway to make it work on this theme?
Title: Re: Images On Board
Post by: Tezca on June 27, 2009, 03:32:45 AM
Hi, there are my translations of $txt strings to Latin American Spanish

./Themes/default/languages/Who.spanish_latin.php

$txt['whoall_uploads'] = 'Viendo &iacute;ndice de <a href="'. $scripturl. '?action=uploads">Carga</a> para modificaci&oacute;n ImagesOnBoard.';


./Themes/default/languages/Who.spanish_latin-utf8.php

$txt['whoall_uploads'] = 'Viendo índice de <a href="'. $scripturl. '?action=uploads">Carga</a> para modificación ImagesOnBoard.';


./Themes/default/languages/Modifications.spanish_latin.php

$txt['disable_iob'] = 'No mostrar im&aacute;genes en foro.';
$txt['board_image'] = 'Nombre de imagen para este foro';
$txt['board_image_desc'] = 'Incluir extensi&oacute;n de archivo. (ej. stop.png)';
$txt['board_img_link'] = 'Enlace para la imagen de arriba';
$txt['board_img_link_desc'] = '(ej. http://www.simplemachines.org)';

$txt['upload_title'] = 'Cargar Imagen';
$txt['select_files'] = 'Seleccionar un archivo';
$txt['valid_file_types'] = 'Tipos de archivo v&aacute;lidos';
$txt['invalid_file_extension'] = 'Disculpas. <span style="color: #FF0000;">%s</span> tuvo una extensi&oacute;n de archivo inv&aacute;lida. Carga abortada.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">&iexcl;Fall&oacute; la carga! Error desconocido.</span><br />';
$txt['file_too_big'] = 'Disculpas. <span style="color: #FF0000;">%s</span> estaba demasiado grande. Carga abortada.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> no se puede mover. Error desconocido.';
$txt['upload_successful'] = '<span style="color: blue;">Archivo cargado satifactoriamente. Gracias.</span> - %s<br />';
$txt['file_exists'] = 'Disculpas. %s ya existe. Renombra el archivo o intenta con otro.<br/>';
$txt['maximum_allowed'] = 'El tama&ntilde;o m&aacute;ximo permitido por el servidor es <strong>%s</strong> kilobytes o <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'El tama&ntilde;o m&aacute;ximo permitido a cargar es <strong>%s</strong> kilobytes o <strong>%d</strong> megabyte(s).<br /><br />';


./Themes/default/languages/Modifications.spanish_latin-utf8.php
$txt['disable_iob'] = 'No mostrar imágenes en foro.';
$txt['board_image'] = 'Nombre de imagen para este foro';
$txt['board_image_desc'] = 'Incluir extensión de archivo. (ej. stop.png)';
$txt['board_img_link'] = 'Enlace para la imagen de arriba';
$txt['board_img_link_desc'] = '(ej. http://www.simplemachines.org)';

$txt['upload_title'] = 'Cargar Imagen';
$txt['select_files'] = 'Seleccionar un archivo';
$txt['valid_file_types'] = 'Tipos de archivo válidos';
$txt['invalid_file_extension'] = 'Disculpas. <span style="color: #FF0000;">%s</span> tuvo una extensión de archivo inválida. Carga abortada.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">¡Falló la carga! Error desconocido.</span><br />';
$txt['file_too_big'] = 'Disculpas. <span style="color: #FF0000;">%s</span> estaba demasiado grande. Carga abortada.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> no se puede mover. Error desconocido.';
$txt['upload_successful'] = '<span style="color: blue;">Archivo cargado satifactoriamente. Gracias.</span> - %s<br />';
$txt['file_exists'] = 'Disculpas. %s ya existe. Renombra el archivo o intenta con otro.<br/>';
$txt['maximum_allowed'] = 'El tamaño máximo permitido por el servidor es <strong>%s</strong> kilobytes o <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'El tamaño máximo permitido a cargar es <strong>%s</strong> kilobytes o <strong>%d</strong> megabyte(s).<br /><br />';
Title: Re: Images On Board
Post by: Bulakbol on June 27, 2009, 01:30:17 PM
@evolva
I have your files. I'll get back to you after I finish editing them.

@nina-nina
If you will give the link of your custom theme, I can check it for you and tell you how to edit it manually.

@Tezca
Thanks a bunch. I will add the translation to the next update.


<edit>
@evolva
Attached are your files. Use them after installation. Let me lnow how things goes.
Title: Re: Images On Board
Post by: akbora on July 03, 2009, 04:08:34 PM
Unfortunateliy I can not upload images to /ImagesOnBoard. I cannot manage it. İmpossible 777 again happens to 655.

I renamed ImagesOnBoard folder to: qwdlekjwldjwlkdj

I have created a new folder /ImagesOnBoard. I could upload new images...

This is why? Thanks
Title: Re: Images On Board
Post by: Bulakbol on July 04, 2009, 12:56:33 PM
@akbora
The file permission is probably incorrect. Good to hear you are okay now.
Title: Re: Images On Board
Post by: villasg on July 05, 2009, 08:34:10 AM
Hi
I use smf 1.1.9 with th older version 1.1 of mod
I upload the new pakage 2.1 but i dont see ( upgrade )
How can i upgrade my forum to new version ?

Anyway greek-utf8

<!-- default/languages/Modifications.greek-utf8.php -->
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Μην εμφανιζεις εικονες on board.';
$txt['board_image'] = 'Το ονομα της εικονας για αυτο το board';
$txt['board_image_desc'] = 'Να υπαρχει και η καταληξη αρχειου. (i.e. stop.png)';
$txt['board_img_link'] = 'Το Link για την παραπανω εικονα';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';

$txt['upload_title'] = 'Upload εικονες';
$txt['select_files'] = 'Διαλεξε ενα αρχειο';
$txt['valid_file_types'] = 'Valid file types are';
$txt['invalid_file_extension'] = 'ΣΥΓΝΩΜΗ. <span style="color: #FF0000;">%s</span> λαθος καταληξη αρχειου. Upload aborted.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Upload failed! Αγνωστο λαθος.</span><br />';
$txt['file_too_big'] = 'ΣΥΓΝΩΜΗ. <span style="color: #FF0000;">%s</span> ειναι πολυ μεγαλη. Upload aborted.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> cannot move. Αγνωστο λαθος.';
$txt['upload_successful'] = '<span style="color: blue;">Το αρχειο ανεβηκε σωστα. Ευχαριστω.</span> - %s<br />';
$txt['file_exists'] = 'ΣΥΓΝΩΜΗ. %s υπαρχει ηδη. Δοκιμασε αλλο αρχειο η αλλαξε ονομασια σε αυτο.<br/>';
$txt['maximum_allowed'] = 'Το μεγιστο μεγεθος που επιτρεπεται απο τον host ειναι <strong>%s</strong> kilobytes or <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'Το μεγιστο μεγεθος αρχειου που επιτρεπεται να ανεβει ειναι <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
</operation>
</file>
Title: Re: Images On Board
Post by: flakers on July 05, 2009, 09:56:59 AM
could you modify your mod for More Style Multicolor?

http://custom.simplemachines.org/themes/index.php?lemma=1000

p.s. sweet and great mod :D



Thanks so much!!!!!! :D
Title: Re: Images On Board
Post by: Bulakbol on July 07, 2009, 10:36:16 PM
@villasg
Sorry but the version 2.1 is not an upgrade. You have to uninstall the old one then install 2.1 version. If you want the upgrade version, grab version 2.0. Thanks for the language translation however, I need translation for the Who.english.php as well. Can you translate that too please.


@flakers
Edit your morestyle/BoardIndex.template.php and morestyle/MessageIndex.template.php manually.

morestyle/BoardIndex.template.php
Code (find) Select
echo '</a>
</td>
<td class="windowbg4" >

Code (replace) Select
echo '</a>
</td>
<td class="windowbg4" >';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '


morestyle/MessageIndex.template.php
Code (find) Select
echo '</a>
</td>
<td class="windowbg2">

Code (replace) Select
echo '</a>
</td>
<td class="windowbg2">';
if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo '

Title: Re: Images On Board
Post by: villasg on July 08, 2009, 02:03:15 AM
Quote from: Bulakbol on July 07, 2009, 10:36:16 PM
@villasg
however, I need translation for the Who.english.php as well. Can you translate that too please.

$txt['whoall_uploads'] = 'Προβαλε <a href="'. $scripturl. '?action=uploads">τα ανεβασμενα</a>αρχεια για το ImagesOnBoard mod.';
Title: Re: Images On Board
Post by: Bulakbol on July 08, 2009, 02:11:11 AM
Thanks villasg. I will update the package now with the language translation.
Title: Re: Images On Board
Post by: nina-nina on July 17, 2009, 06:36:38 PM
I have this mod in my forum and I know is well installed and should work. what I would like to know is if there is a step-by-step tutorial on how to put the images in the place or board I want. It is a little confusing for me.
Title: Re: Images On Board
Post by: Bulakbol on July 18, 2009, 10:58:03 PM
Quote from: nina-nina on July 17, 2009, 06:36:38 PM
I have this mod in my forum and I know is well installed and should work. what I would like to know is if there is a step-by-step tutorial on how to put the images in the place or board I want. It is a little confusing for me.
They said, picture paints a thousand words so how about this image?
http://custom.simplemachines.org/mods/index.php?action=download;mod=1266;id=62867;image
Title: Re: Images On Board
Post by: nina-nina on July 21, 2009, 09:30:24 PM
Yes, that helped some.. but I still need more explanation (if you don't mind   ;))

What is this?  See below.  It is for me to upload the images?  I did upload one image but... where did it go?  How do I retrieve them? What should I do? What would be the link to put, the link of my forum, the link of my domain?

Mmmm I told you I needed step-by-step instructions... These tech things do not come easily for me  :(
Title: Re: Images On Board
Post by: Bulakbol on July 23, 2009, 01:36:12 AM
nina-nina
Sorry, I can't explain more better than I already did. If you uploaded an image called "home.png", you should enter that filename in the "Name of image for this board" when you modify a board. This mod will display that image automatically.

Leave the link textbox blank if you don't know how it works.
Title: Re: Images On Board
Post by: Am' on July 24, 2009, 05:50:45 AM
hi

i used the old version 2.0, how i can update my version to 2.1 please ?

thx
Title: Re: Images On Board
Post by: Bulakbol on July 25, 2009, 07:29:32 AM
If you will uninstall the old version, the images folder will be removed too. What I can suggest is copy the ImagesOnBoard folder to another folder, uninstall the old version, install the new version and then copy back your images. Your ImagesOnBoard configurations and settings will not be touched.
Title: Re: Images On Board
Post by: gbsothere on July 25, 2009, 08:40:08 AM
Quote from: nina-nina on July 21, 2009, 09:30:24 PM
Yes, that helped some.. but I still need more explanation (if you don't mind   ;))

What is this?  See below.  It is for me to upload the images?  I did upload one image but... where did it go?  How do I retrieve them? What should I do? What would be the link to put, the link of my forum, the link of my domain?

Mmmm I told you I needed step-by-step instructions... These tech things do not come easily for me  :(




nina-nina, here's what worked for me:

While I was installing this mod, I unzipped the file and made sure to put the folder "ImagesOnBoard" (that was included inside) into the images folder of my theme.  If you use an ftp program, you can just drag it into your theme's image folder.   So, in my case, it's:  Themes/default/images/ImagesOnBoard.  Then I created (or found online) some small images and dragged them into that ImagesOnBoard folder.  I used 35 X 35 images, mostly (PNG, but I also have an animated GIF and a JPEG image).  After I finished installing the mod, I went to Admin------->Boards then found the board I wanted to have an image on and clicked "Modify".  Then, just under the "Description" of that board, I found the field "Name for the image for this board" and (in my case) entered home.png (which is the exact name of the image I put in the ImagesOnBoard folder and it's case-sensitive).  Then, in the next field "Link for the above image" I put the URL for my website ending in this (again, this is my case, your theme may be different):  /smf/Themes/default/images/ImagesOnBoard/house.png

You see, the name of the image must be exactly as it is in the ImagesOnBoard folder and the link to it must be exact and case sensitive, or your image will not show up.  (For instance, ImagesOnBoard has capitals and those letters must be in your link).

After you are done entering your information, scroll down to the bottom of that page and click Modify.  Then when you go to your front page to check for the image, if you don't see it at first, try refreshing your page.

I hope this works for you.   :)

Editing this post:  The default location for all images is Themes/default/images/ImagesOnBoard folder.
Title: Re: Images On Board
Post by: Bulakbol on August 01, 2009, 04:57:28 PM
gbsothere
Thanks for the explanation.

@nina-nina
Are you okay now? Do you need assistance?

@drav
If you are talking about anecdota for version 1.1.x, then the edits are the same as the default theme. Find the  $board['description'] from BoardIndex.template.php and MessageIndex.template.php and the second line above it is the place to add the code for this mod. Let me know if you have any problem.
Title: Re: Images On Board
Post by: drav on August 01, 2009, 06:53:59 PM
Hi Bulakbol

It's for version 2.0. However, the anecdota theme itself for version 2.0 seems to have bugs. I encountered some anyway. The author Crip says he will update the theme. For the moment I'm using core and it's working. I will check back when the new anecdota is available.

Cheers  :)
Title: Re: Images On Board
Post by: khaleed on August 06, 2009, 05:05:19 AM
Hi Bulakbol..

nice mod...

If I'm using Kani theme what file should I edit? Is it the same like other custom theme?

thanks
Title: Re: Images On Board
Post by: Bulakbol on August 06, 2009, 06:45:52 AM
@drav
The edits should be the same. Just find and replace the code I mentioned and you'll be fine.

@khaleed
Edit BoardIndex.template.php and MessageIndx.template.php of your custom theme. Just look for $board['description'] and you'll figure out where to add the code yourself. It's not that hard.
Title: Re: Images On Board
Post by: khaleed on August 06, 2009, 07:21:04 AM
thanks for the reply Bulakbol

I edit the boardindex.template.php and messageindex.template.php but the image does not appear. In the boards that I try to show the image just show *. Below is the example the code that I already edit in both templates.

Before
<td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                  ', $board['description'];

so I replaced it with
<td class="windowbg2" valign="top" style="padding: 5px 10px 5px 10px;">';
            if (!empty($board['image']))
                  echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>';

Title: Re: Images On Board
Post by: Bulakbol on August 06, 2009, 07:29:25 AM
Go to Admin => Boards (modify a board). In the "Name of image for this board:", enter "stop.png". Don't forget to upload your images too.
Title: Re: Images On Board
Post by: khaleed on August 06, 2009, 07:45:58 AM
Hi Bulakbol,

I download the image but it's still doesn't show the image that I want. It's still show the * .

Title: Re: Images On Board
Post by: khaleed on August 06, 2009, 08:02:26 AM
it's okay now Bulakbol...

thanks for your help...

Title: Re: Images On Board
Post by: DollhouseBz on August 10, 2009, 08:27:11 PM
Great Mod, but I can't make it work. At least, I can't see the images...  :(

Anyway, here's a translation:

Portuguese - Brazilian

Quote$txt['board_image'] = '<b>Nome da imagem para esta categoria:</b><br />Incluir a extensão do arquivo. (exemplo: xx.gif)';
Title: Re: Images On Board
Post by: Bulakbol on August 12, 2009, 11:25:44 PM
@DollhouseBz
You will not see any images unless you modify your boards and enter the image filename to use. If you ned help, lt me know. I thank you for the Language translation. I would like to know if it is for both "Portuguese" and "Brazilian" so I can add it to the next update.
Title: Re: Images On Board
Post by: DollhouseBz on August 14, 2009, 11:30:36 PM
Quote from: Bulakbol on August 12, 2009, 11:25:44 PM
@DollhouseBz
You will not see any images unless you modify your boards and enter the image filename to use. If you ned help, lt me know. I thank you for the Language translation. I would like to know if it is for both "Portuguese" and "Brazilian" so I can add it to the next update.

Sorry for the confusion on the language. Actually that is Brazillian Portuguese. Both Brazil and Portugal officially speak Portuguese, but in reality it's as different as British English from Australian or American... (or more!  ;)

And I still can't see the images on the boards... I modified one board, uploaded the image. I can see it in the "Image on Board" file on my website directory, but I can't see the image.

I've recently installed my forum and I'm kind of a newbie. I want to set the forum ok before I invite people in.

Tks
Title: Re: Images On Board
Post by: DollhouseBz on August 15, 2009, 12:19:33 AM
Hi again,

I followed gbsothere's step-by-step tut and finally got what I was doing wrong: my images were way too big!

Thank you Gbsothere!  :D

Now the problem is that it seems I can't do anything directly to Images On Board file! I can't erase the larger images, change names, nothing! (neither could I upload the images directly into it... which would have been faster with many images...)

Why not?  :-\
Title: Re: Images On Board
Post by: gbsothere on August 15, 2009, 06:25:10 PM
Quote from: DollhouseBz on August 15, 2009, 12:19:33 AM
Hi again,

I followed gbsothere's step-by-step tut and finally got what I was doing wrong: my images were way too big!

Thank you Gbsothere!  :D

Now the problem is that it seems I can't do anything directly to Images On Board file! I can't erase the larger images, change names, nothing! (neither could I upload the images directly into it... which would have been faster with many images...)

Why not?  :-\



Hi,

What version of SMF are you using and what theme?

When you say you can't do anything directly to the Images On Board file, do you mean that you need to do some sort of manual edit, or are you talking about being able to make changes in the Admin panel?  I'm an old man, you have to dumb it down for me.    :)

Did the mod install successfully for you and is it functioning?

Also, Dollhouse, are you using ftp to upload your images into the ImagesOnBoard directory, located in the images folder in your theme directory? 

I'm just groping around for more information.   
Title: Re: Images On Board
Post by: DollhouseBz on August 15, 2009, 07:40:58 PM
Quote from: gbsothere on August 15, 2009, 06:25:10 PM
Hi,

What version of SMF are you using and what theme?

When you say you can't do anything directly to the Images On Board file, do you mean that you need to do some sort of manual edit, or are you talking about being able to make changes in the Admin panel?  I'm an old man, you have to dumb it down for me.    :)

Did the mod install successfully for you and is it functioning?

Also, Dollhouse, are you using ftp to upload your images into the ImagesOnBoard directory, located in the images folder in your theme directory? 

I'm just groping around for more information.

hi gbsothere

I'm using SMF 1.1.10. Classic theme.

And I can upload pictures using the mod, but I can't do anything via ftp or directly (manual edit). Anyway, the MOD doesn't have any option for deleting uploaded pictures, right?

I installed the MOD and it's working ok. But as I'm using another language (Brazilian Portuguese) the words don't show. Once again, your tut was invaluable!!! :)
Title: Re: Images On Board
Post by: gbsothere on August 15, 2009, 07:54:09 PM
Dollhouse, did you do the edits to your language files?   :)

Check this thread:

http://www.simplemachines.org/community/index.php?topic=246022.620 (http://www.simplemachines.org/community/index.php?topic=246022.620)

(The post by Joomlamz)

Edit:    Wait, I'm even more confused than usual.   :)

Are you saying that you don't have ftp access and that you can only do things through the package manager? 
Title: Re: Images On Board
Post by: baagacheppav on August 22, 2009, 01:21:00 PM
I tried installing this MOD through admin panel in smf 1.1.10 version..

i got this error ::   The package you tried to upload either is not a valid package or has become corrupted.

please guide me in installing this mod in 1.1.10 version.  I really need this mod

theme ::  SMF Default theme  core
Title: Re: Images On Board
Post by: Bulakbol on August 24, 2009, 08:00:06 PM
@DollhouseBz
Are you okay now?

@baagacheppav
Apology for the delayed reply. Try downloading the mod to your PC. Then upload and install.
Title: Re: Images On Board
Post by: baagacheppav on August 25, 2009, 05:08:07 PM
Quote from: Bulakbol on August 24, 2009, 08:00:06 PM


@baagacheppav
Apology for the delayed reply. Try downloading the mod to your PC. Then upload and install.

I am not able to install .... it is showing this error

"The package you tried to upload either is not a valid package or has become corrupted"
Title: Re: Images On Board
Post by: Mayhem30 on August 25, 2009, 09:30:00 PM
I have that issue when installing any mods .. how I solve it is to go to :

Admin / Packages / Options / Cleanup Permissions

Set that to : Only the standard files are writable

After I install a mod, I always go back and set it to : The minimum files are writable.
Title: Re: Images On Board
Post by: sandmannd on August 27, 2009, 10:45:29 AM
Quote from: sandmannd on June 02, 2009, 11:41:57 PM
Quote from: Bulakbol on June 02, 2009, 11:00:26 PM
@sandmannd
Can you post a screen cap?

Here's what they look like on my main boards (how I would like them all to look)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi128.photobucket.com%2Falbums%2Fp170%2Fsandmannd%2FMainScreanBanner.jpg&hash=a057a19b46ddc5c5cf0017589aa98bc081061d28)

Here's how my child boards look.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi128.photobucket.com%2Falbums%2Fp170%2Fsandmannd%2FChildBoardBanner.jpg&hash=431c6969ddf982ee254dd5d092922ccae5bc964d)

I would like the name of the board on top of the banner on the child boards instead of next to them.

Bulakbol it's been a while, have you been able to look at my issue at all? Right now I can't get images to show on child boards at all.
Title: Re: Images On Board
Post by: wickedstangs on August 29, 2009, 03:02:29 PM
what is a good recommeded size for the images?
Title: Re: Images On Board
Post by: Bulakbol on August 29, 2009, 07:05:48 PM
@baagacheppav
Which package are you trying to download? Have you tried  baagacheppav tip?

@sandmannd
Sorry. The only file attached in your last post was BoardIndex.template.php so I thought your problem is solved. You have to edit your MessageIndex.template.php manually as well.



Title: Re: Images On Board
Post by: sandmannd on August 30, 2009, 09:10:23 AM
Can you tell me the edit I have to make?
Title: Re: Images On Board
Post by: baagacheppav on August 30, 2009, 05:13:10 PM
Quote from: Bulakbol on August 29, 2009, 07:05:48 PM
@baagacheppav
Which package are you trying to download? Have you tried  baagacheppav tip?

@sandmannd
Sorry. The only file attached in your last post was BoardIndex.template.php so I thought your problem is solved. You have to edit your MessageIndex.template.php manually as well.





I am trying to install 2.1 version in 1.1.10 version but it is not working...
Title: Re: Images On Board
Post by: sandmannd on October 07, 2009, 10:23:26 PM
Quote from: sandmannd on August 30, 2009, 09:10:23 AM
Can you tell me the edit I have to make?

Is there an edit to make or should I updload my files again?
Title: Re: Images On Board
Post by: The Only One on October 08, 2009, 09:36:38 AM
I had installed Images On Board successfully on my forum. But, even after I had uploaded images and added the image name, modifying my board, I was not able to see the image on the boards. I have even tried clearing my cache.

I have attached the BoardIndex.template.php and MessageIndex.template.php

Please edit those, if required, to make the mod work. :)
Thank you for this wonderful mod. :)

Title: Re: Images On Board
Post by: sandmannd on October 24, 2009, 11:17:58 PM
Quote from: Bulakbol on August 29, 2009, 07:05:48 PM
@sandmannd
Sorry. The only file attached in your last post was BoardIndex.template.php so I thought your problem is solved. You have to edit your MessageIndex.template.php manually as well.

My bad. I put both of the files up here. Can you take a look at them please? I now have no images posting on my child boards. Main boards are great.

Thank you for your time.
Title: Re: Images On Board
Post by: kingkingston on November 04, 2009, 03:41:09 AM
Any plans on updating to 2.0 RC1.2 ?
Title: Re: Images On Board
Post by: gbsothere on November 04, 2009, 08:07:29 AM
There are parsing instructions for RC1.2.  On my RC1.2 test board, I just uploaded the most recent zip then, before clicking "Apply Mod", I went back to Admin---> Packages and clicked the Advanced link under the mod listing.  I set the emulator for RC1.1 and then applied the mod.  It installed without any errors.  (I went back and reset the emulator after that.)

I hope it works for you.   :)
Title: Re: Images On Board
Post by: kingkingston on November 04, 2009, 06:30:27 PM
Quote from: gbsothere on November 04, 2009, 08:07:29 AM
There are parsing instructions for RC1.2.  On my RC1.2 test board, I just uploaded the most recent zip then, before clicking "Apply Mod", I went back to Admin---> Packages and clicked the Advanced link under the mod listing.  I set the emulator for RC1.1 and then applied the mod.  It installed without any errors.  (I went back and reset the emulator after that.)

I hope it works for you.   :)
Would that work with other mods ?
Title: Re: Images On Board
Post by: Arantor on November 04, 2009, 06:40:16 PM
Something like that will work for many mods that list themselves as compatible with RC1 or RC1-1.
Title: Re: Images On Board
Post by: YogiBear on November 04, 2009, 06:54:17 PM
Quote from: wickedstangs on August 29, 2009, 03:02:29 PM
what is a good recommeded size for the images?


32 X 32 pixels would match the SMF logo to the left of each Board.
Title: Re: Images On Board
Post by: MultiformeIngegno on November 09, 2009, 08:07:11 AM
Will this work with RC2 or a new version is planned to be released? :)
Title: Re: Images On Board
Post by: Hoodie on November 18, 2009, 05:58:02 PM
Quote from: lorenzone92 on November 09, 2009, 08:07:11 AM
Will this work with RC2 or a new version is planned to be released? :)

I hope so..  Bulakbol hasn't been on SMF in about a month though so it might not..
Title: Re: Images On Board
Post by: Arantor on November 18, 2009, 06:03:13 PM
I doubt it will for that very reason. There were so many changes from RC1 to RC2 that I would be very surprised if it installed on Curve.
Title: Re: Images On Board
Post by: Hoodie on November 18, 2009, 06:54:17 PM
It won't install currently..  I'm sure someone could modify the code a little bit here and there for it to be able to work..

The source files all get modified correctly..  It's just the boardindex, messageindex and profile templates..  Mainly due to the way curve is written with <div>'s instead of <table>'s..

Title: Re: Images On Board
Post by: Arantor on November 18, 2009, 07:59:13 PM
Well it probably wouldn't be that hard to do but no-one can update the package unless the author agrees to it.
Title: Re: Images On Board
Post by: kingkingston on November 18, 2009, 10:58:41 PM
Quote from: Arantor on November 18, 2009, 06:03:13 PM
I doubt it will for that very reason. There were so many changes from RC1 to RC2 that I would be very surprised if it installed on Curve.
if your talking about this mod installing on rc2 and curve then it does
Title: Re: Images On Board
Post by: PalmBeachPreps on November 18, 2009, 11:24:35 PM
Quote from: kingkingston on November 18, 2009, 10:58:41 PM
Quote from: Arantor on November 18, 2009, 06:03:13 PM
I doubt it will for that very reason. There were so many changes from RC1 to RC2 that I would be very surprised if it installed on Curve.
if your talking about this mod installing on rc2 and curve then it does
As was posted above, not without a ton of manual edits.
Title: Re: Images On Board
Post by: kingkingston on November 19, 2009, 01:54:00 AM
Quote from: PalmBeachPreps on November 18, 2009, 11:24:35 PM
Quote from: kingkingston on November 18, 2009, 10:58:41 PM
Quote from: Arantor on November 18, 2009, 06:03:13 PM
I doubt it will for that very reason. There were so many changes from RC1 to RC2 that I would be very surprised if it installed on Curve.
if your talking about this mod installing on rc2 and curve then it does
As was posted above, not without a ton of manual edits.
hmmmmn i have it installed on my site and just used the package manager
Title: Re: Images On Board
Post by: Sabre™ on November 19, 2009, 02:17:44 AM
Needed 3 edits for myself on curve.
Im not using it though, just wanted to see if there were actually many edits.
Result = no
Title: Re:
Post by: MultiformeIngegno on November 19, 2009, 03:57:24 AM
Sabre can you post those edits so we can temporary use 'em while waiting the next release? Thanks! :)
Title: Re: Images On Board
Post by: Sabre™ on November 19, 2009, 07:01:31 AM
As stated buddy, I don't use this mod, so didn't make those changes.
But, I quickly re-downloaded the mod, and made them for you.
It should work fine.
I only 'changed' what I saw needed to be, by overwriting what was there for rc1.2.

Make a backup of your templates this alters, and the 'boards' table in your db, as I haven't tested this.
Just incase ;)
Anyways, good luck and hopefully it does what you need.

Will remove the attachment when Johnnyb(Bulakbol) requests, or another updates the mod.
Title: Re: Images On Board
Post by: PalmBeachPreps on November 19, 2009, 03:27:53 PM
Thanks, Sabre!  One error on Classic theme, but I don't use that anyhow.  'Preciate it!
Title: Re: Images On Board
Post by: Sabre™ on November 19, 2009, 07:07:02 PM
My pleasure mate :)
I only looked at the code for the curve theme and db for a quick fix. Im guessing the classic theme shouldn't be too difficult to edit for those that use it.
Im glad it worked for you mate :)
Title: Re: Images On Board
Post by: Kimmen on November 22, 2009, 09:10:48 AM
It works for me as well. And i use square theme.
Title: Re: Images On Board
Post by: Kimmen on December 02, 2009, 05:47:40 PM
Is it possible to get the images to display on the right side instead of the left?
Title: Re: Images On Board
Post by: coldy316 on December 03, 2009, 07:33:36 AM
Okay now that we have the mod install where's the best place to get images from
so we can add them in.. I have tried google by searching icons and the only result
i get back are the computer icons for windows...

any help from anyone would be good

oh yeah thank you for a great mod
Title: Re: Images On Board
Post by: Sabre™ on December 03, 2009, 01:49:52 PM
Quote from: Kim Arne on December 02, 2009, 05:47:40 PM
Is it possible to get the images to display on the right side instead of the left?

In your BoardIndex.template.php, search for this line
echo '<div style="float:left; margin-right: 4px;">';

And change the 'left' to 'right' in that line.
echo '<div style="float:right; margin-right: 4px;">';


@ coldy316
It would very much depend on what you were looking for that would be best suited for your site.
You have sites like [THIS] (http://www.iconarchive.com/) that offer many options, then others sites that have [different types] (http://iconka.com/free/) etc etc etc..
It just all depends on what youre looking for, and having a good look using different search queries.
Title: Re: Images On Board
Post by: Kimmen on December 04, 2009, 11:43:41 AM
I am sorry, i cant find what you wanted me to search for. I use SMF2 RC2 with square theme. The theme has not its own BoardIndex.template file, but i looked into the default and curve one, and did not find anything in there either.

What to do?
Title: Re: Images On Board
Post by: Sabre™ on December 04, 2009, 12:19:08 PM
Can you attach your boardindex.template.php to your next post with the mod installed.
The default being curve, and the core theme being the old smf default.
So will need the curve theme template.
Cheers :)
Title: Re: Images On Board
Post by: Kimmen on December 04, 2009, 01:14:22 PM
Yes, here it is.

Thanks
Title: Re: Images On Board
Post by: Sabre™ on December 04, 2009, 03:43:10 PM
Anytime :)
Title: Re: Images On Board
Post by: Kimmen on December 04, 2009, 03:50:55 PM
Many thanks as always Sabre.
Title: Re: Images On Board
Post by: C4G-TK on December 13, 2009, 10:55:17 PM
Thanks for the update Sabre!

The only thing that I'm getting is just a cosmetic change in the admin area when going into Boards as far as I can tell.

Attached a pic.

Title: Re: Images On Board
Post by: -=[Vyorel]=- on January 06, 2010, 01:04:13 PM
For SMF 2.0 RC2 ?
Title: Re: Images On Board
Post by: Sabre™ on January 06, 2010, 05:01:56 PM
@ C4G-TK
Sorry for the late reply bud, been away on vacation, and stayed away from a connection.
That's an interesting issue in your attachment.
Have you managed to find why it is occurring, or do you still require assistance with it?

@ -=[Vyorel]=-
You may see if the attachment located [HERE] (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394) will work for you :)
Title: Re: Images On Board
Post by: C4G-TK on January 06, 2010, 08:19:48 PM
I think I figured out part of the reason when I tried to add an image today.

I added an image and it wouldn't appear.  So, I used the "stop.png" name in the text box and it appeared.  I right clicked and looked at the image location.  It is pulling from the wrong directory for the image despite creating an Images On Boards directory in the theme I'm using.  In other words, when it did the edits, it is pulling from the default/Curve theme directory because the theme I'm using really only uses its own index.template.php file   All the rest of the files are used from the default/Curve theme.  So, I have to go back and change some things around in order for everything to work correctly in the new theme I'm using.
Title: Re: Images On Board
Post by: -=[Vyorel]=- on January 07, 2010, 03:37:58 AM
Quote from: Sabre™ on January 06, 2010, 05:01:56 PM
@ -=[Vyorel]=-
You may see if the attachment located [HERE] (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394) will work for you :)
Thanks man! :) ;D
Title: Re: Images On Board
Post by: C4G-TK on January 09, 2010, 09:37:38 PM
Ok, it's working on the forum, but not without a slight problem.  lol.

On the main forum page that shows the categories and boards, it looks fine.

But, the childboards are not appearing correctly.  They are horizontal instead of vertical.  Take a look at the image below to see what I mean. 

Does anyone know how I would correct this?

RC2 version of forum, sorry!

Title: Re: Images On Board
Post by: Sabre™ on January 11, 2010, 02:41:40 PM
Attach your MessageIndex.template.php and I'll have a look
Title: Re: Images On Board
Post by: C4G-TK on January 11, 2010, 03:14:40 PM
Thanks Sabre!

Let me know if there is something else I need to do.

Title: Re: Images On Board
Post by: Sabre™ on January 11, 2010, 04:07:58 PM
Oooppss!!
Just deleted my post.
Been up half the night and realised my tired eyes played on me lol
Try the attached
Title: Re: Images On Board
Post by: C4G-TK on January 11, 2010, 04:23:45 PM
Corrected!  YAY!

Thanks Sabre!

Attached pic of it working now.


PS- What's your PayPal?  Can send me a PM with info if you want.

Title: Re: Images On Board
Post by: Sabre™ on January 11, 2010, 04:31:33 PM
No need for paypal buddy.
It is always My pleasure to assist where I can.
That is my payment :)
Thank You very much for your kind offer.
Enjoy :)
Title: Re: Images On Board
Post by: playdiune on January 26, 2010, 10:02:02 PM
hello, great MOD.

Just a problem. The images on my forum have a active link to the directory where they are saved. Is possible to deactivate this active link ? i.e, if i put the mouse over the image, i dont want any active link. Is this possible ?

thanks
Title: Re: Images On Board
Post by: Arantor on January 27, 2010, 08:35:00 AM
Not without manually modifying the template, and all it would remove is a link to display the unread posts in that board.
Title: Re: Images On Board
Post by: raibom on January 27, 2010, 09:18:08 AM
I use the Brazilian Portuguese language UTF-8. How do the mod is compatible with my language?.
Title: Re: Images On Board
Post by: Arantor on January 27, 2010, 03:47:38 PM
It doesn't appear that anyone translated the mod for Brazilian Portuguese, so the mod does not have support for it at this time as far as I can see.
Title: Re: Images On Board
Post by: h78509 on January 27, 2010, 07:31:07 PM
Works perfectly in RC2 and Curve. Awesome mod. Thanks!
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 08:11:23 PM
here is for portuguese, so far as i can;

$txt['disable_iob'] = 'Nao mostrar imagens nos quadros.';
$txt['board_image'] = 'Nome da imagem para este quadro';
$txt['board_image_desc'] = 'Incluir a extensao do file. (i.e. stop.png)';
$txt['board_img_link'] = 'Link da imagem acima descrita';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';

$txt['upload_title'] = 'Carregar imagens';
$txt['select_files'] = 'Selecionar um file';
$txt['valid_file_types'] = 'O tipo de ficheiros permitidos sao';
$txt['invalid_file_extension'] = 'Desculpe. <span style="color: #FF0000;">%s</span> tem uma extensao invalida. Upload abortado.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Upload falhou! Erro desconhecido.</span><br />';
$txt['file_too_big'] = 'Desculpe. <span style="color: #FF0000;">%s</span> e muito grande. Upload abortado.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> impossivel mover. Erro desconhecido.';
$txt['upload_successful'] = '<span style="color: blue;">O ficheiro foi carregado correctamente. Obrigado.</span> - %s<br />';
$txt['file_exists'] = 'Desculpe. %s ja existe. Tente outro ficheiro ou mude o nome a este.<br/>';
$txt['maximum_allowed'] = 'O tamanho maximo permitido pelo host e <strong>%s</strong> kilobytes ou <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'O tamanho maximo permitido para upload e <strong>%s</strong> kilobytes ou <strong>%d</strong> megabyte(s).<br /><br />';
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 08:18:01 PM
now,

i would like to remove the image link on the board. what code do i have to change ? because the image links to the directory "/public_html/Themes/default/images/ImagesOnBoard" and this doenst make any sense, for me.

help, please....
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 10:10:31 PM
I solved the link problem :) Stupid bug of my mind hehehe.

Now i have a big problem. I am using the CHILD BOARD mod and if i use the IMAGE BOARD, the child boards appears all bad configured on board.

I mean, the board should look like this;

Quote<image> Board name

             child1                          child2

and appears like this ( after i add the image )

Quote<image> board name
                        child 1
             child2

Is there a solution ?

thanks
Title: Re: Images On Board
Post by: Arantor on January 27, 2010, 10:12:23 PM
What child board mod?
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 10:15:07 PM
i am using "Tidy Child Boards"

you can take a look here,   http://www.new-digital.net
Title: Re: Images On Board
Post by: Arantor on January 27, 2010, 10:18:17 PM
Looks fine to me.

Screenshot would be handy at this point so I can see what you're seeing.

(As the author of Tidy Child Boards, I might be able to help ;))
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 10:20:09 PM
i am going to aply one picture... 2 minutes
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 10:22:24 PM
ok .. take a look on presentation board.

thanks
Title: Re: Images On Board
Post by: Arantor on January 27, 2010, 10:27:12 PM
You should be able to fix it by adding the following to Themes/default/tidyboards.css and refreshing the page:

.board_children { clear:left; }
Title: Re: Images On Board
Post by: playdiune on January 27, 2010, 10:34:56 PM
Great job ;)

i should pay you a drink !

many thanks :)
Title: Re: Images On Board
Post by: vanquizhers on February 02, 2010, 12:59:16 PM
can i use this mod to SMF 2.0 RC 2 ?
Title: Re: Images On Board
Post by: -=[Vyorel]=- on February 02, 2010, 01:25:22 PM
Quote from: vanquizhers on February 02, 2010, 12:59:16 PM
can i use this mod to SMF 2.0 RC 2 ?
You may see if the attachment located [HERE] (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394) will work for you :)
Title: Re: Images On Board
Post by: Chas Large on February 06, 2010, 03:38:22 PM
Quote from: -=[Vyorel]=- on February 02, 2010, 01:25:22 PM
Quote from: vanquizhers on February 02, 2010, 12:59:16 PM
can i use this mod to SMF 2.0 RC 2 ?
You may see if the attachment located [HERE] (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394) will work for you :)
Just wanted to say thanks for this version for 2.0 RC-2 but it makes a mess of the board manage page, see attached. It can still be used though. Of course this may be unique to my installation.
Title: Re: Images On Board
Post by: Arantor on February 06, 2010, 03:45:36 PM
No, it looks like the code in the template needs to be refitted - the default template in 2.0 RC2 doesn't use tables.
Title: Re: Images On Board
Post by: vanquizhers on February 06, 2010, 08:51:07 PM
Thank you.... i already apply, and success.... you can look at www.jozinko.com, :D
Title: Re: Images On Board
Post by: romper on February 11, 2010, 01:13:37 PM
Can I get some help in extreme6 theme...I do manage to get images on board but then I loose title of the board
Title: Re: Images On Board
Post by: bjraines on February 18, 2010, 06:25:51 PM
do you think it is possible to get this updated to 1.11
Title: Re: Images On Board
Post by: MultiformeIngegno on March 09, 2010, 08:53:41 AM
Any chance to get an updated version for RC3..?
Title: Re: Images On Board
Post by: Chas Large on March 09, 2010, 09:06:21 AM
Given that Bulakbol's last post on this site was in August 2009, I think the chances of any updates to this mod will rely on someone else modifying it. He seems to have gone away.
Title: Re: Images On Board
Post by: MultiformeIngegno on March 09, 2010, 09:25:01 AM
Quote from: Chas Large on March 09, 2010, 09:06:21 AM
I think the chances of any updates to this mod will rely on someone else modifying it.
vbgaaaaaaamer.... xD :P
Title: Re: Images On Board
Post by: Sabre™ on March 09, 2010, 10:14:40 AM
Quote from: Arantor on February 06, 2010, 03:45:36 PM
No, it looks like the code in the template needs to be refitted - the default template in 2.0 RC2 doesn't use tables.

Oh dang!!
I missed that in my quick edit  :-[
For those that installed the package on page 34 (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394), the attached package will fix the layout issue if you experienced it.
This is compatible for RC2 & RC3 default themes.

Will remove if requested. :)

~added
Quote from: Chas Large on March 09, 2010, 09:06:21 AM
Given that Bulakbol's last post on this site was in August 2009, I think the chances of any updates to this mod will rely on someone else modifying it. He seems to have gone away.

Yeah, he contacted me before he left stating that his offline life has taken priority now.
Title: Re: Images On Board
Post by: Kikokeko on March 11, 2010, 06:30:53 PM
Downloaded, installed and working.

Thank you very much!

SMS 1.1.11
TinyPortal 1.0.4
Theme mobile10
Spanis_ES
Title: Re: Images On Board
Post by: C4G-TK on March 19, 2010, 12:26:27 PM
I was using this for RC2 and made some changes to the ManageBoards.template file in order to clean it up.  I'm not sure if the one posted above was changed since I'm not using RC3 until most of the mods I use are updated.

If you are using RC2, and just want to do the edit, you might want to try replacing the code with this in ManageBoards.template to make it look correct:

<textarea name="desc" rows="3" cols="35">', $context['board']['description'], '</textarea>
</dd>

<dt>
<strong>', $txt['board_image'], ':</strong>
<a href="', $scripturl, '?action=iobuploads" target="_blank"><img src="', $settings['default_images_url'], '/iobuploads.gif" alt="*" /></a><br />
<p class="smalltext">', $txt['board_image_desc'], '</p>
</dt>
<dd>
<input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
</dd>

<dt>
<strong>', $txt['board_img_link'], ':</strong>
<p class="smalltext">', $txt['board_img_link_desc'], '</p>
</dt>
<dd>
<input type="text" name="img_link" value="', $context['board']['img_link'], '" size="30" />
</dd>
Title: Re: Images On Board
Post by: Bruno36 on March 24, 2010, 06:48:00 AM
Hello!

I'm having a problem
Title: Re: Images On Board
Post by: aw06 on March 31, 2010, 09:55:50 PM
Installed fine on rc3 . how do you delete the images in the store folder, i have allot of test icons left over..
Title: Re: Images On Board
Post by: bros on March 31, 2010, 10:18:06 PM
Quote from: Sabre™ on January 11, 2010, 02:41:40 PM
Attach your MessageIndex.template.php and I'll have a look

Yours works on SMF 2 RC3 also, but I get the error where it pushes the stuff to the side in the boards page

Title: Re: Images On Board
Post by: Sabre™ on April 01, 2010, 07:06:23 AM
Quote from: Bruno36 on March 24, 2010, 06:48:00 AM
Hello!

I'm having a problem

No errors on install?
Does it appear ok in the default theme?
Check that the files within your custom theme have been edited.

Quote from: aw06 on March 31, 2010, 09:55:50 PM
Installed fine on rc3 . how do you delete the images in the store folder, i have allot of test icons left over..

You would have to manually remove them.
They are located in the ImagesOnBoard directory... /Themes/default/images/ImagesOnBoard

Quote from: bros on March 31, 2010, 10:18:06 PM
Yours works on SMF 2 RC3 also, but I get the error where it pushes the stuff to the side in the boards page

Your template looks fine to me.
Do you have a link to see what is happening?
PM me if you would not like your site to be made public.
Title: Re: Images On Board
Post by: aw06 on April 01, 2010, 08:21:47 AM
Cant manually delete them, telling me i have no permissions... :o

BTW, great mod, looks good on my board, check my siggy
Title: Re: Images On Board
Post by: Darkred35 on May 02, 2010, 03:45:10 AM
I have installed this Mod and under the boards it is allowing me to add the external and direct link. However it either posts multiple images or part of the code shows up.  I have tried so many different methods and I can't get it to work.  I am using photobucket to get the images.  Any help would be greatly appreciated.  Is there a way to upload images of my computer?

Thanks
Title: Re: Images On Board
Post by: Darkred35 on May 02, 2010, 02:43:24 PM
I have installed this Mod and under the boards it is allowing me to add the external and direct link. However it either posts multiple images or part of the code shows up.  I have tried so many different methods and I can't get it to work.  I am using photobucket to get the images.  Any help would be greatly appreciated.  Is there a way to upload images of my computer?

Thanks
Title: Re: Images On Board
Post by: TomW on May 20, 2010, 08:18:50 PM
Quote from: Arantor on January 27, 2010, 10:27:12 PM
You should be able to fix it by adding the following to Themes/default/tidyboards.css and refreshing the page:

.board_children { clear:left; }

Arantor - thank you !  I had the same issue and this resolved it.

Sabre - thank you for the RC3 version !

One question - How do I move the text of the main board underneath the image ?
Title: Re: Images On Board
Post by: Sabre™ on May 20, 2010, 09:55:16 PM
My pleasure mate :)

Search for this code in your BoardIndex.template.php "and also in your MessageIndex.template.php for your child boards"
echo '<span style="float:left; margin-right: 2px; margin-left: 2px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span>';


And replace it with this
echo '<span>';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></span><br />';


Enjoy :)

For those that do not want the image to be "clickable", remove this from the same line of code
<a href="', $board['img_link'], '" target="_blank">

It is how I have always had mine configured.
Title: Re: Images On Board
Post by: TomW on May 20, 2010, 10:50:23 PM
Very cool; thanks again.
Title: Re: Images On Board
Post by: marshall stan on June 15, 2010, 04:58:33 AM
hi there.
i like the mod for my forum but i would like to change something on it.
i put the image on te left side of my forum and create a .png file 500x50
now the thing is that the text in the board does not go over the image.
but the text is putting it under the image.
how do i change that?
im using smf 2.0 rc3
thx
Title: Re: Images On Board
Post by: chinaren on June 22, 2010, 06:41:40 AM
Hey there Bulakbul!  First, many thanks for this mod. It was one of the first I installed on my SMF1 board, and it's a great relief to find it still alive and kicking for 2RC3.  


You may want to draw more attention to the latest version, (done by Sabre I think, thanks Sabre!) maybe by putting it on the top post of this thread, or the actual mod.  It took me some time and effort to track it down!


Thanks again for the mod!  Keep up the good work. :)


Quote from: Sabre™ on March 09, 2010, 10:14:40 AM

Quote from: Arantor on February 06, 2010, 03:45:36 PM
No, it looks like the code in the template needs to be refitted - the default template in 2.0 RC2 doesn't use tables.

Oh dang!!
I missed that in my quick edit  :-[
For those that installed the package on page 34 (http://www.simplemachines.org/community/index.php?topic=246022.msg2365394#msg2365394), the attached package will fix the layout issue if you experienced it.
This is compatible for RC2 & RC3 default themes.

Will remove if requested. :)

~added
Quote from: Chas Large on March 09, 2010, 09:06:21 AM
Given that Bulakbol's last post on this site was in August 2009, I think the chances of any updates to this mod will rely on someone else modifying it. He seems to have gone away.

Yeah, he contacted me before he left stating that his offline life has taken priority now.
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 05:09:41 AM
btw can this work on theme  Overview from DzinerStudio  ?
i instal mod
http://img709.imageshack.us/f/breznaslovae.png/
wher need upload icons ...
maybe somone can help me whit teamwiver or on msn help add icons..
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 08:13:38 AM
Quote from: dvd123 on July 05, 2010, 05:09:41 AM
btw can this work on theme  Overview from DzinerStudio  ?
i instal mod
http://img709.imageshack.us/f/breznaslovae.png/
wher need upload icons ...
maybe somone can help me whit teamwiver or on msn help add icons..


Hi, dvd123,

It can work with a custom theme, if you place this mod's edits in the template files for your theme.  This mod does edit several template files.  Go to the page where you download the mod and, next to the zip you downloaded, use the pulldown to take a look at the parsing instructions for all the templates.  Those edits need to be placed in the templates for your own theme, since the package manager only parses files for the Default theme. 

The templates being parsed for 1.1.11 are:

ManageBoards.template.php
Profile.template.php
Settings.template.php
BoardIndex.template.php
MessageIndex.template.php

If your theme has any of these template files, you'll need to manually edit them.

Also, if you are not using English as your forum's default language, manually parse the version of Modifications.english.php that you do use.

:)
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 04:13:16 PM
Hi gbsothere

i looking here  http://custom.simplemachines.org/mods/index.php?action=parse;mod=1266;attach=105976;smf_version=1.1.11
but is much work need much edit
yes my forum is on englis language
and i got this file
Settings.template

i got
Forum version: SMF 1.1.11
Current SMF version: SMF 1.1.11
i found  Installation Instructions for 1.1.11

so need only this edit?
./Themes/default/Settings.template.php
and will work?

soz for my englis :/
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 04:45:51 PM
If that's the only template file your theme has in common with the mod, dvd123, then, yes, that's the one you'll need to edit.

If you like, attach it and I'll take a look at it. 

:)
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 05:09:38 PM
yeaaaaaaa
thanks you much for help now work :D
wich icons  size ? x ? can add max ?
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 05:15:56 PM
Quote from: dvd123 on July 05, 2010, 05:09:38 PM
yeaaaaaaa
thanks you much for help now work :D
wich icons  size ? x ? can add max ?


I'm glad it's working for you.   ;)

35 x 35 works best with the default theme, but your theme may allow you to adjust the size slightly.  Take a look at this link. It's a post I made here last year that goes into detail about how to get the images to show up.  You can add as many as the number of boards you have.   :)


http://www.simplemachines.org/community/index.php?topic=246022.msg2175768#msg2175768 (http://www.simplemachines.org/community/index.php?topic=246022.msg2175768#msg2175768)
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 05:24:02 PM
btw no work :/ i use other icons ... and only work this icons wich is allready on mod files stop.png
wher need upload icons?
i want find file ImagesOnBoard from  this mod wher can find?because i think need here upload icons
/public_html...?
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 05:48:19 PM
yea i make
/public_html/forums/Themes/overview_119/images/ImagesOnBoard 
i uploads icons but dont show
here can see forum picture
http://img408.imageshack.us/i/breznaslova.png/
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 05:49:50 PM
What is the name of that image that isn't showing?
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 05:56:50 PM
i tested 4 images and no 1 no show whit name pictures.png
i tested size  48x48 and 32x32 but nothing dont want show
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 05:58:20 PM
Quote from: dvd123 on July 05, 2010, 05:56:50 PM
i tested 4 images and no 1 no show whit name pictures.png
i tested size  48x48 and 32x32 but nothing dont want show


What I meant, dvd, was that, on the ImageShack link you just gave me.... what is the name of the image you intend to be seen on the Music board?  What did you name that image (that's not showing up)?
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 06:04:39 PM
i use name music.png   but not show
btw i got only this pictures on  ImagesOnBoard
but stil how me this another images on wallpapers
maybe  can find  files of mods -ImagesOnBoard on  File Manager maybe need here upload
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 06:08:31 PM
If you want, dvd, I can check your forum and server for you to try to determine what's going on.  You would need to create a temporary admin log in for your board (one that you can just delete when I'm done) but that has admin privileges so that I can take a look at things.  I may also need your ftp log in details (user name and password) so that I can check how you installed this mod and where things are.

If you want me to do that, just send me the link to you forum and the log in details in a Personal Message (don't put them here).

Before you do that, though, I always like to have members read this link, before they give out sensitive information:

http://www.simplemachines.org/community/index.php?topic=87130.msg575795#msg575795 (http://www.simplemachines.org/community/index.php?topic=87130.msg575795#msg575795)

:)
Title: Re: Images On Board
Post by: dvd123 on July 05, 2010, 06:15:11 PM
i sended you now details of forum account
and details of host account (File Manager)
Title: Re: Images On Board
Post by: gbsothere on July 05, 2010, 10:05:34 PM
Quote from: dvd123 on July 05, 2010, 06:15:11 PM
i sended you now details of forum account
and details of host account (File Manager)


Looks like we have you fixed up.   ;)
Title: Re: Images On Board
Post by: tomy123456 on August 14, 2010, 11:40:31 AM
i want know what need add or edit  on theme for work on every theme
Title: Re: Images On Board
Post by: iPhoneDestek on August 27, 2010, 08:06:02 PM
I have been using images for rc2 release of version 2.2 installed on board modifications. installation was not a problem. I want to edit a category, or section I noticed the theme has been corrupted.
Title: Re: Images On Board
Post by: Wally. on September 03, 2010, 04:24:54 PM
Hey guys I just attempted to install "ImagesOnBoard2RC3" and it gave me several errors. All are related to finding "<td class="info">" on the "BoardIndex.template.php" or "MessageIndex.template.php" files for the various themes. So I loaded one of the files in Dreamweaver and did a search for the td line - Dreamweaver says those files don't have that line. What should I do to install this?
Title: Re: Images On Board
Post by: Sabre™ on September 03, 2010, 07:55:20 PM
Search for the word "info" to find the correct line.
The complete line maybe altered in your custom themes.
I noticed the line is   <td class="infob">  in one of your themes, I didnt have time to check the others, but this will give you the general idea.
Good luck :)
Title: Re: Images On Board
Post by: Wally. on September 04, 2010, 03:09:16 PM
Found it no problem, thanks.  :)
Title: Re: Images On Board
Post by: kibtwane on September 18, 2010, 10:33:18 PM
I'm a bit confused about this mod's actual purpose.  Does it add images to only the main index page of the board or can you use it to add images to posts?  Also I can't locate in the admin panel.  Where exactly is it?
Title: Re: Images On Board
Post by: Spoogs on September 18, 2010, 10:55:34 PM
It allows you to add images next to the board's name
Create a new board or modify an existing board and you will see the necessary options
Title: Re: Images On Board
Post by: Loginsvarios on September 24, 2010, 07:13:21 AM
Hi there!

Where I can found "ImagesOnBoard2RC3"?
I'm very interested on this updated version of the mod (it was on my forum 1.1.X before I updated to 2 RC3) but now all I see is comments about it.

Can anyone share it?

I'd be very grateful...
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 08:04:23 AM
Quote from: Loginsvarios on September 24, 2010, 07:13:21 AM
Hi there!

Where I can found "ImagesOnBoard2RC3"?
I'm very interested on this updated version of the mod (it was on my forum 1.1.X before I updated to 2 RC3) but now all I see is comments about it.

Can anyone share it?

I'd be very grateful...

Follow this link: http://www.simplemachines.org/community/index.php?topic=246022.msg2530237#msg2530237
Title: Re: Images On Board
Post by: Loginsvarios on September 24, 2010, 09:54:13 AM
I read the whole thread and that link wasn't there... ???
I suppose that the reason was that I logged after, so the link are now unhidden.

Thanks a lot for your help!
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 10:05:04 AM
Quote from: Loginsvarios on September 24, 2010, 09:54:13 AM
I read the whole thread and that link wasn't there... ???
I suppose that the reason was that I logged after, so the link are now unhidden.

Thanks a lot for your help!
You are welcome.
Title: Re: Images On Board
Post by: Iviiik on September 24, 2010, 01:11:31 PM
I have a little problem with install.... 

I have this problem, But I don´t know how fix it :(

QuoteUnknown column 'b.img_filename' in 'field list'
Soubor: /var/www/space4all.cz/beta/Sources/Subs-BoardIndex.php
Řádek: 82

Must I install something to the my database ?
Or what and how :) thanks
Title: Re: Images On Board
Post by: msgoodygal on September 24, 2010, 01:19:16 PM
I would REALLY like to use this mod, and have tried a couple of times to install it, and it goes just fine - except that it does not place any images on my board.

I'm using the guhlin-antep theme, with smf v1.1.11

Any ideas?

I'm not a coder, so could really use some help!
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 01:45:16 PM
I am not sure but have you enable this mod after you have installed it? Some mods need to be enabled before it works.
Title: Re: Images On Board
Post by: Iviiik on September 24, 2010, 05:32:32 PM
and who help me ? :D
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 06:18:35 PM
Quote from: evolva on September 24, 2010, 05:32:32 PM
and who help me ? :D
What version of your SMF? Which one did you download and install?
Try uninstall for now...
Title: Re: Images On Board
Post by: Iviiik on September 24, 2010, 06:29:34 PM
I have RC3 ... and I install manually version  ImagesOnBoard2.1.zip :)

Why uninstall ?
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 06:46:18 PM
Quote from: evolva on September 24, 2010, 01:11:31 PM
I have a little problem with install.... 

I have this problem, But I don´t know how fix it :(

QuoteUnknown column 'b.img_filename' in 'field list'
Soubor: /var/www/space4all.cz/beta/Sources/Subs-BoardIndex.php
Řádek: 82

Must I install something to the my database ?
Or what and how :) thanks
Because of the above. You should read this and download the attached copy if you are installing on SMF 2.0 RC3.
http://www.simplemachines.org/community/index.php?topic=246022.msg2530237#msg2530237
Title: Re: Images On Board
Post by: Iviiik on September 24, 2010, 06:47:57 PM
oh, thanks  ;)
Title: Re: Images On Board
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 06:55:08 PM
Quote from: evolva on September 24, 2010, 06:47:57 PM
oh, thanks  ;)
It's no problem at all. Glad to help.
Title: Re: Images On Board
Post by: Iviiik on October 06, 2010, 08:39:10 AM
If I have Images on board and tidy child boards mod, I have little problem :( in screen ...

How fix it :( ?
Title: Re: Images On Board
Post by: Sabre™ on October 06, 2010, 02:51:38 PM
Your answer resides [HERE] (http://www.simplemachines.org/community/index.php?topic=246022.msg2477386#msg2477386).
Title: Re: Images On Board
Post by: Verso on November 11, 2010, 05:09:08 AM
Will this work on RC4?

Title: Re: Images On Board
Post by: C4G-TK on November 14, 2010, 09:33:11 PM
Quote from: Verso on November 11, 2010, 05:09:08 AM
Will this work on RC4?

Go to reply #711

I used that package and it installed and works fine on RC4
Title: Re: Images On Board
Post by: Verso on November 15, 2010, 06:21:13 AM
I tried that and get this:-

   
Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed
Title: Re: Images On Board
Post by: C4G-TK on November 15, 2010, 10:45:21 AM
Quote from: Verso on November 15, 2010, 06:21:13 AM
I tried that and get this:-

   
Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed

Do you have other mods installed?
Chances are one of the other mods changed a portion of that code by adding something.

If that was the only failed test, attach your ManageBoards.template.php file and I'll edit it for you if you don't know how to edit it.
Title: Re: Images On Board
Post by: Verso on November 15, 2010, 10:54:05 AM
Yeah I've just installed a fresh forum RC4 and have not installed anything yet..........

I will upload ManageBoards.template.php in about an hour as I can't do it from work due to restrictions etc.........

Title: Re: Images On Board
Post by: C4G-TK on November 15, 2010, 11:12:43 AM
Are you using a custom theme?

If you have no mods on it, yet.. and are using one of the themes included in the RC4 download, I can just attach the ManageBoards.template here and you can upload it to your forum and then install the mod and ignore the failed test.

Just let me know what theme.
Title: Re: Images On Board
Post by: Verso on November 15, 2010, 12:42:24 PM
The theme is FUZZY by http://voythas.com/


I have included the file as well
Title: Re: Images On Board
Post by: C4G-TK on November 15, 2010, 12:50:41 PM
It's a simple error for that edit.

It is looking for:
<textarea name="desc" rows="3" cols="35" style="width: 100%">', $context['board']['description'], '</textarea>

But your file has:
<textarea name="desc" rows="3" cols="35" style="width: 99%">', $context['board']['description'], '</textarea>

So, the test fails.

I just searched for the first part of that line up to cols and easily found where to put the info.



Here you go.
Title: Re: Images On Board
Post by: Verso on November 15, 2010, 12:53:51 PM
Thank you.........
Title: Re: Images On Board
Post by: C4G-TK on November 15, 2010, 12:54:52 PM
No problem.
This is a great mod and I'm glad to help when I can. (if I can)
Title: Re: Images On Board
Post by: Verso on November 16, 2010, 05:21:25 AM
I have now installed this:- http://www.thesportsforum.co.uk/index.php

My forum isn't "live" as yet but I do have data in it from my old forum..............

Feedback appreciated

Title: Re: Images On Board
Post by: sandmannd on December 08, 2010, 08:21:34 PM
If someone could please help it would be much appreciated. I've had this installed on my site for quite a while and it works great on the main page. But I can't get images to show up on the child boards. Can anyone help me fix this? I've read through everything and just can't get it to work.

I'm running SMF 1.1.11 and Images On Board 2.0

I'm attaching my BoardIndex.template.php as well as the MessageIndex.template.php from my site.

Thanks in advance.
Title: Re: Images On Board
Post by: nivlac on December 23, 2010, 11:24:57 PM
C4G-TK,

I've used this mod for some time and upgraded from RC2 to RC4. I tried installing the version you suggested and got the same error that Verso got.

QuoteExecute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed

I found the entry and, based on your comments, changed 99% to 100% and the install no longer shows an error there. Now it shows an error in the core files listed below:

QuoteCore Theme 
   Execute Modification ./Themes/core/Settings.template.php Test successful
  1. Add After ./Themes/core/Settings.template.php Test successful

   Execute Modification ./Themes/core/BoardIndex.template.php Test failed
  1. Add After ./Themes/core/BoardIndex.template.php Test failed

   Execute Modification ./Themes/core/MessageIndex.template.php Test failed
  1. Add After ./Themes/core/MessageIndex.template.php Test failed
Any ideas as to what my be generating these errors?

Thanks...
Title: Re: Images On Board
Post by: C4G-TK on December 24, 2010, 02:39:51 PM
Attach and I'll check your ManageBoards.template
Title: Re: Images On Board
Post by: nivlac on December 24, 2010, 02:58:31 PM
Here it is.

Title: Re: Images On Board
Post by: C4G-TK on December 24, 2010, 10:40:23 PM
Sorry, I was in a bit of a rush when I replied, but I'm finally done wrapping Xmas presents and have time before I pass out.  LOL

Let me make sure I got this straight.  How many failed tests did you have all together?

ManageBoards.template.php has a failed test
BoardIndex.template.php has a failed test
MessageIndex.php has a failed test

You probably have something installed already that is using the same code and replaced something.

Have you finished installing this mod?

Attach the BoardIndex.template.php and MessageIndex.template.php files.
Title: Re: Images On Board
Post by: nivlac on December 24, 2010, 10:59:18 PM
Well, I'll bet you're happy that's over with. Merry Christmas, BTW.

When I first tried to install the mod, it generated the ManageBoards.template.php error. I went into that file, and based on the discussion in this thread, I edited it on the line indicated and changed the 99% to 100%, then tried to install again.

This time, it did not generate any ManageBoards.template.php errors, but instead generated core file (BoardIndex.template.php and MessageIndex.template.php) errors.

I was never able to sucessfully install the mod. My ManageBoards.template.php and BoardIndex.template.php files are attached.

Thanks...
Title: Re: Images On Board
Post by: C4G-TK on December 27, 2010, 01:25:44 PM
@Nivlac
Can you PM me a link to your site?

Are you using a custom theme at all?
Title: Re: Images On Board
Post by: sandmannd on December 27, 2010, 03:22:56 PM
Quote from: sandmannd on December 08, 2010, 08:21:34 PM
If someone could please help it would be much appreciated. I've had this installed on my site for quite a while and it works great on the main page. But I can't get images to show up on the child boards. Can anyone help me fix this? I've read through everything and just can't get it to work.

I'm running SMF 1.1.11 and Images On Board 2.0

I'm attaching my BoardIndex.template.php as well as the MessageIndex.template.php from my site.

Thanks in advance.

Can anyone give me help on this at all?
Title: Re: Images On Board
Post by: kingkingston on January 13, 2011, 12:21:57 PM
Will this mod be updated or has it been abandoned ?
Title: Re: Images On Board
Post by: XnIcRaM on February 02, 2011, 07:38:40 AM
Great Mod!

I translate it to polish-utf8
<file name="$languagedir/Modifications.polish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Wyłącz obrazki przy nazwach działów.';
$txt['board_image'] = 'Nazwa obrazka działu';
$txt['board_image_desc'] = 'razem z rozszerzeniem. (np. stop.png)';
$txt['board_img_link'] = 'Link przypisany do obrazka';
$txt['board_img_link_desc'] = 'pozostaw puste jeśli po kliknięciu ma przechodzić do działu';

$txt['upload_title'] = 'Pobierz obrazek';
$txt['select_files'] = 'Wybierz plik';
$txt['valid_file_types'] = 'Dozwolone typy plików';
$txt['invalid_file_extension'] = 'Niestety. <span style="color: #FF0000;">%s</span> posiada nieprawidłowe rozszerzenie. Pobieranie przerwane.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Pobieranie nieudane! Nieznany błąd.</span><br />';
$txt['file_too_big'] = 'Niestety. <span style="color: #FF0000;">%s</span> jest za duży. Pobieranie przerwane.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> nie można przenieść. Nieznany błąd.';
$txt['upload_successful'] = '<span style="color: blue;">Plik pobrany poprawnie.</span> - %s<br />';
$txt['file_exists'] = 'Niestyty. %s plik już istnieje. Zmień nazwę lub pobierz inny plik.<br/>';
$txt['maximum_allowed'] = 'Maksymalny rozmiar pliku dozwolony przez serwer to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajtów.<br />';
$txt['maximum_upload']  = 'Maksymalny rozmiar pliku jaki można pobrać to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajt(ów).<br /><br />';
]]></add>
</operation>
</file>



I also modified a pdx-dk 1.1.9v1 (1.1.5) (http://custom.simplemachines.org/themes/index.php?lemma=103) theme to work with "Images On Board" (it's for SMF 1.1.12)


<!-- Themes/pdx-dk119v1/languages/Modifications.polish.php -->
<file name="$boarddir/Themes/pdx-dk119v1/languages/Modifications.polish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Wyłącz obrazki przy nazwach działów.';
$txt['board_image'] = 'Nazwa obrazka działu';
$txt['board_image_desc'] = 'razem z rozszerzeniem. (np. stop.png)';
$txt['board_img_link'] = 'Link przypisany do obrazka';
$txt['board_img_link_desc'] = 'pozostaw puste jeśli po kliknięciu ma przechodzić do działu';

$txt['upload_title'] = 'Pobierz obrazek';
$txt['select_files'] = 'Wybierz plik';
$txt['valid_file_types'] = 'Dozwolone typy plików';
$txt['invalid_file_extension'] = 'Niestety. <span style="color: #FF0000;">%s</span> posiada nieprawidłowe rozszerzenie. Pobieranie przerwane.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Pobieranie nieudane! Nieznany błąd.</span><br />';
$txt['file_too_big'] = 'Niestety. <span style="color: #FF0000;">%s</span> jest za duży. Pobieranie przerwane.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> nie można przenieść. Nieznany błąd.';
$txt['upload_successful'] = '<span style="color: blue;">Plik pobrany poprawnie.</span> - %s<br />';
$txt['file_exists'] = 'Niestyty. %s plik już istnieje. Zmień nazwę lub pobierz inny plik.<br/>';
$txt['maximum_allowed'] = 'Maksymalny rozmiar pliku dozwolony przez serwer to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajtów.<br />';
$txt['maximum_upload']  = 'Maksymalny rozmiar pliku jaki można pobrać to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajt(ów).<br /><br />';
]]></add>
</operation>
</file>
<!-- Themes/pdx-dk119v1/Profile.template.php-->
<file name="$boarddir/Themes/pdx-dk119v1/Profile.template.php" error="skip">
<operation><!-- 1260 -->
<search position="replace"><![CDATA[<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>
</tr><tr>]]></search>
<add><![CDATA[<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>
</tr><tr>
<td colspan="2">
<input type="hidden" name="default_options[disable_iob]" value="0" />
<label for="disable_iob"><input type="checkbox" name="default_options[disable_iob]" id="disable_iob" value="1"', !empty($context['member']['options']['disable_iob']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['disable_iob'], '</label>
</td>
</tr><tr>]]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/Settings.template.php-->
<file name="$boarddir/Themes/pdx-dk119v1/Settings.template.php" error="skip">
<operation><!-- 54 -->
<search position="before"><![CDATA[array(
'id' => 'view_newest_first',
'label' => $txt['recent_posts_at_top'],
'default' => true,
),]]></search>
<add><![CDATA[
array(
'id' => 'disable_iob',
'label' => $txt['disable_iob'],
'default' => true,
),]]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/BoardIndex.template.php -->
<file name="$boarddir/Themes/pdx-dk119v1/BoardIndex.template.php" error="skip">
<operation><!-- 136 -->
<search position="replace"><![CDATA[echo '</a>
</td>
<td class="windowbg2">]]></search>
<add><![CDATA[echo '</a>
</td>
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo ']]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/MessageIndex.template.php -->
<file name="$boarddir/Themes/pdx-dk119v1/MessageIndex.template.php" error="skip">
<operation><!-- 36 -->
<search position="replace"><![CDATA[echo '</a>
</td>
<td class="windowbg2">]]></search>
<add><![CDATA[echo '</a>
</td>
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
echo '<div style="float:left; margin-right: 4px;">';
if (!empty($board['img_link']))
echo '<a href="', $board['img_link'], '" target="_blank"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['img_link'], '" />';
else
echo '<a href="', $board['href'], '" name="b', $board['id'], '"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="', $board['name'], '" />';
echo '</a></div>';
}

echo ']]></add>
</operation>
</file>


Title: Re: Images On Board
Post by: cor met snor on February 07, 2011, 05:37:08 AM
Hereby an dutch translation



// Images on board



$txt['board_image'] = 'Naam van de afbeelding voor dit board';
$txt['board_image_desc'] = 'Inclussief file extensie. (i.e. xx.gif)';
$txt['board_img_link'] = 'Link voor de bovenstaande afb.';
$txt['board_img_link_desc'] = '(o.a. http://www.simplemachines.org)';


// End // Images on board



great fun this Mod thanks
Title: Re: Images On Board
Post by: cor met snor on February 07, 2011, 06:10:29 AM

This is de complete code I believe


<file name="$languagedir/Modifications.dutch.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['disable_iob'] = 'Laat geen afbeeldingen zien op dit board.';
$txt['board_image'] = 'Naam van de afbeelding voor dit board:';
$txt['board_image_desc'] = 'Inclussief file extensie. (i.e. xx.gif or xx.png)';
$txt['board_img_link'] = 'Link voor de bovenstaande afbeelding.:';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';


$txt['upload_title'] = 'Upload Afbeeldingen';
$txt['select_files'] = 'Kies een File';
$txt['valid_file_types'] = 'Toegestane file types zijn';
$txt['invalid_file_extension'] = 'Excuses. <span style="color: #FF0000;">%s</span> had een verkeerde file extension. Upload afgebroken.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Upload mislukt! Onbekende fout.</span><br />';
$txt['file_too_big'] = 'Excuses. <span style="color: #FF0000;">%s</span> was te groot. Opladen afgebroken.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> kan niet verplaatsen. Onbekende fout.';
$txt['upload_successful'] = '<span style="color: blue;">File succesvol opgeladen. Dank U.</span> - %s<br />';
$txt['file_exists'] = 'Excuses. %s bestaat al. Probeer een ander bestand of herbenoem het bestand.<br/>';
$txt['maximum_allowed'] = 'Het maximum formaat toegestaan door de Host is <strong>%s</strong> kilobytes of <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'Het maximum formaat toegestaan om te laden is <strong>%s</strong> kilobytes of <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
      </operation>
   </file>
Title: Re: Images On Board
Post by: cor met snor on February 07, 2011, 08:15:44 AM
Must I uninstall version 1.1.  before installing 2.1 or can I just update the older version and have I to install all the images on the boards again

Title: Re: Images On Board
Post by: _Luke_ on March 09, 2011, 06:50:50 AM
I have version 2.0 rc5 smf how do I fit?
Title: Re: Images On Board
Post by: turtleautos on March 12, 2011, 01:29:56 PM
hi i could not get this to work with rc5 so i found a temp way round it


if you up load your images to a folder say "image"

image tiltle for this is "icon"

then modify the board and place before the board discription the following code

<IMG SRC="/image/icon.jpg" ALT="*">

will not work on the board title just discription as here www.r1-yzf1000.co.uk



Title: Re: Images On Board
Post by: hecho on April 27, 2011, 11:47:28 AM
fail installation on fresh SMF 2 RC 5!

Title: Re: Images On Board
Post by: Spoogs on April 27, 2011, 11:49:45 AM
Try this (http://www.simplemachines.org/community/index.php?msg=2530237) should require only 1 manual edit.
Title: Re: Images On Board
Post by: unformatted_ on May 23, 2011, 05:09:00 PM
Doesnt work on 2.0 rc3
Its available other mod like this that works on rc3?

thanks
Title: Re: Images On Board
Post by: C4G-TK on May 29, 2011, 08:49:23 PM
Quote from: unformatted_ on May 23, 2011, 05:09:00 PM
Doesnt work on 2.0 rc3
Its available other mod like this that works on rc3?

thanks

Do the same thing that was said in the post above yours.  I've used that same package on RC3, RC4, RC4 patch, and RC5.  You will probably just need to do the one manual edit in ManageBoards.template.php
Title: stupid question
Post by: srgsng25 on June 07, 2011, 01:12:19 AM
i think i messed up someplace i had to phase the code for 2.0 rc5 see screen shot see if you have a clue i am not very code friendly

have 2 question how do i have to image justify to the left of the title and kill the hyperlink
Title: Re: Images On Board
Post by: yakyakyak on June 07, 2011, 02:44:39 AM
This one works flawlessly on RC3

;)
Title: Re: Images On Board
Post by: razors edge on June 07, 2011, 08:29:52 AM
I get errors just like hecho does with his fresh install.

Running 2.0 rc5

Title: Re: Images On Board
Post by: yakyakyak on June 07, 2011, 11:49:15 AM
I can only say from experience of making many many forums that IOB is best installed as the first mod in the list of things to do and then i have never had problems albeit as i said this version was for RC3 not 5

:-X
Title: Re: Images On Board
Post by: bros on June 19, 2011, 07:22:53 PM
Trying to install it fresh on SMF 2 gold.

Get an error on step 8, Execute Modification ./Themes/default/ManageBoards.template.php
Title: Re: Images On Board
Post by: bhakti_dinar on June 22, 2011, 12:28:59 PM
I have tryed install boardimage2.0RC3 in my forum 2.0 RC3,
I edit some file & it was done
but in board appears 2 same image i entry from modify board.
please someone solve my problem..

Thanks
Title: Re: Images On Board
Post by: TheListener on June 22, 2011, 12:33:16 PM
Quote from: bros on June 19, 2011, 07:22:53 PM
Trying to install it fresh on SMF 2 gold.

Get an error on step 8, Execute Modification ./Themes/default/ManageBoards.template.php

What is the error? It helps if you tell what the error line says and paste the lines surrounding the error line into a post.
Title: Re: Images On Board
Post by: yakyakyak on June 22, 2011, 01:19:14 PM
Quote from: yakyakyak on June 07, 2011, 11:49:15 AM
I can only say from experience of making many many forums that IOB is best installed as the first mod in the list of things to do and then i have never had problems albeit as i said this version was for RC3 not 5

:-X

working fine for me on 2.0 with minor edits from parser
Title: Re: Images On Board
Post by: bros on June 27, 2011, 12:51:53 AM
Quote from: Brack1 on June 22, 2011, 12:33:16 PM
Quote from: bros on June 19, 2011, 07:22:53 PM
Trying to install it fresh on SMF 2 gold.

Get an error on step 8, Execute Modification ./Themes/default/ManageBoards.template.php

What is the error? It helps if you tell what the error line says and paste the lines surrounding the error line into a post.

Find:

<textarea name="desc" rows="3" cols="35" style="width: 100%">', $context['board']['description'], '</textarea>


Replace with:

<textarea name="desc" rows="3" cols="35" style="width: 100%">', $context['board']['description'], '</textarea>
</dd>
            <dt>
             <strong>', $txt['board_image'], ':</strong> <a href="', $scripturl, '?action=iobuploads" target="_blank"><img src="', $settings['default_images_url'], '/iobuploads.gif" alt="*" /></a><br />
             <span class="smalltext">', $txt['board_image_desc'], '</span><br />
            </dt>
            <dd>
             <input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
            </dd>
            <dt>
            <strong>', $txt['board_img_link'] , ':</strong><br />
            <span class="smalltext">',$txt['board_img_link_desc'], '</span><br />
            </dt>
        <dd>
        <input type="text" name="img_link" value="', $context['board']['img_link'], '" size="30" />


The thing it wants me to find is nowhere in manageboards.template.php
Title: Re: Images On Board
Post by: Spoogs on June 27, 2011, 01:01:26 AM
Instead of 100% look for 99%

Code (find) Select
<textarea name="desc" rows="3" cols="35" style="width: 99%">', $context['board']['description'], '</textarea>
Code (replace) Select
<textarea name="desc" rows="3" cols="35" style="width: 99%">', $context['board']['description'], '</textarea>
</dd>
            <dt>
             <strong>', $txt['board_image'], ':</strong> <a href="', $scripturl, '?action=iobuploads" target="_blank"><img src="', $settings['default_images_url'], '/iobuploads.gif" alt="*" /></a><br />
             <span class="smalltext">', $txt['board_image_desc'], '</span><br />
            </dt>
            <dd>
             <input type="text" name="img_filename" value="', $context['board']['image'], '" size="30" />
            </dd>
            <dt>
            <strong>', $txt['board_img_link'] , ':</strong><br />
            <span class="smalltext">',$txt['board_img_link_desc'], '</span><br />
            </dt>
        <dd>
        <input type="text" name="img_link" value="', $context['board']['img_link'], '" size="30" />
Title: Re: Images On Board
Post by: Spoogs on June 27, 2011, 01:05:04 AM
I guess I should have checked first.. apparently in change in 2.0 gold again so look for

<textarea name="desc" rows="3" cols="35" style="' . ($context['browser']['is_ie8'] ? 'width: 635px; max-width: 99%; min-width: 99%' : 'width: 99%') . ';">', $context['board']['description'], '</textarea>
Title: Re: Images On Board
Post by: Apochalypse on June 27, 2011, 07:23:43 AM
Quote from: yakyakyak on June 22, 2011, 01:19:14 PM
Quote from: yakyakyak on June 07, 2011, 11:49:15 AM
I can only say from experience of making many many forums that IOB is best installed as the first mod in the list of things to do and then i have never had problems albeit as i said this version was for RC3 not 5

:-X

working fine for me on 2.0 with minor edits from parser
Worked almost for me with 2.0 gold , had to manually change the line in ManageBoards.template.php since it's not the same origianlly with 2.0 gold.
However if you follow what spoogs said it will work, except that first line is different.

Then again, I get some minor issues with the layout that I'll have to see if I can work out.
It doesn't replace the original image that I hoped it did, but rather it added another one to the right.
Could be that I've misunderstood it sure, but yea. :)
Title: Re: Images On Board
Post by: computel on June 29, 2011, 10:57:50 PM
I got multiple errors on mine.


1. Replace ./Themes/default/ManageBoards.template.php Test failed
* 9. Execute Modification ./Themes/default/Profile.template.php Test failed
1. Replace ./Themes/default/Profile.template.php Test failed
* 10. Execute Modification ./Themes/default/Settings.template.php Test successful
* 11. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
1. Add After ./Themes/default/BoardIndex.template.php Test failed
* 12. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Add After ./Themes/default/MessageIndex.template.php Test failed
Title: Re: Images On Board
Post by: tamasir on July 01, 2011, 04:28:54 PM
SMF version 2.0
Images On Board version 2.1

/Themes/default/Profile.template.php    Test failed
SMF 1x version
Quote<label for="view_newest_first"><input type="checkbox" name="default_options[view_newest_first]" id="view_newest_first" value="1"', !empty($context['member']['options']['view_newest_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_posts_at_top'], '</label>
                        </td>
                               </tr>';
What shall I look for in the 2.0 versions?


/Themes/default/MessageIndex.template.php    Test failed
SMF 1x version
Quote<td class="windowbg2 info">
What shall I look for in the 2.0 versions?

Thanks...
tamasir~
Title: Re: Images On Board
Post by: nick03 on July 08, 2011, 08:20:43 PM
when will supported version 2.0?
Title: Re: Images On Board
Post by: Valguskera on July 22, 2011, 03:37:23 PM
Awsome mod.  :) Can someone help me getting  impulse2 theme working ?  ( SMF 2.0 )
http://custom.simplemachines.org/themes/index.php?lemma=2060

many thanks in advance   :)
Title: Re: Images On Board
Post by: Valguskera on July 25, 2011, 01:47:32 PM
Quote from: Valguskera on July 22, 2011, 03:37:23 PM
Awsome mod.  :) Can someone help me getting  impulse2 theme working ?  ( SMF 2.0 )
http://custom.simplemachines.org/themes/index.php?lemma=2060

many thanks in advance   :)

uh sorry, I meant can someone help me getting "Images On Board" mode working in impulse2 ?  ::)
Title: Re: Images On Board
Post by: rgecy on August 01, 2011, 02:07:36 AM
Any word if this mod is being updated for SMF 2.0 Gold?

Thanks,

Robert
Title: Re: Images On Board
Post by: kingkingston on August 03, 2011, 09:53:15 PM
not sure if this mod will be continued, brilliant mod anyway
Title: Re: Images On Board
Post by: Valguskera on August 04, 2011, 03:44:34 PM
may have some other similar mod, if anyone knows?
This mod could be put in next SMF relise, maybe someone would recommend SMF team?
Title: Re: Images On Board
Post by: rgecy on August 05, 2011, 10:04:46 PM
Yeah I love this mod!  It really added some style to the forum categories.

Does anyone know if the owner is still active at all?  I see in his profile he hasnt been on the forum since 2009.

Robert 
Title: Re: Images On Board
Post by: DeepBlueGXP on August 19, 2011, 11:01:52 AM
I really likes this feature on smf 1.14 and I want it to work on 2.0 Please see what else is wrong.  I'm an old programmer and I'm not up to speed on the database coding.

I attached is a updated install-2.x.xml with new parameters trying to get this install to work but I get this error now.  What else?

Table 'kpman_kp20110812.boards' doesn't exist
File: /home/kpman/public_html/forum2/Packages/temp/img_link2b.php
Line: 18


Line 18 of the above file is this
$smcFunc['db_add_column']('boards', $img_link);

*    8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed
*    9.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
      1.    Replace    ./Themes/default/Profile.template.php    Test failed
*    10.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
*    11.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add After    ./Themes/default/BoardIndex.template.php    Test failed
*    12.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test failed

Below is what I updated with the attached Install-2.x.xml

ManageBoards.template.php Section 8 Error: Fixed search and replace code

Profile.template.php.   Section 9 Error:
Search issue: looked for code ending in </td> and <tr>, where new 2.0 uses <li> and </li>
Search issue: looked for code matching class="check", where new 2.0 uses class="input_check"

Section 11 and 12 are the same codes for the BoardIndex.template.php and MessageIndex.template.php

search looks for <td class="windowbg2 info"> and it exists as this now <tr id="board_', $board['id'], '" class="windowbg2">
This was not the end of the program line anymore so for the add code to follow, the search needs to look for the below code and allowed the original code for add to follow this line $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';
Title: Re: Images On Board
Post by: maximus23 on August 19, 2011, 02:33:46 PM
Hi,

I have modified the "ImagesonBoards" for my personal use.
Use at your own risk.
Tested : Freshly installed SMF 2.0 and Curve Only.
I am not supporting the attached package.
Please !!! You should use the mod authors version once he updates it !!!
Title: Re: Images On Board
Post by: DeepBlueGXP on August 19, 2011, 03:29:04 PM
Thanks
Title: Re: Images On Board
Post by: rgecy on August 19, 2011, 10:57:14 PM
Maximus,

Wow!  Thanks so much!  Works great on 2.0 Gold.

The author to this mod has not even been on here for over a year.  Maybe you could request to take over the mod!

Robert
Title: Re: Images On Board
Post by: Loshmi on September 24, 2011, 05:30:16 AM
Thanks maximus23, works great also on SMF 2.0.1.
Title: Re: Images On Board
Post by: pumpituplive on October 09, 2011, 03:40:32 PM
maximus23 Thanks!!! your modification is very good, run in 2.0!
Title: Re: Images On Board
Post by: Dave J on October 15, 2011, 05:40:14 AM
Thanks very much maximus23 for updating this, it works for 2.0.1 with no errors.
Title: Re: Images On Board
Post by: marcoaureliocommodo on October 21, 2011, 12:56:01 PM
do this mod exist for Smf version 2.0.1?
if not, can you updates it?
thanks

ps: I've written this post for ask a question: I've tried to updates thi mod but unfortunately I failed


Title: Re: Images On Board
Post by: MaXiForum.cz on October 22, 2011, 06:13:51 AM
http://www.simplemachines.org/community/index.php?topic=246022.msg3140414#msg3140414 ;)
Title: Re: Images On Board
Post by: iPhoneDestek on October 23, 2011, 03:34:21 PM
This modification is not comfortable with smf 2.0.1. Is there an update to SMF 2.0.1?

last updated in 2009
Title: Re: Images On Board
Post by: maximus23 on October 23, 2011, 04:38:21 PM
Quote from: iPhoneDestek on October 23, 2011, 03:34:21 PM
This modification is not comfortable with smf 2.0.1. Is there an update to SMF 2.0.1?

last updated in 2009


Hello iPhoneDestek,

Take a look at http://www.simplemachines.org/community/index.php?topic=246022.msg3140414#msg3140414 (http://www.simplemachines.org/community/index.php?topic=246022.msg3140414#msg3140414)

:)
Title: Re: Images On Board
Post by: MaXiForum.cz on October 24, 2011, 10:18:02 AM
189 posts and he can´t search?!? :o ::)
One post before...  ;D :D ;)
Title: Re: Images On Board
Post by: imihandstand on November 13, 2011, 10:35:36 AM
Quote from: maximus23 on August 19, 2011, 02:33:46 PM
Hi,
I have modified the "ImagesonBoards" for my personal use.
Use at your own risk.
Tested : Freshly installed SMF 2.0 and Curve Only.
I am not supporting the attached package.
Please !!! You should use the mod authors version once he updates it !!!
I'm looking for something like this but unfortunately I can't download it - if I click on the "ImagesOnBoard_3.0.zip" to download it, I get just an "index.php" :S Could you help me please? Thank you very much!

EDIT: Oh, now it works - I had just to rename the "index.php" to a zip-file. Thank you very much for this mod!
Title: Re: Images On Board
Post by: marcoaureliocommodo on November 16, 2011, 01:01:49 PM
I tried SMF 2.0 that I had recommended, but not working ... you have something newer to 2.0.1 smf default theme?

ps: link to italian support? thanks
Title: Re: Images On Board
Post by: _sebas_ on December 03, 2011, 12:46:12 AM

I have a SMF 1.1.15

I want to get the icons of the boards in the recent list (in order to see which board member each topic)

I have placed the icons in other parts of the forum, but in the Recent.php (from Sources) something I do wrong

I added  "b.img_filename, b.img_link,"



// This part is the same for each query.
$select_clause = '
ms.subject AS firstSubject, ms.posterTime AS firstPosterTime, ms.ID_TOPIC, t.ID_BOARD, b.name AS bname, b.img_filename, b.img_link,
t.numReplies, t.numViews, ms.ID_MEMBER AS ID_FIRST_MEMBER, ml.ID_MEMBER AS ID_LAST_MEMBER,
ml.posterTime AS lastPosterTime, IFNULL(mems.realName, ms.posterName) AS firstPosterName,
IFNULL(meml.realName, ml.posterName) AS lastPosterName, ml.subject AS lastSubject,
ml.icon AS lastIcon, ms.icon AS firstIcon, t.ID_POLL, t.isSticky, t.locked, ml.modifiedTime AS lastModifiedTime,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from, LEFT(ml.body, 384) AS lastBody, LEFT(ms.body, 384) AS firstBody,
ml.smileysEnabled AS lastSmileys, ms.smileysEnabled AS firstSmileys, t.ID_FIRST_MSG, t.ID_LAST_MSG';



and in build array  "   'image' => $row['img_filename'],
            'img_link' => $row['img_link']


'subject' => $row['firstSubject'],
'pages' => $pages,
'replies' => $row['numReplies'],
'views' => $row['numViews'],
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bname'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bname'] . '</a>',
'image' => $row['img_filename'],
'img_link' => $row['img_link']



to obtain  $topic['board']['img_link']    for example

but I get nothing for   Recent.template.php

what is wrong ?

Any ideas?

Title: Re: Images On Board
Post by: Grayma11er on December 04, 2011, 04:35:58 PM
If you are having this problem (even with a fresh install of SMF 2.0.1):
QuoteDatabase Error


BLOB/TEXT column 'img_link' can't have a default value
File: C:\Websites\exforce\Packages\temp\img_link2b.php
Line: 29

Do NOT modify the file to remove the default value code else you get this when you attempt to add a new forum board:

Quote
Database Error

Field 'img_link' doesn't have a default value
File: C:\Websites\exforce\Sources\Subs-Boards.php
Line: 789

The appropriate fix is to use the modded 3.0 version of the file and edit my.ini in the mysql directory and remove this
STRICT_TRANS_TABLES,
from the line which typically reads:
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Works like a charm!
Title: Re: Images On Board
Post by: crustybum on December 08, 2011, 09:03:09 AM
Have it running beutiful on 1.1...but just cant get it to work on 2.0 RC5  too many errors...is there an update at all for this brilliant mod?
Title: Re: Images On Board
Post by: crustybum on December 12, 2011, 09:03:43 AM
Hi

Just tried the 3.00 version and got these errors, any ideas?


   1.    Execute Code    img_link2b.php    
   2.    Execute Code    img_filename2b.php    
*    3.    Execute Modification    ./index.php    Test successful
*    4.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
*    5.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test failed
      1.    Replace    ./Sources/Subs-BoardIndex.php    Test failed
      2.    Replace    ./Sources/Subs-BoardIndex.php    Test successful
*    6.    Execute Modification    ./Sources/Subs-MessageIndex.php    Test successful
*    7.    Execute Modification    ./Sources/ManageBoards.php    Test successful
*    8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Add After    ./Themes/default/ManageBoards.template.php    Test failed

*    9.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
*    10.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
Title: Re: Images On Board
Post by: Adrek on December 12, 2011, 09:11:22 AM
If you attach files that caused errors, maybe someone will write manual instruction for this files.. ;)

On clean SMF 2.0 package install without problems, and you should update your forum to latest version :P
Title: Re: Images On Board
Post by: crustybum on December 12, 2011, 09:35:16 AM
Its not a "clean" version as it as other mods...but it is the latest version, do you think there is a conflict?

mod list

   Share This Topic    
   Stop Forum Spam    
   audiblepm 1.5    2.0    
   Simple Audio Video Embedder    1.1.4    
   Users Online Today    1.6.0 RC1    
   SMF Articles    1.4    
   PM Sent Notification    1.0.5    
   Signature Image Rotator    2.1    
   SimpleAds    1.0.1    
   Default Avatar    2.1    
   Board-color-and-icons    1.1    
   Search Focus Dropdown    1.53    
   Google +1 Topics    1.0    
   Stop Spammer    2.3.9    
Title: Re: Images On Board
Post by: _sebas_ on December 14, 2011, 05:37:34 PM
please !
a little help about ?
http://www.simplemachines.org/community/index.php?topic=246022.msg3221274#msg3221274
?

I think the idea is very interesting:
  icon-boards, in the summary of Recent Post.

Gives a quick idea of which are of interest to visit.
Title: Re: Images On Board
Post by: JMantis on December 26, 2011, 03:10:52 PM
This looks like a great mod for my gaming forum.

Unfortunately I got the following errors when trying to install on SMF 2.0.2:
Quote
1.    Execute Code    img_link2b.php    
   2.    Execute Code    img_filename2b.php    
*    3.    Execute Modification    ./index.php    Test successful
*    4.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
*    5.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test successful
*    6.    Execute Modification    ./Sources/Subs-MessageIndex.php    Test successful
*    7.    Execute Modification    ./Sources/ManageBoards.php    Test successful
*    8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed
*    9.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
      1.    Replace    ./Themes/default/Profile.template.php    Test failed
*    10.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
*    11.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add After    ./Themes/default/BoardIndex.template.php    Test failed
*    12.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/default/MessageIndex.template.php    Test failed
   13.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Skipping file
   14.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Skipping file
   15.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Skipping file
   16.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Skipping file
   17.    Execute Modification    ./Themes/shinyblue2b3/BoardIndex.template.php    Skipping file
   18.    Execute Modification    ./Themes/shinyblue2b3/MessageIndex.template.php    Skipping file
*    19.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    20.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
   21.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
   22.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file
   23.    Execute Modification    ./Themes/default/languages/Who.greek-utf8.php    Skipping file
   24.    Execute Modification    ./Themes/default/languages/Modifications.greek-utf8.php    Skipping file
   25.    Extract Tree    ./Themes/default/images/ImagesOnBoard    
   26.    Extract File    ./Themes/default/images/iobuploads.gif    
   27.    Extract File    ./Themes/default/iobuploads.template.php    
   28.    Extract File    ./Sources/iobuploads.php

I'm running a custom theme, would it wise to continue the installation just to see if it works?
Title: Re: Images On Board
Post by: CKWT on February 23, 2012, 12:53:47 PM
Quote from: maximus23 on August 19, 2011, 02:33:46 PM
Hi,

I have modified the "ImagesonBoards" for my personal use.
Use at your own risk.
Tested : Freshly installed SMF 2.0 and Curve Only.
I am not supporting the attached package.
Please !!! You should use the mod authors version once he updates it !!!

IT WORKS!!!.. Thanks!
Title: Re: Images On Board
Post by: SilverKnight on March 10, 2012, 12:03:56 AM
Quote from: maximus23 on August 19, 2011, 02:33:46 PM
Hi,

I have modified the "ImagesonBoards" for my personal use.
Use at your own risk.
Tested : Freshly installed SMF 2.0 and Curve Only.
I am not supporting the attached package.
Please !!! You should use the mod authors version once he updates it !!!

That's for the upload, just tried it on 2.0 and all went well but anything i try to use for a image on the board fails to work. Oh well.
Title: Re: Images On Board
Post by: jennyc on April 22, 2012, 11:56:59 AM
Hello,

Please can someone help me with this mod? It looks like it'll be perfect and I've loaded it in and all the tests were successful but now I can't see how to edit it to add the pictures up.

please help, I really can't do code so going to have to be very slow and specific with me! lol
Title: Re: Images On Board
Post by: knowlsey on August 29, 2012, 12:46:59 PM
Quote from: maximus23 on August 19, 2011, 02:33:46 PM
Hi,

I have modified the "ImagesonBoards" for my personal use.
Use at your own risk.
Tested : Freshly installed SMF 2.0 and Curve Only.
I am not supporting the attached package.
Please !!! You should use the mod authors version once he updates it !!!

after much searching and only finding one mod (this one) and it was out of date and didnt work with 2.0.2, I decided to backup and give your modified version 3.0 ago, and it worked for both my templates that I use

so thumbs up from me for modding it
Title: Re: Images On Board
Post by: the_shadow on September 08, 2012, 06:50:11 PM
nothing for new smf????
Title: Re: Images On Board
Post by: TheListener on September 08, 2012, 06:56:00 PM
Quote from: the_shadow on September 08, 2012, 06:50:11 PM
nothing for new smf????

Have a look at reply 189.

Please remember to look through topics before posting.

:)
Title: Re: Images On Board
Post by: the_shadow on September 30, 2012, 05:00:42 AM
Quote from: Old Fossil on September 08, 2012, 06:56:00 PM
Quote from: the_shadow on September 08, 2012, 06:50:11 PM
nothing for new smf????

Have a look at reply 189.

Please remember to look through topics before posting.

:)

ther's some errors on the instalation and only on curve theme
Title: Re: Images On Board
Post by: siammongkol on October 19, 2012, 12:09:10 PM
This mods can not support in SMF 2.0.2

i just waiting for update....
Title: Re: Images On Board
Post by: Kimmen on November 20, 2012, 07:15:27 AM
Need also an update :)
Title: Re: Images On Board
Post by: WaveZtream on June 30, 2013, 11:15:41 AM
Someone should really take over this mod :/ Works fine with default theme but any moderna theme it wont work on. Sad such a nice mod :/
Title: Re: Images On Board
Post by: TheListener on June 30, 2013, 11:24:31 AM
Quote from: WaveZtream on June 30, 2013, 11:15:41 AM
Someone should really take over this mod :/ Works fine with default theme but any moderna theme it wont work on. Sad such a nice mod :/

Why won't it work?

Have a look at the cbi mod which is similar to this one.
Title: Re: Images On Board
Post by: WaveZtream on June 30, 2013, 11:59:41 AM
Hi

And thx

Board index code is different and that is maybe why it can't apply the code correctly.

And cbi isn't at all the same. The thing that made this mod good and easy was the extra options in the creation of a board where you could add any image whatever size and then link an url to it.

So you had something like this (icon)[board image]
                                                          (board title)
                                                          (board description)
Title: Re: Images On Board
Post by: MaryLouW on April 10, 2014, 06:43:56 PM
Is there any chance that you will be updating this mod for 2.0.7?  I used it for a long time in the old 1.x versions and my users really like it.  Now, I have to code the link to the image in the description and even though it works, I don't like doing it that way.
Title: Re: Images On Board
Post by: TheListener on April 10, 2014, 06:49:27 PM
@MaryLouW

Considering the mods author hasn't been around since 2009 an upgrade to 2.0.7 is highly unlikely.
Title: Re: Images On Board
Post by: MaryLouW on April 11, 2014, 03:46:13 AM
OH!  Well, that's a pretty reasonable assessment!  Thank you for your response, now I can uncross my fingers.  :)    Seems a lot of the nice ones are slowly fading away.
Title: Re: Images On Board
Post by: maximus23 on April 11, 2014, 04:02:47 AM
Hello,

Take a look at : http://www.simplemachines.org/community/index.php?topic=246022.msg3140414#msg3140414

It works perfect for me. Version 2.0 to 2.0.7.

:)
Title: Re: Images On Board
Post by: MaryLouW on April 11, 2014, 03:23:14 PM
Wow...  Thank you!!!!!   It worked...  perfectly!   Am so happy that someone was able to "save" this one!! 
Title: Re: Images On Board
Post by: MaryLouW on April 11, 2014, 03:25:15 PM
Thank you so much for updating this one!!   I just installed it on my  2.0.7 and it works perfectly!!!  I really appreciate you doing this.  Not a single error during the install.   :)
Title: Re: Images On Board
Post by: Westwegoman on April 12, 2014, 10:01:02 AM
Installed on 2.0.7 with 1 error. The error was due to another mod that I had installed. Edited that step manually and all is good.

Anybody know how and if it be hard to swap the image location with the on and off.png images?
Title: Re: Images On Board
Post by: CHRIS-7 on March 24, 2015, 06:42:56 PM
Hi , Friends

I Want To Put The Image Under Description

Like This

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs4.picofile.com%2Ffile%2F8178928818%2FSet_Picture_Under_Blue_Line.JPG&hash=2d54eaaca886eabb53f8ab9f70de08ba2609815f)

Under Blue Line

Can You Help Me , Because a Little Hard To Set

?Please
Title: Re: Images On Board
Post by: CHRIS-7 on March 25, 2015, 09:27:54 AM
Quote from: CHRIS-7 on March 24, 2015, 06:42:56 PM
Hi , Friends

I Want To Put The Image Under Description

Like This

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs4.picofile.com%2Ffile%2F8178928818%2FSet_Picture_Under_Blue_Line.JPG&hash=2d54eaaca886eabb53f8ab9f70de08ba2609815f)

Under Blue Line

Can You Help Me , Because a Little Hard To Set

?Please

Hey , Guys

I Did This

I Cut it And Replace Under Description

No , Need Help

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.uplooder.net%2Fimg%2Fimage%2F7%2Feda7d27b0e9314fdf4136266bcb104e2%2FImage_On_Board_3.0-BoardIndex.template.php.JPG&hash=4cbe59890423095cae57232c2aa694dbb19f3f0d)
Title: Re: Images On Board
Post by: villasg on June 07, 2015, 06:34:58 AM
Hi just update my smf 1.1.21 with Images On Board 2.1  to smf 2.0.10 .
I try to install again but i receive error in index.template.php .

Any help please ?
Title: Re: Images On Board
Post by: villasg on June 26, 2015, 06:13:12 AM
Finaly work great with this help : http://www.simplemachines.org/community/index.php?topic=246022.msg3140414#msg3140414

Thanks @maximus23
Title: Re: Images On Board
Post by: yakyakyak on June 26, 2015, 09:39:19 AM
IOB v3.00 works sweet on SMF 2.0.9

Minor copy and paste needed for non package Themes

Thanks for your effort.
Title: Re: Images On Board
Post by: MULITRI on February 28, 2017, 02:11:22 PM
Just to everybody let know, ths wonderful Mod it cannot be installed in v2.0.13 as is, many errors even installing it manualy and parts of the code are different but editables.

For thos like me not experienced with coding, better to wait for someone who creates from scratch a similar Mod, is what i was looking for to get the board info i wanted layered, but i have to give up... for now, until a caritative soul can code a similar Mod.

Thanks to the Author anyway, and thanks to those who tried to help others getting this Mod working.
Title: Re: Images On Board
Post by: br360 on February 28, 2017, 02:56:30 PM
This one will work on 2.0.13- http://custom.simplemachines.org/mods/index.php?mod=4107
Title: Re: Images On Board
Post by: MULITRI on February 28, 2017, 06:34:42 PM
Thanks br360, but that's a different Mod, which i already got installed. That Mod add posterer avatar close to topic title and last reply title.

Thanks for your help anyway, Regards.
Title: Re: Images On Board
Post by: br360 on February 28, 2017, 07:02:24 PM
Oops, I looked quickly and thought this was his last avatar mod. There isn't really anything exactly like this but these may be close; and should install on your version-

http://custom.simplemachines.org/mods/index.php?mod=3604
http://custom.simplemachines.org/mods/index.php?mod=511
http://custom.simplemachines.org/mods/index.php?mod=3023

Title: Re: Images On Board
Post by: MULITRI on March 01, 2017, 11:27:02 AM
Thanks br360, i knew the first two Mods you have posted, however both don't work like i need, because both replace the "new/no-new" icon for an icon i choose, and that option already comes with v2.0.13

The third Mod it's a bit close to what i need, ths icon will not be placed where i need, and it force the size, maybe i will play with that Mod's code.

How it looks the new/no-new icon and my icon it's how it looks the topics list into a Category. So i will try to play with the third Mod and how it's coded that part of MessageIndex-template.

It's a shame that this "Images On Board" mod it's abandoned....Thanks for your time br360 :)
Title: Re: Images On Board
Post by: W7 riso on July 04, 2021, 02:48:21 PM
Hi all

I'm looking since days to find ImagesOnBoard_3.0.zip so if anyone still has the file let me pls know.

My Forum on version 2.0.18 won't run Images On Board any longer so I need help.

I have tried version 2.0 | 2.1 | 2.2 to no avail

Riso
Title: Re: Images On Board
Post by: Steve on July 04, 2021, 06:34:00 PM
As the mod author hasn't been here in 12 years I wouldn't hold out any hope for it to be updated.

You may want to look at this though:

How to add image next to description (https://www.simplemachines.org/community/index.php?topic=539000.0)
Title: Re: Images On Board
Post by: YogiBear on September 14, 2021, 04:24:22 PM
Bulakbol (Johnny) left to join the US army but no one took over the mod. Thanks for the link Steve.