Page 3 of 5
Posted: Wed 23. Feb 2005, 08:55
by shakkalakka
cyaneo wrote:Hmm - I didn't get it work - the links aren't correct...
That's right - I forgot to add the phpwcmsalias variable. Go and download it again. At the beginning of the script you'll find a config variable called $phpwcmsalias. Set this to the alias of your gallerysite in phpwcms (it's important to have an alias for it). then it should work fine.
Posted: Wed 23. Feb 2005, 12:16
by cyaneo
Sorry - still not working....
What I did:
first of all, I downloaded the new package today.
1. in gallery.inc.php I enter for the path:
also I try
http://www.domain.de/galerie/ (w/o http://)
2. gallery.inc.php $phpwcmsalias="mygalery"
3. copy the content of the zip into "galerie" (
http://www.domain.de/galerie/)
4. New Article with plain Text, content:
Also {PHP:
http://www.domain.de/galerie/gallery.inc.php} doesnt work (w/o http://)
Also I try:
New Article with code:
[PHP]include ("galerie/gallery.inc.php")[/PHP] or any other path (URL and absolute path)
Now, the link of a gallery is
Code: Select all
http://www.domain.de/index.php?mygallery&mghash=3906bd72a7bc4604bfe70bb316ca287f&mggal=1
but all these links still redirects to the startpage of my phpWCMS...
Posted: Wed 23. Feb 2005, 12:36
by shakkalakka
What do you mean by 'I enter for the path'?
Be sure to have set the $pathtoscript ,at the beginning of the gallery.inc.php file, to $pathtoscript="galerie/"; (in your case).
The $pathtoscript variable describes the path from the file where the script is included in to the folder where the gallery.inc.php script is.
Posted: Wed 23. Feb 2005, 12:49
by cyaneo
My $pathtoscript="www/htdocs/user1212/galerie/";
correct?
Posted: Wed 23. Feb 2005, 12:52
by shakkalakka
No. Please re-read the thread above...
Be sure to have set the $pathtoscript ,at the beginning of the gallery.inc.php file, to $pathtoscript="galerie/"; (in your case).
Posted: Wed 23. Feb 2005, 13:09
by cyaneo
Now I set it to
and get this error:
Code: Select all
Fatal error: Cannot redeclare class mdasort in /www/htdocs/user1212/galerie/gallery.inc.php on line 159
Posted: Wed 23. Feb 2005, 13:15
by shakkalakka
it doesn't make sense to discuss everything over this forum. Contact me under ICQ or MSN, you'll find the numbers/addresses on
http://www.planetluc.com/support.php?navid=9
Posted: Wed 23. Feb 2005, 13:31
by cyaneo
Sorry - I dont have ICQ or MSN (just skype)...
But:
I changed the $phpwcmsalias="mygallery"; to $phpwcmsalias="fotogalerie";
and - why ever - now it works!
Thank you 1000times!!!
Posted: Wed 23. Feb 2005, 13:44
by shakkalakka
I changed the $phpwcmsalias="mygallery"; to $phpwcmsalias="fotogalerie";
and - why ever - now it works!
Under which alias does the gallery run in phpwcms? Is it 'fotogalerie'...? :wink:
Posted: Wed 23. Feb 2005, 13:55
by cyaneo
Thats right man!
That's now I learn that the $phpwcmsalias must be the same alias of the structur alias
"sometimes you have to stand up, cause you sitting on the cable"
(german proverb)
Posted: Thu 24. Feb 2005, 12:06
by shakkalakka
Guys, I'm sorry but I was a bit too fast in releasing it. I'd better have tested the script before uploading it... Anyway I fixed some bugs:
- Now you can set captions, add/delete pics in gallery edit mode too.
So please d/l i t again at
http://www.planetluc.com/scripts_mygall ... ?navid=3|5
Cheers, Lukas
tutorial
Posted: Wed 9. Mar 2005, 11:02
by rushclub
i am working on a site with the mygallery-script and i will make a tutorial with screenshots in the forum on this topic asap. so it is easy for others to set it up.
cheers
rush
Re: tutorial
Posted: Mon 9. May 2005, 15:32
by Findus
rushclub wrote:i am working on a site with the mygallery-script and i will make a tutorial with screenshots in the forum on this topic asap. so it is easy for others to set it up.
cheers
rush
Hi,
have you finished any documentation?
Findus
PS: Documantation is like ****. Bad one is better then nothing at all.
Posted: Mon 9. May 2005, 16:00
by rushclub
1. create a directory in include/inc_ext/ called mygallery
2. download the script under
http://www.planetluc.com/scripts_mygall ... ry_1.3.zip and upload the files to the created dir
3. chmod as desrcibed in the readme
4. open gallery.inc.php
5. define $adminlogin and $adminpwd
6. define $pathtoscript (in my case: "include/inc_ext/mygallery/")
7. define $phpwcmsalias (in my case "bilder")
8. safe the changes
9. go to backend of phpwcms and define a category with an alias called "bilder" ($phpwcmsalias)
10. create a new article with a contentpart "text" and insert:
{PHP:include/inc_ext/mygallery/gallery.inc.php}
thats it
cheers
rush
Posted: Tue 10. May 2005, 23:08
by Findus
Hi,
ich habe MyGallery auf einem 1und1 Server eingerichtet. Da dort das ZIP-Modul für PHP nicht mit übersetzt wurde
, habe ich in dem Script ein FTP-Import eingebaut
, analog zur Bilderübernahme.
Den SourceCode habe ich an Lukas gesendet.
Sollte Interesse bestehen und Lukas die Änderungen noch nicht frei gegeben hat, dann meldet euch.
Gruß
Findus
PS: Mir würde hier nur noch eine Trennung von Frontend und Backend fehlen.