1
toddherrold
appearance of broken gifs in main menu after using theme chooser

I'm hoping someone can offer what is probably some quick help. I was playing around with changing themes on my site and when I selected back to the default theme (blogstyle), there appeared broken gif images in the main menu. I've looked through the theme files and the system module files and can't seem to figure out where these image strings are coming from. I've never had images in the menu, so I'm not sure where this code is coming from.

Any ideas?
http://www.hotdogblog.com

2
Will_H
Re: appearance of broken gifs in main menu after using theme chooser
  • 2005/12/27 21:16

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Its more than likely a congested templates_c folder. Try deleting all the contents of this folder.

public_html/templates_c

3
toddherrold
Re: appearance of broken gifs in main menu after using theme chooser

thanks for the suggestion and the fast reply. I had about 500 temp files in there but no effect when i deleted them. It's weird because only certain modules are looking for navigation icons or something and they are all 20x20 gifs. As you click deeper into the site, the image source URLs for all the gifs change to look for the image in the module images folder.

In other words on the home page, the broken gifs are supposed to be coming from /images but when you click onto a menu link that has one of the broken images, then once in that module section, all of the broken menu gifs are caled from /modulename/images.

Bizarre behavior. . .

These broken images remain when i switch to the default theme set.

4
Will_H
Re: appearance of broken gifs in main menu after using theme chooser
  • 2005/12/27 22:11

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Ya that is strange, it seriously has to be something in the theme. Perhaps if you looked in your theme image folder and found the images it was looking for then dropped those into your root image folder it would solve the problem. Although you have already said that you have never had icons next to your nav bar links. Is it possible that you accidently overwrote your theme.html file with that of another theme? Also what happens if you set your default theme to default or phpkaox?

5
toddherrold
Re: appearance of broken gifs in main menu after using theme chooser

I figured out where the code string is coming from at least. In the admin/template section, is see that in the default template set, system_block_mainmenu.html has the following code:

Quote:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outer">
<!-- start module menu loop -->
<tr>
<td style="padding-left: 2px; " class="even"><a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a></td>
</tr>
<{foreach item=module from=$block.modules}>
<tr>
<td width="20" align="center" valign="top" class="even">
<{if $module.directory=="newbb"}>
<img src="<{$xoops_imageurl}>images/forum.gif" width="20" height="20" align="absmiddle">
<{elseif $module.directory=='cbb'}>
<img src="<{$xoops_imageurl}>images/forum.gif" width="20" height="20" align="absmiddle">
<{elseif $module.directory=='xoopsmembers'}>
<img src="<{$xoops_imageurl}>images/members.gif" width="18" height="18">
<{elseif $module.directory=='wfdownloads'}>
<img src="<{$xoops_imageurl}>images/downloads.gif" width="18" height="18">
<{elseif $module.directory=='mydownloads'}>
<img src="<{$xoops_imageurl}>images/downloads.gif" width="18" height="18">
<{elseif $module.directory=='xt-repositorio'}>
<img src="<{$xoops_imageurl}>images/downloads.gif" width="18" height="18">
<{elseif $module.directory=='uploader'}>
<img src="<{$xoops_imageurl}>images/downloads.gif" width="18" height="18">
<{elseif $module.directory=='rmservices'}>
<img src="<{$xoops_imageurl}>images/library.gif" width="18" height="18">
<{elseif $module.directory=='rmdp'}>
<img src="<{$xoops_imageurl}>images/library.gif" width="18" height="18">
<{elseif $module.directory=='rmdp'}>
<img src="<{$xoops_imageurl}>images/library.gif" width="18" height="18">
<{elseif $module.directory=='contact'}>
<img src="<{$xoops_imageurl}>images/contacts.gif" width="18" height="18">
<{elseif $module.directory=='mylinks'}>
<img src="<{$xoops_imageurl}>images/links.gif" width="18" height="18">
<{elseif $module.directory=='wffaq'}>
<img src="<{$xoops_imageurl}>images/faq.gif" width="18" height="18">
<{elseif $module.directory=='xoopsfaq'}>
<img src="<{$xoops_imageurl}>images/faq.gif" width="18" height="18">
<{elseif $module.directory=='xoopspartners'}>
<img src="<{$xoops_imageurl}>images/links.gif" width="18" height="18">
<{elseif $module.directory=='smartpartners'}>
<img src="<{$xoops_imageurl}>images/links.gif" width="18" height="18">
<{elseif $module.directory=='xoopspoll'}>
<img src="<{$xoops_imageurl}>images/polls.gif" width="18" height="18">
<{elseif $module.directory=='news'}>
<img src="<{$xoops_imageurl}>images/news.gif" width="18" height="18">
<{elseif $module.directory=='rmgallery'}>
<img src="<{$xoops_imageurl}>images/gallery.gif" width="18" height="18">
<{elseif $module.directory=='xoopsgallery'}>
<img src="<{$xoops_imageurl}>images/gallery.gif" width="18" height="18">
<{elseif $module.directory=='myalbum'}>
<img src="<{$xoops_imageurl}>images/gallery.gif" width="18" height="18">
<{elseif $module.directory=='xmail'}>
<img src="<{$xoops_imageurl}>images/xmail.gif" width="18" height="18">
<{elseif $module.directory=='piCal'}>
<img src="<{$xoops_imageurl}>images/agenda.gif" width="18" height="18">
<{elseif $module.directory=='wfprojects'}>
<img src="<{$xoops_imageurl}>images/sections.gif" width="18" height="18">
<{elseif $module.directory=='wfsections'}>
<img src="<{$xoops_imageurl}>images/sections.gif" width="18" height="18">
<{elseif $module.directory=='sections'}>
<img src="<{$xoops_imageurl}>images/sections.gif" width="18" height="18">
<{elseif $module.directory=='Titulares'}>
<img src="<{$xoops_imageurl}>images/titulares.gif" width="18" height="18">
<{/if}>
</td>
<td class="even">
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<br><img src="<{$xoops_imageurl}>images/root.gif" align="absmiddle"><a class="menuSub" href="<{$sublink.url}>" style='margin-left: 5px;'><{$sublink.name}></a>
<{/foreach}>
</td>
</tr>
<{/foreach}>
<!-- end module menu loop -->
</table>


Now the corresponding modules/system/templates/blocks file on the server doesn't contain the 20x20 image code.

How do I rebuild the default template set? I guess somehow they were corrupted as I was switching between themes. When I update the system file, it says that block_mainmenu is rebuilt and put in the dbase, but it remains the same as that posted above.

6
Will_H
Re: appearance of broken gifs in main menu after using theme chooser
  • 2005/12/27 22:21

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


I would imagine that instead of cloning your default module you would need to upload a fresh tar.gz from your installation folder. I dont have a copy on hand but i would guess that your sytem templates would be in modules/sytem/templates. if it comes down to editing your existing template, i am at a loss.

7
toddherrold
Re: appearance of broken gifs in main menu after using theme chooser

Thanks, Biter. I appreciate the help. I found this FAQ and followed it to resolve the problem:

https://xoops.org/modules/smartfaq/faq.php?faqid=533

Just in case anyone else has the problem. Basically, you delete the templates from the dbase and then rebuild them by updating the system module, and then every other module.

Back to normal now!

8
Will_H
Re: appearance of broken gifs in main menu after using theme chooser
  • 2005/12/27 22:42

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


excellent. thats was easier then i thought it would be.

Login

Who's Online

138 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits