News:

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

Main Menu

Lost new posts icons

Started by bigmo66, November 28, 2015, 06:47:53 PM

Previous topic - Next topic

bigmo66

Howdy Folks. I just upgraded to the latest 2.0.11 patch and I lost my new post/ no new post icons. I created the forum years a go so I am really rusty. I'm trying to find where I can add the icons back, but now am wondering if I need to do some editing. Sort of lost being an old fart and not tinkering for years.  Any help is sure appreciated.  My forum is the Tacoma Guitar Forum.  www.tacomaguitarforum.com  Guest can browse.

Thanks all

Steve

P.S., using a custom theme, but have never had a single issue in years through upgrades, mods, etc..

br360

That link you posted to your site is showing the default curve theme, and guests are not able to browse- as when I go to your forum, I get the "Only registered members are allowed to access this section" message.

bigmo66

Sorry, fixed.....

Not exactly sure about theme. "Thought" it was custom. I am continually learning 2.0 as I haven't had it very long.

br360

Ok, checking out now.

The directory for those images should be tacomaguitarforum.com/Themes/default/images/off.png (on.png being the other one), but you somehow changed it to be http://home.comcast.net/~tgfmo/off.gif

I'm guessing that second link is a set up from your computer or localhost? Not sure what  exactly you changed or how you upgraded to 2.0.11, but can you try to run repair settings and see if that fixes the issue? Here is some info on how to run it- http://wiki.simplemachines.org/smf/Repair_settings.php

bigmo66

Thanks. For years, my ISP (Comcast) gave me a ton of personal web page storage (6Gb). They discontinued this recently and it appears they may have pulled the plug. I have been steadily been moving hosted files, pics to my new host. I am issing my "locked" icons, "new_none" and "new_some"  Is it a matter of just pointing to new hosting?

br360

Ah ok. If you were directing your image icons to their web page and they pulled the plug, you would in fact have the broken images you now do. Yes, in order to have those images back, you would have to have the images lead to the correct path- either on your server or on the new hosting.

bigmo66

Thank you. I am assuming I need to do some editing, but where?

br360

Can you check your images folder on your server? Look at themes/default/images. In that folder you will see the images for your off.png, on.png, new_none.png, new_some.png


Do you remember if you actually edited anything in any of your templates, like for example; in your board.index.template.php, this is what the default path and code should look like for your new_some.png and new_none.png-

<li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_some.png" alt="" /> ', $txt['new_posts'], '</li>
         <li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_none.png" alt="" /> ', $txt['old_posts'], '</li>

Illori

Quote from: br360 on November 28, 2015, 07:08:14 PM
but can you try to run repair settings and see if that fixes the issue? Here is some info on how to run it- http://wiki.simplemachines.org/smf/Repair_settings.php

have you run that? it should fix the paths for you.

bigmo66

Quote from: Illori on November 28, 2015, 07:47:03 PM
Quote from: br360 on November 28, 2015, 07:08:14 PM
but can you try to run repair settings and see if that fixes the issue? Here is some info on how to run it- http://wiki.simplemachines.org/smf/Repair_settings.php

have you run that? it should fix the paths for you.

Have not run the repair tool yet. I did upload my old icon .gifs to where they need to be. I probably did edit the files years a go for custom icons. Will the repair tool do me any good since the icons are custom and settings may have been pointing to another host?    Is there any fallout from running the repair tool even if it doesn't solve my issue?

You guys have always been great and have never failed me yet. Thank you.

br360

I would do a backup of your forum just in case, but running repair_settings shouldn't cause any issues. Try that first, and if it doesn't work, we can work on different options to get your icons back.

Personally, those images are so incredibly minor in regards to server space, I would just keep them on your server anyway.

bigmo66

10-4, I will do the repair ASAP.

bigmo66

Ran the repair tool and didn't see anything to change. At this point I am Ass-uming that I need to edit a file?

Backed up database & home directory..

br360

Just to confirm; do you have all of those images actually uploaded to your server? (off.png, on.png, new_some.png, new_none.png)

If you do, can you attach your boardindex.template.php please?

bigmo66

