PDA

View Full Version : Transferring all image attaches into img


Inna
12-02-2016, 09:15 PM
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 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:
[img]https://vborg.vbsupport.ru/attachment.php?attachmentid=155518&stc=1&d=1480720650
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?

Bill Stuntz
12-04-2016, 01:22 AM
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?

Inna
12-04-2016, 01:49 AM
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.

Bill Stuntz
12-04-2016, 02:30 AM
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.

There are currently 1798 users online. 88 registered members and 1710 anonymous guestsOn 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.

Inna
12-04-2016, 05:30 AM
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

Seven Skins
12-04-2016, 09:03 AM
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.



https://vborg.vbsupport.ru/attachment.php?attachmentid=155525&stc=1&d=1480849330

Inna
12-04-2016, 10:58 AM
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.



https://vborg.vbsupport.ru/attachment.php?attachmentid=155525&stc=1&d=1480849330

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

Bill Stuntz
12-04-2016, 02:34 PM
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.