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)
-   -   Show image attachments as images instead of links (https://vborg.vbsupport.ru/showthread.php?t=48702)

Slynderdale 02-09-2003 01:11 PM

Quote:

Originally posted by geezzaa
Hey.
From the picture link, This hack is just what i needed.
so i opened the text document and...........wtf
Im only a beginer, how do you do all this.
Could you please add some instructions for us less programming people.
Thanks

Its not hard to do, I know theres alot of file edits but most of it is just copy and paste, if you havnt istalled alot of hacks it should be a breeze, first open in your text editor and then do what it says, if it says find something, just go to your text editor's search function and search for the bit of code it tells you to find and replace it, if you installed other hacks that edit those pieces of code, find the code thats different and add it, for example:

$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',p agetext='".addslashes($message)."',allowsmilie='$a llowsmilie',showsignature='$signature',iconid='$ic onid'$editedbysql$attachmentsql WHERE postid='$postid'");

*************
replace it with:
*************

$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',p agetext='".addslashes($message)."',allowsmilie='$a llowsmilie',showsignature='$signature',showimage=' $showimage',iconid='$iconid'$editedbysql$attachmen tsql WHERE postid='$postid'");


Thr code thats different is:
showimage='$showimage',

so copy and paste that into the code in your file, but if the line is exactly the same as it says in the text, just copy and paste over it. The average install time for this hack is 10-20 minutes

Slynderdale 02-09-2003 01:13 PM

If you need more help, try here:
https://vborg.vbsupport.ru/showthrea...threadid=39142

feldon23 02-09-2003 05:02 PM

Not sure why a hack is needed.

If someone wants you to see the image immediately, they {img}{/img}. If they don't, they {url=blahblah.jpg}click here for image{/url}

Slynderdale 02-09-2003 07:04 PM

Quote:

Originally posted by feldon23
Not sure why a hack is needed.

If someone wants you to see the image immediately, they {img}{/img}. If they don't, they {url=blahblah.jpg}click here for image{/url}

This hack is for the attachments, In case the user atatches the image, they can select if they want the attachment to show or not, also it prevents attachments from being called from the brwsers cache as well. And it also has the ability to play swf flash attachments too.

Courage 06-04-2003 11:32 AM

I've disabled
Quote:

View Images
Do you wish to display attached images in the threads? Select no to just generate a link to download the image.
on admin vb options, but I want an option in user CP to change that option for each user.

Can you help?


All times are GMT. The time now is 03:53 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.02799 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)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
  • (5)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