Images On Board

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

Previous topic - Next topic

chefjohnnie

the image dose not show i have tried it a couple difrent way cant fig it out
i get no error just wont show

C4G-TK

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.




-img removed-

chefjohnnie

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

C4G-TK

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


-img removed-

chefjohnnie

perfect that worked but is there a way to center the pic or prevent wraping of the description text
thanks again

Bulakbol

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

dzinerfusion

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??

Bulakbol

@bluesinjid
Sorry, I edited so many files and I can't remember everything. In fact, not even one.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

chefjohnnie

 
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

Bulakbol

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

SilvioTO

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

SilvioTO

Reading description of the mod seems the italian language is supported: http://custom.simplemachines.org/mods/index.php?mod=1266

SilvioTO

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

Bulakbol

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

Hassan_the best

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


Mayhem30

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?

Bulakbol

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

Mayhem30

Not a problem at all. Thanks for the heads up!

MyOwnInsanity

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

Iviiik

Hi, could you modify your mod for BlackRainV2 theme ? Needed files in attachement. Thank You

Advertisement: