We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Extension: Weegee - Add thumbnail image for entries on the EE CP Edit page

Development and Programming

AJP's avatar
AJP
311 posts
17 years ago
AJP's avatar AJP

You could use some jQuery-Fu to rotate between images in the CP edit display. Piece of cake? 😊

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
web site returns this message Ryan, Database Error: Unable to connect to your database… must be a bad time, are you working on the database?

My server (I’m running on a VPS) is pretty much at capacity - and masugadesign.com is on it. I had to restart mySQL this morning. I have a new, bigger, better, faster VPS, but I have yet to move my site there.

Should be back up now!

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Silly question, but where do I find the field id?

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

You could look in the database tables… CP Home › Admin › Utilities › Manage Database Tables Browse exp_weblog_fields

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Awesome, got it - thanks 😊

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
Silly question, but where do I find the field id?

Just go into your Custom Fields, (CP Home > Admin > Weblog Administration > Field Groups > Custom Fields ) go to the field in question like you’re going to edit it and as you hover over it, look at the URL in your browser (in Firefox, it’s at the bottom). It might look like this:

http://www.site.com/system/index.php?C=admin&M=blog_admin&P=edit_field&field_id=1

All you’re concerned with is the last part: field_id=1.

You could also just click the field name and look at the end of the location string in the location bar.

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

That’s easier :-)

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Do I have to set some special settings to the file upload locations? I’ve got Mark’s File up and running, but all I get on the edit page is “-” instead of the images.

Thank you!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

You’re supposed to get a dash if there is no photo associated with a field in that weblog. Have you specified the correct field id in the settings of the field that holds your photos? Also, is it set to multiple? I’m actually not sure if it will work with the field set to hold multiple pics/files.

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Yes, correct ID. I’m using multiple images… that’s probably the issue then.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Yeah, I haven’t tested this for multiple. I created this to fill the specific need I had for the site I was working on and released it with that functionality. If I get the time, I may consider trying to tweak it to work with a multiple field type.

       
outline4's avatar
outline4
271 posts
about 17 years ago
outline4's avatar outline4
Yeah, I haven’t tested this for multiple. I created this to fill the specific need I had for the site I was working on and released it with that functionality. If I get the time, I may consider trying to tweak it to work with a multiple field type.

just to let you know that we’re 2 people having the same issue 😊 (I’m having the multilpe file upload option enabled). but it still works if you only upload 1 image!

thanks anyways! stefan

       
Ryan M.'s avatar
Ryan M.
1,511 posts
about 17 years ago
Ryan M.'s avatar Ryan M.

Well, how would you imagine this works if you have, say, 5-10 images loaded in one multiple field? This was really intended to work for the “weblog as gallery” method, where each weblog entry is a specific and single image. Can you tell me how you’d use this when multiple images are uploaded? Would you only want the first image?

       
outline4's avatar
outline4
271 posts
about 17 years ago
outline4's avatar outline4
Well, how would you imagine this works if you have, say, 5-10 images loaded in one multiple field? This was really intended to work for the “weblog as gallery” method, where each weblog entry is a specific and single image. Can you tell me how you’d use this when multiple images are uploaded? Would you only want the first image?

yes, only the first image!

in fact like the “single variable” in the file extension. it has a multiple variable pair pair and a single variable… see files documentation:

Single Variables
{[custom_field]} — When used alone, the custom field will output the first uploaded image
Variable Pairs
{[custom_field]}…{/[custom_field]} — When used as a pair the contained code will loop, outputting all the uploaded files.

cheers - you’d really help me with that change!! stefan

edit: I use it for “mini galleries in a single weblog entry” here’s an exaples of one weblog entry with multiple images. jquery does the pagination and the slideshow… http://www.outline4.ch/EE/index.php/examples/Mini_Gallery_jQuery/

       
Eric Barstad's avatar
Eric Barstad
198 posts
16 years ago
Eric Barstad's avatar Eric Barstad

Hi Ryan,

I’m getting

Notice: Undefined offset: 1 in /www/<replaced>/public_html/<replaced>/extensions/ext.weegee.php on line 386

repeated on my Control Panel home page.

I’m using File 3.1.1, EE 1.6.3, and PHP 5.1.6 (EngineHosting). Any idea what this could be or what other info I could give you to help troubleshoot?

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.