vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Minimum posts to download attachments.. (https://vborg.vbsupport.ru/showthread.php?t=52682)

Boofo 05-10-2003 10:00 AM

EvilLS1, The red x is still showing for me on attachments that are set to view. I have Slynderdale's "Show Image attachments" hack installed and it doesn't show the image with that, just the red x. I have "View image attachments" turned of in the Admin CP but with Slynderdale's hack, you can set it to view an attachment or a link. How would I get this to work with that?

Boofo 05-10-2003 11:07 AM

Ok, I figured out how to do it by putting it in the postbit_attachmentimage template (using Logician's Dynamic Templates hack). In place of the actual image showing, they will see the contents of the error_attachmoreposts template. How can I pull the $minpostattach amount form the postbit_attachmentimage template? Right now, unless I hard code it, it shows nothing for the number.

EvilLS1 05-10-2003 11:10 AM

Boofo,
Did you reinstall the updated version of the hack in the zip? I added Sophocle's fix aswell as another improvement which is described a couple of posts above this one. Try re-downloading the zip file in the first post & reinstalling the newer version. Let me know if that fixes it (it should).

Boofo 05-10-2003 11:21 AM

I already installed that before I wrote the last message. The hack for show image attachments is what is messing it up. I like it the way I have it now where is shows the message in place of the image in the post. I just want to be able to have it show the $minpostattach amount in the postbit_attachmentimage without having to hard code it in. If they're not allowed to download attachments, they shouldn't be able to view them either. ;)

EvilLS1 05-10-2003 11:29 AM

If you installed the code from Sophocle's post you will still get red Xs for images with the .jpg extension because he forgot to include $extension!='jpg' in his code. I added it in the zip though.

I'm not sure why the $minpostattach isn't working in that template for ya. I gotta hit the sack right now but I'll check it out when I get up.

Boofo 05-10-2003 11:35 AM

The code I installed is from your hack. I help off until you changed yours. ;)

You might want to take a look at The Show images hack. It works with the viewimages set to off.

Somehow, I need to add something somewhere that will pull out that number, but I don't know where. ;)

EvilLS1 05-10-2003 11:43 AM

Quote:

Today at 01:35 PM Boofo said this in Post #26
The code I installed is from your hack. I help off until you changed yours. ;)

You might want to take a look at The Show images hack. It works with the viewimages set to off.





{EDIT} OK, n/m. I know what your saying now.. I'll check out the show images hack. :)

Boofo 05-10-2003 11:52 AM

The "Show Images hack" allows you to show an image in the post when the viewimages is turned off in the Admin CP. That way, you can show an image instead of a link on a post by post basis.

Right now, I have it set up to show the error template in place of the image inside the post. I think if they are not allowed to download attachments, they shouldn't be able to view them either. I accomplished this by doing a conditional in the postbit_attachmentimage template itself. What I can't get to show in the template is the number that is set for the $minpostattach variable. I have to hard code whatever number that is inside the template. I think I need to define that variable inside the attachment.php.

EvilLS1 05-10-2003 11:58 AM

Boofo,
I just realized that you were talking about a completely different hack. At first when you said "show images hack" I thought you were referring to the post by Sophocle in the first page of this thread. I'm an idiot! lol

Boofo 05-10-2003 12:06 PM

No, you're not an idiot. I was not explaining myself very well, I guess. ;)

All I really need now is to get the $minpostattach variable ammount to show up in the postbit_attachmentimage template.


All times are GMT. The time now is 11:17 AM.

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.01013 seconds
  • Memory Usage 1,736KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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