1 of 2
1
Gallery browser for the publish page….
Posted: 30 October 2005 02:48 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Over in this thread there was talk about adding gallery pictures to articles via the publish form.  While a gallery folder can be added to the ‘upload prefs’ and then browsed, the desire was for something that would place gallery thumbs in entries and have them automatically link to the gallery page for that particular thumb.

Gbrowser.zip is a really quickly mod I hacked together that does basically that.  It’s not really a file browser- more a gallery browser, and there’s no image manipulation/resizing.  It looks pretty much like the regular image browser when used- but you browse by gallery, it just shows (and inserts) the thumbs, and I added some variables to pre-formating and image properties, so you can use things like the gallery entry id or the title or caption - thus linking from the thumb to the gallery single entry page automatically.

Unfortunately, it does require a minor hack to get a link to the browser to show up on the publish page, but once 1.4 comes out, should be easy enough to eliminate that need.

Anyway- was a quicky, and I’ll revisit it once 1.4 is out- so if anybody wants anything added- or runs into bugs- give a yell.  It’s not a priority, but I figure it will be a good module to learn ‘extensions’ on, so I will be playing with it in the future.

Documentation stinks- but this one isn’t rocket science.  The install instructions should be enough to get you giong.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 30 October 2005 04:18 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

wiki’d

 Signature 
Profile
MSG
 
 
Posted: 30 October 2005 04:33 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

;o)  Yes- I am lazy.  But look!  I did finally get around to adding links to my sig!  Oh!  Shiny, shiny links. 

That I copied directly from your sig.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 31 October 2005 01:30 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  55
Joined  10-15-2005

I get bad sql for MySQL when EE tries to install it.

Description: Too big column length for column ‘gal_pre_format’ (max = 255). Use BLOB instead

Query: CREATE TABLE exp_g_browse_prefs ( id int(4) unsigned NOT NULL auto_increment, gallery_id int(4) unsigned NOT NULL, is_user_blog char(1) NOT NULL default ‘n’, name varchar(80) NOT NULL, server_path varchar(100) NOT NULL, url varchar(100) NOT NULL, properties varchar(200) NOT NULL, link_gal char(1) NOT NULL default ‘y’, gal_pre_format varchar(500) NOT NULL, gal_post_format varchar(500) NOT NULL, link_img char(1) NOT NULL default ‘y’, link_med_img char(1) NOT NULL default ‘n’, img_pre_format varchar(500) NOT NULL, img_post_format varchar(500) NOT NULL, PRIMARY KEY (id) )

Profile
 
 
Posted: 31 October 2005 01:46 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Hm- I couldn’t replicate the error, which is probably a result of mysql version diffs.  However, I dropped the varchar down to 250, which should still be plenty big.  Just replace the mcp.gbrowser.php file with the new one and I think it should take care of the problem.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 07 December 2005 05:07 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

Hey, Robin—finally decided to try this. There’s a typing error in the description:

Gallery broswer for you publish page

Should be

Gallery broswer for your publish page

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 07 December 2005 05:10 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

Or, quite possibly, Gallery browser for your publish page.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 07 December 2005 05:17 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

Snicker.. you’re right. Too early in the morning here.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 07 December 2005 11:15 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Oh, man.  I stared at those for 5 minutes before I figured out the difference! 

LOL- I’ll change it whenever I get a newer version out- post 1.4 because I want to figure out how to use extensions to hopefully remove the hack.  And there have been requests for a simplified uploader (no choosing folder or no choosing where to insert it and stuff)- I figure it ought to be easy enough to ad some more config options to this module and maybe it could handle any of that.  Preferably, you could have multiple configs and then display based on member group or weblog or a combo of the two or whatever.  Theoretically shouldn’t be difficult.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 24 December 2005 06:38 AM   [ Ignore ]   [ # 9 ]  
Lab Technician
RankRankRankRank
Total Posts:  1023
Joined  03-25-2005

Robin,

Totally awesome! I love the choices including pre and post formatting options. Way to go, a welcome addition to EE’s already terrific functionality.

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 04 January 2006 06:48 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
RankRankRank
Total Posts:  349
Joined  05-22-2005

I get an error also Robin, any ideas? I’d like to try it out.

MySQL ERROR:

Error Number: 1146

Description
: Table 'db_name.exp_galleries' doesn't exist

Query: SELECT exp_galleries.gallery_id as g_id, gallery_full_name FROM exp_galleries LEFT JOIN exp_g_browse_prefs ON exp_galleries.gallery_id = exp_g_browse_prefs.gallery_id WHERE exp_g_browse_prefs.gallery_id IS NULL ORDER BY gallery_full_name

Profile
 
 
Posted: 04 January 2006 06:54 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
RankRankRank
Total Posts:  349
Joined  05-22-2005

But it is because I don’t have the gallery installed right?

I really wanted to see if I could, or pay someone to modify it yo upload to a regular weblog.

Still trying to get a file browser I can make look like the rest of my site, if you follow me.

Profile
 
 
Posted: 04 January 2006 10:23 AM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Heh- yea, you need to have the gallery installed- I didn’t put in checks for it as I couldn’t imagine folks using it otherwise. 

As to full customization, I’m dinking with the gallery browser bit first and have added some ajax which was fun- would like to get that down to a single ‘page’- and show the selected thumb image without having to do the pop-up view button.  After I get that squared away I’ll start on the upload and browser- and then the backend for folks to create different ‘profiles’ to display based on member group.

Basically- there just aren’t enough hours in the day.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 24 January 2006 10:06 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  1
Joined  01-24-2006

It seems cannot work and not much neccessory if Fckeditor intergrated. You can easyly copy any kind of pic from your gallery or other pages.

Profile
 
 
Posted: 05 May 2006 11:18 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
RankRankRank
Total Posts:  372
Joined  11-04-2005

First of all, great module!

But I’m afraid I’ve run into some problems with it now. When I first tried it out all worked fine, but now it’s no longer possible to add images.
I think it might be due to the fact that I now use different folders depending on gallery category. Anyone else who’ve got it working having various album folders for a gallery?
When I click the uplaod icon I can see all my uploaded imags. But when I then try to Add or View and image I get directed to my ‘uploads’ folder and the fields dropdown is blank.

Any ideas?

 Signature 

Eskobar | Smidigt | Digga

Profile
 
 
Posted: 06 May 2006 07:46 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  105
Joined  01-30-2006

I am very interested in this Mod. Anything new on it for EE 1.4.1?

Thanks!

Profile
 
 
Posted: 07 May 2006 08:29 AM   [ Ignore ]   [ # 16 ]  
Research Assistant
RankRankRank
Total Posts:  372
Joined  11-04-2005

Aha, so maybe that was the problem for me - that the module doesn’t work with EE 1.4.1 yet?

BTW, I tried removing all my separate folders and kept all of my gallery uploads in one ‘gallery’ folder - same problem I’m afraid.

 Signature 

Eskobar | Smidigt | Digga

Profile
 
 
Posted: 31 May 2006 10:45 PM   [ Ignore ]   [ # 17 ]  
Lab Technician
RankRankRankRank
Total Posts:  1052
Joined  11-01-2002

Robin, any news on this for EE 1.4.2?

Profile
 
 
Posted: 17 August 2006 07:27 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  105
Joined  01-30-2006

Still curious about whether this works in the latest version of EE without a hack? Thanks, Robin!

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66394 Total Logged-in Users: 29
Total Topics: 84725 Total Anonymous Users: 17
Total Replies: 454724 Total Guests: 156
Total Posts: 539449    
Members ( View Memberlist )