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

Counter Format Issue

Post by KitchM »

I am having some problem trying to use some code from the Census Survey folks. It is:
<__iframe src="http://www.census.gov/popclock/embed.ph ... clk=727707" width="389" height="930" frameBorder="0" allowtransparency="true"></__iframe>

It is probably me, but nothing shows up on the page but that code. I must not being using it correctly. I would appreciate a little help on this.

I am using CMSMS 1.11.9 thru Virtualmin 4.04Pro with LimeSurvey 2.05 (Stable) on CentOS 6.5, and accessing it thru Firefox 26.0. MySQL is version 5.1.71-1.el6. PHP is version 5.3.3-27.el6_5. Apache is version 2.2.15.

Thank you.
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 »

but nothing shows up on the page but that code
You didn't paste that code in the wysiwyg mode did you?
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Yup, I sure did.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

I am such a boob. :-[ Now it shows up correctly.

Except for this message:
This site requires Javascript enabled to retrieve and display data.

I would like to do this by server-side java. Is that possible?

Thanks.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

I should say it was working. However, it has now stopped displaying. I am at a loss. I cleared the cache and reloaded pages, all to no avail.

What did I do wrong now?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Counter Format Issue

Post by JohnnyB »

Seems like it could be the same issue as your other post.
For full iframe support in TinyMCE, you'll need to add support for iframe tag usage.
I can't say for sure if the default editor, MicroTiny, will support iframe html tags or not (without testing, I'm assuming it doesn't since it uses the TinyMCE engine...).
"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 »

I will admit at this point that I am not knowledgeable on tags.
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 »

If you suspect TinyMCE to delete the iframe tags you might consider turning off WYSIWYG for that specific page. Have a look at the Options tab of the content page.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Sadly, that didn't help.

With wysiwyg on, the editor displays the correct counter and its formating. It even runs, incrementing the counts, in that editor window when java script is accepted. But it no longer displays on the open web page itself.
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 »

Post a link.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

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 »

Not sure what you're doing in that template but I see at least two times:

Code: Select all

 <!DOCTYPE html PUBLIC "-//W...>
< html>
<head>
</head>
< body>

< /body>
< /html>
in the page source.

That is very wrong.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Standard CMSMS, because I did not type my own code anywhere.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Counter Format Issue

Post by KitchM »

Here is the code that I found in the page editor:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
</head>
</__body>
<!-- Add code here that should appear in the content block of all new pages -->
<__iframe src="http://www.census.gov/popclock/embed.ph ... clk=727707" frameborder="0" width="389" height="930">
</__iframe>
<__body>
</__html>

What I find published on the web scares me too. How the heck did it get that way? What's wrong with the CMS?
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 »

I would not suspect the cms to have done this. Obviously you have edited the page (added the iframe code).
Post Reply

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