Search found 12 matches

by lstables
Fri Jul 23, 2010 4:02 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

Sorry, my mistake it does work, thanks dude your a life saver....

I put 2 ss on switch like a wally lol

Thanks again dude.
by lstables
Fri Jul 23, 2010 3:59 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

ok tried that and it takeds away the doctype ans stylesheet and desnt even display the right side content displyed in the echo.
by lstables
Fri Jul 23, 2010 3:12 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

So just top clarify I would do:

global $gCms;
$pageinfo =& $gCms->variables['pageinfo'];
$page_alias = $pageinfo->content_alias;
$page_id = $pageinfo->content_id; {
case "page-name" :
echo ' echo content ';

break;
by lstables
Fri Jul 23, 2010 2:59 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

i think you have mis-understud what I'm trying to acheive. When I had www.domain.com/index.php?page=my-custom-page I have a template with {content} in for all content on the left hand side and used {php}include('right_side.php');{/php} for the right hand side which worked. Then when I enable freindl...
by lstables
Fri Jul 23, 2010 2:32 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

It's not really news articles it's just all html placed in php case tags to show when that page is requested from HTTP
by lstables
Fri Jul 23, 2010 2:02 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

in right_side.php i have this too, this may help $result = mysql_query("SELECT * FROM cms_module_news ORDER BY news_id LIMIT 2"); while($row = mysql_fetch_array($result)) { echo '<div class="news_title"><a href="index.php?mact=News,cntnt01,detail,0&cntnt01articleid='.$ro...
by lstables
Fri Jul 23, 2010 1:59 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

in my template i have included the file like so

Code: Select all

<div id="right">
				{php}include('right_side.php');{/php}
			</div>
Like I said this worked without friendly urls but since friendly urls have been enabled this doesnt seem to work
by lstables
Fri Jul 23, 2010 1:43 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

Re: PHP switch/case

I included the right_side.php file in the root of the directory

How does global gCms object work?

What do I need to do in order to make it work
by lstables
Fri Jul 23, 2010 1:22 pm
Forum: CMSMS Core
Topic: PHP switch/case
Replies: 14
Views: 4739

PHP switch/case

Hi All, I have a page called: "right_side.php" which includes the following: <?php switch($_GET['page']) { case "name-of-the-page" : echo 'Echos out the content placed here '; break; >php But I have an htaccess file the enables friendly urls for seo and the "right_side.php&q...
by lstables
Wed Jul 07, 2010 7:30 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [solved] Install problem
Replies: 4
Views: 1816

Re: Install problem

Sorted it, my php version 5 had not updated on the server so just checked and now the install process as begun, thanks anyway :)
by lstables
Wed Jul 07, 2010 7:29 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [solved] Install problem
Replies: 4
Views: 1816

Re: Install problem

php version 5 which it requests for, just understand the error
by lstables
Wed Jul 07, 2010 7:23 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: [solved] Install problem
Replies: 4
Views: 1816

[solved] Install problem

Hi all, I have downloaded 1.8 version unzipped to desktop and then upload via FTP. Upon navigating to http://www.domain.com/install/index.php I get the following error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/domain.com/pu...

Go to advanced search