Attempting to embed G2

Discussion corner for Developers of Serendipity.
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

I do want the sidebar on all pages except 1, because as you can see when you click to load an image, it would all get in the way. I'll take a look at the others, because I *want* this to work good, and work smoothly! Thanks for the suggestions
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

:-)

I very much like your enthusiasm! I do think you should get this solved, and I'm really sorry that I cannot currently give you much more advise on this - it's going to be a busy month for me, and I like to get my theme submission for the contest canned. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hmmm. How about a compromise? People generally don't want their sidebars to disappear anyway, so we could leave them in... but we could put them below your image on the page. That would even leave space for a thumbnail or gallery or something in the space where the entries would normally go.

For that, you'd just hook "frontend_header" and call show(). Your content would go before the banner, then the normal page would be shown. You could call a gallery.tpl to format your stuff, and you could even duplicate the banner there if you liked.
Judebert
---
Website | Wishlist | PayPal
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

I looked at those other plugins and how they use smarty and their own tpl files, but that really doesn't help me out any.

Here is what I did: http://nopaste.php-q.net/188342

Basically, if the gallery meets one of my criteria (being logged in, or viewing a single image) it will hide the sidebar and set the width to 670px on the gallery div forcing it to go over top of the sidebar div.

This is really the only way I can see to accomplish what I wanted. I plan to make the forced width configurable.

I don't see any reasons why it wouldn't work this way, does anyone else? Am I missing something?

Garvin, its the same url that I private messaged you the other day if you care to check it out.

If anyone else would like to see it, please pm me for the url. (Would like to keep the url off the forum)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

If you position the div absolutely and give it width of 100%, then it'll take up the entire screen.
Judebert
---
Website | Wishlist | PayPal
boelkstoff
Regular
Posts: 19
Joined: Wed Feb 02, 2005 8:46 pm

Post by boelkstoff »

Hello.

Can somebody explain how to embed s9y and gallery2 ?
I have installed both and both are working.
I also have installed the " Gallery2 Embed: gallery2" Plugin.
But I am not sure what to put in the path and all the other stuff, can somebody please explain.

I think I am not the only one having problems.

Thank you very much
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

I can offer examples in the plugin, if you think that would be helpful.

Gallery 2 System Directory
- the full system directory path to G2
- Example: /full/system/path/to/g2

Gallery 2 HTTP Path
- the absolute http path to G2
- Example: /gallery2

Serendipity Embed File Name
- the absolute path to the file you will call within S9Y for gallery
- Example: /s9y/gallery2.html (This assumes S9Y is installed in the /s9y directory)

Let me know if this is still unclear

Remember, this only works with Gallery 2.1 RC2a or newer.
boelkstoff
Regular
Posts: 19
Joined: Wed Feb 02, 2005 8:46 pm

Post by boelkstoff »

Hello.
Ok I have setup the following:
Gallery 2 System Directory : /home/www/web2_103/html/zps/gallery2/
Gallery 2 HTTP Path : /gallery2
Serendipity Embed File Name : /gallery2/gallery2embedded.php

When I call my testwebsite: http://pschneider.info/
I will see my sy9 which is installed into: home/www/web2_103/html/zps/


To call the gallery I use:
http://pschneider.info/?serendipity[subpage]=gallery2

But when I click on the only album of the gallery I will not see the typical s9y design.
What am I doing wrong?


To call the gallery directly without s9y use: http://g.pschneider.info/main.php
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

Currently, the plugin is designed to have the gallery install outside of the s9y directory. I found its very messy to keep it inside that directory. And really, i think it's going to cause you more grief than its worth to do that.

I usually have serendipity installs in a /s9y folder .. then gallery in the /gallery2 folder, and that has always worked.

I'll take a look at the code later tonight and see if anything can be changed.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you have gallery2 inside a s9y subdirectory you must modify a .htaccess file in the gallery2 directory and turn of mod_Rewrite if you're using that!

Code: Select all

RewriteEngine Off
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

garvinhicking wrote:If you have gallery2 inside a s9y subdirectory you must modify a .htaccess file in the gallery2 directory and turn of mod_Rewrite if you're using that!

Code: Select all

RewriteEngine Off
Regards,
Garvin
That might work for now, but G2 also has an option to use mod rewrite to make nice urls, this would probably kill all hopes of that.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, but if one uses G2 with URL Rewriting within a s9y subfolder, he's doomed. :-)

You would then need to reset every single s9y mod_rewrite rule within the G2 mod_rewrite.

Thus, I can only agree with you that installing G2 outside of the s9y tree is a sane thing to do.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
steve
Regular
Posts: 18
Joined: Sun Nov 30, 2003 3:42 am

Path Questions (Again????)

Post by steve »

We installed Serendipity in SHARED installation config per 41.html

It's located at /usr/local/lib/php/s9y/

The user web root is located at

/var/www/html/12345/user-htdocs/

We installed gallery2.2 in multisite mode. This user's Gallery2 is located at
/var/www/html/12345/user-htdocs-gallery/

We installed the plugin "Gallery2 Embed (gallery2) " with no errors and configured the following:
Gallery 2 System Directory /var/www/html/12345/user-htdocs/
Gallery 2 HTTP Path /var/www/html/92627/supertec/
The Serendipity Embed File Name gallery2.html
Well, any way, it does not work with these settings, when we enter www.userdomain.com/gallery2.html

When we look to the static page "other plugins" tab, we see "serendipity_event_usergallery Plugin is available, but not installed"

Where are we going wrong?
steve
Regular
Posts: 18
Joined: Sun Nov 30, 2003 3:42 am

some headway

Post by steve »

OK what we did here was create a sylink to the /var/www/user-htdocs-gallery/ folder and used gallery2 as the value.

Now we see the front page of gallery2 embedded in the page, however, nothing will execute there - when one clicks on a thumbnail, for example, it should go to that album......

Does anyone have this working?
Post Reply