The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Thanks to kh99, I currently have a certain number of user tags per row for Posts. Here is the code I am using for Posts: Hooked to postbit_display_start PHP Code:
Can someone help me alter the code to work in private messages, please, and where to hook the plugin? Thank you greatly |
#2
|
|||
|
|||
![]()
Bump. Looking for this
|
#3
|
|||
|
|||
![]()
Bump
|
#4
|
||||
|
||||
![]()
User tags in PMs? I have no idea what tags you are talking about in PMs.
|
#5
|
|||
|
|||
![]() Quote:
You know how you can stack user ranks? Well, our ranks are stacked, however, they are stacked in rows. Right now, it is set 4 ranks per row. See this pic below: ![]() Anyway, kh99 helped me by providing the code to set the user ranks per row to '2' ranks per row for profiles, as well as '4' ranks per row or user choice for posts. However, the code I am using for 4 ranks per row for posts does not work for PMs, too. In PMs, the ranks are stacking all vertically, which looks horrid. Look here: ![]() So, yeah. $this->post[rank] must not work in Private Msgs. Or I am hooking it to the wrong location. Not sure. Can you help? |
#6
|
||||
|
||||
![]()
Have you tried that on a totally default style? The default style uses the same template for PMs and posts (assuming you are using the postbit_legacy template).
|
#7
|
|||
|
|||
![]() Quote:
None of this code is in a template. This is all done through the plugin system. Every rank added is set to 'Stack Rank'. This code stacks them in rows. So, if a user has 14 ranks, there will be two rows of 5, and then one row of 4 ranks. I need it to do this for PMs, too. Not sure where to hook my plugin or if anything needs to be changed in the plugin from posts to PMs (look at first PHP code posted) |
#8
|
||||
|
||||
![]()
I'm surprised you need a plugin to show the ranks. But anyway.... if you want to change the code just for the PM page, you may use this condition:
PHP Code:
|
#9
|
|||
|
|||
![]()
I see that you put in code to put the value of field50 into an html comment - what are you getting as the value? It looks like maybe the userfields aren't set when it's a pm, but that's kind of surprising because I've seen a lot of people do things in the postbit based on a custom profile field, but I don't remember anyone complaining about it not working in a PM.
Edit: Try changing the hook location to postbit_display_complete. |
#10
|
|||
|
|||
![]()
Thanks kh99, that worked (changing the hook to postbit_display_complete)
however, I am trying to use part of Lynne's suggestion so I can make it so in PMs, there are 3 ranks per row, whereas in posts, there are 5 ranks per row; see here: PHP Code:
PHP Code:
i can't have 5 in PMs as it is stretching the pm display. 3 or maybe 4 will be just enough per row in PMs EDIT: NVM! I did it! Yay! Thank you both for the help! Here is the code in postbit_display_complete PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|