Problems with Advanced form and CMSimple hide tags

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
mads
Posts: 22
Joined: Wed Jun 04, 2008 11:47 pm
Location: Århus Denmark
Contact:

Problems with Advanced form and CMSimple hide tags

Post by mads » Sun Jun 22, 2008 5:21 pm

Hi,

I'm using `JAT's advanced form (1.6.4)
It works really nice on all my sites and pages, BUT:
If I want to hide the page (from TOC) that contains the form, the form suddenly turns up twice on the page...?
Anyone knows a "work around" for this problem?

See the problem online here: http://www.locomo.dk/como/index.php?Kon ... ktformular

:-) Mads

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Problems with Advanced form and CMSimple hide tags

Post by ZiPs » Sun Jun 22, 2008 6:30 pm

Hi mads

I try to come up with a solution which seems to work :)

Code: Select all

#showadvform#
#CMSimple hide#
#CMSimple $output=preg_replace("/".chr(35)."showadvform".chr(35)."/", showadvform('DefaultForm') ,$c[$s]).chr(35). 'CMSimple hide'.chr(35);#
there may be another who can come up with a better and proper solution ;)

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

mads
Posts: 22
Joined: Wed Jun 04, 2008 11:47 pm
Location: Århus Denmark
Contact:

Re: Problems with Advanced form and CMSimple hide tags

Post by mads » Mon Jun 23, 2008 4:10 pm

Hi Zip,

Thanks for your contribution!
I have tried it now, but as you can see at the page: http://www.locomo.dk/como/index.php?Kon ... ktformular
Its only showing #showadvform# and the page is not hidden anymore.... :?

I hope someone else has a good idea...

:-) Mads

The first version, showing two forms is here now: http://www.locomo.dk/como/index.php?Kon ... formular_2

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Problems with Advanced form and CMSimple hide tags

Post by ZiPs » Mon Jun 23, 2008 5:03 pm

Hi mads

Such is the situation on my test page her with the same code which I have inserted here

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Problems with Advanced form and CMSimple hide tags

Post by ZiPs » Mon Jun 23, 2008 5:09 pm

There is an error in your script as you inserted

Code: Select all

#showadvform#
#CMSimple hide#
#CMSimple $output=preg_replace("/".chr(35)."showadvform".chr(35)."/", showadvform('Kontaktformular'') ,$c[$s]).chr(35). 'CMSimple hide'.chr(35);#
The mistake here, it should be.

Code: Select all

('Kontaktformular')
/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

mads
Posts: 22
Joined: Wed Jun 04, 2008 11:47 pm
Location: Århus Denmark
Contact:

Re: Problems with Advanced form and CMSimple hide tags

Post by mads » Mon Jun 23, 2008 11:19 pm

Hi again,

How embarrasing.... You are totally right! I was mistyping the script...
How did you managed to se my code?

A big thankyou, you did the trick for me, so I can use #cmsimple hide# together with the nive adv. form

:-) Mads

Post Reply