Is this possible with Multi User version too?
Yes it is.
In the first step of the author's instructions (in the first post of this topic) for the default sNews 1.6 snews.php file, you search for:
if ($_SESSION[db('website').'Logged_In'] == token()) {js();}. This string does a session check to see (I think) to see if the user is logged in. It is located at the end of function title() - which you will find by searching for
// TITLE.
If you are using Bakercad's 1.6.3 MU package, all of the changes are pretty much the same, except the session checking string at the end of function title() - is longer. It has another bit added into it that adds a second check... to see if the user's identity is less than level 4.
if ($_SESSION[db('website').'Logged_In'] == token() && get_identity($_SESSION['id'], 'level') < '4') {js();}So... in
Step One... you would replace it with (excluding the php tags):
<?php
if ($_SESSION[db('website').'Logged_In'] == token() && get_identity($_SESSION['id'], 'level') < '4') {js();
echo
'<link rel="stylesheet" type="text/css" media="screen" href="wymeditor/skins/default/screen.css" />
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="wymeditor/jquery.wymeditor.js"></script>
<script type="text/javascript">
jQuery(function() {
jQuery(".wymeditor").wymeditor({
cssPath: "'.db('website').'wymeditor/skins/default/screen.css",
jQueryPath: "'.db('website').'jquery/jquery.js",
wymPath: "'.db('website').'wymeditor/jquery.wymeditor.js"
});
});
</script>';
}
?>
Step 2 is essentially the same. Instead of looking for line numbers, just search for -
case 'textarea': $output = and you will be at that mod location. Do as the first post instructions say.
Step 3 involves replacing the default editor button strings. Where the instructions say "comment from line 1312 to line 1322..." - search your snewsMU.php file for -
echo html_input('button', 'strong', '', 'B', which is the first part of the first editor button string (makes BOLD text). Above it you will see -
echo '<p>'; and we want to disable this whole editor buttons section by adding comment lines above and below it so that it looks like this:
<?php
/* ---------------------------------------------------------
echo '<p>';
echo html_input('button', 'strong', '', 'B', '', 'button', 'onclick="tag(\'strong\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'em', '', 'I', '', 'button', 'onclick="tag(\'em\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'strike', '', 'Strike', '', 'button', 'onclick="tag(\'strike\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'p', '', 'P', '', 'button', 'onclick="tag(\'p\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'br', '', 'BR', '', 'button', 'onclick="tag(\'br\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'break', '', 'Break', '', 'button', 'onclick="tag(\'break\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'img', '', 'Image', '', 'button', 'onclick="tag(\'img\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'link', '', 'Link', '', 'button', 'onclick="tag(\'link\')"', '', '', '', '', '', '', '', '');
echo html_input('button', 'include', '', 'Include', '', 'button', 'onclick="tag(\'include\')"', '', '', '', '', '', '', '', '');
echo '</p>';
// ---------------------------------------------------------*/
?>
Step 4 - Here we are replacing the default "PREVIEW panel string located about 5 strings down from where we just commented out the stuff in step 3 (above). This step is the same for both versions.
Step 5 - this step is also the same for both versions. Again, instead of looking for the line number, just search for the first string and replace it with the 2nd string... it is 11 strings up from the bottom of the same function - // ARTICLES FORM.