Counter Format Issue

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

I just checked the home page in the browser and the page source still has three doctype lines in it. Where does that come from???
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

Good to know it is ok now.

CMSMS Page Defaults has only the HTML comment as default content for each page:

Code: Select all

<!-- Add code here that should appear in the content block of all new pages -->
As a tip, I remove that comment from the Page Defaults and leave the default content for new pages empty.

Everything else about the Doctype, html, head, body, etc., doesn't belong in the content box when editing a page and there isn't anything in the CMSMS core that would do something like that. Anyway, I've seen stranger things happen that that and there is usually a simple explanation. As Dr.CSS mentioned, it may have been something buggy with the TinyMCE module.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

KitchM wrote:I just checked the home page in the browser and the page source still has three doctype lines in it. Where does that come from???
Can you post information about your CMSMS and server environment? Go to Site Admin, then System Information. There is a link at the top, right to generate a text only report to paste into the forum.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

No problem. Here it is:

----------------------------------------------

Cms Version: 1.11.9

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.3
MenuManager: 1.8.6
TinyMCE: 2.9.12
ModuleManager: 1.5.5
News: 2.14.1
Search: 1.7.11
ThemeManager: 1.1.8
Gallery: 1.6.1
CGExtensions: 1.38.1
SiteMapMadeSimple: 1.2.7
Glossary: 1.0
Xinha: 0.2.0
CGCalendar: 1.13.3


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 10000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /home/sierraclubswmg/tmp (0750)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.71
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------

My first post also has some other info.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

I was just checking the template code. In there I found this:
{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
{literal}

As you saw, the counter code has braces like that. However, when I used {literal} before and {/literal} after my counter code in the global content block, it didn't help it display either. Took it back out.

Very confusing.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

I'm wondering if the Xinha module is causing some issue. I see it listed under the Module Manager but I think that is in error. It was removed from the dev forge and no longer listed as one of Morten's projects.
http://dev.cmsmadesimple.org/users/silmarillion

I think it is a very old module and probably not compatible. If that was used at all, it could have been the culprit. Other than that, I don't see any other red flags.

Try uninstalling and removing that module and then clear out all of the extra HTML,head,body, etc... tags from the content areas. If after that, there are still problems I would have to take a look at it myself to see what else is happening. ???
As you saw, the counter code has braces like that. However, when I used {literal} before and {/literal} after my counter code in the global content block, it didn't help it display either. Took it back out.
Can you post the "counter code" again? If it is just an iframe, it shouldn't have any curly braces, right?
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

Can you post the "counter code" again? If it is just an iframe, it shouldn't have any curly braces, right?
nevermind. You meant the global content tag has curly braces, perhaps?

{literal} only needs to wrap around CSS, JS, or PHP put directly into a template.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Yes, this is the content block code:
{global_content name='PopCounter'} that uses braces. Sorry if I wasn't clear, but it is good to check me on that.

Here's the original code again:
<__iframe src="http://www.census.gov/popclock/embed.ph ... clk=727707" width="389" height="930" frameBorder="0" allowtransparency="true"></__iframe>

Re Xinha, never got it working. But I'll remove it. I wish it worked because, when comparing them on the 'Net, that one looked more intuitive with better features.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Counter Format Issue

Post by velden »

A little of topic:

As your forum profile states you're a member of the community for about a month now. I assume you haven't been using CMS Made Simple before.

I just hope you don't get discouraged by the trouble you're facing now with CMSMS. I believe CMSMS is a very powerful and highly customizable CMS.

It's especially 'simple' for the 'end user' while the website builder (you) might need to have some extra skills to make it all work as you or your customer/editor want it to.

I've built 30+ websites with CMSMS and only three customers needed some 'training' on how to use it as an editor.

Another good thing is this forum. Help is always here!
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Thank you. I hope I will find a solution soon for this problem with the help from everyone here.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Any further ideas on this?

I just noticed in my backed-up codes that there was a difference. Here are the two:

Code: Select all

<__iframe src="http://www.census.gov/popclock/embed.php?component=counter&popclk=727707" width="389" height="930" frameBorder="0" allowtransparency="true"></__iframe>

Code: Select all

<__iframe src="http://www.census.gov/popclock/embed.php?component=counter&popclk=727707" frameborder="0" width="389" height="930">
</__iframe>
I admit I don't understand what changed, nor what should be proper format.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

The first one is the correct one from the census source. The second one looks manipulated (possibly) by a WYSIWYG editor which is why the ampersand, &, is escaped and saved as & - which is also ok.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Okay, thanks, I get it. However, why doesn't the darn work?

My global content block, named popcounter and created without wysiwyg, shows this code:

Code: Select all

<__iframe src="http://www.census.gov/popclock/embed.php?component=counter&popclk=727707" frameborder="0" width="389" height="930">
</__iframe>
The block is:

Code: Select all

 	{global_content name='PopCounter'}
Thanks again.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

The preview shows:
Not Found

The requested URL was not found on this server.
But of course it is not on this server. It is at census.gov.

I feel that the content block is missing something important. Is that correct?
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Just on a hunch, I created a new test page. When I submitted it, the counter showed up correctly. I renamed it to the one that had not worked and had been deleted, but it only worked one time.
Post Reply

Return to “Layout and Design (CSS & HTML)”