Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2016, 09:15 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Transferring all image attaches into img

Hi, before saying anything, I know that many tables are related to the posts and attaches, so large modifications should be done in this case:
There are many images which have been attached and the registered user can see thumbnails and also click on the pic to see it in full size, but unregistered users (guests) can only see thumbnails.
Image extensions I've defined are jpg jpeg png gif.
So, there's no problem since here, yeah?
But when the attachment is put into [img] tag, the guest can see that picture since it's a normal picture and not an attachment, like the picture below which is taken in the guest mode:

I want all attachment images png gif jpeg jpg which are in posts, deliver an [img] tag in order to be shown for guests.
I mean thumbnail is at the end of the post, and this img tag be included above this thubmnail.
Since posts and attachments are a lot, editing personally is not available.
And also after that, all images which are going to be attached, should be delivered an img tag for being shown to guests!
Is there any product which can do this?
What about the way of doing it?
Any sql running in phpmyadmin?
Attached Images
File Type: jpg test-guest.jpg (52.0 KB, 0 views)
Reply With Quote
  #2  
Old 12-04-2016, 01:22 AM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If they want to see the full sized images, all they have to do is register & log in. Why waste the bandwidth sending full size images to leeches who won't participate anyway?
Reply With Quote
  #3  
Old 12-04-2016, 01:49 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bill Stuntz View Post
If they want to see the full sized images, all they have to do is register & log in. Why waste the bandwidth sending full size images to leeches who won't participate anyway?
Because some guest do not know how to make e-mail to register, or even they're not familiar with registering in any site!
They're just a visitor, like an elderly person who cannot do such things.
Reply With Quote
Благодарность от:
blind-eddie
  #4  
Old 12-04-2016, 02:30 AM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you can change the permissions for Unregistered / Not Logged In users to allow them to view attachments under Forum Permissions in the Admin CP. That might solve your problem without doing a lot of messing around.

Quote:
There are currently 1798 users online. 88 registered members and 1710 anonymous guests
On our MB, that's a LOT of extra bandwidth that we'd have to pay for, for people who aren't interested enough to register & participate. The thumbnails give them an idea of what they're missing by NOT registering.

It seems to me that if they're computer literate enough to find your MB, they should be capable of registering if they want to see the full sized images.

Then again, the ads that are displayed to guests but not to logged in users generate significant revenue. So maybe you have a point.
Reply With Quote
  #5  
Old 12-04-2016, 05:30 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bill Stuntz View Post
I think you can change the permissions for Unregistered / Not Logged In users to allow them to view attachments under Forum Permissions in the Admin CP. That might solve your problem without doing a lot of messing around.
If there were such options, I would have done that before. So, there's no such a thing
Reply With Quote
  #6  
Old 12-04-2016, 09:03 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is such an option. You can let unregistered user view and download attachments.

It is in usergroup manager. Select YES to Can see thumbnails and to download attachments.



Attached Images
File Type: png 001466.png (25.1 KB, 0 views)
Reply With Quote
  #7  
Old 12-04-2016, 10:58 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
There is such an option. You can let unregistered user view and download attachments.

It is in usergroup manager. Select YES to Can see thumbnails and to download attachments.



I know mate, but if Can Download is set to Yes, then guest can download other attachments! I mean there's no such option in ACP > Attachments > Permissions for guests
Reply With Quote
  #8  
Old 12-04-2016, 02:34 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe we're running different versions? I checked in our Admin CP to be sure my memory was correct before I made the suggestion. But I'm low man on the totem pole and won't make any changes without higher authorization, so I can't test it for you.
Attached Images
File Type: jpg 2016-12-04 11_28_41-Capture.jpg (86.8 KB, 0 views)
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 05:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04037 seconds
  • Memory Usage 2,264KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete