A more flexible toc()

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: A more flexible toc()

Post by cmb » Sun Dec 08, 2013 8:01 pm

ZiPs wrote:Try this.
[...]
Good catch! The code that I posted must not be further idented (at least not the lines beginning with HTM;); see the section about heredoc syntax. However, your fix won't work as expected, because variables substitution doesn't take place inside of single quoted strings. Replacing the single quotes with double quotes in the modified sections will enable variable substitution, but additional double quotes will have to be escaped with a backslash (" => \").
maeg wrote:I can't do that.
When i upload the userfuncs.php file the site crash and gives me a blank site
You can, however, remove userfuncs.php and the call in the template, upload an empty _XHdebug.txt to the downloads folder, login to your site, and upload userfuncs.php again. Then request any page; if there's an error in userfuncs.php, it should be reported. If not, then you can insert the call in the template again and request any page; if there's an error now, it should be reported.
Christoph M. Becker – Plugins for CMSimple_XH

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: A more flexible toc()

Post by maeg » Sat Dec 14, 2013 2:47 am

Hi
maeg wrote:I have been playing a littel around with this.

I need a solution for a mobiletemplate that works in windowsphone.

It seems not to work :(
I tryed to do like Cmb and zip was writing, but witout luck, so i found another solution using jqurey.'

I have testet it in IE7 - IE8 - IE9 - FF - Crome - ipad2 - ipad mini - htc disre - iphone 4s - nokia lumie 810 and there it works fine.
If anyone can test it in other tablets and smartphones and give a small feedback it would be cool ;)

Take a look at http://www.cmsimple-xh.dk

[ external image ]

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: A more flexible toc()

Post by Tata » Sat Dec 14, 2013 6:57 am

Seems to work fine.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: A more flexible toc()

Post by cmb » Sat Dec 14, 2013 9:03 pm

maeg wrote:If anyone can test it in other tablets and smartphones and give a small feedback it would be cool ;)
Works fine on my Acer Iconia A1-B71 running Android 4.1.2 in the Android Browser and in Chrome 31.0.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: A more flexible toc()

Post by Tata » Sat Dec 14, 2013 9:22 pm

Is there a link for download? I owuld like to test it in another templates.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply