News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

zCommunity 0.8.1 Beta Now available! (supports SMF 2.0 RC1 and 1.1.8)

Started by Charles Hill, June 16, 2008, 03:33:34 PM

Previous topic - Next topic

qubbah

Quote from: Charles Hill on September 12, 2008, 01:05:04 PM
In the blog control panel.. in the Admin-only blog options sub menu... "Hide blog boards on the board index"

I cant find it...

LinK187

@jkrlvgn: Since you helped me with that button thing, would you also be able to help me with one more thing about the same button?

The problem is, it doesn't actually press down (visually) like the other buttons. See the following screenies:




Lady Night Owl

#1322
Quote from: jayman2 on February 18, 2009, 02:14:36 PM
Quote from: linkgamer3 on February 13, 2009, 02:19:19 PM
Quote from: linkgamer3 on February 11, 2009, 09:11:33 PM
Ummm...I'm really stumped on what I'm doing wrong. I reinstalled the entire forum on my site to try to fix this error, but my efforts were in vain. I'm getting this error when I try to click the "Blogs" tab.
Page request Error
The page you have requested does not exist.

What am I doing wrong? Or is this a bug?
Ok, I found a fix...of sorts...If I specify something else along with the URL, the main blog page will come up. For example, http://whatninja.com/index.php?zc will not work, however, http://whatninja.com/index.php?zc;theme=2 will work. Any suggestions on a real fix though? Please?
I just did a fresh install of smf 2.0 rc1 on another test site and the first mod I installed was zc 07.9.  It installed without any errors, but when I clicked on the blogs menu option, I got the same message.

What I did was edit my subs.php file like this:

         'zcommunity' => array(
            'title' => !empty($txt['b1a']) ? $txt['b1a'] : 'Blogs',
            'href' => $scripturl . '?zc;theme=1',
            'show' => !empty($context['zc']['show_zc_nav']),
            'sub_buttons' => array(
            ),
         ),

This is on the default theme.  I would imagine as long as you don't allow your users to change themes, this should work just fine.  If you want to use another theme for your board, you would just change the number following "theme=.  I hope this helps someone.


Thank you!!! This was driving me nuts.

If you want this to work on any theme, just don't specify a number ;)


'zcommunity' => array(
'title' => !empty($txt['b1a']) ? $txt['b1a'] : 'Blogs',
'href' => $scripturl . '?zc;theme',
'show' => !empty($context['zc']['show_zc_nav']),
'sub_buttons' => array(
),
),


Only downside is that some of the buttons won't look right like "go to top" in the blogs or the menu in the control panel. But there is a remedy for that :)


And like some others, I'm also having trouble with getting the permission settings to save properly in global blog settings and access restrictions. Also the "more options" link on polls isn't working.
Running SMF 2.0.1

LinK187

I have pages of this error and don't know why.

QuoteGuest   Today at 09:34:56 AM 
66.249.70.252     4ea16997970299f2d9f2397be1595d9e 
http://londonbass.com/forum/index.php?blog=1.0;date=2009.3 
8: Undefined index: show_load_time
File: /****/****/****/****/forum/Themes/LondonBass/languages/MGallery.english.php (eval?)
Line: 544

It's not always the mgallery.english.php so I've concluded there's nothing wrong with the mod seeing as the errors began when zcommunity was installed.
The other file that list this problem is:

QuoteFile: /home/gordonj/public_html/londonbass/forum/Themes/default/languages/Modifications.english.php (eval?)

Some how it's also having a problem at line 544. Regardless the error seems to occur any time anyone clicks on anything in the blog section.

What does it mean?

Fabis94

I want to install this on a custom theme, but i have trouble editing the index.template.php because i can't find where to put some edits.

Could someone change the index.template.php as this Blog requires?
Here it is:

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

