PDA

View Full Version : Hook to disable word-wraping on some forum?


mihai11
05-22-2011, 09:06 AM
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
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