News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Images On Board

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

Previous topic - Next topic

nina-nina

Would this mod work for the premium theme 'Callisto'?.  If not, is there anyway to make it work on this theme?

Tezca

Hi, there are my translations of $txt strings to Latin American Spanish

./Themes/default/languages/Who.spanish_latin.php

$txt['whoall_uploads'] = 'Viendo &iacute;ndice de <a href="'. $scripturl. '?action=uploads">Carga</a> para modificaci&oacute;n ImagesOnBoard.';


./Themes/default/languages/Who.spanish_latin-utf8.php

$txt['whoall_uploads'] = 'Viendo índice de <a href="'. $scripturl. '?action=uploads">Carga</a> para modificación ImagesOnBoard.';


./Themes/default/languages/Modifications.spanish_latin.php

$txt['disable_iob'] = 'No mostrar im&aacute;genes en foro.';
$txt['board_image'] = 'Nombre de imagen para este foro';
$txt['board_image_desc'] = 'Incluir extensi&oacute;n de archivo. (ej. stop.png)';
$txt['board_img_link'] = 'Enlace para la imagen de arriba';
$txt['board_img_link_desc'] = '(ej. http://www.simplemachines.org)';

$txt['upload_title'] = 'Cargar Imagen';
$txt['select_files'] = 'Seleccionar un archivo';
$txt['valid_file_types'] = 'Tipos de archivo v&aacute;lidos';
$txt['invalid_file_extension'] = 'Disculpas. <span style="color: #FF0000;">%s</span> tuvo una extensi&oacute;n de archivo inv&aacute;lida. Carga abortada.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">&iexcl;Fall&oacute; la carga! Error desconocido.</span><br />';
$txt['file_too_big'] = 'Disculpas. <span style="color: #FF0000;">%s</span> estaba demasiado grande. Carga abortada.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> no se puede mover. Error desconocido.';
$txt['upload_successful'] = '<span style="color: blue;">Archivo cargado satifactoriamente. Gracias.</span> - %s<br />';
$txt['file_exists'] = 'Disculpas. %s ya existe. Renombra el archivo o intenta con otro.<br/>';
$txt['maximum_allowed'] = 'El tama&ntilde;o m&aacute;ximo permitido por el servidor es <strong>%s</strong> kilobytes o <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'El tama&ntilde;o m&aacute;ximo permitido a cargar es <strong>%s</strong> kilobytes o <strong>%d</strong> megabyte(s).<br /><br />';


./Themes/default/languages/Modifications.spanish_latin-utf8.php
$txt['disable_iob'] = 'No mostrar imágenes en foro.';
$txt['board_image'] = 'Nombre de imagen para este foro';
$txt['board_image_desc'] = 'Incluir extensión de archivo. (ej. stop.png)';
$txt['board_img_link'] = 'Enlace para la imagen de arriba';
$txt['board_img_link_desc'] = '(ej. http://www.simplemachines.org)';

$txt['upload_title'] = 'Cargar Imagen';
$txt['select_files'] = 'Seleccionar un archivo';
$txt['valid_file_types'] = 'Tipos de archivo válidos';
$txt['invalid_file_extension'] = 'Disculpas. <span style="color: #FF0000;">%s</span> tuvo una extensión de archivo inválida. Carga abortada.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">¡Falló la carga! Error desconocido.</span><br />';
$txt['file_too_big'] = 'Disculpas. <span style="color: #FF0000;">%s</span> estaba demasiado grande. Carga abortada.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> no se puede mover. Error desconocido.';
$txt['upload_successful'] = '<span style="color: blue;">Archivo cargado satifactoriamente. Gracias.</span> - %s<br />';
$txt['file_exists'] = 'Disculpas. %s ya existe. Renombra el archivo o intenta con otro.<br/>';
$txt['maximum_allowed'] = 'El tamaño máximo permitido por el servidor es <strong>%s</strong> kilobytes o <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'El tamaño máximo permitido a cargar es <strong>%s</strong> kilobytes o <strong>%d</strong> megabyte(s).<br /><br />';

Bulakbol

#602
@evolva
I have your files. I'll get back to you after I finish editing them.

@nina-nina
If you will give the link of your custom theme, I can check it for you and tell you how to edit it manually.

@Tezca
Thanks a bunch. I will add the translation to the next update.


<edit>
@evolva
Attached are your files. Use them after installation. Let me lnow how things goes.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

akbora

Unfortunateliy I can not upload images to /ImagesOnBoard. I cannot manage it. İmpossible 777 again happens to 655.

I renamed ImagesOnBoard folder to: qwdlekjwldjwlkdj

I have created a new folder /ImagesOnBoard. I could upload new images...

This is why? Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Bulakbol

@akbora
The file permission is probably incorrect. Good to hear you are okay now.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

villasg

#605
Hi
I use smf 1.1.9 with th older version 1.1 of mod
I upload the new pakage 2.1 but i dont see ( upgrade )
How can i upgrade my forum to new version ?

Anyway greek-utf8

<!-- default/languages/Modifications.greek-utf8.php -->
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['disable_iob'] = 'Μην εμφανιζεις εικονες on board.';
$txt['board_image'] = 'Το ονομα της εικονας για αυτο το board';
$txt['board_image_desc'] = 'Να υπαρχει και η καταληξη αρχειου. (i.e. stop.png)';
$txt['board_img_link'] = 'Το Link για την παραπανω εικονα';
$txt['board_img_link_desc'] = '(i.e. http://www.simplemachines.org)';

$txt['upload_title'] = 'Upload εικονες';
$txt['select_files'] = 'Διαλεξε ενα αρχειο';
$txt['valid_file_types'] = 'Valid file types are';
$txt['invalid_file_extension'] = 'ΣΥΓΝΩΜΗ. <span style="color: #FF0000;">%s</span> λαθος καταληξη αρχειου. Upload aborted.<br />';
$txt['upload_failed'] = '<span style="color: #FF0000;">Upload failed! Αγνωστο λαθος.</span><br />';
$txt['file_too_big'] = 'ΣΥΓΝΩΜΗ. <span style="color: #FF0000;">%s</span> ειναι πολυ μεγαλη. Upload aborted.<br/>';
$txt['file_cannot_move'] = '<span style="color: #FF0000;">%s</span> cannot move. Αγνωστο λαθος.';
$txt['upload_successful'] = '<span style="color: blue;">Το αρχειο ανεβηκε σωστα. Ευχαριστω.</span> - %s<br />';
$txt['file_exists'] = 'ΣΥΓΝΩΜΗ. %s υπαρχει ηδη. Δοκιμασε αλλο αρχειο η αλλαξε ονομασια σε αυτο.<br/>';
$txt['maximum_allowed'] = 'Το μεγιστο μεγεθος που επιτρεπεται απο τον host ειναι <strong>%s</strong> kilobytes or <strong>%d</strong> megabytes.<br />';
$txt['maximum_upload']  = 'Το μεγιστο μεγεθος αρχειου που επιτρεπεται να ανεβει ειναι <strong>%s</strong> kilobytes or <strong>%d</strong> megabyte(s).<br /><br />';
]]></add>
</operation>
</file>

flakers

#606
could you modify your mod for More Style Multicolor?

http://custom.simplemachines.org/themes/index.php?lemma=1000

p.s. sweet and great mod :D



Thanks so much!!!!!! :D

Bulakbol

@villasg
Sorry but the version 2.1 is not an upgrade. You have to uninstall the old one then install 2.1 version. If you want the upgrade version, grab version 2.0. Thanks for the language translation however, I need translation for the Who.english.php as well. Can you translate that too please.


@flakers
Edit your morestyle/BoardIndex.template.php and morestyle/MessageIndex.template.php manually.

morestyle/BoardIndex.template.php
Code (find) Select
echo '</a>
</td>
<td class="windowbg4" >

Code (replace) Select
echo '</a>
</td>
<td class="windowbg4" >';
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 '


morestyle/MessageIndex.template.php
Code (find) Select
echo '</a>
</td>
<td class="windowbg2">

Code (replace) Select
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 '

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

villasg

Quote from: Bulakbol on July 07, 2009, 10:36:16 PM
@villasg
however, I need translation for the Who.english.php as well. Can you translate that too please.

$txt['whoall_uploads'] = 'Προβαλε <a href="'. $scripturl. '?action=uploads">τα ανεβασμενα</a>αρχεια για το ImagesOnBoard mod.';

Bulakbol

Thanks villasg. I will update the package now with the language translation.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

nina-nina

I have this mod in my forum and I know is well installed and should work. what I would like to know is if there is a step-by-step tutorial on how to put the images in the place or board I want. It is a little confusing for me.

Bulakbol

Quote from: nina-nina on July 17, 2009, 06:36:38 PM
I have this mod in my forum and I know is well installed and should work. what I would like to know is if there is a step-by-step tutorial on how to put the images in the place or board I want. It is a little confusing for me.
They said, picture paints a thousand words so how about this image?
http://custom.simplemachines.org/mods/index.php?action=download;mod=1266;id=62867;image
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

nina-nina

Yes, that helped some.. but I still need more explanation (if you don't mind   ;))

What is this?  See below.  It is for me to upload the images?  I did upload one image but... where did it go?  How do I retrieve them? What should I do? What would be the link to put, the link of my forum, the link of my domain?

Mmmm I told you I needed step-by-step instructions... These tech things do not come easily for me  :(

Bulakbol

nina-nina
Sorry, I can't explain more better than I already did. If you uploaded an image called "home.png", you should enter that filename in the "Name of image for this board" when you modify a board. This mod will display that image automatically.

Leave the link textbox blank if you don't know how it works.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Am'

hi

i used the old version 2.0, how i can update my version to 2.1 please ?

thx
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Bulakbol

If you will uninstall the old version, the images folder will be removed too. What I can suggest is copy the ImagesOnBoard folder to another folder, uninstall the old version, install the new version and then copy back your images. Your ImagesOnBoard configurations and settings will not be touched.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

gbsothere

#616
Quote from: nina-nina on July 21, 2009, 09:30:24 PM
Yes, that helped some.. but I still need more explanation (if you don't mind   ;))

What is this?  See below.  It is for me to upload the images?  I did upload one image but... where did it go?  How do I retrieve them? What should I do? What would be the link to put, the link of my forum, the link of my domain?

Mmmm I told you I needed step-by-step instructions... These tech things do not come easily for me  :(




nina-nina, here's what worked for me:

While I was installing this mod, I unzipped the file and made sure to put the folder "ImagesOnBoard" (that was included inside) into the images folder of my theme.  If you use an ftp program, you can just drag it into your theme's image folder.   So, in my case, it's:  Themes/default/images/ImagesOnBoard.  Then I created (or found online) some small images and dragged them into that ImagesOnBoard folder.  I used 35 X 35 images, mostly (PNG, but I also have an animated GIF and a JPEG image).  After I finished installing the mod, I went to Admin------->Boards then found the board I wanted to have an image on and clicked "Modify".  Then, just under the "Description" of that board, I found the field "Name for the image for this board" and (in my case) entered home.png (which is the exact name of the image I put in the ImagesOnBoard folder and it's case-sensitive).  Then, in the next field "Link for the above image" I put the URL for my website ending in this (again, this is my case, your theme may be different):  /smf/Themes/default/images/ImagesOnBoard/house.png

You see, the name of the image must be exactly as it is in the ImagesOnBoard folder and the link to it must be exact and case sensitive, or your image will not show up.  (For instance, ImagesOnBoard has capitals and those letters must be in your link).

After you are done entering your information, scroll down to the bottom of that page and click Modify.  Then when you go to your front page to check for the image, if you don't see it at first, try refreshing your page.

I hope this works for you.   :)

Editing this post:  The default location for all images is Themes/default/images/ImagesOnBoard folder.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Bulakbol

#617
gbsothere
Thanks for the explanation.

@nina-nina
Are you okay now? Do you need assistance?

@drav
If you are talking about anecdota for version 1.1.x, then the edits are the same as the default theme. Find the  $board['description'] from BoardIndex.template.php and MessageIndex.template.php and the second line above it is the place to add the code for this mod. Let me know if you have any problem.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

drav

Hi Bulakbol

It's for version 2.0. However, the anecdota theme itself for version 2.0 seems to have bugs. I encountered some anyway. The author Crip says he will update the theme. For the moment I'm using core and it's working. I will check back when the new anecdota is available.

Cheers  :)

khaleed

Hi Bulakbol..

nice mod...

If I'm using Kani theme what file should I edit? Is it the same like other custom theme?

thanks

Advertisement: