Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-08-2002, 07:46 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems even easier than I first thought! First though you need this hack installed: https://vborg.vbsupport.ru/showthrea...threadid=21602

I'll post up the edits after I've checked and tested
Reply With Quote
  #12  
Old 12-08-2002, 07:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do we get the hack? It's not in the first post.
Reply With Quote
  #13  
Old 12-08-2002, 07:53 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its in the second post: https://vborg.vbsupport.ru/attachmen...&postid=133145

After taking a look all thats needed is a template edit, change postbit_attachmentimage to:

Code:
<!--<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
Reply With Quote
  #14  
Old 12-08-2002, 08:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 12-08-2002, 08:39 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post the errors

Maybe that can help us sort it out

Satan
Reply With Quote
  #16  
Old 12-08-2002, 09:16 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #17  
Old 12-08-2002, 11:16 PM
buss2002 buss2002 is offline
 
Join Date: Dec 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply With Quote
  #18  
Old 12-09-2002, 12:08 AM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 12-09-2002, 07:00 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

Quote:
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.
Reply With Quote
  #20  
Old 12-09-2002, 07:51 PM
buss2002 buss2002 is offline
 
Join Date: Dec 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04636 seconds
  • Memory Usage 2,276KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete