#267565 - 01/20/0404:04 PMInsert image from Photopost
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I did a search and checked the "List of Suggestions" (said forum not found) but I'm sure I thought I saw it somewhere. Anyway, here's what I'm looking for.<br /><br />I currently have UBBT and Photopost integrated. I also allow uploading of image files when making a post in the forums. However, what I would like to do is be able to select an image from the gallery and insert into the post with UBB code. Something in the way of this:<br /><br />
User has uploaded his pics to Potopost Gallery. <br />
User goes to message board and begins new post. <br />
User wants to insert an image from HIS uploaded pics. <br />
User clicks a link which brings up pop up window displaying thumbnails along with the thumbnails' description. If there is more than say12 pics in his gallery, he can browse further pages of his gallery until he/she finds the desired pic. <br />
User clicks on thumbnail which inserts the correct UBB code (for full size imag,or clickable thumbnail (configurable)) into the message area and pop up window closes. <br />
User can do it again if adding more than one pic. <br />
User completes post and previews or submits the post. <br />
<br /><br /><br />In this way, I<br />1. hope to encourage more use of the photo gallery<br />2. can write articles in my article forums and insert images where I want them in my articles more easily than having to figure out the url of the pic.<br /><br />If this has been suggested already I appologize, but I was unable to find anything on it.<br /><br />Thanks for reading.
I'm planning to code something similar to this. But it will take a while. Don't expect anything before late february.<br /><br />I currently don't have photopost installed at all, so many members use a "test-thread" to upload images as an attachment so that they can include the image into their signature or postings. Providing the ability to insert images from the photopost album will hopefully convience them to use photopost. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Running a community? -> Keep informed and take it to the next level
#267569 - 01/21/0406:28 AMRe: Insert image from Photopost
[Re: scot]
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Umm, I added a reply last night, and it's not here this morning for some reason. Anyway, I wanted to add that in addition to the original post, an upload mod for uploading a pic into a users Photopost Gallery directly from the message form using the same behavior as above. Pic gets uploaded to the users gallery, ubb code is inserted into the post then the window closes.
#267571 - 01/21/0409:33 AMRe: Insert image from Photopost
[Re: sf49rminer]
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Wouldn't js be needed to do this? I don't know squat about javascript though. Haven't tried doing anything with it. What's a good js primer or maybe a online tutorial for something like this? Better yet, I wonder if Photopost would mind taking a look at this.
Yeah probally best to open a javawindow. But this can be handled just like the graemlin window works and include the necessary coding from either script we talked about to do it.<br /><br />I may look at it just like Astaran said he would as well. However other work takes proirity so I guess any us that choose to do get to it then we will.<br /><br />Now the main part is to write the script which would pull the user's photo's and display the ubbcode like it does on the showphoto.tmpl and then use the post function to carry it over. The javascript is easy. Just replicate the script that pulls the popup window for the graemlinpanel.php script and replace that with the script you create. If get a couple hours to create the scripts I look into creating it I will but its nothing I have not done before that is create custom Photopost scripts.
#267573 - 01/22/0401:47 PMRe: Insert image from Photopost
[Re: sf49rminer]
Anno
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
We have a custom picture upload over at the Shroomery.<br />You might want to test it by loging in here:<br />www.shroomery.org/forums<br />with<br />ThreadsDev<br />ThreadsDev<br /><br />The picture upload can be found here:<br />www.shroomery.org/forums/dopictureg.php once you are logged in.<br /><br />Each user has a space to store pictures, and by clicking on a thumbnail the ubb code is created that the user can copy and paste into any post he wants.
#267575 - 01/25/0408:43 AMRe: Insert image from Photopost
[Re: domain123]
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Thanks. I checked it out. That's a custom script for using the file upload feature in threads, correct? Nicely done. I have already invested in photopost so I need to stick with it, however, this gives an inspiration on the line of what I was thinking about, only using the photopost gallery software. The main thing is to simplify the process for my users. Thanks for letting me check it out. <br /> <br />BTW, what happened to the other avatar? I found it quite interesting. <br /> <br />Oh, wait a minute. DOH! I just noticed it changed again. Are you doing that from this site, or is that a rotator from your website? Neato! <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
#267576 - 01/25/0407:15 PMRe: Insert image from Photopost
[Re: ]
Anno
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
> That's a custom script for using the file upload feature in threads, correct? <br />Yes, it uses the threads identification system for maintaining each user's own gallery. <br /> <br />As far the thumbnail generation in photopost, I donīt think this would be hard to do, you basically need to know the filename and the thumbnail name, and then the creation of the ubb code is only a few code lines away. <br />I could do it, but I donīt have photopost. <br /> <br />>is that a rotator from your website <br />Exactly. <br />It chooses from around 200 images.
I think I may look into it. Photopost by default actually formats the ubbcode and shows it in showphoto<br /><br />I was looking at the graemlinpanel so its just a matter of a query to display the users photos with a paging system which I already created for a user the other day. I was thinking I could add in the appropriate code to post it into the post body and add in the ubbcode<br /><br />If I have a few I will try it out.
There used to be a UBB mod that allowed people to keep a list of 10 images in a popup selectable list. We have alot of users with 100's of images uploaded, so presenting that list to them in some kind of format which is useable is the hard part.<br /><br />Maybe a text list with likes to another window for preview?
#267579 - 01/28/0410:17 AMRe: Insert image from Photopost
[Re: gailg]
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I've been tinkering around with mambo server the last couple of days. In their news article submision form page there is a scrollable list of available images above the text area. You can see around 8 listings of the file names and a scroll bar. To the right is a preview area, so when you select one of the names, a thumbnail is displayed. You can scroll (browse) through the entire list until you find the one you want. Once the desired file is located, clicking a link below the tb image inserts the html into the text area of the form. Of course, this can be modified to UBB code instead, I'm sure. I really like the way it has been implemented into the mamboserver software.<br /><br />Any idea if that mod you're talking about had a name so I can do a reasonable search, or if that mod is still available and where if it is?<br /><br />Thanks. I'll throw up a screenshot of the newsform this evening when I get home so you can get a better idea of what I'm talking about.
#267580 - 01/28/0411:20 AMRe: Insert image from Photopost
[Re: ]
chillin
Journeyman
Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
Hey all- <br />I have already made this mod, just haven't had a chance to clean it up and upload it yet. I basically just borrowed some code from JustDave's graemlin panel. <br /> <br />See attached picture. It grabs the last 20 pictures that the user has posted, and when they click on the picture it add's in the image to the body of the post using ubb code. It is "smart" enough that if the image is really large, it grabs the mid-size picture from the photopost directory. <br /> <br />I'm super busy at work but i'll try to post my whack code today. <br /> <br />FWIW i made this mod after being inspired by the Modification Index here... I made a "Trip Report Index" where folks post recent climbing trips and it creates a special index of Trip Only reports: <br />http://www.cascadeclimbers.com/threadz/tripreports.php?Cat=0 <br /> <br />I have a routine that checks for .gif and .jpg in the body of the post and add's the neato little camera icon to the Index... works great with this PhotoPost Panel thingy <br /> <br />-chillin
Ok Chillin if you followed the jist of what I hinted at you beat me too it. I finally got through a busy weekend etc and was gonna do this as I stated I would based on the graemlin panel and you beat me good man. <br /><br />So when you click the photo it inserts the ubbcode tags around the data path of the image inserting it back into the post body?
#267582 - 01/28/0411:47 AMRe: Insert image from Photopost
[Re: sf49rminer]
chillin
Journeyman
Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
Well... my code is so sloppy so maybe you should still do one <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br /><br />Yeah so its just like the graemlin panel, except with your pictures.<br /><br />Depending on the dimensions of the pict in photopost there is the thumb, med, and full size... the script will grab the full size path if there is no medium, so you don't get the annoying big picture in a post.<br /><br />it then uses the javascript to append the [img]pathtopppict[/img] to the existing body of the post.<br /><br />works great, and really encourages people to upload more pictures to the gallery as it makes it soooo easy to add in an image to a post.
#267583 - 01/28/0411:47 AMRe: Insert image from Photopost
[Re: kwalenta]
chillin
Journeyman
Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
ohhh, and i coded this up over a month ago, before this was brought up here as I wanted it for my site's new Trip index, so i wasn't "stealing a mod" from ya! LOL!
#267584 - 01/28/0411:57 AMRe: Insert image from Photopost
[Re: kwalenta]
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
This looks like something that can be expanded on as well. Looking forward to your code this evening. Thanks. Chillin, you use mambo don't you? Do you think it's possible to modify your mod to something like what I was talking about with the news submit in mambo? In other words, show a scrollable list with a thumb preview. <br /> <br /> edit <br /> <br />Hey, I just checked out your trip report. Man, I could use something like that for Florida fishing reports. Is that a major hack?