Author |
Topic |
rodham
New Member
65 Posts |
Posted - 23 March 2005 : 21:15:31
|
I have written a simple mod that allows a Photo Album user to select an image from their album while posting within the forums. It uses the available thumbnail and creates a link to the full size image as part of the insert.
I'm not sure if anyone would want this mod??? it has a single file to install into the forum directory and a single include line in the post.asp file.
To try it out and login as user=test pwd=test
This mod works only with Photo Album v182
03/24 - Ok, there's some interest - Edited this post to include a link to the mod:
insert_image_mod.zip v1.d
02/28 - version, 1.d: - fixed up small bugs - added reset Image dropdown box after image selected
03/26 - New version, 1.c: - fixed up for Single Album Mode - Added switch to show all images or only images belonging to member in Single Album Mode
Note: Review and test before asuming everything is Ok! I don't have many users online yet or incredibly large albums, so I don't know what will happen when the code tries to parse hundreds of images into dropdown boxes. |
Edited by - rodham on 28 March 2005 08:25:17 |
|
andretti
New Member
70 Posts |
Posted - 23 March 2005 : 21:40:31
|
That looks great. I sent you an email
Thanks David |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 23 March 2005 : 23:17:26
|
Will it work with the Classifieds mod as well? I'd definitely like a copy of it!
h |
I reject your reality and substitute my own. |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 24 March 2005 : 02:29:07
|
So when are you going to release this? It looks quite nice... |
Cheers, David Greening |
|
|
rodham
New Member
65 Posts |
Posted - 24 March 2005 : 07:13:17
|
Some interest... Added a link to the mod in the first post.
h I dunno about the Classifieds Mod, you'll have to try it! |
Edited by - rodham on 24 March 2005 07:16:28 |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 24 March 2005 : 08:07:29
|
OK, I'll give it a shot! Thanks for posting the link!
h |
I reject your reality and substitute my own. |
|
|
andretti
New Member
70 Posts |
Posted - 24 March 2005 : 08:41:18
|
Thank Rodham for putting something like that together. A nice addition. |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 26 March 2005 : 10:43:17
|
Rodham,
Having some troubles...When I put the inc_insert_image.asp into my post.asp, the post box looks funky and it doesn't write my footer. See attached screenshot...
h
|
I reject your reality and substitute my own. |
|
|
rodham
New Member
65 Posts |
Posted - 26 March 2005 : 11:02:48
|
It could be the single album mode...
Please try this for me: At line 109 of inc_insert_image.asp Replace:
sSQL = "Select * From " & strMemberTablePrefix & "ALBUM_CAT Where Member_id=" & iUserID With:
if single_album = 0 then
sSQL = "Select * From " & strMemberTablePrefix & "ALBUM_CAT Where Member_id=" & iUserID
else
sSQL = "Select * From " & strMemberTablePrefix & "ALBUM_CAT"
end if
Thanks for trying it, much appreciated having a single album mode to try it on. |
Edited by - rodham on 26 March 2005 11:18:04 |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 26 March 2005 : 11:50:05
|
rodham,
That helped, but it's not pulling the albums or images properly...
Here's my main photo album view:
There shouldn't be any albums listed as "main album"
It's not showing any of my images, I have 4 in my personal album.
I can see you're online at my forum right now, I have it set to give you photo album rights automatically, so feel free to post an image or two and play with it. I've gotta go to work, so I won't be back until after 6pm (PST) tonight.
h |
I reject your reality and substitute my own. |
|
|
rodham
New Member
65 Posts |
Posted - 26 March 2005 : 11:57:31
|
Ya think, I know what's hapening and I'm on it. Don't work to hard today. |
|
|
rodham
New Member
65 Posts |
Posted - 26 March 2005 : 16:10:42
|
Fixed up for Single Album Mode,
See first post for link to version 1.c |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 26 March 2005 : 22:43:04
|
Thanks Rod,
I installed your update, it's set to show all images, but it still shows none of the images. The categories are listing properly, but no images.
What's next?
h |
I reject your reality and substitute my own. |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 26 March 2005 : 22:49:27
|
OK, did some more testing...I changed the inc_insert_image.asp to show my images only, and the categories changed properly to only show those categories where I have images, however, it still is not showing any of my images...
h |
I reject your reality and substitute my own. |
|
|
rodham
New Member
65 Posts |
Posted - 26 March 2005 : 23:51:56
|
How was work today?
It worked for me on your site, except for images in the Volcano Cat. It seams to me that you may have a few orphan records in PHOTO_ALBUM_CAT.
You should also upload some new images using the member id that currently not showing any images. |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 27 March 2005 : 00:53:23
|
Work was OK...kind of slow, then slamming busy, then slow again, then slamming busy again...
I saw what you uploaded, but when I upload a new picture using my profile, I still don't see any pictures.
h |
I reject your reality and substitute my own. |
|
|
Topic |
|