close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Power CMS HELLLP!!

Thread began 10/23/2009 5:28 pm by sfurley1983390133 | Last modified 10/25/2009 5:46 am by sfurley1983390133 | 3502 views | 8 replies |

sfurley1983390133

Power CMS HELLLP!!

Hi I download and installed Power CMS todya, i have managed to work my way through the bits and bobs and the database bit is now connected when i go to index.php the login page turns up fine then i add content that's fine to.

Then it asked me to paste this code into the top of my page

<?php include "Connections/localhost.php"; ?>

<?php include "WA_CMS/WA_CMS.php"; ?>

and this is the body tag

<?php echo WA_getCMSContent($database_localhost, $localhost,"test5", "content"); ?>

so it now looks like this on the page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body><?php include "Connections/localhost.php"; ?>

<?php include "WA_CMS/WA_CMS.php"; ?>.m.,m.,m.,m,.m,.,<?php echo WA_getCMSContent($database_localhost, $localhost,"test5", "content"); ?>
</body>
</html>


but when i go to test5.php i just get the bit of text that i added whilst testing i.e the .m.,m.,m.,m,.m,.,

anyone any ideas i think it's to do with my wa_global.php page but not sure that looks like this

<?php
$WAGLOBAL_Root_URL = "http://banesnut.com/" ; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "Welcome_to_Banes_Nut" ;

$WAGLOBAL_localRoot = "/CMS100/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "banesnut.com/CMS100/"; //relative path to your PowerCMS files on your remote server.

//iRite Images upload settings
$WAGLOBAL_Images_Folder = "/CMS100/Images/"; //relative path to your images folder.
$WAGLOBAL_Swf_Folder = "/CMS100/swf/"; //relative path to your swf folder.

// Admin Settings
$WAGLOBAL_Admin_UserName = "" ;
$WAGLOBAL_Admin_Password = "" ;
?>

Hope this makes sense please help this is doing my head in now... thank you in advance

Steve

Sign in to reply to this post

anonymous

Steve,

First things first...

The first two includes need to be all the way at the top, preferably - above the doctype declaration like this:

php:
<?php include "Connections/localhost.php"?>
<?php 
include "WA_CMS/WA_CMS.php"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>



Ensure that there is no "white space" after your line endings on those either.

After you set that straight, let's go from there and see what we need to get fixed next.

Brian

Sign in to reply to this post

sfurley1983390133

Hi Brian

Yep I've done that and still nothing so far now looks like this

<?php include "Connections/localhost.php"; ?>
<?php include "WA_CMS/WA_CMS.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>.m.,m.,m.,m,.m,.,<?php echo WA_getCMSContent($database_localhost, $localhost,"test5", "content"); ?>
</body>
</html>

Thanks for your help Steve

Sign in to reply to this post

anonymous

Steve,

When I view the page source of the page you provided, it looks all out of sorts - meaning there is no closing body tag, no closing html tag, etc.

My first suggestion is to ensure that all of your files have been uploaded. If that is not it, if you want to email me a private link and change your login info to your powerCMS to something you wouldn't mind sharing for a day and I will help you get it set up.

Best regards,

Brian

Sign in to reply to this post

sfurley1983390133

Hi Brian

That would be great is your email sojoweb (at) rocketmail.com?

Sorry about that cheers

Sign in to reply to this post

anonymous

Yes... but if you wouldn't mind, could you edit your post to not have my email in true form (I don't want to get it mined by spam bots and then get a bunch a spam :)).

Cheers,

Brian

Sign in to reply to this post

anonymous

Hi Steve,

I'm taking a look at the back-end right now... can you post the code of the page you are including it on to the forum here so I can take a gander at a few things?

Thanks,

Brian

Sign in to reply to this post

anonymous

Steve,

Actually... I see what is going on now... it's incorrect path issues.

Because I don't know everything you've done so far... I will make some recommendation to quickly resolve it and get you on your way.

First, it appears you have the all the CMS files still in the CMS100 folder now... is what I would first do is take them out of that folder and put them in root level. This means you admin login will be a bit cleaner to start with admin

Then for your settings

$WAGLOBAL_Root_URL = "http://yoursite.com/" ; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "Your Site Admin" ;

$WAGLOBAL_localRoot = "/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/"; //relative path to your PowerCMS files on your remote server.

//iRite Images upload settings
$WAGLOBAL_Images_Folder = "images/"; //relative path to your images folder.
$WAGLOBAL_Swf_Folder = "swf/"; //relative path to your swf folder.

// Admin Settings
$WAGLOBAL_Admin_UserName = "yourUserName" ;
$WAGLOBAL_Admin_Password = "yourPassword" ;

That will clean up your paths issue... now be sure that on the root... all of the folder are loaded up there - this includes admin, Connections, css, CSSMenuWriter, Database, images, Templates, WA_CMS, WA_DataAssist, WA_Globals, WA_iRite, WA_SecurityAssist, WA_ValidationToolkit, WADbSearch

Your root folder will now not only reflect a typical site that deploys code from WebAssist extensions, it will be a a little easier to manage.

After you get everything loaded, then try your page... as the paths on the page now will be correct to the paths in your globals and your Power CMS setup.

Let me know if you need anything more.

Cheers,

Brian

Sign in to reply to this post

sfurley1983390133

Brian You ARE A LEGEND!!!

That sorted it first time, thank you so much for your help, It was baffling me!!!

very much appreciated

Cheers Steve

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...