close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined Variable when adding user

Thread began 3/08/2011 6:19 am by saf01 | Last modified 3/09/2011 7:09 am by Jason Byrnes | 2469 views | 5 replies |

saf01

Undefined Variable when adding user

Hi,

Im using lastest wamp with php 5.2.11 and 5.3.5 localhost (tested with both php versions) and magic_quotes disabled. Ive successfully installed PowerCMS without any problems using DWCS3.

So in the admin, when I add a user I get the following message:

Undefined variable: $totalRows_contents in ..\manage_users.php on line 246

Should $totalRows_contents be $row_cmscontents or something else.

Please help. Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

edit line 246 of the manage_users.php page:

php:
<td><?php if($totalRows_contents ) {




to:

php:
<td><?php if($totalRows_cmscontents ) {
Sign in to reply to this post

saf01

Thats fixed it. Thx.

I have another question.

When i add content areas via admin in my page as meta-title, meta-description, meta-keywords I get the Page Optimization link appearing which is fine.

So how do I add these areas to my page - do i add php code in my php page - as my page optimisation doesnt pick up the title, description or keywords.

Please help.

Sign in to reply to this post

Jason ByrnesWebAssist

the page optimization will not happen automaticly, you need to add the meta tags and use the WebAssist -> CMS -> Insert Comment From Power CMS to addd the meta tag information.


go to WebAssist -> CMS -> Insert Comment From Power CMS, and select content then select the meta key word content area.


this will add code to the page similar to:

php:
<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'testing''meta-keywords'); ?>



add that to the content of a key word meta tag.

php:
<meta name="keywords" content="<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'testing''meta-keywords'); ?>" />




do the same for the description and title:

php:
<meta name="description" content="<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'testing''meta-description'); ?>" />

<title>
<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'testing''meta-title'); ?>Untitled Document
</title>




bear in mind, my example is using a content area named testing, your code may be different.

Sign in to reply to this post

saf01

Thx Jason. This is cool - appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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...