The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add prefix conditional to line of code
Quote:
|
#3
|
|||
|
|||
Thank you for your reply. Just in the sake of being thorough, where would I put that code exactly? Like so?
Quote:
|
#4
|
|||
|
|||
Well, that line of code adds a check for stick or not depending on the value of an option. So I'm not sure if you always want to check the prefix, or only if you're also checking for sticky. In the first case, you could do this:
Code:
// Set if only Sticky threads are shown $stickysql = ($instance['options'][$cfg_type . '_sticky'] ? "AND thread.sticky = 1 " : ''); $stickysql .= " AND thread.prefixid = 'id' "; or if you only want to check the prefix if it's also sticky, do this: Code:
// Set if only Sticky threads are shown $stickysql = ($instance['options'][$cfg_type . '_sticky'] ? "AND thread.sticky = 1 AND thread.prefixid = 'id' " : ''); |
#5
|
|||
|
|||
Thank you so much, I'll know if this works once I can fix a big with DBTech's Pro Slider modification.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|