Blacklisted Tags / Code / Problems with CMS Version 1.5.4

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Trandy
New Member
New Member
Posts: 2
Joined: Tue Jun 02, 2009 9:07 am

Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by Trandy »

Hi all,

I am sorry for this post, but I have spent the last 24 hours banging my head against a wall trying to work out several problems I am having with CMS Simple.

Here is my system information.
----------------------------------------------

Cms Version: 1.5.4

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.5
    * MenuManager: 1.5.3
    * ModuleManager: 1.2.1
    * News: 2.9.3
    * nuSOAP: 1.0.1
    * Printing: 0.2.6
    * Search: 1.5.3
    * ThemeManager: 1.1.0
    * TinyMCE: 2.4.13
    * FormBuilder: 0.5.11
    * GoogleMaps: 0.1.6
    * Statistics: 0.9.2
    * Album: 0.9.3


Config Information:

    * php_memory_limit:
    * process_whole_template: false
    * max_upload_size: 2000000
    * default_upload_permission: 664
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.9
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 128M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /tmp (1777)


Server Information:

    * Server Api: cgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.77


----------------------------------------------
I have been working on the Son of Suckerfish Dropdowns menu. Like many people I cant get the menu to work in Internet Explorer. I came across the tutorial and read http://qrayg.com/learn/code/cssmenus/ and think I finally came up with the reason why.

My site (http://www.venus-volunteering.com/) seems to be excluding half the javascript code which I am adding into the template. Is there anywhere in CMS Simple where I can allow certain HTML tags?? I have looked at the help / forums and havent seen this mentioned anywhere.

For example the code should be


$(document).ready(function(){
$("#navmenu-h li,#navmenu-v li").hover(
function() { $(this).addClass("iehover"); },
function() { $(this).removeClass("iehover"); } # );@
});
but when I look at the source code through the browser my code is


$(document).ready(function(),
function()  # );@
});
I also had this problem when trying to add a Google map to the site - the iframe tag seemed to be excluded from my code. Is there anyway around this?

Also, when I installed CMS simple the server had a temporary URL (http://79.170.44.101/venus-volunteering.com/). My CMS seems to have grabbed this part of the domain and is populating all my URLs with this IP. Is there anyway I change this now??
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by Jeff »

The problem is that you when you are putting in the Javascript Smarty is think the { } are smarty calls so it pulls the content out and processes it. To prevent this surround any javascript with {literal} tags {/literal}

And any installation settings can be changed by editting the config.php file in the root dir. (I would make a backup first incase something gets messed up.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by jmcgin51 »

a forum search for "javascript" turns up many threads on this subject.
Trandy
New Member
New Member
Posts: 2
Joined: Tue Jun 02, 2009 9:07 am

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by Trandy »

Many thanks ajprog - your advice helped on the javascript problem and the config file worked a treat.

Had I known to search for Javascript on these forums, then there wouldnt have been a problem jmcgin51!

Just one more question before I put closed on this topic.

Does CMS simple block any other code? For example, I am tried to add Google maps to a page using the code below - but not the end result I expected.
View Larger Map
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by jmcgin51 »

Trandy wrote: but not the end result I expected.
What exactly was the end result?
viebig

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by viebig »

thats was because tinymce. The wysiwyg editor break many non standard(and even standards) html codes.

{literal} is only need when you have "{" or "}" in your source code.

Disable the wysiwyg editor for those pages (on 1.5.4+ you can go to option tab when editing a page), then paste your code on the content.

Regards

G
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Blacklisted Tags / Code / Problems with CMS Version 1.5.4

Post by Jeff »

Try what viebig suggusted since there are issues with putting html code in the tinymce editor. if you still can't get it to work take a look at the google map module
Post Reply

Return to “CMSMS Core”