The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
User selectable thread preview
I'm trying to create an option to enable users to turn off thread preview in their UserCP while leaving it on globally. I've created the User Profile field but not sure how to make it work in the background.
Any help is appreciated! Thanks! |
#2
|
|||
|
|||
Which "Preview" are you referring to? The one that appears when you are creating a new thread or the one that appears when you hover over a thread title (on forumdisplay.php)?
|
#3
|
||||
|
||||
The one that appears when you hover over a thread title.
|
#4
|
|||
|
|||
Edit the threadbit template.
Look for: Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]"> Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" <if condition="$bbuserinfo['fieldX']">title="$thread[preview]"</if>> |
#5
|
||||
|
||||
Hmm, doesn't appear to work. Does it matter what order I have the options in the custom profile field set? I have Enable and then Disable second with Enable being default.
Thanks for your help by the way! |
#6
|
|||
|
|||
What kind of field is it?
What do you mean by it doesn't work? What happens? Do they all go off or do they all stay on or? |
#7
|
||||
|
||||
It's a radio button. It doesn't work as in it leaves thread preview on for all the threads.
|
#8
|
|||
|
|||
What are the values for the options?
Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" <if condition="$bbuserinfo['fieldX'] == 'Yes'">title="$thread[preview]"</if>> |
#9
|
||||
|
||||
I had Enable / Disable
This is what I have in there - it still leaves the setting on even if I disable it. Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" <if condition="$bbuserinfo['field12'] == 'Enable' ">title="$thread[preview]"</if>> |
#10
|
|||
|
|||
Try double checking the setting because if it wasn't going to work it wouldn't normally show anything. Make sure you are doing it to the right style and browsing in that style.
If it doesn't work then I guess you'll need to wait for someone to make a proper mod. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|