![]() |
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 , |
can i add somthing like :
Code:
<if condition="visitormessage"> |
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: |
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") |
I believe for usergroups you'd try:
PHP Code:
|
Quote:
Code:
if (THIS_SCRIPT == 'member' AND is_member_of ($vbulletin->userinfo, 1, 2, 6)") |
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:
|
You are a hero
its work awesome Thank you very very very much Regards , |
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. |
Quote:
Because I need to disable Ajax only with a member colored by rainbow mod |
All times are GMT. The time now is 10:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|