View Full Version : Offering payment for...!
buss2002
12-07-2002, 12:01 AM
Hi,
I just purchased VB 229 to find out what i have seen around
on other boards wasent in the VB:(
I need users to be able to see a thumbnail instead of
a text attachment when uploading a jpg picture.
I have ImageMagik installed and already running with Image Folio.
I have root access and the latest php installed on a apache server.
I am willing to pay to get this done if somebody is interested?
HEEEEEEELP!
resultater@hotmail.com
scoopster
12-07-2002, 04:19 PM
there is an option in default vb installation, to show image instead of text link, maybe this is what you are after.
buss2002
12-07-2002, 04:43 PM
Hi,
Thx but no...i wish to display a thumb and if people want to see
the full size image they can click on the thumb to see it full size.
like ex on this vb board who has auto creation of thumbnail.
http://mistressdestiny.com/forums/showthread.php?threadid=3978
Any suggestions/ideas/? :cross-eyed:
Larry@IOG
12-08-2002, 05:20 PM
Replace your postbit_attachmentimage template with:
<!--<p>--><smallfont>$post[username] has attached this image:<br>
<smallfont>Click For Full Sized Image:<smallfont><br>
<a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]" target="_blank"><img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" alt="" width="150" height="150" hspace="4" vspace="8" border="0"></a>
</smallfont><!--</p>-->
You will get the image to appear like the attachment:
Larry
Boofo
12-08-2002, 05:28 PM
What happens to the picture if it isn't perfectly square? Like 640x480? Won't it look wierd then? :)
Chris M
12-08-2002, 06:04 PM
What if the image is smaller than 150x150;)
Satan
Larry@IOG
12-08-2002, 06:26 PM
Originally posted by hellsatan
What if the image is smaller than 150x150;)
Satan
It does but once you click the image it looks fine. Could you help with the smaller than 150x150???
I am sorry guys I just learned html in feb and now with the php stuff I am not that good;)
Look forward to your response
Larry
NTLDR
12-08-2002, 07:29 PM
This may not be that hard, theres a gallery hack that uses ImageMagik that creates thumbnails for image based attachments, you would just need to modify the buildpostbit function to get it to use the thumbnail display it if its an image.
Boofo
12-08-2002, 07:32 PM
Would you be willing to lend a hand on incorprating this, my friend? :)
NTLDR
12-08-2002, 07:36 PM
I may have a look at it as I use the gallery hack already. I'll take a deeper look now and see if I think I can do it or not ;)
NTLDR
12-08-2002, 07:46 PM
It seems even easier than I first thought! First though you need this hack installed: https://vborg.vbsupport.ru/showthread.php?s=&threadid=21602
I'll post up the edits after I've checked and tested :D
Boofo
12-08-2002, 07:49 PM
Where do we get the hack? It's not in the first post. :)
NTLDR
12-08-2002, 07:53 PM
Its in the second post: https://vborg.vbsupport.ru/attachment.php?s=&postid=133145
After taking a look all thats needed is a template edit, change postbit_attachmentimage to:
<!--<p>--><smallfont>$post[username] has attached this image:<br>
<a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]"><img src="thumb.php?s=$session[sessionhash]&thumbid=$post[attachmentid]" border="0" alt="" vspace="8" hspace="4"></a>
</smallfont><!--</p>-->
And make sure that Viewing of attached images is set to on in the Admin CP vBulletin Options and in your profile :)
Boofo
12-08-2002, 08:27 PM
NTLDR, I can't get this to work. I am getting db errors all over the place. Can you take a look at it and help me out?
Chris M
12-08-2002, 08:39 PM
Post the errors:)
Maybe that can help us sort it out;)
Satan
NTLDR
12-08-2002, 09:16 PM
Originally posted by Boofo
NTLDR, I can't get this to work. I am getting db errors all over the place. Can you take a look at it and help me out?
What errors are you getting? IIRC the instructions wern't 100% correct for new versions of vB.
buss2002
12-08-2002, 11:16 PM
Originally posted by Larry@IOG
Replace your postbit_attachmentimage template with:
You will get the image to appear like the attachment:
Larry
Thank you so much!!!!!!!!!!
Now a question if you know :cheeky:
If i wish to have multiple attachments in the post what do i change?
Also how about a limit for nomal posters and a diffrent posting level for admins/moderators?
And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?
Hope the questions arent too stupid :classic: but i got this
VB resently and are trying to get it all setup so i can open it.
Best Regards
Buss
Larry@IOG
12-09-2002, 12:08 AM
If i wish to have multiple attachments in the post what do i change?
Good Luck I have tried to figure that one out with no luck at all
And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?
Yes I would imagine in the showthread php code you could add rescritions to the attachment part
How much cash did I make so far? :nervous:
feel free to email me if you need some help
larryjude@hotmail.com
Larry
NTLDR
12-09-2002, 07:00 PM
Originally posted by buss2002
[B]If i wish to have multiple attachments in the post what do i change?
This is a pretty big hack, I know someone started this but its not been released.
And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?
Disallow viewing of attachments for the userregisted usergroup, they will still be able to see the thumbnails.
buss2002
12-09-2002, 07:51 PM
Originally posted by NTLDR
This is a pretty big hack, I know someone started this but its not been released.
Disallow viewing of attachments for the userregisted usergroup, they will still be able to see the thumbnails.
Hi again,
Thx for the info.
I just thought it was a simple code adding a extra attachment field in the postingform but i guess it?s much more complicated then that.
The disallowing of viewing attachments is exactly what i wish.
Only to let unregistred see the thumbnail and not the full picture.
Do you by any chance know of wich hack is needed for that? :classic:
Best Regards
Buss
NTLDR
12-09-2002, 08:53 PM
Originally posted by buss2002
The disallowing of viewing attachments is exactly what i wish.
Only to let unregistred see the thumbnail and not the full picture.
Do you by any chance know of wich hack is needed for that? :classic:
No hack is needed, just disallow viewing of attachments for the userregisted usergroup, they will still be able to see the thumbnails.
buss2002
12-11-2002, 07:25 PM
Thank you wery much for helping out NTDLR!!
Last question :nervous:
How do i set the limit for normal users and moderators
limit of attachments.
Like if i want normal registred users to be able to upload 5 pictures and no limit for moderators/admins?
Hope this is simple to integrate or there is a hack some were out there that can do this?
Best Regards
Buss
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.