The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Do a view source on your profile page where you select the option. See if yes is 0, 1 or 2 or whatever depending on your settings. each input will have a label and a value.
What type field is it, radio or menu? |
#12
|
||||
|
||||
It is radio - Yes No
Here is the source <fieldset class="fieldset"> <legend>Enable Cometchat Software?</legend> <table cellpadding="0" cellspacing="3" border="0" width="100%"> <tr> <td>If you are a Premium Member, Sponsor or Staff, You Can Use the Cometchat Software. It Adds a Bar to the bottom of the page and allows you to instantly chat with other users. Click YES if you want to use it or NO if you do not want to use it.</td> </tr> <tr> <td> <table cellpadding="2" cellspacing="0" border="0"> <tr><td valign="top"><label for="rb_cpf_field15_1"><input type="radio" name="userfield[field15]" value="1" id="rb_cpf_field15_1" checked="checked" />Yes</label></td><td valign="top"><label for="rb_cpf_field15_2"><input type="radio" name="userfield[field15]" value="2" id="rb_cpf_field15_2" />No</label></td></tr> </table> <input type="hidden" name="userfield[field15_set]" value="1" /> </td> </tr> </table> </fieldset> |
#13
|
|||
|
|||
HTML Code:
<if condition="$bbuserinfo[field15] == 1 AND THIS_SCRIPT != 'chat.php' AND is_member_of($bbuserinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)"> <!-- CometChat Footer Code Start --> <link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" /> <script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script> <!-- CometChat Footer Code End --> </if> Of course chat.php must have define('THIS_SCRIPT', 'chat.php'); in it. |
#14
|
|||
|
|||
PHP Code:
If you get rid of that line then it will be on all pages EDIT: Or use his it is cleaner |
#15
|
||||
|
||||
its not showing at all even with a visit to the edit options page and hitting save
--------------- Added [DATE]1277256898[/DATE] at [TIME]1277256898[/TIME] --------------- the chat that im not showing the Cometchat on is the Addonchat page , VBSEO is not showing on the Chat Page with chat.php added to the exclude list so chat.php must be the script |
#16
|
|||
|
|||
The condition is set to this in post 13...
If field 15 is yes, and the script is NOT chat.php, and the member is in these groups. Of course chat.php must have define('THIS_SCRIPT', 'chat.php'); in it. |
#17
|
||||
|
||||
Quote:
--------------- Added [DATE]1277257193[/DATE] at [TIME]1277257193[/TIME] --------------- chat.php has define('THIS_SCRIPT','chat'); in it |
#18
|
|||
|
|||
P.S. I'm not so sure about those paths to the css and js either. Make sure they are correct in view source. See if they show at all in the view source. It may be there but not working due to a bad path.
Do this then for the chat condition.... HTML Code:
<if condition="$bbuserinfo[field15] == 1 AND THIS_SCRIPT != 'chat' AND is_member_of($bbuserinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)"> <!-- CometChat Footer Code Start --> <link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" /> <script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script> <!-- CometChat Footer Code End --> </if> |
#19
|
||||
|
||||
Im sorry but nothing is showing for
<if condition="$bbuserinfo[field15] == 1 AND THIS_SCRIPT != 'chat.php' AND is_member_of($bbuserinfo, 5, 7, 6, 16, 12, 11, 17, 10, 13, 9)">STUFF</if> Please dont give up |
#20
|
|||
|
|||
OK, update to the code in post 18 to fix the chat part.
Then go to a page the code should run on and view source. See if you can find: <!-- CometChat Footer Code Start --> If it's there, the condition is working, but the css and js paths are wrong as I suspect perhaps. Post the code you see so we can review those paths? Where is the cometchat folder on your site? If you have to, echo out the custom field by putting this in the template.. Field15 = $bbuserinfo[field15]<br /> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|