Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Cyberhost on September 06, 2013, 04:32:14 PM

Title: Image
Post by: Cyberhost on September 06, 2013, 04:32:14 PM
So I need to transfer a picture from english directory to finnish-utf8 directory, but I can't find finnish-utf8 directory???????
Title: Re: Image
Post by: kat 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.

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.
Title: Re: Image
Post by: Illori on September 06, 2013, 04:39:37 PM
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.
Title: Re: Image
Post by: kat on September 06, 2013, 04:40:17 PM
Er... Isn't that what I just typed? :P
Title: Re: Image
Post by: Illori on September 06, 2013, 04:45:04 PM
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
Title: Re: Image
Post by: kat on September 06, 2013, 04:48:52 PM
But, the second part does, doesn't it? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fhuh.gif&hash=faa8cdc36b859b0861143bd9d1bef68723612ada)
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 04:54:07 PM
When I try to create it. It says that the file exist, but I can't see it anywhere?
Title: Re: Image
Post by: kat 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
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:04:26 PM
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..
Title: Re: Image
Post by: kat 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?

If you used Filezila, try uploading it, again, but change the "Trasfer type" to "binary". (I've known that to break images).
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:06:32 PM
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
Title: Re: Image
Post by: kat on September 06, 2013, 05:07:39 PM
Right. So, you need to download that image and upload it into the Finnish directory.
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:10:30 PM
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
Title: Re: Image
Post by: kat 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. :)
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:16:47 PM
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.
Title: Re: Image
Post by: kat 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.
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:36:05 PM
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!
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:46:14 PM
But now inside the boards new.gif isn't working :D how do I fix it manually / where?
Title: Re: Image
Post by: 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.
Title: Re: Image
Post by: Cyberhost on September 06, 2013, 05:58:42 PM
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.
Title: Re: Image
Post by: Illori on September 06, 2013, 07:13:54 PM
that is the only way to fix your problem is to create the folder, otherwise you could break your forum for upgrades.
Title: Re: Image
Post by: Arantor on September 06, 2013, 07:15:07 PM
Or using other themes, for that matter.
Title: Re: Image
Post by: Cyberhost on September 07, 2013, 03:45:45 AM
Or I could probably change the forum default language to english and replace english language file?
Title: Re: Image
Post by: Illori on September 07, 2013, 05:45:12 AM
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.