Is it possible to download the gallery locally, and then open the default themes in the latest Dreamweaver, so as to modify the css file, images, and other aspects of the main page? I can go fishing and figure out how the php gallery works and do things manually, but that would be quit time consuming. I need to add links back to the main site, change the theme to match the main site, remove "gallery" icon and links at the bottom of the default page and so on. I do realize that I can remove many of the menu items in admin also.
Thanks for the help.
Posts: 8339
Visually embedding gallery into an exsisting site gives it the look and feel of the parent site.
ie. header, footer, css ...
http://codex.gallery2.org/index.php/Gallery2:Embedding
if you do a little search of these forums, I and others have posted some example files to help get you started.
I have an example page here.
and you can dl it here.
Hope this helps.
-s
Posts: 394
I saw your example and that is EXACTLY what I want to do.
Posts: 394
Imagine that. It's even called "embedding." hehe thanks a lot.
Posts: 394
I downloaded your main.php, so what do I do with it? I assume I drop in over the remote client (after backing it up) and I'll get a gallery main page stripped of everything, and ready to embed--after I change the css how I want it in teh template css file? I found how to remove the gallery2 icon and link in the footer--just go to themes.tpl and delete that section (after making a "local" directory and copying the themse.tpl into it). So exactly what "is" the main.php file? I assume, not knowing anything abut php, that it is telling the php engine on the server what information it needs to populate itself and where to find that information? Please explain it's function for me and what I need to do with the one I downloaded.
Thanks
Posts: 8339
DO NOT REPLACE YOUR MAIN.PHP
this file is intended to be an alternative entry point to your gallery
you could rename it to anything you want ie mygallery.php gallery.php... but do not replace any of gallery's own files.
you will of course need to edit this file to suite your needs.
the first 5 lines need to be edited to reflect you r system setup.
and anything after line 82 would be your visual layout.
upload to your gallery2 directory and you should be ready to go.
-s
Posts: 394
Gonna post another thread as needed.
Posts: 32509
all visual changes should be done in themes/*/theme.css / themes/*/templates/*.tpl .
these changes affect what main.php renders of course. main.php has no code that does affect visual stuff. code and visual presentation is separated in gallery 2.
Posts: 394
deleted
Posts: 1
apparently my knowledge of web site design is much lower than I thought... can someone help me with how to integrate in a simplfied manner? I don't know anything about PHP
Posts: 24
New to Gallery. Was wondering... Any way to just stick my gallery into a div on a dreamweaver generated site/page? (Editable area on page from template specifically) Orig site was created from a 3-col/header/footer template and I want my gallery to appear in the middle column just like the info on the rest of my pages. I know I'll have to copy and change a lot of the orig, gallery css info into my existing page css.
Posts: 8339
Take a look at the script I made for this guy. http://gallery.menalto.com/node/79677
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Wow, very impressive indeed. Beautiful. Really like the sidebar implementation. Print guy here trying to be a web guy and in way over my head. Question: It that completely done thru Gallery2 or is the gallery included on a pre-existing page? or is there a difference? Sorry to be so ignorant.
Here's the prelim version of the site I'm building: http://www.southjerseymarina.com/ma500/Index.html
And here's the gallery I've started playing around with: http://www.southjerseymarina.com/gallery/main.php
Would love to have gallery in the center panel on a Photos page. Can I put it there with dreamweaver? Or do I have to figure out how to modify the .tpl's and theme.css to mimic my site? I notice the square image swap at the top left and the Premier Sponsors roller would be done thru Gallery blocks rather than served up as ad campaigns thru OpenX. Very cool.
I'm running Gallery2.3 and currently using the Matrix theme.
Thanks for your time which, judging from your expertise, wouldn't come cheap.
Posts: 8339
You can actually download the sctipt there, and follow the directions I gave him.
The script is fairly commented and easy to use.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
I was afraid you were gonna say that. I'll dig into it tonight but I don't have much faith. Until 2 days ago I had never heard of Gallery. I'm a pretty good cheater so I muddle through html and css OK but I'm not fluent. The last code I actually WROTE was some version of fortran in the late 70's... lol
Thanks much,
BobW
(What's your hourly rate by the way? lol)
Posts: 24
I was right. I have no idea where to start. Thanks for trying.
Posts: 8339
Like this?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Absolutely amazing and beautiful and PERFECT! So, what do I do with file you sent me? (Don't you just love amateur hour at the funny farm?) By the way, your photo gallery pro is really slick. Just created a user account with Flash Your Web. Media block and the XML media player are great. Definitely want to be able to let customers upload video of fishing. People are giving me DVD's all the time and asking me to put them on our site. VERY COOL! And your site is really clean and pro looking.
Here's our current Mid-Atlantic site we're replacing if you like fishing stuff: http://www.midatlantic500000.com/
Thanks much
Posts: 8339
Rename to index.php and replace the one in your gallery directory.
But first you'll have to edit line 8 to reflect yoursite.
from:
$ret = GalleryEmbed::init(array( 'g2Uri' => '/gallery2/', 'embedUri' => '/gallery2/southjerseymarina.php', 'fullInit' =>'false'));
to:
$ret = GalleryEmbed::init(array( 'g2Uri' => '/gallery/', 'embedUri' => '/gallery/index.php', 'fullInit' =>'false'));
lines 15 - 17 are some options you can set.
and you'll want to use the carbon theme for your default theme, and grab the theme.css from the other thread and replace the one in your carbon directory /gallery/themes/carbon/theme.css
On another note, your MA$500_css.css is a mess, if that is how dreamweaver is writing it, I'd be weary.
So I hardcoded the css for this gallery embed.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
The theme.css_.txt file from thread 79677? Did that, and installed carbon theme but without any customizations yet. Made the path changes to southjerseymarina.php_.txt, renamed and uploaded.
For some reason I get a completely blank page when I go here:
http://www.southjerseymarina.com/gallery
and
http://www.southjerseymarina.com/gallery/index.php
I get my gallery in the new theme, with the basic Gallery2 layout, when I go here:
http://www.southjerseymarina.com/gallery/main.php
Any clues?
Also, with the old index.php, when I go to southjersymarina.com/gallery, the page resolves too southjerseymarina.com/gallery/main.php but with the new index.php the page just stays blank and the ie url stays the same... southjeresymarina.com/gallery
Posts: 8339
your editor polluted the file.
try download and try again with plain old notepad.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Did it, no dice. I'm clueless. I know I didn't screw up the simple one-line change you told me to make.
Posts: 24
OK, tried purching caches, lost thumbs, tried to rebuild, timesd out, lost paths to albums, erased albums...
Now when I go to
http://www.southjeserymarina.com/gallery
I get:
Error
Item not found.
Back to the Gallery
Error Detail -
Error (ERROR_MISSING_OBJECT) : Missing object for 1400
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2054 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 98 (GalleryStorageExtras::_identifyEntities)
in modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
in modules/core/classes/GalleryView.class at line 403 (GalleryCoreApi::loadEntitiesById)
in modules/core/classes/GalleryView.class at line 260 (GalleryView::loadThemeAndParameters)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in modules/core/classes/GalleryEmbed.class at line 189
in index.php at line 18 (GalleryEmbed::handleRequest)
System Information
Gallery version 2.3
PHP version 5.2.5 cgi-fcgi
Webserver Apache
Database mysql 5.0.67-log
Toolkits Gd
Operating system Linux p3nlh009.shr.prod.phx3.secureserver.net 2.6.18-92.1.10.el5PAE #1 SMP Tue Aug 5 08:14:05 EDT 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
God I'm dangerous
Posts: 8339
Well, its actually my fault.
you need to either change line 17 to the default album you want to display or comment it out like I did the line above.
my sample album was 1400, I should have commented that out before passing it along.
But on the upside you had it working
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Too funny, no worries. But I may have busted this thing really good... lol. you gotta tell me tho I have no idea what the defaultAlbumId is nor how to comment it out. <- Moron remember
Posts: 24
Holy hell, adding // at the beginning of that line does amazing things... lol. I think I'm running. DAMN you're good (read that... THANKS!!!)
I'm sure I'll have more questions
Posts: 24
Outstanding, got it looking like my site! Now for the meaty stuff. When I click on any link other than an album, I get that blank white page. Likewise when I click into an album, then try to click "outward" on the path navigator bar. If I use the sidebar to go to an album, the page blows out to the full standard view not using our new custom page. To change the view of text, ie colors and sizes of album names, keywords, etc... I find the correct tags in the theme.css file and change them? Do I edit the album.tpl to eliminate the descriptive left column on album pages to make room for another photo column? And also the appropriate .tpl to remove the top, left Gallery logo? (Don't worry, I know to rename and not overwrite the originals.)
Thanks, your help has already been invaluable.
Posts: 8339
It seems that whenever the g2_highlightId=2011 is present you get the blank page. Not really sure whats going on there.
If you could check your apache error log to see if there is a clue.
The "outward" links directly to the image, its not supposed to be embedded.
Seems to be working for me.
but check your gallery/config.php to see if the last line points to your index.php and not main.php
$gallery->setConfig('baseUri', 'http://www.southjerseymarina.com/gallery/index.php');
yup
you control the number of columns in the album theme preferences edit album -> theme
if you want them all the same edit the root album and check the box to "use for all sub-albums"
theme.tpl
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
I'll ask my host how to chech the apache error logs.
The "outward" links directly to the image, its not supposed to be embedded. < Not sure what that means. When I click tourns/showdown to go into the showdown gallery, then click either gallery or tourns above left (adjacent to login line) I get the blank page, probably related to other blank page issue.
config.php WAS pointed to main... fixed it thanks.
I know to edit album them to control columns and rows etc, but I want to actually eliminate the group of text to the left of the album columns which on the initial gallery page says:
Gallery
South Jersey / Canyon Club Photo Galleries Home Page
Date: 11/30/2008
Size: 1 item (48 items total)
I'm guessing the actual page description is in a .tpl
Thanks again.
Posts: 8339
I have a similar setup on mysite with a modified index.php, and I have none of the blank page issues.
But yours seems to be related to the highlight, see if disabling that module has any effect.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Wow, now I can't get logged in. Goes to blank page. Even when I switch to the original index.php it just resolves to the initial page waiting for login. hmm
Posts: 24
OK, back in, had to use the orig config.php too. DUH! Now switched back to new stuff. Can you explain disabling module please? Are you taling about a theme setting or a plugin? (I tried disabling the URL rewrite plugin to see if that had any impact on the blank pages but no.)
Posts: 24
I enabed a 24-hour apache error monitor and talked to a sr tech at godaddy. He doesn't think I'm gonna get anything because there is no error to report. The page is making a call and is displaying the called page, there's just nothing on the page. He said talk to someone at Gallery... lol. Was a great eye that you noticed the problem occured on pages containing g2_highlightId's
Posts: 24
-s
Can you check out this link?
http://gallery.menalto.com/node/71162
It appears there is a solution but I don't know which file needs it.
Thanks so much... I already owe you a nice steak... afraid I'm gonna owe you the whole restaurant b4 this is over... lol
Posts: 8339
Well, I'm not sure why, but place this
unset($_GET['g2_highlightId']);
just above line 7
require_once('embed.php'); // Path to Gallery's embed.php
maybe a bug with highlight module, althought its the first I've heard of it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
Very good thanks. Pretty strange eh? Works great except I still get it when I try to login.
Posts: 8339
You get the blank screen when logging in?
Try clearing your browser's cookies.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 24
thought of that already, still no dice. You can try if you like
UN: Bob W test UN
PW: test
maybe the login page doesn't use the index and that line of code needs to be included on some other page? I dunno, just speculating without the knowledge to do so.
Posts: 24
Interesting, it also blows out when I'm logged in and try to switch between used and guest display modes and when I click any site admin button like create user, create group, save theme settings, save default, etc.
Posts: 8339
I think your file is corrupt, did you get my email?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2