/* Call to Theme String for languages  */
 loadLanguage('ThemeStrings');
 
  // Color changer
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
include_once($GLOBALS['sourcedir'] . '/Profile.php');
makeThemeChanges($context['user']['id'], $settings['theme_id']);
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
if (isset($_POST['options']['theme_color']))
{
  $_SESSION['theme_color'] = $_POST['options']['theme_color'];
  $options['theme_color'] = $_SESSION['theme_color'];
}
elseif (isset($_SESSION['theme_color']))
  $options['theme_color'] = $_SESSION['theme_color'];
}
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings$boardurl;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc2p"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_main_color'] = $options['theme_color'];

// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'Jade';
$settings['theme_main_color'] = $options['theme_color'];
}

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style_' $settings['theme_main_color'] , '.css?fin11" />
<script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/newscollapse.js"></script>
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

// for ie!
 if($context['browser']['is_ie'])
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie.css?fin11" />';

 // for ie6!
 if($context['browser']['is_ie6'])
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6.css?fin11" />';
 
 // for webkits!
 if($context['browser']['is_safari'])
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/webkit.css?fin11" />';
 
 // for opera!
 if($context['browser']['is_opera'])
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/opera.css?fin11" />';  

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';


// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;

echo '
</head>
<body>
   <div id="wrapper">
   
                             <div style="text-align: center; background: #3E3E3E;">'
;
// color selection box

{
if (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
echo '
<form action="'
$scripturl'" method="post" >
<input style="cursor: pointer; font-size: 2px; width:100px;"                              type="submit" class="changerB" value="Bronze"    name="options[theme_color]" />
<input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerG" value="Graphite"    name="options[theme_color]" />
<input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerJ" value="Jade"         name="options[theme_color]" />
<input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerM" value="Malachite" name="options[theme_color]" />
<input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerO" value="Opal"     name="options[theme_color]" />
<input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerR" value="Ruby"     name="options[theme_color]" />
</form>'
;
}
echo '
</div>
   
      <div id="header">
   <div id="logo"><a href="'
.$scripturl.'" title=""></a></div>';
     echo '
</div>
<div id="toolbar">
'
,template_menu(),'
</div>
   <table id="userinfo"><tr>'
;
                  
if (!empty($context['user']['avatar']))
echo '
<td id="avbox" width="2%">'
$context['user']['avatar']['image'], '</td>';

echo '
<td width="30%" style="margin: 6px 0 0 0;"><span class="middletext2">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<b>'
,$txt['hey2'],' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' <a href="'$scripturl'?action=pm"><b>'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</b></a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '
<a href="'
$scripturl'?action=unread"><b>',$txt['showunread2'],'</b>&nbsp;/</a>
<a href="'
$scripturl'?action=unreadreplies"><b>',$txt['showreplies2'],'</b>&nbsp;/</a>
<a href="'
$scripturl'?action=profile;sa=showPosts"><b>',$txt['ownposts2'],'</b></a><br />';

if (isset($context['user']['awaiting_mod']))
echo '<br /><a href="' $scripturl '?action=warnpmman">' $context['user']['awaiting_mod'] . '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo'  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',$txt['welcome_forum'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
echo
         ' 
$context['current_time'], '';

echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form id="logprime" action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 8px;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input id="toplog" type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">&nbsp;&nbsp;&nbsp;&nbsp;'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
echo '
   </tr></table>'
;
   
   
// Show a random news item? (or you could pick one from news_lines...)
    
if (!empty($settings['enable_news'])) {
    
echo '<div id="news"><div id="newslines"><b>'.'News:'.'</b><br />'$context['random_news_line'] , '</div></div>';
    
}

else  {
    
echo '<div id="news"><div id="newslines">

<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 20px 0 0 150px;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input class="biginput" type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" style="width: 170px;" /> ';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form><br />

</div></div>'
;
    
}
   
echo '<div id="mainarea">';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt$user_info;

        echo 
'
      </div>
<div id="footer">
         
          <br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio,</a> <a href="http://www.akria.org/forum">Kazos</a> and <a href="http://www.dzinerstudio.com">Antechinus</a><br /> 
  '
theme_copyright(), '';

// Show the load time?
if ($context['show_load_time'])
echo ' | &nbsp;'$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

echo '
</div>
   </div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 1ex; margin-top: 3ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.

 echo '
             
                 <div id="menu">
                     <ul class="menu">
                     
                             <li class="level1"><a href="'
$scripturl'" class="level1"><span><span class="title">' $txt[103] , '</span></span></a></li>';

                 
// Show the [Help] button.
                 
echo
                             <li class="level1"><a href="'
$scripturl'?action=help" class="level1"><span><span class="title">' $txt[119] , '</span></span></a></li>';  

                 
// How about the [search] button?
                 
if ($context['allow_search'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=search" class="level1"><span><span class="title">' $txt[182] , '</span></span></a></li>';

                 
// Is the user allowed to administrate at all? ([admin])
                 
if ($context['allow_admin'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=admin" class="level1"><span><span class="title">' $txt[2] , '</span></span></a>
 <ul>                             
                             <li><a href="'
$scripturl'?action=packages" class="level2"><span>' $txt['packages'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=theme;sesc='$context['session_id'],';sa=edit" class="level2"><span>' $txt['modtheme'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=maintain" class="level2"><span>' $txt['maintain'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=news" class="level2"><span>' $txt['newsand'] , '</span></a></li>
 </ul>
 </li>'
;
                             
                 
// Edit Profile... [profile]
                 
if ($context['allow_edit_profile'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=profile" class="level1"><span><span class="title">' $txt[79] , '</span></span></a>
                             <ul>                             
                             <li><a href="'
$scripturl'?action=profile;sa=forumProfile" class="level2"><span>' $txt['forpro'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=profile;sa=theme" class="level2"><span>' $txt['layout'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=profile;sa=account" class="level2"><span>' $txt['account2'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=profile;sa=notification" class="level2"><span>' $txt['notification2'] , '</span></a></li>
 </ul>
 </li>'
;


                 
// Go to PM center... [pm]
                 
if ($context['user']['is_logged'] && $context['allow_pm'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=pm" class="level1"><span><span class="title">' $txt['messages'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></span></a>
                             <ul>
                             <li><a href="'
$scripturl'?action=pm;f=outbox" class="level2"><span>' $txt['outbox'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=pm;sa=send" class="level2"><span>' $txt['sendmess'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=pm;sa=pmprefs" class="level2"><span>' $txt['pm_options'] , '</span></a></li>
 <li><a href="'
$scripturl'?action=pm;sa=search" class="level2"><span>' $txt['searchmess'] , '</span></a></li>
                             </ul>
 </li>'
;                 

                 
// the [Recent Posts] button
                 
echo '
                             <li class="level1"><a href="'
$scripturl'?action=recent" class="level1"><span><span class="title">' $txt['latest2'] , '</span></span></a>
                             <ul>'
;
 if ($context['allow_calendar'])
 echo'
 <li><a href="index.php?action=calendar" class="level2"><span>' 
$txt['viewcal'] , '</span></a></li>';  
 if ($context['allow_memberlist'] && $context['user']['is_logged'])
 echo'  
                             <li><a href="'
$scripturl'?action=mlist" class="level2"><span>' $txt['viewlist'] , '</span></a></li>                             
                             <li><a href="'
$scripturl'?action=mlist;sa=search" class="level2"><span>' $txt['searchlist'] , '</span></a></li>';  
                 echo
'    </ul>
 </li>'
;

// If the user is a guest, show [login] button.
                 
if ($context['user']['is_guest'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=login" class="level1"><span><span class="title">' $txt[34] , '</span></span></a></li>';
                           
                 
// If the user is a guest, also show [register] button.
                 
if ($context['user']['is_guest'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=register" class="level1"><span><span class="title">' $txt[97] , '</span></span></a></li>';  
                                         
                 
// Otherwise, they might want to [logout]...
                 
if ($context['user']['is_logged'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '" class="level1"><span><span class="title">' $txt[108] , '</span></span></a></li>';

         echo 
'
                     </ul>
                 </div>'
;


}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



The Theme is MysticMulti

andyv123

How can I remove the second "save" button that displays for everyone on the blog edit page? Some of my members click the wrong save button and lose all of their work...

LinK187

Quote from: andyv123 on March 09, 2009, 06:30:26 AM
How can I remove the second "save" button that displays for everyone on the blog edit page? Some of my members click the wrong save button and lose all of their work...

I would also like to know the answer to this, as well as my other 2 unanswered questions. :)

Lady Night Owl

Quote from: LinK187 on March 09, 2009, 04:39:14 PM
Quote from: andyv123 on March 09, 2009, 06:30:26 AM
How can I remove the second "save" button that displays for everyone on the blog edit page? Some of my members click the wrong save button and lose all of their work...

I would also like to know the answer to this, as well as my other 2 unanswered questions. :)

I think I saw Charles say somewhere that the duplicate save button is for the plug-ins, but he's working on setting it up so that the button won't show if no plug-ins are installed.
Running SMF 2.0.1

LinK187

Quote from: Lady Night Owl on March 09, 2009, 05:03:14 PM
Quote from: LinK187 on March 09, 2009, 04:39:14 PM
Quote from: andyv123 on March 09, 2009, 06:30:26 AM
How can I remove the second "save" button that displays for everyone on the blog edit page? Some of my members click the wrong save button and lose all of their work...

I would also like to know the answer to this, as well as my other 2 unanswered questions. :)

I think I saw Charles say somewhere that the duplicate save button is for the plug-ins, but he's working on setting it up so that the button won't show if no plug-ins are installed.

Perhaps just a visual discrimination would be better.

andyv123

The save button does have a purpose, but only to those that can change the ownership of blogs. For some reason the save button shows up even when a person doesn't have the option to change ownership.

Charles Hill

No that extra Save button at the bottom of the Blog Settings page is for plugin settings for blogs (which you have none right now because you have no plugins).  The bug is that it shouldn't show up at all if you have no blog by blog settings for plugins.  I fixed it for 0.8.0 Beta.

LinK187

Quote from: Charles Hill on March 09, 2009, 07:21:33 PM
No that extra Save button at the bottom of the Blog Settings page is for plugin settings for blogs (which you have none right now because you have no plugins).  The bug is that it shouldn't show up at all if you have no blog by blog settings for plugins.  I fixed it for 0.8.0 Beta.

Ah he speaks! Fancy checking this post out? http://www.simplemachines.org/community/index.php?topic=244848.msg1966506#msg1966506

Charles Hill

#1332
That's just a missing variable.  Should be boolean (true/false) for whether or not to show the # of database queries and load time for the current page at the bottom.  Look in index.template.php for the theme you're using in zCommunity.  The variable itself should be set in zc.php somewhere.

LinK187

If i send you my index.template.php would you be able to point it out for me and advise what lines to add to zc.php and where?

Fabis94

Could you guys help me? I can't find where to put some of the adjustments for my Custom theme:


<?php
// Version: 1.1; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
   global 
$context$settings$options$txt;

   
/* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   
$settings['use_default_images'] = 'never';

   
/* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   
$settings['doctype'] = 'xhtml';

   
/* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   
$settings['theme_version'] = '1.1';

   
/* Set a setting that tells the theme that it can render the tabs. */
   
$settings['use_tabs'] = true;

   
/* Use plain buttons - as oppossed to text buttons? */
   
$settings['use_buttons'] = true;

   
/* Show sticky and lock status seperate from topic icons? */
   
$settings['seperate_sticky_lock'] = true;
   
   
/* Call to Theme String for languages  */
    
loadLanguage('ThemeStrings');
    
     
// Color changer
   
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
   {
      include_once(
$GLOBALS['sourcedir'] . '/Profile.php');
      
makeThemeChanges($context['user']['id'], $settings['theme_id']);
      
$options['theme_color'] = $_POST['options']['theme_color'];
   }
   elseif (
$context['user']['is_guest'])
   {
      if (isset(
$_POST['options']['theme_color']))
      {
        
$_SESSION['theme_color'] = $_POST['options']['theme_color'];
        
$options['theme_color'] = $_SESSION['theme_color'];
      }
      elseif (isset(
$_SESSION['theme_color']))
        
$options['theme_color'] = $_SESSION['theme_color'];
   }   
}

// The main sub template above the content.
function template_main_above()
{
   global 
$context$settings$options$scripturl$txt$modSettings$boardurl;

   
// Show right to left and the character set for ease of translating.
   
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
   <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
   <meta name="description" content="'
$context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc2p"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "'
$settings['theme_url'], '";
      var smf_images_url = "'
$settings['images_url'], '";
      var smf_scripturl = "'
$scripturl'";
   // ]]></script>
   <title>'
$context['page_title'], '</title>';
   
   
// Any color set by user?
   
if (isset($options['theme_color']))
      
$settings['theme_main_color'] = $options['theme_color'];

   
// If not set, or if not allowed to set
   
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
   {
      
// Defaults.
      
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'Jade';
      
$settings['theme_main_color'] = $options['theme_color'];
   }

   
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   
echo '
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style_' $settings['theme_main_color'] , '.css?fin11" />
   <script language="JavaScript" type="text/javascript" src="'
$settings['theme_url'], '/newscollapse.js"></script>
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';
   
   
// for ie!
    
if($context['browser']['is_ie'])
      echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie.css?fin11" />';
   
    
// for ie6!
    
if($context['browser']['is_ie6'])
      echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6.css?fin11" />';
    
    
// for webkits!
    
if($context['browser']['is_safari'])
      echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/webkit.css?fin11" />';
    
    
// for opera!
    
if($context['browser']['is_opera'])
      echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/opera.css?fin11" />';    

   
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   
if ($context['browser']['needs_size_fix'])
      echo 
'
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

   
// Show all the relative links, such as help, search, contents, and the like.
   
echo '
   <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
   <link rel="search" href="' 
$scripturl '?action=search" />
   <link rel="contents" href="'
$scripturl'" />';

   
// If RSS feeds are enabled, advertise the presence of one.
   
if (!empty($modSettings['xmlnews_enable']))
      echo 
'
   <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

   
// If we're viewing a topic, these should be the previous and next topics, respectively.
   
if (!empty($context['current_topic']))
      echo 
'
   <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

   
// If we're in a board, or a topic for that matter, the index will be the board's index.
   
if (!empty($context['current_board']))
      echo 
'
   <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';


   
// We'll have to use the cookie to remember the header...
   
if ($context['user']['is_guest'])
      
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

   
// Output any remaining HTML headers. (from mods, maybe?)
   
echo $context['html_headers'], '
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

      function shrinkHeader(mode)
      {'
;

   
// Guests don't have theme options!!
   
if ($context['user']['is_guest'])
      echo 
'
         document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
   else
      echo 
'
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>'
;

   
// the routine for the info center upshrink
   
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

         function shrinkHeaderIC(mode)
         {'
;

   if (
$context['user']['is_guest'])
      echo 
'
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
   else
      echo 
'
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>'
;

   echo 
'
</head>
<body>
   <div id="wrapper">
   
                             <div style="text-align: center; background: #3E3E3E;">'
;
   
// color selection box
   
   
{      
      if (isset(
$settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
      echo 
'
            <form action="'
$scripturl'" method="post" >
               <input style="cursor: pointer; font-size: 2px; width:100px;"                              type="submit" class="changerB" value="Bronze"      name="options[theme_color]" />
               <input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerG" value="Graphite"      name="options[theme_color]" />
               <input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerJ" value="Jade"           name="options[theme_color]" />
               <input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerM" value="Malachite"   name="options[theme_color]" />
               <input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerO" value="Opal"          name="options[theme_color]" />
               <input style="cursor: pointer; font-size: 2px; width:100px; margin: 0 0 0 30px;" type="submit" class="changerR" value="Ruby"          name="options[theme_color]" />                                                         
            </form>'
;
   }
   echo 
'
   </div>
   
      <div id="header">
      <div id="logo"><a href="'
.$scripturl.'" title=""></a></div>';
                echo 
'
            </div>
   <div id="toolbar">
   '
,template_menu(),'
   </div>
   <table id="userinfo"><tr>'
;   
                        if (!empty(
$context['user']['avatar']))
      echo 
'
                     <td id="avbox" width="2%">'
$context['user']['avatar']['image'], '</td>';

   echo 
'
                     <td width="30%" style="margin: 6px 0 0 0;"><span class="middletext2">'
;

   
// If the user is logged in, display stuff like their name, new messages, etc.
   
if ($context['user']['is_logged'])
   {
      echo 
'
                     <b>'
,$txt['hey2'],' '$context['user']['name'], '</b><br />';

      
// Only tell them about their messages if they can read their messages!
      
if ($context['allow_pm'])
         echo 
' <a href="'$scripturl'?action=pm"><b>'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</b></a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

      echo 
'
                        <a href="'
$scripturl'?action=unread"><b>',$txt['showunread2'],'</b>&nbsp;/</a>
                        <a href="'
$scripturl'?action=unreadreplies"><b>',$txt['showreplies2'],'</b>&nbsp;/</a>
                        <a href="'
$scripturl'?action=profile;sa=showPosts"><b>',$txt['ownposts2'],'</b></a><br />';

      if (isset(
$context['user']['awaiting_mod']))
         echo 
'<br /><a href="' $scripturl '?action=warnpmman">' $context['user']['awaiting_mod'] . '</a><br />';

   }
   
// Otherwise they're a guest - send them a lovely greeting...
   
else
      echo
'  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',$txt['welcome_forum'];

   
// Now, onto our second set of info, are they logged in again?
   
if ($context['user']['is_logged'])
   {
      echo

               ' 
$context['current_time'], '';
      
      echo 
'            </span>';
   }
   
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   
else
   {
      echo 
'            </span>
                        <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

                        <form id="logprime" action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 8px;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
                           <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                           <select name="cookielength">
                              <option value="60">'
$txt['smf53'], '</option>
                              <option value="1440">'
$txt['smf47'], '</option>
                              <option value="10080">'
$txt['smf48'], '</option>
                              <option value="43200">'
$txt['smf49'], '</option>
                              <option value="-1" selected="selected">'
$txt['smf50'], '</option>
                           </select>
                           <input id="toplog" type="submit" value="'
$txt[34], '" /><br />
                           <span class="middletext">&nbsp;&nbsp;&nbsp;&nbsp;'
$txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>'
;
   }

   echo 
'
                     </td>'
;
   echo 
'
   </tr></table>'
;
   
   
// Show a random news item? (or you could pick one from news_lines...)
             
if (!empty($settings['enable_news'])) {
                echo 
'<div id="news"><div id="newslines"><b>'.'News:'.'</b><br />'$context['random_news_line'] , '</div></div>';               
                }
               
   else       {
                echo 
'<div id="news"><div id="newslines">
               
               <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 20px 0 0 150px;">
                  <a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
                        <input class="biginput" type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" style="width: 170px;" /> ';

   
// Search within current topic?
   
if (!empty($context['current_topic']))
      echo 
'
                  <input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

      
// If we're on a certain board, limit it to this board ;).
   
elseif (!empty($context['current_board']))
      echo 
'
                  <input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

   echo 
'
               </form><br />
               
               </div></div>'
;               
                }      
   
   echo 
'<div id="mainarea">';
}

function 
template_main_below()
{
   global 
$context$settings$options$scripturl$txt$user_info;

        echo 
'
      </div>
   <div id="footer">
         
          <br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio,</a> <a href="http://www.akria.org/forum">Kazos</a> and <a href="http://www.dzinerstudio.com">Antechinus</a><br /> 
        '
theme_copyright(), '';

      
// Show the load time?
   
if ($context['show_load_time'])
      echo 
' | &nbsp;'$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

   echo 
'
   </div>
   </div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global 
$context$settings$options;

   echo 
'<div class="nav" style="font-size: smaller; margin-bottom: 1ex; margin-top: 3ex;">';

   
// Each tree item has a URL and name. Some may have extra_before and extra_after.
   
foreach ($context['linktree'] as $link_num => $tree)
   {
      
// Show something before the link?
      
if (isset($tree['extra_before']))
         echo 
$tree['extra_before'];

      
// Show the link, including a URL if it should have one.
      
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

      
// Show something after the link...?
      
if (isset($tree['extra_after']))
         echo 
$tree['extra_after'];

      
// Don't show a separator for the last one.
      
if ($link_num != count($context['linktree']) - 1)
         echo 
'&nbsp;>&nbsp;';
   }

   echo 
'</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global 
$context$settings$options$scripturl$txt;

   
// Work out where we currently are.
   
$current_action 'home';
   if (
in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
      
$current_action 'admin';
   if (
in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
      
$current_action $context['current_action'];
   if (
$context['current_action'] == 'search2')
      
$current_action 'search';

   if (
$context['current_action'] == 'theme')
      
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

   
// Are we using right-to-left orientation?
   
if ($context['right_to_left'])
   {
      
$first 'last';
      
$last 'first';
   }
   else
   {
      
$first 'first';
      
$last 'last';
   }

   
// Show the start of the tab section.

    
echo '
                
                 <div id="menu">
                     <ul class="menu">
                     
                             <li class="level1"><a href="'
$scripturl'" class="level1"><span><span class="title">' $txt[103] , '</span></span></a></li>';            

                 
// Show the [Help] button.
                 
echo
                             <li class="level1"><a href="'
$scripturl'?action=help" class="level1"><span><span class="title">' $txt[119] , '</span></span></a></li>';                

                 
// How about the [search] button?
                 
if ($context['allow_search'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=search" class="level1"><span><span class="title">' $txt[182] , '</span></span></a></li>';

                 
// Is the user allowed to administrate at all? ([admin])
                 
if ($context['allow_admin'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=admin" class="level1"><span><span class="title">' $txt[2] , '</span></span></a>
                      <ul>                             
                             <li><a href="'
$scripturl'?action=packages" class="level2"><span>' $txt['packages'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=theme;sesc='$context['session_id'],';sa=edit" class="level2"><span>' $txt['modtheme'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=maintain" class="level2"><span>' $txt['maintain'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=news" class="level2"><span>' $txt['newsand'] , '</span></a></li>
                      </ul>
                      </li>'
;
                             
                 
// Edit Profile... [profile]
                 
if ($context['allow_edit_profile'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=profile" class="level1"><span><span class="title">' $txt[79] , '</span></span></a>
                             <ul>                             
                             <li><a href="'
$scripturl'?action=profile;sa=forumProfile" class="level2"><span>' $txt['forpro'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=profile;sa=theme" class="level2"><span>' $txt['layout'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=profile;sa=account" class="level2"><span>' $txt['account2'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=profile;sa=notification" class="level2"><span>' $txt['notification2'] , '</span></a></li>
                      </ul>
                      </li>'
;


                 
// Go to PM center... [pm]
                 
if ($context['user']['is_logged'] && $context['allow_pm'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=pm" class="level1"><span><span class="title">' $txt['messages'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></span></a>
                             <ul>
                             <li><a href="'
$scripturl'?action=pm;f=outbox" class="level2"><span>' $txt['outbox'] , '</span></a></li>
                             <li><a href="'
$scripturl'?action=pm;sa=send" class="level2"><span>' $txt['sendmess'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=pm;sa=pmprefs" class="level2"><span>' $txt['pm_options'] , '</span></a></li>
                      <li><a href="'
$scripturl'?action=pm;sa=search" class="level2"><span>' $txt['searchmess'] , '</span></a></li>
                             </ul>
                      </li>'
;                 

                 
// the [Recent Posts] button
                 
echo '
                             <li class="level1"><a href="'
$scripturl'?action=recent" class="level1"><span><span class="title">' $txt['latest2'] , '</span></span></a>
                             <ul>'
;
             if (
$context['allow_calendar'])
             echo
'
                      <li><a href="index.php?action=calendar" class="level2"><span>' 
$txt['viewcal'] , '</span></a></li>';          
             if (
$context['allow_memberlist'] && $context['user']['is_logged'])
             echo
'          
                             <li><a href="'
$scripturl'?action=mlist" class="level2"><span>' $txt['viewlist'] , '</span></a></li>                             
                             <li><a href="'
$scripturl'?action=mlist;sa=search" class="level2"><span>' $txt['searchlist'] , '</span></a></li>';          
                 echo
'    </ul>
                      </li>'
;

            
// If the user is a guest, show [login] button.
                 
if ($context['user']['is_guest'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=login" class="level1"><span><span class="title">' $txt[34] , '</span></span></a></li>';
                           
                 
// If the user is a guest, also show [register] button.
                 
if ($context['user']['is_guest'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=register" class="level1"><span><span class="title">' $txt[97] , '</span></span></a></li>';          
                                         
                 
// Otherwise, they might want to [logout]...
                 
if ($context['user']['is_logged'])
                 echo 
'
                             <li class="level1"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '" class="level1"><span><span class="title">' $txt[108] , '</span></span></a></li>';

         echo 
'
                     </ul>
                 </div>'
;


}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
   global 
$settings$buttons$context$txt$scripturl;

   
// Create the buttons...
   
foreach ($button_strip as $key => $value)
   {
      if (isset(
$value['test']) && empty($context[$value['test']]))
      {
         unset(
$button_strip[$key]);
         continue;
      }
      elseif (!isset(
$buttons[$key]) || $force_reset)
         
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

      
$button_strip[$key] = $buttons[$key];
   }

   if (empty(
$button_strip))
      return 
'<td>&nbsp;</td>';

   echo 
'
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

andyv123

Is there a quick fix so I can just delete the not-needed save button? I've already done alot of modifications to the theme of zcommunity and I don't think an update to 8.0 will do me any good.

robinrobin

That's the exact same bug i reported a while ago Gaz. =O) It's bound to be fixed when several people report it! Read that Charles? lol ;)

Anyways, i wanna mention something that has been bugging me for a while. As you can see on this page for example, all actual article- and comment-areas have a scroll-bar to their right which only scrolls ONE pixel. It is quite disturbing to have there since it just takes up space and makes things look a lot less clean. Is there a fix to this??? I think i only noticed this in the Clean theme...

Zeruda

Forgive me for asking a stupid question, but how do I set global categories and/or tags? I've looked all over the place in the Blog Control Panel, but I'm not seeing an option for it. I want to make it so that there is a set list of tags and categories that will show up in every single blog. Any help would be greatly appreciated!

robinrobin

Quote from: Zeruda on March 13, 2009, 05:18:04 AM
Forgive me for asking a stupid question, but how do I set global categories and/or tags? I've looked all over the place in the Blog Control Panel, but I'm not seeing an option for it. I want to make it so that there is a set list of tags and categories that will show up in every single blog. Any help would be greatly appreciated!

Uh, but what's the point of having blogs that all share the same tag(s)? Simply viewing the main community page already shows all blogs in your community. Why have tags that link to all of them at the same time? That's not what tags are for i think.

Zeruda

Quote from: robinrobin on March 13, 2009, 11:34:30 AM
Quote from: Zeruda on March 13, 2009, 05:18:04 AM
Forgive me for asking a stupid question, but how do I set global categories and/or tags? I've looked all over the place in the Blog Control Panel, but I'm not seeing an option for it. I want to make it so that there is a set list of tags and categories that will show up in every single blog. Any help would be greatly appreciated!

Uh, but what's the point of having blogs that all share the same tag(s)? Simply viewing the main community page already shows all blogs in your community. Why have tags that link to all of them at the same time? That's not what tags are for i think.
Because that's what I want. :) If that's not possible, I still want the same for categories, and I cannot for the life of me figure out how to set global categories.

Advertisement: