1
Mindman
Code changes to the center block not showing up in theme. Help!!
  • 2010/1/7 21:01

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


I have made some edits to theme_blockcenter_c.html in my theme and they are not showing up on my site after I upload them to my server for some reason. I can edit theme.html and those edits show up fine. Am I missing something here?... please help!

2
Burning
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/7 21:59

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Difficult to answer...

• have you a link to see ?
• theme's name ?
• what is your modification made for ?

3
Mindman
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/7 23:36

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


I don't have a link because I am developing the site on a live server which needs to stay locked down for now but I have provided a screenshot instead. The funky chinese symbols image (title_nav.gif) is the item I am trying to get rid of from the code in the theme_blockcenter_c.html file. Seemed easy enough. I changed the code and uploaded it but the image still shows on the site, as shown in the screenshot below.

Resized Image

Here is my before and after theme_blockcenter_c.html code:

Before:
<div class="blockTitle"><img src="<{$xoops_imageurl}>images/title_nav.gif" align="middle" alt=""><img src="<{$xoops_imageurl}>images/spacer.gif" width="5" align="middle" alt=""/><{$block.title}></div>

After:
<div class="blockTitle"><img src="<{$xoops_imageurl}>images/spacer.gif" width="5" align="middle" alt=""/><{$block.title}></div>

The end result is exactly the same for some reason and it's very frustrating. All I want to do is remove the link to the title_nav.gif image. The theme's name is gunmetal.

4
Burning
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/8 0:09

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Your modification seems right. So make sure that no information remains in XOOPS cache.

Two solutions :

1) • clean all files in xoops_data/caches/smarty_compile (except index.html)

2) • go to Site Preferences / General settings and check YES to option "Check templates for modifications". It is the same than 1) ... but with this method you don't have to clean cache each time to display your modifications

5
red_Slider
Re: Code changes to the center block not showing up in theme. Help!!

It's simple. Remove this image in general settings. Distance from the left edge define the CSS through the padding (td # centerCcolumn div.blockTitle, # bottomCcolumn. BlockTitle line 349).
The problem is that you can see all the time no change is likely to enable the upgrade option does not change the theme. (Check box below the option to choose the default theme). Set to YES, and delete files from the cache. Then refresh page.
That's all.

edit:
he he he burning ;)

6
Mindman
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/8 1:27

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


I have had the "check templates for modifications" option set to YES this whole time and that doesn't help. The cache folder is blank besides index.html and adminmenu.php.

red_Slider, can you rephrase your response? I got kind of confused there. ;)

Any other ideas guys?

7
Burning
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/8 1:39

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Two things :
• this code for theme_blockcenter_c.html make image disappear, tested
<div class="blockTitle"><img src="<{$xoops_imageurl}>images/spacer.gif" width="5" align="middle" alt=""/><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>

• title_nav.gif does not appear elsewhere, just in these template theme_blockcenter_c.html

Then :
• make sure that /smarty_compile folder is empty
• make sure that you have no matter with your FTP client

8
Mindman
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/8 21:36

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


Okay I used your code and same result. I verified it's not an issue with the FTP client by downloading the server's copy to my local drive after deleting my local copy and it was the same with the correct code to remove the image. So the file is getting uploaded correct but yet it's not being updated somehow.

I checked for a smarty_compile folder and I don't have one? I am on XOOPS 2.0.18.2 if that helps.

9
Burning
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/8 23:34

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

For XOOPS 2.0.x, /template_c folder instead of /smarty_compile. Erase all files except index.html and make sure that CHMOD is 0755.


10
Mindman
Re: Code changes to the center block not showing up in theme. Help!!
  • 2010/1/11 18:57

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


Just wanted to follow up with the fix for this issue. I had a duplicate copy of theme called "Copy of gunmetal" that I had been editing, and I also had the original "gunmetal" theme in my list also. For whatever reason, the "Copy of" theme was looking for the file in the regular "gunmetal" theme. I renamed the "Copy of" to "gunmetal" and that resolved the issue!

Thanks a ton for the help Burning. Much appreciated.

Login

Who's Online

142 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 142


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