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

C4G-TK

Quote from: Verso on November 11, 2010, 05:09:08 AM
Will this work on RC4?

Go to reply #711

I used that package and it installed and works fine on RC4

-img removed-

Verso

I tried that and get this:-

   
Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed

C4G-TK

Quote from: Verso on November 15, 2010, 06:21:13 AM
I tried that and get this:-

   
Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed

Do you have other mods installed?
Chances are one of the other mods changed a portion of that code by adding something.

If that was the only failed test, attach your ManageBoards.template.php file and I'll edit it for you if you don't know how to edit it.

-img removed-

Verso

Yeah I've just installed a fresh forum RC4 and have not installed anything yet..........

I will upload ManageBoards.template.php in about an hour as I can't do it from work due to restrictions etc.........


C4G-TK

Are you using a custom theme?

If you have no mods on it, yet.. and are using one of the themes included in the RC4 download, I can just attach the ManageBoards.template here and you can upload it to your forum and then install the mod and ignore the failed test.

Just let me know what theme.

-img removed-

Verso

The theme is FUZZY by http://voythas.com/


I have included the file as well

C4G-TK

#766
It's a simple error for that edit.

It is looking for:
<textarea name="desc" rows="3" cols="35" style="width: 100%">', $context['board']['description'], '</textarea>

But your file has:
<textarea name="desc" rows="3" cols="35" style="width: 99%">', $context['board']['description'], '</textarea>

So, the test fails.

I just searched for the first part of that line up to cols and easily found where to put the info.



Here you go.

-img removed-

Verso


C4G-TK

No problem.
This is a great mod and I'm glad to help when I can. (if I can)

-img removed-

Verso

I have now installed this:- http://www.thesportsforum.co.uk/index.php

My forum isn't "live" as yet but I do have data in it from my old forum..............

Feedback appreciated


sandmannd

If someone could please help it would be much appreciated. I've had this installed on my site for quite a while and it works great on the main page. But I can't get images to show up on the child boards. Can anyone help me fix this? I've read through everything and just can't get it to work.

I'm running SMF 1.1.11 and Images On Board 2.0

I'm attaching my BoardIndex.template.php as well as the MessageIndex.template.php from my site.

Thanks in advance.

nivlac

C4G-TK,

I've used this mod for some time and upgraded from RC2 to RC4. I tried installing the version you suggested and got the same error that Verso got.

QuoteExecute Modification    ./Themes/default/ManageBoards.template.php    Test failed
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test failed

I found the entry and, based on your comments, changed 99% to 100% and the install no longer shows an error there. Now it shows an error in the core files listed below:

QuoteCore Theme 
   Execute Modification ./Themes/core/Settings.template.php Test successful
  1. Add After ./Themes/core/Settings.template.php Test successful

   Execute Modification ./Themes/core/BoardIndex.template.php Test failed
  1. Add After ./Themes/core/BoardIndex.template.php Test failed

   Execute Modification ./Themes/core/MessageIndex.template.php Test failed
  1. Add After ./Themes/core/MessageIndex.template.php Test failed
Any ideas as to what my be generating these errors?

Thanks...

C4G-TK

Attach and I'll check your ManageBoards.template

-img removed-

nivlac


C4G-TK

Sorry, I was in a bit of a rush when I replied, but I'm finally done wrapping Xmas presents and have time before I pass out.  LOL

Let me make sure I got this straight.  How many failed tests did you have all together?

ManageBoards.template.php has a failed test
BoardIndex.template.php has a failed test
MessageIndex.php has a failed test

You probably have something installed already that is using the same code and replaced something.

Have you finished installing this mod?

Attach the BoardIndex.template.php and MessageIndex.template.php files.

-img removed-

nivlac

Well, I'll bet you're happy that's over with. Merry Christmas, BTW.

When I first tried to install the mod, it generated the ManageBoards.template.php error. I went into that file, and based on the discussion in this thread, I edited it on the line indicated and changed the 99% to 100%, then tried to install again.

This time, it did not generate any ManageBoards.template.php errors, but instead generated core file (BoardIndex.template.php and MessageIndex.template.php) errors.

I was never able to sucessfully install the mod. My ManageBoards.template.php and BoardIndex.template.php files are attached.

Thanks...

C4G-TK

@Nivlac
Can you PM me a link to your site?

Are you using a custom theme at all?

-img removed-

sandmannd

Quote from: sandmannd on December 08, 2010, 08:21:34 PM
If someone could please help it would be much appreciated. I've had this installed on my site for quite a while and it works great on the main page. But I can't get images to show up on the child boards. Can anyone help me fix this? I've read through everything and just can't get it to work.

I'm running SMF 1.1.11 and Images On Board 2.0

I'm attaching my BoardIndex.template.php as well as the MessageIndex.template.php from my site.

Thanks in advance.

Can anyone give me help on this at all?

kingkingston

Will this mod be updated or has it been abandoned ?

XnIcRaM

Great Mod!

I translate it to polish-utf8
<file name="$languagedir/Modifications.polish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Wyłącz obrazki przy nazwach działów.';
$txt['board_image'] = 'Nazwa obrazka działu';
$txt['board_image_desc'] = 'razem z rozszerzeniem. (np. stop.png)';
$txt['board_img_link'] = 'Link przypisany do obrazka';
$txt['board_img_link_desc'] = 'pozostaw puste jeśli po kliknięciu ma przechodzić do działu';

$txt['upload_title'] = 'Pobierz obrazek';
$txt['select_files'] = 'Wybierz plik';
$txt['valid_file_types'] = 'Dozwolone typy plików';
$txt['invalid_file_extension'] = 'Niestety. <span style="color: #FF0000;">%s</span> posiada nieprawidłowe rozszerzenie. Pobieranie przerwane.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Pobieranie nieudane! Nieznany błąd.</span><br />';
$txt['file_too_big'] = 'Niestety. <span style="color: #FF0000;">%s</span> jest za duży. Pobieranie przerwane.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> nie można przenieść. Nieznany błąd.';
$txt['upload_successful'] = '<span style="color: blue;">Plik pobrany poprawnie.</span> - %s<br />';
$txt['file_exists'] = 'Niestyty. %s plik już istnieje. Zmień nazwę lub pobierz inny plik.<br/>';
$txt['maximum_allowed'] = 'Maksymalny rozmiar pliku dozwolony przez serwer to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajtów.<br />';
$txt['maximum_upload']  = 'Maksymalny rozmiar pliku jaki można pobrać to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajt(ów).<br /><br />';
]]></add>
</operation>
</file>



I also modified a pdx-dk 1.1.9v1 (1.1.5) theme to work with "Images On Board" (it's for SMF 1.1.12)


<!-- Themes/pdx-dk119v1/languages/Modifications.polish.php -->
<file name="$boarddir/Themes/pdx-dk119v1/languages/Modifications.polish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Wyłącz obrazki przy nazwach działów.';
$txt['board_image'] = 'Nazwa obrazka działu';
$txt['board_image_desc'] = 'razem z rozszerzeniem. (np. stop.png)';
$txt['board_img_link'] = 'Link przypisany do obrazka';
$txt['board_img_link_desc'] = 'pozostaw puste jeśli po kliknięciu ma przechodzić do działu';

$txt['upload_title'] = 'Pobierz obrazek';
$txt['select_files'] = 'Wybierz plik';
$txt['valid_file_types'] = 'Dozwolone typy plików';
$txt['invalid_file_extension'] = 'Niestety. <span style="color: #FF0000;">%s</span> posiada nieprawidłowe rozszerzenie. Pobieranie przerwane.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Pobieranie nieudane! Nieznany błąd.</span><br />';
$txt['file_too_big'] = 'Niestety. <span style="color: #FF0000;">%s</span> jest za duży. Pobieranie przerwane.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> nie można przenieść. Nieznany błąd.';
$txt['upload_successful'] = '<span style="color: blue;">Plik pobrany poprawnie.</span> - %s<br />';
$txt['file_exists'] = 'Niestyty. %s plik już istnieje. Zmień nazwę lub pobierz inny plik.<br/>';
$txt['maximum_allowed'] = 'Maksymalny rozmiar pliku dozwolony przez serwer to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajtów.<br />';
$txt['maximum_upload']  = 'Maksymalny rozmiar pliku jaki można pobrać to: <strong>%s</strong> kilobajtów lub <strong>%d</strong> megabajt(ów).<br /><br />';
]]></add>
</operation>
</file>
<!-- Themes/pdx-dk119v1/Profile.template.php-->
<file name="$boarddir/Themes/pdx-dk119v1/Profile.template.php" error="skip">
<operation><!-- 1260 -->
<search position="replace"><![CDATA[<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>
</tr><tr>]]></search>
<add><![CDATA[<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>
</tr><tr>
<td colspan="2">
<input type="hidden" name="default_options[disable_iob]" value="0" />
<label for="disable_iob"><input type="checkbox" name="default_options[disable_iob]" id="disable_iob" value="1"', !empty($context['member']['options']['disable_iob']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['disable_iob'], '</label>
</td>
</tr><tr>]]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/Settings.template.php-->
<file name="$boarddir/Themes/pdx-dk119v1/Settings.template.php" error="skip">
<operation><!-- 54 -->
<search position="before"><![CDATA[array(
'id' => 'view_newest_first',
'label' => $txt['recent_posts_at_top'],
'default' => true,
),]]></search>
<add><![CDATA[
array(
'id' => 'disable_iob',
'label' => $txt['disable_iob'],
'default' => true,
),]]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/BoardIndex.template.php -->
<file name="$boarddir/Themes/pdx-dk119v1/BoardIndex.template.php" error="skip">
<operation><!-- 136 -->
<search position="replace"><![CDATA[echo '</a>
</td>
<td class="windowbg2">]]></search>
<add><![CDATA[echo '</a>
</td>
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
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 ']]></add>
</operation>
</file>

<!-- Themes/pdx-dk119v1/MessageIndex.template.php -->
<file name="$boarddir/Themes/pdx-dk119v1/MessageIndex.template.php" error="skip">
<operation><!-- 36 -->
<search position="replace"><![CDATA[echo '</a>
</td>
<td class="windowbg2">]]></search>
<add><![CDATA[echo '</a>
</td>
<td class="windowbg2">';

if (!empty($board['image']) && empty($options['disable_iob']))
{
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 ']]></add>
</operation>
</file>



Advertisement: