vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Prefix if [img] is used (https://vborg.vbsupport.ru/showthread.php?t=54880)

PeterNRG 06-30-2003 11:54 AM

Prefix if [img] is used
 
It has been requested as a feature for vB3, but I would like to see a hack for vB2 :)

To repeat the request:

It would be cool if we could show an icon before or after a thread title whenever an [img] tag is used inside the thread. Very usefull to warn low bandwith users.

Any ideas how to create this hack?

filburt1 06-30-2003 12:53 PM

Quote:

Today at 08:54 AM PeterNRG said this in Post #1
It has been requested as a feature for vB3, but I would like to see a hack for vB2 :)

To repeat the request:

It would be cool if we could show an icon before or after a thread title whenever an [img] tag is used inside the thread. Very usefull to warn low bandwith users.

Any ideas how to create this hack?

Can't you turn off images in your user CP? :)

PeterNRG 06-30-2003 08:01 PM

I'm not requesting to turn images off, I'm requesting to notice users up front when there's an images present in the thread.

Logician 07-01-2003 08:23 AM

Not an easy hack because:

1- In simple way, to "know" whether a thread has images in it, vbulletin would need to load the entire thread into the memory to make a check in the thread listing, search page etc. and considering the fact that you have 40 threads listed in that page which might have say more than 400 posts in it, it would be a real performance killer.

2- In the harder (but wiser) way, to avoid such a check, you would need to "mark" the thread whenever it has a IMG tag in it. However in this case, you would need to hack a lot of sections in vbulletin to put this "mark" into the database. For example, new thread, new reply, edit post, admin thread moderation, moderators post editing etc.

So possible but not smooth or easy hack.

filburt1 07-01-2003 10:20 AM

Logician's pretty much nailed it. :)


All times are GMT. The time now is 03:46 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.01041 seconds
  • Memory Usage 1,719KB
  • 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)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete