Archived CMSimple Support Forum

The Old CMSimple User Community
It is currently Thu Sep 02, 2010 4:37 pm

This archived CMSimple Support Forum will be locked primo June 2008. Users with a commercial licence are advised to register and use the new Official Support Forum at CMSimple.com instead. A community driven forum with free registration is found at cmsimpleforum.com.

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Line order important with #CMShide# scripting
PostPosted: Mon Sep 11, 2006 8:11 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
Let clear out that CMSimple is great. But as this is the Bugs-topic, of course this post will be a complaint... ;-)

Since 2.6fix3 there was a problem with the toc() and hidden pages.
Fix4, nor fix5 helped, but I've found out a workaround.

Today I've installed fix6, but the problem is still there :-(

The thing is, that apparently, when you ahve "CMShide" an,d another scripting line on a page (example #memberpages#), then the HIDE line must be the first one.
If you put it in second place, the HIDE is still functionnal, but the other script is not executed...

Is this supposed to?

Anyhow, CMSimple still is a great product!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 12:49 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Thanx for your feedback.

In function cmscript please try change

"/".$cf['scripting']['regexp']."/i"

to

"/".$cf['scripting']['regexp']."/is"

- this should solve it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 10:24 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
I tried, but it's not helping.

If i use:
Code:
#CMSimple hide#
#CMSimple...some code...#

it works perfectly (with or without the "/is"),

however if i use:
Code:
#CMSimple...some code...#
#CMSimple hide#

only the hide is performed...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 8:05 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
DirkH - now I remember - it has always been like that - but I see I must improve the documentation at http://www.cmsimple.dk/?Installer%27s_M ... :Hide_page


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 3:36 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
OK. Problem solved.
One more happy (happier) user.

Thanks,

Dirk.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: MSN [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group