The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forums kept as Postbit Legacy, but PMs displayed as original Postbit
Can someone provide details so PMs are read in vertical postbit, whereas the forums are left as postbit legacy?
Thanks. |
#2
|
|||
|
|||
Vertical postbit is the same as postbit_legacy.
If you want legacy, make sure that the appropriate option is enabled in your vBulletin Options, and make sure that you haven't accidentally altered the postbit_legacy template so that it would cause an error. |
#3
|
|||
|
|||
I think he wants PMs using the postbit template and threads using the postbit_legacy template.
|
#4
|
|||
|
|||
^ What he said.
|
#5
|
|||
|
|||
In that case, copy and paste the contents of your postbit template into the postbit_legacy template, but before the actual postbit_legacy content begins. Then, wrap this conditional around the postbit content:
Code:
<if condition="$post['forwardlink']"> |
#6
|
||||
|
||||
Another option...
If you're going the conditional route then I would do the following: 1. Create a new template called "postbit_pm". 2. Copy contents of postbit template to postbit_pm. 3. Add postbit_pm to cache_templates hook in plugin: Product: vBulletin Hook: cache_templates Name: Postbit PM Cache Templates Execution Order: 5 Plugin PHP code: Code:
if (THIS_SCRIPT == "showthread") { global $globaltemplates; $globaltemplates[] = 'postbit_pm'; } Plugin Active: Yes Save 4. Add postbit_pm to postbit_display_complete hook in plugin: Product: vBulletin Hook: postbit_display_complete Name: Postbit PM Postbit Display Complete Execution Order: 5 Plugin PHP code: Code:
eval('$postbit_pm = "' . fetch_template('postbit_pm') . '";'); Plugin Active: Yes Save 5. In template postbit at the top add after "$template_hook[postbit_start]" Code:
<if condition="THIS_SCRIPT == 'private'"> $postbit_pm <else /> 6. In same template at the bottom but just above "$template_hook[postbit_end]" add: Code:
</if> Six steps here but you'll have your own postbit template for private messages. Edited: Some corrections. |
#7
|
|||
|
|||
I have asked the same question a while back, this one solved it very nice :-)
anyway to make it with no edit of templates ? |
#8
|
||||
|
||||
I haven't seen a plugin or PHP file edit (yet).
|
#9
|
|||
|
|||
what I mean is that you wrote in step 5:
Quote:
|
#10
|
||||
|
||||
sorry for reopening this thread... i-ve managed not to show my ads in PM ,but i use a plugin that puts on the closed threads a picture that the thread is closed,and it still apears in PM.
Product: vBulletin Hook: postbit_display_complete Name: Execution Order: 5 Plugin PHP code: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|