The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
global_start, which should I be using?
|
#12
|
||||
|
||||
Well, if you want it on the forumhome, I would use one of those.
forumhome_start forumhome_complete -> Most likely, this one |
#13
|
|||
|
|||
Still get a server error.
Server error. The website encountered an error while retrieving http://www.consolediscussions.com/forum/forum.php. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this web page later. |
#14
|
||||
|
||||
It comes up fine for me.
|
#15
|
|||
|
|||
Because I reverted back to the old code. Im not just going to leave my website down lol.
|
#16
|
||||
|
||||
It could be your template is the problem and not your plugin. So I'll ask again if you can you please post your template code.
|
#17
|
|||
|
|||
PMed code
|
#18
|
|||
|
|||
I seriously think someone is playing games.
I added this code: Code:
$templater = vB_Template::Create('soundnotification'); $soundnotification .= $templater->render(); vB_Template::preRegister('header',array('soundnotification' => $soundnotification)); soundnotification template: Code:
<if condition="$vboptions['sound_notification_enabled']"><if condition="$bbuserinfo['fieldXX'] === 'No'"> <else /> <embed src="mail.mp3" autostart="true" hidden="true"> </if> </if> |
#19
|
||||
|
||||
No one is playing games, you are just not using the correct vB4 syntax. You cannot put $soundnotification in the template, it is {vb:raw soundnotification}. And you cannot do <if condition... , it is <vb:if (same for other parts of the condition - you are using the wrong syntax).
|
#20
|
|||
|
|||
Still no worky, I put {vb:raw soundnotification} at the top of my header template and it doesn't even show anything in the view source, no sign of the code at all.
Here's my whole xml to prove Im doing everything right, let me add that I've even tried removing the conditionals altogether: Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="soundnotification" active="1"> <title>Sound Notification</title> <description>A sound is played when a notification is received.</description> <version>2.0</version> <url><![CDATA[https://vborg.vbsupport.ru/showthread.php?t=224997]]></url> <dependencies> <dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.9.9" /> </dependencies> <templates> <template name="soundnotification" templatetype="template" date="1164681507" username="TheInsaneManiac" version="3.8.0"><![CDATA[ <vb:if condition="$vboptions['sound_notification_enabled']"><vb:if condition="$bbuserinfo['fieldXX'] === 'No'"> <else /> <embed src="mail.mp3" autostart="true" hidden="true"> </vb:if> </vb:if>]]> </template> </templates> <plugins> <plugin active="1" product="sound_notification"> <title>Sound Notification Cache</title> <hookname>cache_templates</hookname> <phpcode><![CDATA[if ($vbulletin->options['sound_notification_enabled']) { $cache[] = 'soundnotification'; }]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Sound Notification Begin</title> <hookname>global_start</hookname> <phpcode><![CDATA[if ($vbulletin->options['sound_notification_enabled']) { $templater = vB_Template::Create('soundnotification'); $soundnotification .= $templater->render(); vB_Template::preRegister('header',array('soundnotification' => $soundnotification)); }]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Sound Notification End</title> <hookname>parse_templates</hookname> <phpcode><![CDATA[ if(THIS_SCRIPT == 'index' && ($vbulletin->options['affiliation_enabled'])) { $vbphrase['powered_by_vbulletin'] .= "<br /><div class=\"smallfont\" align=\"center\">Sound Notification by <a href=\"https://vborg.vbsupport.ru/member.php?u=238957\">TheInsaneManiac</a> of <a href=\"http://www.consolediscussions.com/forum/\">ConsoleDiscussions</a></div>"; }]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_sound_notification_enabled_title" username="TheInsaneManiac"><![CDATA[Sound Notification Settings]]></phrase> <phrase name="setting_sound_notification_enabled_desc" username="TheInsaneManiac"><![CDATA[Enable Sound Notification?]]></phrase> <phrase name="settinggroup_sound_notification" username="TheInsaneManiac"><![CDATA[Sound Notification]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="sound_notification" displayorder="9999"> <setting varname="sound_notification_enabled" displayorder="1"> <datatype>number</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> </settinggroup> </options> </product> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|