The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add no-cache HTTP headers ONLY for members?
Can this be done by editing a PHP file? If yes, which one?
I'd like to serve no-cache HTTP headers to members only. Any assistance will be very much appreciated. |
#2
|
||||
|
||||
My first thought is a "if" conditional in headinclude.
Like: PHP Code:
|
#3
|
|||
|
|||
Max, unfortunately such solution would not work, as header MUST be sent by the server before html.
|
Благодарность от: | ||
Max Taxable |
#4
|
|||
|
|||
You could try creating a plugin using hook location global_start and code like:
Code:
if ($vbulletin->userinfo['userid'] != 0) { header(... } |
#5
|
|||
|
|||
Kevin, this works! As always, thanks very much!!!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|