The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to disable ajax on (visitormessage)
Hello ,
I have a problem on the comments of visitors on the Profile . When you add any comment shows a blank page When i disable all Ajax from admincp aproblem disappear and everything run ok . So i need away to disable Ajax only on Profile Please anyone can help me ??? Note : the problem only with user colored by this mod https://vborg.vbsupport.ru/showthread.php?t=108910 Regards , |
#2
|
|||
|
|||
can i add somthing like :
Code:
<if condition="visitormessage"> disable : ajax ; </if> |
#3
|
||||
|
||||
Looks like you need to do the conditional in a plugin... I just tested this, seems to work:
Go to Admin CP -> Plugin Manager -> Add a New Plugin Product: vBulletin hook location: global_start Title: AJAX Disable on MEMBERINFO Execution Order: 5 PHP Code: PHP Code:
Ajax should be disabled on your member.php page, which controls visitor messaging. :up: |
#4
|
|||
|
|||
Quote:
You are awesome, God bless you Regards , --------------- Added [DATE]1300289686[/DATE] at [TIME]1300289686[/TIME] --------------- Can I select this option to a specific UserGroup ? like this : Code:
if (THIS_SCRIPT == 'member'1,2,6") $vbulletin->options['disable_ajax'] = 2; |
#5
|
||||
|
||||
I believe for usergroups you'd try:
PHP Code:
|
#6
|
|||
|
|||
Quote:
Code:
if (THIS_SCRIPT == 'member' AND is_member_of ($vbulletin->userinfo, 1, 2, 6)") |
#7
|
||||
|
||||
My bad, it looks like I have an extra " in there for some reason, take the " out between the last two ) )...
OR.. I just tested this, this works too... PHP Code:
|
#8
|
|||
|
|||
You are a hero
its work awesome Thank you very very very much Regards , |
#9
|
||||
|
||||
No problem. :up:
FYI the difference between the two is the first one I posted will work on primary OR secondary usergroups, where as the second code only works on primary usergroups, which is probably all you need. |
#10
|
|||
|
|||
Quote:
Because I need to disable Ajax only with a member colored by rainbow mod |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|