vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Allow Thumbnail View To All Groups (https://vborg.vbsupport.ru/showthread.php?t=67887)

Princeton 08-01-2004 10:00 PM

Allow Thumbnail View To All Groups
 
ALLOW THUMBNAIL VIEW TO ALL GROUPS Installation Script 1.3

This hack will enable you to provide thumbnail preview to all groups. It does not change download permissions. For example, you can allow your visitors to "window-shop".

This hack is great if you want to convert "registered members" into "Premium Members".

// ===================================
// == Copyright ? 2004, GO-TOTAL, LLC for vBulletin
// == vbulletin Copyright ? 2000 - 2003, Jelsoft Enterprises Ltd.
// == This file may not be redistributed in whole or significant part.
// == Donations accepted: paypal@gtwebhost.com
// ===================================

It will also add a short message to users who do not have download permissions.

You will need to modify:
  • attachment.php
  • includes/function_showthread.php
And, add 1 new phrase under Show Thread.

MODIFICATIONS TO ORIGINAL
8/15 - fixes included in new attachment
  1. fixed missing </phrase>
  2. added class .info example

TheComputerGuy 08-02-2004 10:21 AM

Nice Princeton! I like the idea. Give the guests a teaser!

nexialys 08-02-2004 11:58 AM

this was needed for long... i really appreciate this effort of good ideas.. ;)

MrNase 08-02-2004 12:55 PM

Wow cool, i will use it :)

------------------------------
Doesn't seem to work :(

I installed it but guests can't see the thumbnail.
Or does it work for you?
The thread is located here and you should see one thumbnail :)

------------------------------
It does work :D
Great job :)

Polo 08-02-2004 11:57 PM

Nice addon.. probably will use it in the future...

SaN-DeeP 08-03-2004 01:05 AM

I just noticed after installation that even registered users are not able to open attachments.

or there a step i am missing ?

thnx for the hack.

Princeton 08-03-2004 03:47 PM

Quote:

Originally Posted by SaN-DeeP
I just noticed after installation that even registered users are not able to open attachments.

or there a step i am missing ?

thnx for the hack.

do you have a url?

Check your settings and make sure your permsissions are set correctly.
If that's ok, modify your template (reverse the conditional).

SaN-DeeP 08-03-2004 11:52 PM

Quote:

Originally Posted by princeton
do you have a url?

Check your settings and make sure your permsissions are set correctly.
If that's ok, modify your template (reverse the conditional).

hi there,
I reverted all the edited code back to normal @ the moment, tried the same again but still probs :S

Princeton 08-04-2004 01:06 AM

I'm having no problems on 2 boards.

Do you have a url where I can check?

MrNase 08-06-2004 10:43 AM

Still not working for me, Iam going to revert the edited code.

Princeton 08-06-2004 06:07 PM

Quote:

Originally Posted by MrNase
Still not working for me, Iam going to revert the edited code.

MrNase,
I made some changes and it looks like some things where missing ... can you try again?

Just copy the new template mod and the functions_showthread modification....

thank you

MrNase 08-06-2004 06:56 PM

Seems to work, thank you :)

Princeton 08-06-2004 08:48 PM

Quote:

Originally Posted by MrNase
Seems to work, thank you :)

thank you ... I appreciate the quick response.

Highlander 08-08-2004 04:26 AM

it is a very useful feature .. and it works vfor vb3.0 also .. *klicks* install*

installation runs about 5 minutes and is very easy :D .. muchas grazias :D from germany

Princeton 08-08-2004 01:57 PM

thank you Highlander

I'll probably be moving this into RELEASE.

Quote:

From the dawn of time we came... Moving silently down through the centuries. Struggling to reach the time of the Gathering, when the few who remain will battle to the last. No one has ever known we were among you... Until now...

Dean C 08-13-2004 08:36 AM

Moved to Full Releases for you :)

Princeton 08-13-2004 02:26 PM

thank you Dean ... I tried moving the hack myself but it looks like we do not have that option.

SaN-DeeP 08-15-2004 01:13 PM

check the attached document those extra links which should appear in alt tags appear adjacent to image
that appears only for registered users :S

this thread - http://207.58.143.178/forums/showthread.php?t=4084

SaN-DeeP 08-15-2004 01:18 PM

i am not sure wat you meant by last line:
Quote:

create a new style class called "info" and set the desired style

Princeton 08-15-2004 02:37 PM

SaN-Deep,
do you have a "testing" username that I can use?

The above thumbnail that you provided looks like a template (html) error. It looks fine as Unregistered but I would like to see it as Registered.

Quote:

create a new style class called "info" and set the desired style
It is CSS Stylesheets, you can style your message.
Code:

.info{
 font-size:10px;
 color:#000;
 background:#fff;
 border:1px solid #ccc;
 }

Place the above in your stylesheet found in the template section (dropdown and choose Main CSS).

Another thing, you should modifiy your tool-tip to read:
Quote:

"You must register to view original-size image?"

YLP1 08-15-2004 03:33 PM

Hi everyone,

I installed this mod...went over the directions and applied them twice (redoing it I should say)

But not logged in visitors see this on the attachments. Where did I mess up?:

Princeton 08-15-2004 03:40 PM

found the problem ... it looks like we forgot to close the <phrase>

copy and paste into postbit_attachment:
HTML Code:

<tr>
        <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
        <td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)
<if condition="$show['gtp_thumbnail_only']"><div class="info">$vbphrase[gtp_cannot_download]</div></if></td>
</tr>

let me know if this fixes your problem

SaN-DeeP 08-15-2004 04:17 PM

Quote:

Originally Posted by princeton
found the problem ... it looks like we forgot to close the <phrase>

copy and paste into postbit_attachment:
HTML Code:

<tr>
        <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
        <td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)
<if condition="$show['gtp_thumbnail_only']"><div class="info">$vbphrase[gtp_cannot_download]</div></if></td>
</tr>

let me know if this fixes your problem

nope dont work :(

YLP1 08-15-2004 04:24 PM

Hi there,
Nope...this didn't fix it for me either.

Princeton 08-15-2004 04:28 PM

sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


SaN-DeeP 08-15-2004 04:36 PM

Quote:

Originally Posted by princeton
sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


Wow works perfect now :)
Thnx for immediate update.

FYI - I still have not added the CSS "info" and its working fine.
I am not sure, how and where you meant to add same ?

Regards,

Princeton 08-15-2004 04:42 PM

the class "info" is optional--it's meant to give some style to the message (look at the images provided)

If you want to add style -- just add the code into your CSS (within Admincp/Styles & Templates/Style Manager/ (dropdown click MAIN CSS) --scroll to the bottom and insert the code within the ADDITIONAL CSS DEFINITIONS

YLP1 08-15-2004 09:10 PM

Quote:

Originally Posted by princeton
sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


Where do I paste this in this template?

YLP1 08-15-2004 09:14 PM

Quote:

Originally Posted by YLP1
Hi everyone,

I installed this mod...went over the directions and applied them twice (redoing it I should say)

But not logged in visitors see this on the attachments. Where did I mess up?:

I have the same problem --- see graphic

SaN-DeeP 08-16-2004 06:37 AM

Quote:

Originally Posted by YLP1
I have the same problem --- see graphic

hey YLP1,
check the new install file once again, All the bugs are fixed and works fine now
thnx to priceton :)

YLP1 08-16-2004 01:15 PM

Hi there.... I don't follow check the new install file? Watcha mean? Doh.... I figured it out......

Ok, I reinstalled the mod and all looks great except I have a question. For my non registered/logged in visitors (who normally cannot d/l or view the attachments) they can see only a standard thumbnail image (not the actual thumbnail of the image).

I don't have thumbnails viewing on because my members prefer to see the actual graphic attachment.

Is there a way to allow for the pic of the actual graphic attachment versus the standard vanilla thumbnail image?

mefromspace 09-07-2004 03:03 AM

Hey,
Just tried and installed the hack but got errors when going to view any thread on any forum:

Parse error: parse error in /var/www/virtual/site/htdocs/forum/includes/functions_showthread.php on line 247

Fatal error: Call to undefined function: construct_postbit() in /var/www/virtual/site/htdocs/forum/showthread.php on line 939

Any idea when the hack will be final for the 3.0.3 version ?

great hack if i can get it to work im sure!

Princeton 09-07-2004 04:05 AM

Quote:

Originally Posted by mefromspace
Hey,
Just tried and installed the hack but got errors when going to view any thread on any forum:

Parse error: parse error in /var/www/virtual/site/htdocs/forum/includes/functions_showthread.php on line 247

Fatal error: Call to undefined function: construct_postbit() in /var/www/virtual/site/htdocs/forum/showthread.php on line 939

Any idea when the hack will be final for the 3.0.3 version ?

great hack if i can get it to work im sure!

this hack is final...

Remove the code that you pasted ... check and make sure there is no error.
Insert/Modify per instructions -- make sure your pasted code is similar to what is in the instructions.

mefromspace 09-07-2004 04:34 PM

Perfect!

Just did as you said and now bingo it works awsome!

1 question im very new at this thing...how amd where do i add the "new style class"

.info{
font-size:10px;
color:#000;
background:#ffffd6;
border:1px solid #ccc;
}

clicking install

Princeton 09-07-2004 04:40 PM

go into your STYLE MANAGER and insert within the Additional CSS Definitions

VIEW ALL TEMPLATES/ choose MAIN CSS from the dropdown

shiva 01-07-2005 05:57 AM

Great idea, I just asked about this at VBa, with a thumbnail hack for the front page, so have to try this. Thanks. :)

Electronic Punk 09-27-2005 06:56 AM

Any chance of updating this for 3.5? :)

InFloW 10-08-2005 12:28 AM

Yeah that be great :)

Rover416 11-24-2005 03:20 PM

I agree.

Would be very useful for my forum on 3.5.

mefromspace 12-07-2005 11:11 PM

Yeah i wanna update to 3.5 from 3.03 and have this currently installed but need to use it for 3.5 when i migrate over...

Anyone got this working in 3.5 ????


All times are GMT. The time now is 04:52 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.02509 seconds
  • Memory Usage 1,846KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_html_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete