Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 03:52:55 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: MyGallery v1.8.1  (Read 548 times)
otto1303

Offline Offline

Posts: 1


« on: April 18, 2010, 01:12:12 AM »

First, I'm not a programmer, but I like WebSiteBaker.

I want to integrate a photo gallery on my site called MyGallery (http://www.planetluc.com/en/scripts_mygallery.php). It is a gallery that does not use Database, but DAT files.

I uploaded the gallery and its folder is called "mygallery_181" in the root of my site. The script indicates that I must to write <? include ("../ mygallery_181/gallery.inc.php ");?> in the place where I want to see my gallery and I wrote in my droplet.

Then I created a page and wrote wysiwyg [[mygallery_181]]. And when I see the page I get "Error in: mygallery_181, returnvalue not correct."

My test site is: http://moroko100.comze.com/pages/galeria-2.php and is in Spanish.

My gallery aoutside of WebSiteBaker is:
http://moroko100.comze.com/mygallery_181/

Someone could help me?
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #1 on: May 04, 2010, 08:14:33 AM »

You cannot just put php code like that in a droplet, and call it with [[blahblah]]. A droplet needs "embedding code". Have a look at other droplets.

A simple php call like you describe is called a snippet, and it needs to be used in a page with section type "Code" or "Code2", or just hardcoded in the template.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!