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.  [ 9 posts ] 
Author Message
 Post subject: Hidden (member)pages appear in toc()
PostPosted: Mon Sep 04, 2006 12:06 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
I just installed V2.6fix3 and noticed:

I use Svarrer's memberpages plugin, which works fine. I have the 'login error' page as

<H1>login error</H1>
#cmsimple hide#
#memberpages... #

With the new V2.6fix3, the 'login error' link appears visible in the toc().
This was not the case with the previous versions.
I noticed that when i invert the lines, the problem is solved.

<H1>login error</H1>
#memberpages... #
#cmsimple hide#

Is it a bug, or am i missing something?

Dirk.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 7:36 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Hi Dirk - thanx a lot for your response.

It is because before there was a search for "/\#CMSimple hide\#/is" - now only first CMSimple is checked. I guess I have to find some solution to that, so it will work as it used to.

Cheers, Peter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:02 am 
Offline

Joined: Sun Oct 17, 2004 9:47 pm
Posts: 2505
I think that is something we can live with, its not so problematic...


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

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Should have been fixed in fix4 just made available.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 5:03 pm 
Offline

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

In fact it's worse :-(

- The 'login error' link is visible (whatever order of the lines)
- Hidden H2-pages can be seen in the toc()
- You can even view the hidden pages, and you'll see the script code on screen...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 7:38 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Bug: I did miss the ending delimiter 'is' in regular expression of content() - but I do not understand why the CMSimple hide does not work for you - did you change the regular expression in config?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 5:14 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
Well, i just tried fix5 and it seems to be OK.

What I meant is:
- using fix3, the order of the two scripting lines was important (it only works when #CMSimple hide# is the second line.

- using fix4, the order is of no importance, it doesn't work either way, and the link appears in the toc()

(Just try it out:

Code:
<H1>Toppage</H1>
<H2>Hidden page 1</H2>
Hidden page 1
#CMSimple $output.=lastupdate();#
#cmsimple hide#
<H2>Hidden page 2</H2>
Hidden page 2
#cmsimple hide#
#CMSimple $output.=lastupdate();#


You'll see.

But again, it seems OK with fix5. Thx.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 7:58 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
...but I just found out another bug (sorry, Michael :-) )

With the memberpages plugin, i use a redirection in the 'login error' page to redirect the (hidden) "Home>>login error" to my own "Home>>Dealer area>>Login error" page.
This is the code:

Code:
<H1>login error</H1>
<P>
#cmsimple hide#
<BR>
#cmsimple memberspage('Dealer_area:Login_error','0');#
<BR>
</P>


This works just fine (as it used to with V2.6, V2.6beta).
If I swap the line order (first the 'memberspage', then the 'hide'), the page is still hidden (that's OK), but the 'memberspage() is not executed (that's not OK).

Is it intentionnal that the '#CMSimple hide#' must be the first of the two script lines?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 8:04 pm 
Offline

Joined: Mon Sep 04, 2006 12:01 pm
Posts: 83
Location: Belgium
-- The stuff has nothing to do with the memberpages plugin, so I'll continue the item in a new topic --


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

All times are UTC


Who is online

Users browsing this forum: No registered users 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