News:

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

Main Menu

Images On Board

Started by Bulakbol, June 23, 2008, 05:19:47 PM

Previous topic - Next topic

apa yak??

yes, i think.. this is my printed screen when i install the mod..
still don't know what to do.. :'(

Bulakbol

Go ahead with the installation and use this BoardIndex.template.php that I attached. Use this file after the installation and not before.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

apa yak??

#102
it works!!!!!

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

bravo!!!

but, why it doesn't work on childboard??

chrisb

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

Bulakbol

@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/
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Neipol

Good mod. Very Thanks :P

Bulakbol

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

Kimmen

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

PocketChange

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!  :)

PocketChange

#109
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! :'(

Bulakbol

@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'];


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

PocketChange

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)

pheasant_plucker

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

mitochondria

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  :-[

;)

pheasant_plucker

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

Bulakbol

@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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

pheasant_plucker

#116
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

Bulakbol

#117
Thanks. That's the way I did it. :) The update is ready. I will uplad it now.

EDIT:
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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

mitochondria

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...  :)

Bulakbol

Here's your file. Use this before you install the mod. Let me know how it goes.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: