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)
-   -   Link Directly to Attachment on Who's Online Page (https://vborg.vbsupport.ru/showthread.php?t=36468)

TWTCommish 03-22-2002 10:00 PM

Link Directly to Attachment on Who's Online Page
 
Ok, this is pretty much as tiny as a hack can possibly get. :D I just did it on a whim and thought, hey, ya' never know what someone else might find useful.

What's it do?
Simple: Ya' know how it says, on the Who's Online page, "Viewing Attachment in Thread BLAH"? Well, by default, the thread name is a link to the thread. This hack (if you can even call it that. :D) turns the word "Attachment" into a link right to the attachment they're viewing. I've only bothered to give it its own attached file because I believe we're encouraged to do so 'round here. So here you are. :)

defnot 03-23-2002 03:57 PM

great !!!!

but what template or php file we need to modif ??

TWTCommish 03-23-2002 04:00 PM

Sorry, I edited the file. It's online.php that you'll be editing. :)

Psychdrone 03-23-2002 04:05 PM

actually this helps a lot man, Thanks much!

TWTCommish 03-23-2002 04:09 PM

No problem. I like the convienence of it...I LOVE the Who's Online? page; I use it constantly, so I like it to be as powerful as possible, within reason.

afterlab 03-24-2002 04:26 AM

Nice hack. I've wondered about it and thought it wasn't a big deal not having specifics. But details are always nice. Thanks again TWTCommish. :p

Meta 04-24-2002 12:43 PM

Hey ... that was easy. Thank you, TWTCommish!


All times are GMT. The time now is 01:41 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.00976 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete