vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Hook to disable word-wraping on some forum? (https://vborg.vbsupport.ru/showthread.php?t=264005)

mihai11 05-22-2011 09:06 AM

Hook to disable word-wraping on some forum?
 
Is there a hook that can be used to disable word-wraping on some forum?

Thank you

Lynne 05-22-2011 03:55 PM

This would be on a showthread page, so did you try any of the showthread_* hooks?

mihai11 05-23-2011 06:29 AM

@Lynne: the way I do this, is I look in the code, see where XYZ operation is happening then look around for a hook. With this technique I can see what variables are available in the hook.

I this case, I could not find where the 'word-wrapping' operation is done => I could not find a suitable hook.

Can you tell me (file/line number) where the word-wrapping operation takes place?

Lynne 05-23-2011 03:39 PM

I do not know specifically where that option is read - it's read with all the other vbulletin options. It's in the datastore cache and grabbed when that is grabbed.

mihai11 05-23-2011 04:08 PM

Quote:

Originally Posted by Lynne (Post 2199133)
I do not know specifically where that option is read - it's read with all the other vbulletin options. It's in the datastore cache and grabbed when that is grabbed.

You didn't understood me. I am looking for the piece of PHP code that does the wrapping. If I can find that, I can look for hooks around.

Lynne 05-23-2011 04:56 PM

I would not go about it that way, but if you really want to, take a look at class vB_Datastore in the class_core.php file.

mihai11 05-23-2011 05:01 PM

Thank you Lynne


All times are GMT. The time now is 01:11 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.01172 seconds
  • Memory Usage 1,718KB
  • 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
  • (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