After creating the gallery2embedded.php - Where do we go from Here??

BNBbabywear

Joined: 2010-06-24
Posts: 5
Posted: Wed, 2010-11-17 05:05

ok i am totally new to this.... i have followed the embedding instructions but what to do from there? i am lost.. i have used the Acme G2 generator and that was great but in a nutshell this is what i need (if its at all possible):

here's what im trying to figure out....
http://codex.gallery2.org/Gallery2:How_to_visually_embed_G2_in_your_own_website_using_embedded_mode

that needs to embed this...
http://www.bnbbabywear.com/Gallery/main.php

into this...(which right now has a lightbox)
http://www.bnbbabywear.com/accessories.html

i basically want to use gallery2 to allow the client to upload and create their own albums without my help, which is what they want.

PLEASE HELP ME!!!

~ new to this php thing :S

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-11-17 05:21

in your gallery2embedded.php change line 2 to:
require_once('/hermes/bosweb/web092/b922/glo.bnbbabyware/Gallery/embed.php');

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
BNBbabywear

Joined: 2010-06-24
Posts: 5
Posted: Wed, 2010-11-17 12:12

ok thanks, now from there ( i changed line 2 to the following code you gave) what do i do with this .php now? sorry for being such a novice :S

~ new to this php thing :S

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-11-17 17:52

rename the attached to accessories.php and upload to http://www.bnbbabywear.com/accessories.php

This will be where your new gallery page is.

my working copy http://www.flashyourweb.com/gallery2/accessories.php

if you'd like to use my clear theme(like in my example) you can get it here.

There are some options you can set from lines 33 - 41

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-11-17 22:21

It looks like maybe you had altered your theme to have the site's header and such.
I'd suggest using my clear theme, its a clean/non-cluttered theme.
And it would be easy to hide certain theme components from the general public.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
BNBbabywear

Joined: 2010-06-24
Posts: 5
Posted: Thu, 2010-11-18 01:57

WOW! you made it look so simple! thanks so much!...ok i guess im almost there with the important bits...here is what is coming up now:

http://www.bnbbabywear.com/accessories.php

i looked through the code to figure out why my header is still showing up in the box below but couldn't figure it out on my own..

also i guess 2 last things.

1) i want the php to link just to the album itself not the main.php how do i do this?
http://www.bnbbabywear.com/Gallery/main.php?g2_itemId=30

2)the clothing pages will draw from different albums from the g2 ( accessories, newborn, ect..) how do i direct each php i create to show or route to a particular album?
ex: this would be where ppl will chose which collection to go to:
http://www.bnbbabywear.com/collections.html

Again i say thanks! your teaching me a lot!

~new to this php thing :S

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-11-18 02:06

Like I said before, use my clear theme.

  • Unzip and upload to Gallery/themes/clear
  • install through gallery admin -> plugins
  • un-comment line 36 of accessories.php and set clear theme as default.

You don't need separate scripts for each album, just link to each album separately from your menu.
like for example, your main album is here, whereas your newborns album is here. And any album you create will have its own url.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
BNBbabywear

Joined: 2010-06-24
Posts: 5
Posted: Fri, 2010-11-19 05:08

Ok i uploaded the clear theme but in the themes section in the admin it says its incompatible and has no option to install....i also tried to use the carbon and change the theme to make the background white since it wouldnt let me use the clear but it didnt work either.. :S

~new to this php thing :S

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-11-19 12:09

Gallery 2.2? Don't tell me, auto install through your host?
that's very old, glad we caught it early.
Get a copy of 2.3.1 and just dump the whole 2.2 and start over.
Just simply empty your database, empty your g2data storage directory and replace the 2.2 files with 2.3

Many things work better in 2.3 - it's worth the upgrade.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
BNBbabywear

Joined: 2010-06-24
Posts: 5
Posted: Fri, 2010-11-19 23:34

OMG Perfect! thanks so much for your patience..... :D

~new to this php thing :S