Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
<?php
/*
Extension Name: YellowFade Effect
Extension Url: http://michaelraichelson.com/hacks/vanilla/
Description: Adds the YellowFade effect on some stuff.
Version: 0.1
Author: Michael Raichelson
Author Url: http://michaelraichelson.com/
*/
if (in_array($Context->SelfUrl, array("index.php", "categories.php", ... bla bla.. {
$Head->AddScript('extensions/YellowFade/functions.js');
}
?>
if ($Context->SelfUrl == 'account.php') {
$Context->AddToDelegate('PreferencesForm', 'PreRender', 'YellowFade_PreferencesForm');
function YellowFade_PreferencesForm(&$PreferencesForm) {
$PreferencesForm->AddPreference('Other', 'EnableYellowFade', 'showYellowFade');
}
}
$Context->Dictionary['EnableYellowFade'] = 'Show YellowFade';
if( $Context->Session->User->Preference('showYellowFade')) {
$Head->AddScript('extensions/YellowFade/functions.js');
}
<?php
/*
Extension Name: YellowFade Effect
Extension Url: http://michaelraichelson.com/hacks/vanilla/
Description: Adds the YellowFade effect on some stuff.
Version: 0.1
Author: Michael Raichelson
Author Url: http://michaelraichelson.com/
*/
$Context->Dictionary['EnableYellowFade'] = 'Show YellowFade';
if (in_array($Context->SelfUrl,
array("index.php", "categories.php", "comments.php", "search.php",
"post.php", "account.php", "settings.php"))) {
if( $Context->Session->User->Preference('showYellowFade')) {
$Head->AddScript('extensions/YellowFade/functions.js');
}
}
// Add preference
if ($Context->SelfUrl == 'account.php') {
$Context->AddToDelegate('PreferencesForm', 'PreRender', 'YellowFade_PreferencesForm');
function YellowFade_PreferencesForm(&$PreferencesForm) {
$PreferencesForm->AddPreference('Other', 'EnableYellowFade', 'showYellowFade');
}
}
?>
<?php
/*
Extension Name: Quicktags
Extension Url: http://lussumo.com/addons/
Description: Inserts an HTML formatting bar above the input field, using Alex King's Quicktags. Requires SirNot's Html Formatter extension. See http://www.tamba2.org.uk/wordpress/quicktags/ for guidance on adding custom Quicktags.
Version: 0.6
Author: James Greig
Author Url: http://www.3stripe.net
*/
$Configuration["QUICKTAGS_PATH"] = 'extensions/Quicktags/';
$Context->Dictionary['UseQuicktags'] = 'Show the Quicktags formatting bar above the post area';
$Context->Dictionary['MenuOptions'] = 'Nanananananannananana';
if(!in_array($Context->SelfUrl, array("post.php", "comments.php"))) return;
if (in_array($Context->SelfUrl, array("post.php", "comments.php"))) {
class QuicktagsBar {
function QuicktagsBar_Create() {
echo '
<div id="quicktags">
<script type="text/javascript">edToolbar();</script>
</div>
';
}
function QuicktagsBarApres_Create() {
echo '
<script type="text/javascript">var edCanvas = document.getElementById(\'CommentBox\');</script>
';
}
}
}
function AddQuicktagstoCommentForm(&$DiscussionForm)
{
$QuicktagsBar = new QuicktagsBar($DiscussionForm->Context);
$QuicktagsBar-> QuicktagsBar_Create();
}
function AddQuicktagsJavascriptafterCommentForm(&$DiscussionForm)
{
$QuicktagsBar = new QuicktagsBar($DiscussionForm->Context);
$QuicktagsBar-> QuicktagsBarApres_Create();
}
if( $Context->Session->UserID > 0) {
if ($Context->Session->User->Preference('UseQuicktags')) {
$Head->AddScript($Context->Configuration["BASE_URL"].$Context->Configuration["QUICKTAGS_PATH"].'quicktags.js');
$GLOBALS['Head']->AddStyleSheet($Context->Configuration["QUICKTAGS_PATH"].'quicktags.css');
$Context->AddToDelegate("DiscussionForm", "CommentForm_PreCommentsInputRender", 'AddQuicktagstoCommentForm');
$Context->AddToDelegate("DiscussionForm", "DiscussionForm_PreCommentRender",'AddQuicktagstoCommentForm');
$Context->AddToDelegate("DiscussionForm", "CommentForm_PreButtonsRender", 'AddQuicktagsJavascriptafterCommentForm');
$Context->AddToDelegate("DiscussionForm", "DiscussionForm_PreButtonsRender",'AddQuicktagsJavascriptafterCommentForm');
}
}
// Add the Quicktags setting to the forum preferences form
if ($Context->SelfUrl == 'account.php' && $Context->Session->UserID > 0) {
$PostBackAction = ForceIncomingString('PostBackAction', '');
if ($PostBackAction == 'Functionality') {
function PreferencesForm_AddQuicktagsPreference(&$PreferencesForm) {
$PreferencesForm->AddPreference('MenuOptions', 'UseQuicktags', 'UseQuicktags', 1);
}
$Context->AddToDelegate('PreferencesForm',
'Constructor',
'PreferencesForm_AddQuicktagsPreference');
}
}
?>
1 to 14 of 14