News:

Wondering if this will always be free?  See why free is better.

Main Menu

Images On Board

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

Previous topic - Next topic

NukeGaming

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.


davieb

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

davieb

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

keru.x3

#403
i have... or use Cargo by DzinerStudio... How do you coax it it in that theme?? plisss ^_^  O:)


Bulakbol

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

davieb

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>

Bulakbol

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

Bass_Chaz

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

romper

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:

Bulakbol

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

SilverKnight

I get errors when trying to install it on 1.1.7  :'(

davieb

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  :'(

thomaspp

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.

romper

Crap, haven't even realized...here it is:

Pwn Kyuubi

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

Burke ♞ Knight

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

Bulakbol

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

davieb

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.

romper

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!

Bulakbol

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

Advertisement: