<?php

/*
 * Plugin Name: Advanced Sidebox for MyBB 1.6.x
 * Copyright 2014 WildcardSearch
 * http://www.rantcentralforums.com
 *
 * this file contains a custom help document for ASB
 */
$page_title = 'Advanced Sidebox Help: Managing Side Boxes';
$see_also = asb_help_build_page_link('edit_box', 'See also:');
$help_content = <<<EOF
\t\t<div class="help_content">
\t\t\t<h1>{$page_title}</h1>
\t\t\t<h2>adding, editing and removing side boxes</h2>
\t\t\t<p>Managing side boxes is much easier with this plugin, but there are a lot of options involved so it can get complicated. We are working to simplify the interface while maintaining (and even increasing) the current level of performance.</p>
\t\t\t<p>From this screen you can view each side box on your forum at once or filter the results by a particular script. When a side box is set to display for all scripts it will appear on every page regardless of filter.</p>
\t\t\t<p class="info">You can edit a side box by clicking on its title or using the option control menu.</p>
\t\t\t<p>Side boxes can be deleted using the link in the options control menu.</p>
\t\t\t<p class="warning">Deleting side boxes is a permanent action and cannot be undone.</p>
\t\t\t{$see_also}
\t\t</div>
EOF
;
<?php

/*
 * Plugin Name: Advanced Sidebox for MyBB 1.6.x
 * Copyright 2014 WildcardSearch
 * http://www.rantcentralforums.com
 *
 * this file contains a custom help document for ASB
 */
$page_title = 'Advanced Sidebox Help: Editing Scripts';
$see_also = asb_help_build_page_link('manage_scripts', 'See also:');
$help_content = <<<EOF
\t\t<div class="help_content">
\t\t\t<h1>{$page_title}</h1>
\t\t\t<h2>customizing script definitions</h2>
\t\t\t<p>Basically you must point the plugin to the correct script, the template to edit, the hook to call and what to search & replace in the template. If you want, you can replace the entire template with your own content.</p>
\t\t\t<p class="info">To use a custom page (for example made with Page Manager), you'll need to select the 'Output To Variables' option, then globalize and use \$asb_left and \$asb_right in your script as columns.</p>
\t\t\t<h2>Page Manager Example Code</h2>
\t\t\t<div class="code_box">
<code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php
<br />
<br /></span><span style="color: #007700">global&nbsp;</span><span style="color: #0000BB">\$headerinclude</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">\$header</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">\$theme</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">\$footer</span><span style="color: #007700">,&nbsp;</span><span style="background: yellow; color: #0000BB">\$asb_left</span><span style="color: #007700">,&nbsp;</span><span style="background: yellow; color: #0000BB">\$asb_right</span><span style="color: #007700">;
<br /></span><span style="color: #0000BB">\$template&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'
<br />&lt;html&gt;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;head&gt;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">\$pages</span><span style="color: #007700">[</span><span style="color: #DD0000">'name'</span><span style="color: #007700">]&nbsp;.&nbsp;</span><span style="color: #DD0000">'&lt;/title&gt;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\$headerinclude}
<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/head&gt;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;body&gt;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\$header}
<?php

/*
 * Plugin Name: Advanced Sidebox for MyBB 1.6.x
 * Copyright 2014 WildcardSearch
 * http://www.rantcentralforums.com
 *
 * this file contains a custom help document for ASB
 */
$page_title = 'Advanced Sidebox Help: Exporting Custom Side Boxes';
$see_also = asb_help_build_page_link(array('custom', 'edit_custom', 'import_custom'), 'See also:');
$help_content = <<<EOF
\t\t<div class="help_content">
\t\t<h1>{$page_title}</h1>
\t\t<h2>creating backups that you can share</h2>
\t\t<p>In the custom box tab you can easily export a custom box type using the option in the custom box's control menu. A dialogue will appear allowing you to choose a location on your local machine to store the XML file. Browse to a good place and then choose save.</p>
\t\t<p class="info">Couldn't be easier.</p>
\t\t{$see_also}
\t</div>
EOF
;
示例#4
0
<?php

/*
 * Plugin Name: Advanced Sidebox for MyBB 1.6.x
 * Copyright 2014 WildcardSearch
 * http://www.rantcentralforums.com
 *
 * this file contains a custom help document for ASB
 */
$page_title = 'Advanced Sidebox Help';
$see_also = asb_help_build_page_link(array('manage_sideboxes', 'addons', 'custom'), 'See also:');
$help_content = <<<EOF
\t\t<div class="help_content">
\t\t<h1>{$page_title}</h1>
\t\t<h2>a work in progress</h2>
\t\t<p>First thanks for using Advanced Sidebox. I am very excited about the amount of interest that has been shown in this plugin from the onset and feel very appreciative that so many are using it.Things got complicated rather quickly when feature request started piling up but we have done our best to simplify everything while adding those more powerful features as requested.</p>
\t\t<p>This is the main help page. All you'll find here is links to the various topics that are covered in this documentation. To get help for specific actions, go to that page and find the help button. It will link you to the topic you are looking for.</p>
\t\t{$see_also}
\t</div>
EOF
;
<?php

/*
 * Plugin Name: Advanced Sidebox for MyBB 1.6.x
 * Copyright 2014 WildcardSearch
 * http://www.rantcentralforums.com
 *
 * this file contains a custom help document for ASB
 */
$page_title = 'Advanced Sidebox Help: Editing Side Boxes';
$see_also = asb_help_build_page_link('manage_sideboxes', 'See also:');
$ms_link = asb_help_build_page_link('manage_scripts', 'found out more here:');
$help_content = <<<EOF
\t\t<div class="help_content">
\t\t\t<h1>{$page_title}</h1>
\t\t\t<h2>adding and editing side boxes</h2>
\t\t\t<p>To add a new side box, you must set up certain properties to control how the box functions and where and to whom it will be displayed.</p>
\t\t\t<p>
\t\t\t\t<ul>
\t\t\t\t\t<li><strong>Custom Title</strong> - each box type has a default title, but you don't have to use it. Type your desired title into the input box. If you've already set a custom title and are just editing, leave this field blank to keep your current custom title.<br /><br />If you haven't entered a custom title and this is a new box, even if the above option is on, the default title will be used.
\t\t\t\t\t</li><br />
\t\t\t\t\t<li>
\t\t\t\t\t\t<strong>Position</strong> - left or right (<em>only available for the non-JS fall-back sctipts</em>)
\t\t\t\t\t</li><br />
\t\t\t\t\t<li>
\t\t\t\t\t\t<strong>Display Order</strong> - controls the order side boxes display within their given column and across scripts. (<em>only available for the non-JS fall-back sctipts</em>)
\t\t\t\t\t\t<p class="warning">This is a global value and isn't independent of script. Therefore it applies to any page the side box will be displayed upon and all viewers with permission.</p>
\t\t\t\t\t</li>
\t\t\t\t\t<li>
\t\t\t\t\t\t<strong>Which Scripts</strong> - select from the installed scripts, you may add or remove scripts, find out more {$ms_link}
\t\t\t\t\t</li><br />