close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerCMS comments out PowerGallery code

Thread began 11/18/2011 1:44 pm by sales189614 | Last modified 11/21/2011 10:27 am by Dani Chankhour | 694 views | 2 replies |

sales189614

PowerCMS comments out PowerGallery code

So I have a support ticket open (#135314 for any support people who want to see it), and I'm almost to the point of FINALLY getting PowerCMS working properly, after weeks of trying.

My problem now is that PowerCMS refuses to allow me to put PowerGallery code into a page without commenting it out.

If I go back into edit mode in PowerCMS, and un-comment the PowerGallery code and hit the update button, everything works properly but it refuses to save the changes I made to un-comment it. I can make any other changes and they are saved, but if I paste PowerGallery code into a page in PowerCMS, PowerCMS comments the code out. It's definitely a problem with PowerCMS and not PowerGallery (at least I think so).

If I add the following DIRECTLY FROM PowerGallery:

<?php
$pg_id = '5';
$pg_theme = 'light';
include('/home/zecobiz/public_html/gallery/galleries/grid_lightbox/index.php');
?>

PowerCMS saves it as:

<!--?php
$pg_id = '5';
$pg_theme = 'light';
include('/home/zecobiz/public_html/gallery/galleries/grid_lightbox/index.php');
?-->

And when I try to un-comment it, it does not save the changes.

I wanted to see if anyone else has had this same problem because I do have a support ticket open and Dani has been great, but it has been taking a couple days to get a response to ticket replies and I don't have a couple days. I have to get this site done for my client by Monday or I am going to lose this client, who has been a loyal client since '03. And if I don't get a reply today, then I'm sure I won't be getting a reply until Monday, and that will be too late.

If anyone has had this same problem, could you please let me know what the fix was for you?

Thanks everyone!

Sign in to reply to this post

sales189614

THE SOLUTION (if you can call it a solution)

Ok, so Dani just got back to me, and I am shocked. For anyone who doesn't know this, and I didn't, "PowerCMS and PowerGallery 2 are not currently compatible".

So if anyone runs into this same problem, this is what needs to be done, and this is copied and pasted directly from my support ticket:

The issue is that you are copying the PowerGallery PHP code into PowerCMS. There is two issues with that:

1. You can't copy PHP code into a ckeditor because PHP is a server side code
2. PowerCMS and PowerGallery 2 are not currently compatible.

However, I have a work around that should let you add PowerGallery to PowerCMS.

Basically we will need to convert the PowerGallery PHP code to HTML before inserting it to the CMS area. As an example, if you have a PowerGallery code:

<?php
$pg_id = '1';
$pg_theme = 'dark';
include('/Users/dchankhour/Sites/test/powergallery/galleries/ribbon_fullsize/index.php');
?>

and replace it to the following:

<input id="1" name="powergallery" theme="dark" type="hidden" value="/Users/dchankhour/Sites/test/powergallery/galleries/slideshow_dissolve/index.php" />


The Two important thing to match is the id and the path.

Once you have the html, you can insert that into the CMS area.

Then, you will need to replace the following files which i'm attaching:

1. WA_CMS.php in the WA_CMS folder
2. library.php in the WA_CMS folder.

Once you have done that you should be able to use PowerCMS to load Galleries.

I am attaching the WA_CMS.php and library.php that Dani provided me with. I need to let you know that he also edited WA_CMS.php to get rid of the edit function showed on the page if you are logged into PowerCMS, so please be aware that function has been taken out.

Anyways, this has absolutely cemented my decision to never again purchase anything else from WebAssist ever again.

I hope this can help someone else, that is the only reason I am posting it.

Attached Files
136012.zip
Sign in to reply to this post

Dani Chankhour

Thanks.

I'm also attaching the addtosite.php which shows the html code if your version of PowerGallery (mainly PG 2) does not include it.

Attached Files
addtosite.php.zip
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...