PDA

View Full Version : Some Users Unable to See Template Edits.


ZarporForums
01-23-2014, 01:39 AM
Hi

Some Users on our Forum are unable to see Template edits, as in from their point of view parts of the page are missing which normally show up.

Everything that is missing is related to templates I have edited such as postbit_legacy, is there a permission or a feature which would stop certain users viewing it?

ozzy47
01-23-2014, 01:40 AM
Perhaps some sort of caching, either a mod, or on the server.

TheLastSuperman
01-23-2014, 02:42 AM
Perhaps some sort of caching, either a mod, or on the server.

I bet either what Ozzy said ^ OR you edited part of the template and either wrapped it in a conditional (one to which they have no permission to view if so etc) or perhaps messed up and removed too much or left a bit of code unclosed i.e. you did <a href="url">Link Title</a and simply forgot the > or similar.

Ask the users running into these areas to try viewing the same parts of the threads but in a different style like the default style - do they still see blank/missing areas? If they do then it's mod/plugin related, if they see all parts of the site as-intended then you know it was in fact an edit to the style that caused the issue.

Lynne
01-23-2014, 03:19 AM
Or you allow users to pick their style and you edited a style they are not using.

CAG CheechDogg
01-23-2014, 11:49 AM
Or have them hard refresh by hitting f5 on their keyboard and clear your cache from your browser. I am with ozzy on this one, I am always doing template edits to my forums and sometimes other users will see the cache version instead of the live version.

Another thing, some edits you have to make sure that they have the !important declaration before the ; i.e., background-color: blue !important; ....

Sometimes if a user is on chrome they might not see the changes unless you declare it !important.

Hope that helps you my Man !

ZarporForums
01-24-2014, 01:42 AM
Perhaps some sort of caching, either a mod, or on the server.

My instant assumption was caching, but it doesn't seem to be obvious.

I bet either what Ozzy said ^ OR you edited part of the template and either wrapped it in a conditional (one to which they have no permission to view if so etc) or perhaps messed up and removed too much or left a bit of code unclosed i.e. you did <a href="url">Link Title</a and simply forgot the > or similar.

Ask the users running into these areas to try viewing the same parts of the threads but in a different style like the default style - do they still see blank/missing areas? If they do then it's mod/plugin related, if they see all parts of the site as-intended then you know it was in fact an edit to the style that caused the issue.

The edits were applied to a Parent style and consequently all children. All mods/plugins and site APART from my template edits show as intended.

Or you allow users to pick their style and you edited a style they are not using.

Parent Style is the one that was edited and the error is consistent through all styles.

Or have them hard refresh by hitting f5 on their keyboard and clear your cache from your browser. I am with ozzy on this one, I am always doing template edits to my forums and sometimes other users will see the cache version instead of the live version.

Another thing, some edits you have to make sure that they have the !important declaration before the ; i.e., background-color: blue !important; ....

Sometimes if a user is on chrome they might not see the changes unless you declare it !important.

Hope that helps you my Man !

This sounds like the most likely, I hadn't heard of the !important tag for HTML, here is the snippet for one of the template edits I have made

<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
<vb:if condition="$post['field6']">
<span class="rank"><img src="{vb:raw post.field6}" /></span>
</vb:if>

its not perfect I know but users who contribute to my forum receive a custom user rank which is displayed like a usergroup rank, instead of making a new usergroup for each user to do this I just made a profile field I could post the image URL in.

The first vb:if conditional is obviously standard, its the second vb:if conditional that doesn't appear for certain users, this edit has been in for months now which is why I think it surely can't be just a caching issue, where could I insert the '!important' tag within this snippet?

ozzy47
01-24-2014, 01:46 AM
How do you have the profile field 6 set up?

CAG CheechDogg
01-25-2014, 12:19 PM
Heh...I should of asked what template it was in that you made these edits to.

For that template, the ! important declaration is not the problem or fix ...

You might have a certain requirement for that field that doesn't allow for the rank to display unless the requirement is met. Maybe a certain amount of posts or the field is private?

Make sure the Minimum Posts is set to at least 1 and Display Type to always for the rank ....