The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What style users are using?
I noticed even here it shows on the postbit on the left Style: WHATSTYLEUSERSISUSING . How do i implament this on my board? I have used the search and have only found versions for before 3.5.
|
#2
|
||||
|
||||
$style[title]
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
I'm currently using this one -
https://vborg.vbsupport.ru/showthread.php?t=92009 It does add a query to showthread but I've never had much of a problem with that. It does not currently work in PMs though. |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
You could do something like this:
Hook: postbit_display_complete PHP Code:
Code:
Style: $stylename PHP Code:
The above should work Chris |
#8
|
|||
|
|||
Wouldn't that be a slow code if you had like a dozen styles? (as I do hehee)
Maybe modifying the $post query through hooks to add left join commands might be best. /me starts to ponder. |
#9
|
||||
|
||||
It wouldn't necessarily be slow - It would be tedious for many styles but it doesn't add any queries
Chris |
#10
|
|||
|
|||
Heres the code i added to the hook and they ended up just showing that everyone uses the last style on this list. What did i do wrong?
if ($this->post->userinfo['styleid']=='16') { $stylename = 'Rap Basement v1'; } elseif ($this->post->userinfo['styleid']=='14') { $stylename = 'D12 World'; } elseif ($this->post->userinfo['styleid']=='13') { $stylename = 'Basic 2004'; } elseif ($this->post->userinfo['styleid']=='11') { $stylename = 'Green 2003'; } elseif ($this->post->userinfo['styleid']=='12') { $stylename = 'Blue 2002'; } else { $stylename = 'Low Budget'; } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|