Images On Board

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

Previous topic - Next topic

Verso

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?

romper

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!

romper

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?

Verso

As you can see two places for images............


Frelo21

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

computel

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

Bulakbol

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

Verso

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

MaXiForum.cz

Yes Bulakbol is real Simple Machines Hero :-)

Bulakbol

@Verso
Good to hear. Nice site btw.

@MaxiPes
LOL. Thanks for the compliment though.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

dzinerfusion

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

sandmannd

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.

Bulakbol

#552
@bluesinjid
Try these edited files. I haven't tested them but I think they are ok.

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

Bulakbol

@sandmannd
Sorry, I think I mislooked the error. Try this one instead.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

sandmannd

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.

RPro1975

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
RPro's Roulette Forum - www.rprosrouletteforum.com

RPro1975

I tried everything.  I can't do it.  I'm getting close to throwing in the towel.  Please help.
RPro's Roulette Forum - www.rprosrouletteforum.com

Bulakbol

@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'], '" />';
}

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

sandmannd

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)



Here's how my child boards look.



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


Bulakbol

Do you want the description on top of the image too? I'll look at the code again for you.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: