News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Image

Started by Cyberhost, September 06, 2013, 04:32:14 PM

Previous topic - Next topic

Cyberhost

So I need to transfer a picture from english directory to finnish-utf8 directory, but I can't find finnish-utf8 directory???????

kat

Unless I'm missing something, there is no such directory. All language text files go in the default theme's "languages" directory, normally.

If the image should go in the "images/Finnish-utf8" directory, and it's not there, you could create it. But, if you're using the Finnish UTF 8 language, I'd imagine that it should be there, inside the "images" directory.

Illori

i think the OP is talking about the new.gif that shows a new thread. it has to be in a folder with the name of the language in use in the themes images folder. if the folder does not exist it has to be created and the image put in it.

kat

Er... Isn't that what I just typed? :P

Illori

Quote from: K@ on September 06, 2013, 04:36:43 PM
Unless I'm missing something, there is no such directory. All language text files go in the default theme's "languages" directory, normally.

but that part has nothing to do with the new.gif :P

kat

But, the second part does, doesn't it?

Cyberhost

When I try to create it. It says that the file exist, but I can't see it anywhere?

kat

Sounds like you're using your CPanel's Site manager. :(

Try getting into FTP, if that's true, coz it's a LOT easier than the File Manager. Maybe that has it set as a hidden file, or something?

http://wiki.simplemachines.org/smf/FTP_-_How_do_I_use_FTP

Cyberhost

Quote from: K@ on September 06, 2013, 04:58:42 PM
Sounds like you're using your CPanel's Site manager. :(

Try getting into FTP, if that's true, coz it's a LOT easier than the File Manager. Maybe that has it set as a hidden file, or something?

http://wiki.simplemachines.org/smf/FTP_-_How_do_I_use_FTP

Still says that it exists..

kat

If it exists, yet it's not showing, maybe it's read-protected?

What did you use, to upload the image?

If you used Filezila, try uploading it, again, but change the "Trasfer type" to "binary". (I've known that to break images).

Cyberhost

Quote from: K@ on September 06, 2013, 05:05:44 PM
If it exists, yet it's not showing, maybe it's read-protected?

What did you use, to upload the image?

It was already in theme included, but in another language.. english/new.gif

kat

Right. So, you need to download that image and upload it into the Finnish directory.

Cyberhost

Quote from: K@ on September 06, 2013, 05:07:39 PM
Right. So, you need to download that image and upload it into the Finnish directory.

yeah I am trying but I cannot move it to finnish-ut8 or copy it there or even find the finnish-utf8 directory :s

kat

That's odd, if your forum's Finnish. Maybe there aren't any images that need to go there. So, it was never created.

Try making it. :)

Cyberhost

Quote from: K@ on September 06, 2013, 05:14:06 PM
That's odd, if your forum's Finnish. Maybe there aren't any images that need to go there. So, it was never created.

Try making it. :)

http://www.retrot.us/Themes/Vertex-Theme2-0-2-v1-2/images/finnish-utf8/new.gif

http://www.retrot.us/Themes/Vertex-Theme2-0-2-v1-2/images/english/new.gif

Is it possible to edit code of theme to make the url images/english/new.gif... or only /images/finnish-utf8

because when you just go http://www.retrot.us/Themes/Vertex-Theme2-0-2-v1-2/images/finnish-utf8 the image works.

kat

I would think so, yes.

BoardIndex.template.php, in the default theme's directory (Unless that theme has it's own file, with that name)

It'll be this line, I believe:

$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . ($child['new'] ? '</a> <a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" />' : '') . '</a>';

$settings['lang_images_url'] is what points it to your language directory.

Cyberhost

Quote from: K@ on September 06, 2013, 05:21:05 PM
I would think so, yes.

BoardIndex.template.php, in the default theme's directory (Unless that theme has it's own file, with that name)

It'll be this line, I believe:

$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . ($child['new'] ? '</a> <a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" />' : '') . '</a>';

$settings['lang_images_url'] is what points it to your language directory.

Thank you for the support! It's working now!

Cyberhost

But now inside the boards new.gif isn't working :D how do I fix it manually / where?

Illori

you need to create the folder as suggested above and put the new.gif in it.

Cyberhost

Quote from: Illori on September 06, 2013, 05:55:06 PM
you need to create the folder as suggested above and put the new.gif in it.

I'll highly recommend you reading what I've said in past messages.

Illori

that is the only way to fix your problem is to create the folder, otherwise you could break your forum for upgrades.

Arantor

Or using other themes, for that matter.

Cyberhost

Or I could probably change the forum default language to english and replace english language file?

Illori

no, that would also require you to rename all the language files from your language to english, which will confuse you and your users if you apply any mods in the future.

your best bet is to ask your host what the problem is.

Advertisement: