Images On Board

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

Previous topic - Next topic

Bulakbol

#220
@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.

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

klra

Great mod, installed and worked just great on 1.1.6.

Does anyone have a source of free buttons ?

Thanks

I AM Legend

Thats Awesome, worked a treat.
Thanks JohnyB

0000000

#223
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..

SlipperyDuck

Jonny - you legend - works well - you really support your mod - Big ups to you mate!

klra

Disregard, I ended up making my own images.

http://klrworld.com/forums/

Bulakbol

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

HappyChinchilla

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~

Bulakbol

@HappyChinchilla
Attach your BoardIndex.template.php and I'll look at it or edit it for you.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

HappyChinchilla

Hi JohnyB,

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

Thanks~

MothMan

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    

Bulakbol

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

MothMan

Thanks JohnyB, that worked.

Radioime

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

Bulakbol

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

HappyChinchilla

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.

MultiformeIngegno

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! :)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Lamarck

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.

Bulakbol

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

HappyChinchilla

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.

Advertisement: