News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Saf-Multicolor

Started by forsakenlad, March 25, 2006, 08:45:11 AM

Previous topic - Next topic

Gorm

I can´t resize text in IE 7.0. Help??

/Johan

Gorm

I want to change places between the welcometext ("Hello Gorm, you have 0 message, 0 are new...") and the menu so that the menu i shown right under the header (or logo). Is there a way to do this?

Thanks in advance!
/Johan

thechamp

Hi,
hope your all well  :)

I have a problem with my website, I am using the SAF multicolor theme and when playing a game or something, the width size increases and reduces the size of my banner, can anyone help me solve this?

grimm

hiya forsaken,

good job on the theme but i have 1 question..

Would it be possible to have a Colour-Picker for users to choose which colour they want?
"Closing your eyes forces you to see the darkness inside"
"Ist die Zeitkoordinate nur lang genug, sinkt die Überlebensquote für jeden auf Null..."

Chromatic-Fire Photography [nofollow] | Schwarze-Schweiz [nofollow]

Poomerio

Hi.
I have a question.
The links at the top (Home, Help .etc)
I need to add another one (Contact). How do I do this?

Thanks,
- Poomie

Poomerio

Also, I found a calander bug.
It display two, overlapping "Post Event" buttons on either side.
I'm running SMF 1.1.2

- Poomie

Gorm

Do you have any plans to create a table-free version??

/Johan

wesleyuk

as few people already asked.

so i will ask:

HOW CAN I CHANGE COLOR?

thanks

clandmeter


To fix the calendar issue put this version of Calendar.template.php in your saf theme directory:


<?php
// Version: 1.1; Calendar

// The main calendar - January, for example.
function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

echo '
<div style="padding: 3px;">'
theme_linktree(), '</div>

<table cellspacing="1" cellpadding="2" width="100%" class="bordercolor">
<tr class="titlebg"><td style="font-size: x-large;" align="center" colspan="7">'
$txt['months_titles'][$context['current_month']], ' '$context['current_year'], '</td></tr>
<tr>'
;

// Show each day of the week.
foreach ($context['week_days'] as $day)
echo '
<td class="titlebg2" width="14%" align="center">'
$txt['days'][$day], '</td>';
echo '
</tr>'
;

/* Each week in weeks contains the following:
days (a list of days), number (week # in the year.) */
foreach ($context['weeks'] as $week)
{
echo '
<tr>'
;

/* Every day has the following:
day (# in month), is_today (is this day *today*?), is_first_day (first day of the week?),
holidays, events, birthdays. (last three are lists.) */
foreach ($week['days'] as $day)
{
// If this is today, make it a different color and show a border.
echo '
<td valign="top" style="height: 100px; padding: 2px;" class="'
$day['is_today'] ? 'calendar_today' 'windowbg' '">';

// Skip it if it should be blank - it's not a day if it has no number.
if (!empty($day['day']))
{
// Should the day number be a link?
if (!empty($modSettings['cal_daysaslink']) && $context['can_post'])
echo '
<a href="'
$scripturl'?action=calendar;sa=post;month='$context['current_month'], ';year='$context['current_year'], ';day='$day['day'], ';sesc='$context['session_id'], '">'$day['day'], '</a>';
else
echo '
'
$day['day'];

// Is this the first day of the week? (and are we showing week numbers?)
if ($day['is_first_day'])
echo '<span class="smalltext"> - '$txt['calendar51'], ' '$week['number'], '</span>';

// Are there any holidays?
if (!empty($day['holidays']))
echo '
<div class="smalltext" style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$day['holidays']), '</div>';

// Show any birthdays...
if (!empty($day['birthdays']))
{
echo '
<div class="smalltext">
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$txt['calendar3'], '</span> ';

/* Each of the birthdays has:
id, name (person), age (if they have one set?), and is_last. (last in list?) */
foreach ($day['birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['name'], isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '' ', ';
echo '
</div>'
;
}

// Any special posted events?
if (!empty($day['events']))
{
echo '
<div class="smalltext">
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$txt['calendar4'], '</span>';
/* The events are made up of:
title, href, is_last, can_edit (are they allowed to?), and modify_href. */
foreach ($day['events'] as $event)
{
// If they can edit the event, show a star they can click on....
if ($event['can_edit'])
echo '
<a href="'
$event['modify_href'], '" style="color: #FF0000;">*</a> ';

echo '
'
$event['link'], $event['is_last'] ? '' ', ';
}
echo '
</div>'
;
}
}

echo '
</td>'
;
}

echo '
</tr>'
;
}

echo '
</table>

<form action="'
$scripturl'?action=calendar" method="post" accept-charset="'$context['character_set'], '">
<table cellspacing="0" cellpadding="3" width="100%" class="tborder" style="border-top: 0;">
<tr class="titlebg2">
<td>'
;

// Is there a calendar for last month to look at?
if (isset($context['previous_calendar']))
echo '
<b><a href="'
$context['previous_calendar']['href'], '">&#38;#171; '$txt['months_short'][$context['previous_calendar']['month']], ' '$context['previous_calendar']['year'], '</a></b>';
echo '
</td>
<td align="center"><div class="btns">'
;
// Show a little "post event" button?
if ($context['can_post'])
echo '
<a href="'
$scripturl'?action=calendar;sa=post;month='$context['current_month'], ';year='$context['current_year'], ';sesc='$context['session_id'], '">'$txt[calendar23] , '</a>';
echo '
</div></td>
<td align="center">
<select name="month">'
;
// Show a select box with all the months.
foreach ($txt['months'] as $number => $month)
echo '
<option value="'
$number'"'$number == $context['current_month'] ? ' selected="selected"' '''>'$month'</option>';
echo '
</select>&nbsp;
<select name="year">'
;
// Show a link for every year.....
for ($year $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++)
echo '
<option value="'
$year'"'$year == $context['current_year'] ? ' selected="selected"' '''>'$year'</option>';
echo '
</select>&nbsp;
<input type="submit" value="'
$txt[305], '" />
</td>
<td align="center"><div class="btns">'
;
// Show another post button just for symmetry.
if ($context['can_post'])
echo '
<a href="'
$scripturl'?action=calendar;sa=post;month='$context['current_month'], ';year='$context['current_year'], ';sesc='$context['session_id'], '">'$txt[calendar23], '</a>';
echo '
</div></td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Is there a calendar for next month?
if (isset($context['next_calendar']))
echo '
<b><a href="'
$context['next_calendar']['href'], '">' $txt['months_short'][$context['next_calendar']['month']] . ' ' $context['next_calendar']['year'] . ' &#38;#187;</a></b>';
echo '
</td>
</tr>
</table>
</form>'
;
}

// Template for posting a calendar event.
function template_event_post()
{
global $context$settings$options$txt$scripturl$modSettings;

// Start the javascript for drop down boxes...
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

function generateDays()
{
var days = 0, selected = 0;
var dayElement = document.getElementById("day"), yearElement = document.getElementById("year"), monthElement = document.getElementById("month");

monthLength[1] = 28;
if (yearElement.options[yearElement.selectedIndex].value % 4 == 0)
monthLength[1] = 29;

selected = dayElement.selectedIndex;
while (dayElement.options.length)
dayElement.options[0] = null;

days = monthLength[monthElement.value - 1];

for (i = 1; i <= days; i++)
dayElement.options[dayElement.length] = new Option(i, i);

if (selected < days)
dayElement.selectedIndex = selected;
}

function toggleLinked(form)
{
form.board.disabled = !form.link_to_board.checked;
}


function saveEntities()
{
document.forms.postevent.evtitle.value = document.forms.postevent.evtitle.value.replace(/&#38;#/g, "&#38;#38;#");
}
// ]]></script>

<form action="'
$scripturl'?action=calendar;sa=post" method="post" name="postevent" accept-charset="'$context['character_set'], '" onsubmit="submitonce(this);saveEntities();" style="margin: 0;">
<table width="55%" align="center" cellpadding="0" cellspacing="3">
<tr>
<td valign="bottom" colspan="2">
'
theme_linktree(), '
</td>
</tr>
</table>'
;

if (!empty($context['event']['new']))
echo '
<input type="hidden" name="eventid" value="'
$context['event']['eventid'], '" />';

// Start the main table.
echo '
<table border="0" width="55%" align="center" cellspacing="1" cellpadding="3" class="bordercolor">
<tr class="titlebg">
<td>'
$context['page_title'], '</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellpadding="3" width="100%">'
;

if (!empty($context['post_error']['messages']))
{
echo '
<tr>
<td></td>
<td>
'
$context['error_type'] == 'serious' '<b>' $txt['error_while_submitting'] . '</b>' '''
<div style="color: red; margin: 1ex 0 2ex 3ex;">
'
implode('<br />'$context['post_error']['messages']), '
</div>
</td>
</tr>'
;
}
echo '
<tr>
<td align="right">
<b'
, isset($context['post_error']['no_event']) ? ' style="color: red;"' '''>'$txt['calendar12'], '</b>
</td>
<td class="smalltext">
<input type="text" name="evtitle" maxlength="30" size="30" value="'
$context['event']['title'], '" style="width: 90%;" />
</td>
</tr><tr>
<td></td>
<td class="smalltext">
<input type="hidden" name="calendar" value="1" />'
$txt['calendar10'], '&nbsp;
<select name="year" id="year" onchange="generateDays();">'
;

// Show a list of all the years we allow...
for ($year $modSettings['cal_minyear']; $year <= $modSettings['cal_maxyear']; $year++)
echo '
<option value="'
$year'"'$year == $context['event']['year'] ? ' selected="selected"' '''>'$year'</option>';

echo '
</select>&nbsp;
'
$txt['calendar9'], '&nbsp;
<select name="month" id="month" onchange="generateDays();">'
;

// There are 12 months per year - ensure that they all get listed.
for ($month 1$month <= 12$month++)
echo '
<option value="'
$month'"'$month == $context['event']['month'] ? ' selected="selected"' '''>'$txt['months'][$month], '</option>';

echo '
</select>&nbsp;
'
$txt['calendar11'], '&nbsp;
<select name="day" id="day">'
;

// This prints out all the days in the current month - this changes dynamically as we switch months.
for ($day 1$day <= $context['event']['last_day']; $day++)
echo '
<option value="'
$day'"'$day == $context['event']['day'] ? ' selected="selected"' '''>'$day'</option>';

echo '
</select>
</td>
</tr>'
;

// If events can span more than one day then allow the user to select how long it should last.
if (!empty($modSettings['cal_allowspan']))
{
echo '
<tr>
<td align="right"><b>'
$txt['calendar54'], '</b></td>
<td class="smalltext">
<select name="span">'
;

for ($days 1$days <= $modSettings['cal_maxspan']; $days++)
echo '
<option value="'
$days'"'$context['event']['span'] == $days ' selected="selected"' '''>'$days'</option>';

echo '
</select>
</td>
</tr>'
;
}

// If this is a new event let the user specify which board they want the linked post to be put into.
if ($context['event']['new'])
{
echo '
<tr>
<td align="right"><b>'
$txt['calendar_link_event'], '</b></td>
<td class="smalltext">
<input type="checkbox" class="check" name="link_to_board" checked="checked" onclick="toggleLinked(this.form);" />
</td>
</tr>
<tr>
<td align="right"><b>'
$txt['calendar13'], '</b></td>
<td class="smalltext">
<select id="board" name="board" onchange="this.form.submit();">'
;

foreach ($context['event']['boards'] as $board)
echo '
<option value="'
$board['id'], '"'$board['id'] == $context['event']['board'] ? ' selected="selected"' '''>'$board['cat']['name'], ' - '$board['prefix'], $board['name'], '</option>';

echo '
</select>
</td>
</tr>'
;
}

echo '
<tr align="center">
<td colspan="2">
<input type="submit" value="'
, empty($context['event']['new']) ? $txt[10] : $txt[105], '" />';
// Delete button?
if (empty($context['event']['new']))
echo '
<input type="submit" name="deleteevent" value="'
$txt['calendar22'], '" onclick="return confirm(\''$txt['calendar_confirm_delete'], '\');" />';

echo '
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
<input type="hidden" name="eventid" value="'
$context['event']['eventid'], '" />
</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>
</form>'
;
}

?>


jbalberde

Hello,

I am a first time SMF and SAF multicolor user don't have to much of a background in Web Design.  It was recently brought to my attention that my sites forums did not work properly in firefox.

The only way i can describe the problem is to show you

Viewed in IE it works fine but not firefox
hxxp:echoguild.net/index.php?option=com_smf&Itemid=26 [nonactive]

Any Help would be much appreciated

clandmeter

Quote from: jbalberde on May 15, 2007, 03:27:52 PM
Hello,

I am a first time SMF and SAF multicolor user don't have to much of a background in Web Design.  It was recently brought to my attention that my sites forums did not work properly in firefox.

The only way i can describe the problem is to show you

Viewed in IE it works fine but not firefox
hxxp:echoguild.net/index.php?option=com_smf&Itemid=26 [nonactive]

Any Help would be much appreciated

Well it looks like this forum integration is not "perfect".
I think if you want to use this theme/forum inside your CMS you will need to edit the theme.

A dirty hack to fix your issue is to do the following:

Edit index.template.php from the saf theme on ~ line 310



        // Show the menu here, according to the menu sub template.
        template_menu();

        echo '
        </div>';

        // The main content should go here.  A table is used because IE 6 just can't handle a div.





        // Show the menu here, according to the menu sub template.
        template_menu();

        echo '
        </div><br><br>';

        // The main content should go here.  A table is used because IE 6 just can't handle a div.



I added 2 html breaks so the forum should look ok. This is a dirty HTML hack which actually should be fixed by fixing the CMS and Forum Theme.


Hope it helps.

jbalberde

That worked thanks, i know you said this is a dirty hack, but i am not sure how to fix it right or if i need to.

NickC

I've been working with this theme for a few months and I like it a lot. I've got it in a Joomla! site, but not using a bridge, just tweaked the styles so they look the same.

The forum is at notaussiefloyd forum

You can see the main web site by clicking the Web Site Home link at the top of the page.

twinklewitch

Does anyone know how I can make the sticky posts stand out more? I want them to appear as they do on this site: they have an extra pine, and the links are bolder than the normal, non-sticky posts.

Any help is appreciated!

deedee12

I am getting following error "Required but not found URLs (HTTP code 404)" in my webstates. Please let me know how can I rectify it.

/Themes/smfaqua/images/post_old.gif
/Themes/smfaqua/images/on.gif
/Themes/smfaqua/images/n.gif
/Themes/smfaqua/images/m.gif
/Themes/smfaqua/images/z.gif
/Themes/smfaqua/images/f.gif

kamili34

Theme is awesome. I love it.  :P

ZEUS__

ı use this theme on smf 1.1.3.it [nofollow]'s great.thanks you the authtor.but how i entegrate the login like picture the top of forum? ???it does not the same like this?

çok pis veritabanı bozarım!!!:PP

ja

I really like this theme.  I'm setting up a new Forum & was wondering if there is a way to make the Top colour & Footer colour finish at the same place as the inner border.

So basically Header & Footer have white background behind and chosen colour to same width as Board info.

NSSVelocity

I'm having a problem with this theme. When ever I use it, for some reason the text from   don't load at all. Right now I'm using the Arcade mod and the Admin section and other things for it don't load. Or any other text from the file.

hxxp:img166.imageshack.us/img166/4913/error101jn3.jpg [nonactive]

forsakenlad

You should make the mod compatible with the theme, there ia a guide for that, please search the forums.
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

Advertisement: