embedded theme

crbaadmin

Joined: 2011-05-11
Posts: 7
Posted: Wed, 2011-05-11 02:36

I dont want anything fancy it dont have to be visually seamless withthe rest of the site -- I just want it to look the same when i log in directly or embedded. When i log in directly i have navigation and it looks organized and all is well when I log in thru embedded app it is just a bunch of stuff dumped on a white screen :-) plz help I am certain I am missing something simple. even the built in images dont work cause it is looking in http://localhost/images/galleryLogo_sm.gif in embedded
and
http://localhost/crba/gallery2/images/galleryLogo_sm.gif
when stand alone

I have attached the embed php I am using I am certain my error lies in there

Thanks in advance for your help
+++++++++++++++++++++++++++
system info
Gallery URL = http://localhost/crba/gallery2/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.4 apache2handler
Webserver = Apache/2.2.17 (Win32) PHP/5.3.4
Database = mysqli 5.1.53-community-log, lock.system=database
Toolkits = Exif, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Windows NT JERRY-WIN7 6.1 build 7601 (Unknow Windows version Business Edition Service Pack 1) AMD64
Default theme = matrix
gettext = disabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Embedded Web Browser from: http://bsalsa.com/; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C)


Gallery version (not just "2"):
PHP version (e.g. 5.1.6):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

AttachmentSize
gallery2.php_.txt3.38 KB
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-05-11 03:01

Try my easy embed tool instead.
Some samples.

If you need further help, let me know.

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

 
crbaadmin

Joined: 2011-05-11
Posts: 7
Posted: Wed, 2011-05-11 03:54

WOW -- who knew it could be that easy :-) much thanks

 
crbaadmin

Joined: 2011-05-11
Posts: 7
Posted: Wed, 2011-05-11 17:00

Can I bug you for one more thing. After doing this I can get to the gallery screen and i can see the album that is already there but it does not appear that the users have any permissions and there is no one in the registered user group. all attempts to get use addusertogrp have failed and even in the admin interface I am not alowed to modify the grp. :-) I am just trying to get back the add album/add item for logged in users -- thanks

This forun is great but it is huge and it is really hard to find items like this that have multi key word components.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-05-11 18:35

So you're saying that from the embedded page you created you cannot login? or just show no sidebar for album/item options? or just not able to add items?

Is this the same from gallery's main.php?

url to embedded page?

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

 
crbaadmin

Joined: 2011-05-11
Posts: 7
Posted: Wed, 2011-05-11 19:39

nevermind -- I'm going to uninstall it. It keeps losing it's admin passwords and the capcha doesnt work so I have no way to recover them and i'm tired of reinstalling the whole thing just to get to the admin function. I am just going to move on to a differnt less complex solution -- thanks anyway

 
crbaadmin

Joined: 2011-05-11
Posts: 7
Posted: Wed, 2011-05-11 22:44

My bad -- To my credit I did at least keep reading before I wrote off a very nice package -- the problem with the admin login failing was a problem with IE not gallery2. Once I switched over to using Chrome the login problem went away. -- again thanks for your help. I worry a little that i dont have control over what browser the users prefer and if they start to have log in issue my site traffic will drop like a rock

One other thing I will caution any new users setting up an embedded install -- be sure to set registration to auto and albums to build when user is added before building the extermal mapping so that you get a useable screen and permissions that allow them to do stuff.

Haven't figured out how to log into the admin from emmbedded so I dont know if there is anything special needed there.

Once again thank you very much for your help :-)

captcha still doesnt work and I know I am typeing in the right letters -- tried both upper and lower case and it always says they dont match

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-05-11 23:24
Quote:
Haven't figured out how to log into the admin from emmbedded so I dont know if there is anything special needed there.

try adding:

$session = &$gallery->getSession();
GalleryUtilities::putRequestVariable('authToken', $session->getAuthToken());

just before:

$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
    exit;
}
GalleryEmbed::done();

may fix your IE and captcha issues too

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