I have the 3 pngs in the icon folders of both the default theme and my custom theme. They are called off, on & on2 (made that the locked icon.

I have attached the php file

bigmo66

Quote from: br360 on November 28, 2015, 07:08:14 PM
Ok, checking out now.

The directory for those images should be tacomaguitarforum.com/Themes/default/images/off.png (on.png being the other one), but you somehow changed it to be http://home.comcast.net/~tgfmo/off.gif

I'm guessing that second link is a set up from your computer or localhost? Not sure what  exactly you changed or how you upgraded to 2.0.11, but can you try to run repair settings and see if that fixes the issue? Here is some info on how to run it- http://wiki.simplemachines.org/smf/Repair_settings.php

Where can you see the comcast links?

br360

I am going to be away from home for most of the day, but I will take a look at your boardindex.template.php later tonight.

If you right click the missing images and then use either firebug or inspect element in chrome, you can see the comcast links being used.

bigmo66

Quote from: br360 on November 29, 2015, 02:06:12 PM
I am going to be away from home for most of the day, but I will take a look at your boardindex.template.php later tonight.

If you right click the missing images and then use either firebug or inspect element in chrome, you can see the comcast links being used.

OK thanks. I don't see any reference to comcast in the boardindex.template.php.  Would it be somewhere else?

Illori

can you please run repair_settings.php as we recommended? it should fix the issue.

bigmo66

Quote from: Illori on November 29, 2015, 06:00:45 PM
can you please run repair_settings.php as we recommended? it should fix the issue.

I have ran repair_settings a couple times with no luck. I even used the repair all or whatever it is called at the bottom right. I am still seeing text instead of icons for new posts/no new posts on forum.


Kindred

Well... see... that can not be your boardindex.template.php file.

Your board index calls:
<img title="No New Posts" alt="No New Posts" src="http://home.comcast.net/~tgfmo/off.gif">
However...  in the board index that you provided, the code calls:
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';


So, you obviously are not providing us with the boardindex.template.php that your site is actually using...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66

Quote from: Kindred on November 29, 2015, 06:58:57 PM
Well... see... that can not be your boardindex.template.php file.

Your board index calls:
<img title="No New Posts" alt="No New Posts" src="http://home.comcast.net/~tgfmo/off.gif">
However...  in the board index that you provided, the code calls:
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';


So, you obviously are not providing us with the boardindex.template.php that your site is actually using...

Can't seem to find it! Is that file going to be in one of the theme folders?

bigmo66

I don't get it. I looked at all 5 themes and every boardindex and there is no call to comcast.net

I have my forum set to use a custom theme and this is where the boardindex is that I attached.  I don't where else to find this reference to comcast.net

Kindred

Your site is using the default, curve, theme...  Not a custom theme.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

can you provide a screenshot of the paths here? admin -> themes and layout -> theme settings for the theme you are currently using?

bigmo66

I must be dumb as a bag of hammers as I have the forum set to a custom theme, but am being told I don't.



I also used a backup from before I upgraded to .11 and have again attached the boardindex

Thanks for hanging in there with me.  Where the heck is this reference to my prior pic hosting at comcast?

Illori

it does look like you are using a custom theme, but since it is so similar to the default theme it is easy to confuse the two.

bigmo66

another screen shot. Because I wanted to modify a few things, I made a new theme so I didn't wreck the default. Pretty much a rookie at this stuff.  If I change it to the default ( or another for that matter) nothing seems to change.



What happens if I attempt to "reset all themes"?

Kindred

Do note, using spaces in a path is BAD process.....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66

Quote from: Kindred on November 29, 2015, 08:48:58 PM
Do note, using spaces in a path is BAD process.....

Spaces? Not sure where you are referring to. I haven't done anything to the forum in quite some time except upgrade to .11

Kindred

Look at the directory for your custom theme...  It has spaces in the name.


That is not your issue here... But it is a bad habit and should be avoided.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66

Quote from: Kindred on November 29, 2015, 09:40:03 PM
Look at the directory for your custom theme...  It has spaces in the name.


That is not your issue here... But it is a bad habit and should be avoided.

Thanks for the tip, I will correct.  I fixed my on/off icon problem by simply editing each board and point the img url to it's new location.
My problem is I go months or longer without much tinkering.

Thanks all.

Kindred

Editing each board?

Since that is not a standard feature of smf, your problems apparently resulted from a mod...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66

Quote from: Kindred on November 29, 2015, 10:33:57 PM
Editing each board?

Since that is not a standard feature of smf, your problems apparently resulted from a mod...

In the modify board area. Wasn't bad at all. I still had a couple icon graphics pointing to an old host.


Kindred

yup... that is definitely a mod.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66

Now, just have to figure out how to get the "new" next to recent posts on the portal to work again.

Kindred

use firefox+firebug
right click on the text that replaces the missing image
look at the code which tells you where it is looking for that image
put the image file there. :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigmo66


bigmo66


Advertisement: