News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Kako da "razvuchem" forum?

Started by Jesus Raves, August 19, 2009, 07:02:47 AM

Previous topic - Next topic

▓▒RapidBelgrade▒▓

idi u images tvoje teme i nadji sliku pod imenom "toolbar" pa eksperimentisi...

mada ja mislim da na manjoj rezoluciji  to sve radi kako treba....




My working day begins with awakening drink coffee and then steal all day...

dan555

Прошириш је у Фотошопу или неком сличном програму.

Ljubavnik


Cola-Coca

Ekipa da neotvaram novu temu, instalirao sam jedan forum smf 1.1.13
Sve sam ziuvo iskopao po style.css -u sve pretrazio i 20 puta pokusao i nemogu nikako rasirit forum.
Ako mi netko moze pomoc zakacit cu ovdje style.css i da mi napise sto sam tocno trebao promjenit , bas me zanima.
I LOVE SMF

Madzgo

Najbolje daj link, pa ćemo vidjet sa firebugom, ovako naslijepo nemamo pojma ;)

Dzonny

Probaj u klasu body dodati width i staviti neku vrednost... Sa telefona sam sad pa ne mogu da editujem fajl...

Cola-Coca

Evo stavit cu ovdje od "body" u style.css -u za razvuc forum:



/* The main body of the entire forum. */
body
{
background-color: #000000;
margin: 0px;
padding: 0px;
}



... i sada sam pokusao ovaj "padding" da promjenim na razno razne nacine i nista se nedesi. Apsolutno nista , kao da nista nisam mjenjao. Isto sam radio i sa "margin" ista stvar.

Nakon toga sam ubacio ovo sto mi je Dzonny rekao width i stavio sam na 50px i samo sto sam dobio je da se forum pomakao u ljevo, znaci cjeli forum je otisao skroz uljevo ali sirina mu je ostala ista pa se tako sa desne strane stvorio onaj prazan prostor tj. background.
To 50px sam mjenjao na 150 i 300 i ista stvar. Mozeli mala pomoc.

I LOVE SMF

Dzonny

Ajde ostavi link do foruma na kom pokušavaš to da promeniš pa da ti damo kodove :)

Cola-Coca

Quote from: Dzonny on May 30, 2011, 10:28:55 AM
Ajde ostavi link do foruma na kom pokušavaš to da promeniš pa da ti damo kodove :)

poslao sam ti na PM  :)
I LOVE SMF

▓▒RapidBelgrade▒▓




My working day begins with awakening drink coffee and then steal all day...


Madzgo


Cola-Coca

Jos nisam uspio. Evo ekipa syle.css pa da vidimo dali tko zna kako rasirit forum:


/* Normal, standard links. */
a:link, a:visited
{
color: #99CC33;
text-decoration: none;
font-weight: bold;
}
a:hover
{
color: #ffffff;
text-decoration: none;
font-weight: bold;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited
{
color: #cccccc;
text-decoration: none;
}
a.nav:hover
{
font-weight: bold;
color: #99cc33;
text-decoration: none;
}

/* Tables should show empty cells. */
table
{
empty-cells: show;
}

/* By default (td, body..) use Tahoma in black. */
body, td
{
color: #cccccc;
font-size: 11px;
font-family: verdana, arial, helvetica, serif;
}

/* The main body of the entire forum. */
body
{
background-color: #000000;
margin: 0px;
padding: 0px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
font-size: 9pt;
color: #99cc33;
background-color: #050C16;
font-family: Tahoma, arial, helvetica, serif;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
font-size: 8pt;
font-weight: normal;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
height: 1px;
border: 0;
color: #000000;
background-color: #000000;
}

/* A quote, perhaps from another post. */
.quote
{
color: #99cc33;
background-color: #050C16;
border: 1px solid #000000;
margin: 1px;
padding: 1px;
font-size: x-small;
}

/* A code block - maybe even PHP ;). */
.code
{
color: #ffffff;
background-color: #050C16;
border: 1px solid #000000;
padding: 1px;
font-family: "courier new", helvetica, "times new roman", serif;
font-size: x-small;
width: 99%;
margin: 1px auto 1px auto;
white-space: nowrap;
overflow: auto;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
color: #ffffff;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: x-small;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
color: red;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
width: 96%;
}

/* Highlighted text - such as search results ;). */
.highlight
{
background-color: yellow;
font-weight: bold;
color: black;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg
{
color: #ffffff;
background-color: #0A1727;
border-left: 1px solid #0A1C31;
border-top: 1px solid #0A1C31;
}
.windowbg2
{
color: #ffffff;
background-color: #0A1C31;
border-left: 1px solid #0c223b;
border-top: 1px solid #0c223b;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg td, .titlebg a:link, .titlebg a:visited
{
color: white;
font-style: normal;
background-image: url(images/titlebg.gif);
background-repeat: repeat-x;
background-color: #86B32D;
}
.titlebg a:hover
{
color: #dfdfdf;
}

/* This is used for categories, page indexes, and several other areas in the forum. */
.catbg
{
background-color: #0A1727;
border-top: 1px solid #99CC33;
}
.catbg2
{
background-color: #0A1727;
border-top: 1px solid #99CC33;
}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
background-color: #000000;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
border: 1px solid #000000;
background-color: #000000;
padding: 0px;
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
font-size: 10px;
font-family: verdana, arial, helvetica, serif;
}
.normaltext
{
font-size: small;
}
.largetext
{
font-size: large;
}

/* This is the white header area where the title, menu bars, and header boxes are. */
#headerarea
{
background-color: white;
border-bottom: 1px solid gray;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
background-color: #050C16;
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
background-color: #0A1727;
border-top: 1px solid #99CC33;
}

/* This is for the special header boxes on the top (user info, key stats, news box.) */
.headertitles
{
background-color: #6B8EAE;
border: 1px solid #6B8EAE;
}
.headerbodies
{
border: 1px solid #7A7777;
background-color: #EFEFEF;
background-repeat: repeat-x;
background-position: bottom;
}
.category1
{
color: #ffffff;
text-decoration: bold;
font-size: 11px;
background-image: url(images/cat_mid.gif);
}
.midbot
{
color: #ffffff;
text-decoration: bold;
font-size: 11px;
background-image: url(images/cat_midbot.gif);
}
.sidebar
{
background-image: url(images/sidebars.gif);
background-repeat: repeat-y;
}
.navigation
{
background-image: url(images/navbg.gif);
background-repeat: repeat-x;
}
.navigationlinks
{
background-image: url(images/buttonbg.gif);
border-left: 1px solid black;
border-right: 1px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinks a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinks a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinks a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinksover
{
background-image: url(images/buttonbgover.gif);
border-left: 1px solid black;
border-right: 1px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksover a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksover a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksover a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinkshome
{
background-image: url(images/buttonbg.gif);
border-left: 2px solid black;
border-right: 1px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinkshome a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinkshome a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinkshome a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinksoverhome
{
background-image: url(images/buttonbgover.gif);
border-left: 2px solid black;
border-right: 1px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksoverhome a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksoverhome a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksoverhome a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinksmessage
{
background-image: url(images/pmbg.gif);
border-left: 1px solid black;
border-right: 2px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksmessage a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksmessage a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksmessage a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinksovermessage
{
background-image: url(images/pmbgover.gif);
border-left: 1px solid black;
border-right: 2px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksovermessage a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksovermessage a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksovermessage a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationmark
{
background-image: url(images/navbg.gif);
background-repeat: repeat-x;
}
.navigationlinksmark
{
background-image: url(images/pmbg.gif);
border-left: 2px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksmark a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksmark a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksmark a:hover
{
color: #99cc33;
font-size: 10px;
}
.navigationlinksovermark
{
background-image: url(images/pmbgover.gif);
border-left: 2px solid black;
padding-right: 8px;
padding-left: 8px;
}
.navigationlinksovermark a:link
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksovermark a:visited
{
color: #ffffff;
font-size: 10px;
}
.navigationlinksovermark a:hover
{
color: #99cc33;
font-size: 10px;
}

table.ncode_imageresizer_warning, table.ncode_imageresizer_warning td
{
background-color: #fefee1; /* the bgcolor behind the text and image */
}
table.ncode_imageresizer_warning {
color: #000000; /* the font color */
border: 1px solid #CCCDCD; /* the border around the whole thing */
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
}

table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}

I LOVE SMF

▓▒RapidBelgrade▒▓

ne mozemo bez linka od foruma .... jel tako Madzgo  ;)

posto sirina foruma u tvom slucaju nije u style.css




My working day begins with awakening drink coffee and then steal all day...

Cola-Coca

Quote from: RapidBelgrade™ on May 30, 2011, 02:14:29 PM
ne mozemo bez linka od foruma .... jel tako Madzgo  ;)

posto sirina foruma u tvom slucaju nije u style.css

Onda je u index.template.php  ?

Evo index.template



<?php
// Version: 1.0; 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';
$settings['catch_action'] = array('sub_template' => 'action_wrap');
}
function 
template_action_wrap()
{
global $context$settings$options$scripturl$txt;
}
// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// 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'
$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"></script>
<script language="JavaScript" type="text/javascript"><!--
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
// --></script>
<title>'
$context['page_title'], '</title>';

// This is here because Gecko browsers properly support white-space....
if ($context['browser']['is_gecko'])
echo '
<style type="text/css"><!--
.code
{
white-space: pre;
}
--></style>'
;

echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css" />';

/* 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 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 '?action=;topic=' $context['current_topic'] . '.0;prev_next=prev" />
<link rel="next" href="' 
$scripturl '?action=;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 '?action=;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"><!--
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 '
document.getElementById("upshrinkTemp").src = "'
$scripturl'?action=jsoption;var=collapse_header;val=" + (mode ? 1 : 0) + ";sesc='$context['session_id'], ';" + (new Date().getTime());';

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

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

current_header = mode;
}
// --></script>
<script type="text/javascript" src="'
$settings['default_theme_url'], '/ncode_imageresizer.js"></script>';

// What is the mode?
$mode 'none';
if (isset($modSettings['ncode_imageresizer_mode']))
{
if ($modSettings['ncode_imageresizer_mode'] == 1)
$mode 'enlarge';
elseif ($modSettings['ncode_imageresizer_mode'] == 2)
$mode 'samewindow';
elseif ($modSettings['ncode_imageresizer_mode'] == 3)
$mode 'newwindow';
}

echo '
<script language="JavaScript" type="text/javascript"><!-- // -->
NcodeImageResizer.BBURL = "'
$settings['images_url'], '";
NcodeImageResizer.MODE = "'
$mode'";
NcodeImageResizer.MAXWIDTH = "'
, empty($modSettings['ncode_imageresizer_max_width']) ? : (int) $modSettings['ncode_imageresizer_max_width'], '";
NcodeImageResizer.MAXHEIGHT = "'
, empty($modSettings['ncode_imageresizer_max_height']) ? : (int) $modSettings['ncode_imageresizer_max_height'], '";
vbphrase = new Array();
vbphrase[\'ncode_imageresizer_warning_small\'] = \''
$txt['ncode_imageresizer_warning_small'], '\';
vbphrase[\'ncode_imageresizer_warning_filesize\'] = \''
$txt['ncode_imageresizer_warning_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_no_filesize\'] = \''
$txt['ncode_imageresizer_warning_no_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_fullsize\'] = \''
$txt['ncode_imageresizer_warning_fullsize'], '\';
// ]]></script>

</head>
<body><table width="800" align="center" cellpadding="0" cellspacing="0"><tr>
<td width="17" valign="top" align="center" class="sidebar">&nbsp;</td><td width="766"><img src="'
$settings['images_url'], '/header.gif"/><br/>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="navigation" width="100%" height="30" align="left">
<table cellpadding="0" cellspacing="0">
<td height="30" class="navigationlinksmessage" onmouseover="this.className=\'navigationlinksovermessage\'" onmouseout="this.className=\'navigationlinksmessage\'"><a href="'
$scripturl'?action=pm">You have '$context['user']['unread_messages'], ' new messages</a></td>
<tr>
</tr>
</table>

</td>
<td class="navigation" width="100%" height="30" align="right" style="border-bottom: 1px solid black;">
<table cellpadding="0" cellspacing="0">
<tr>'
;
template_menu();
echo
'
</tr>
</table>

</td>
</tr>
</table>'
;

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">

<!--user info, keystats, and news-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''">
<td width="100%">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="152" height="25"><img src="'
$settings['images_url'], '/userinfotab.gif"/></td><td width="100%" height="25" style="background-image:url('$settings['images_url'], '/tabbg.gif);"></td><td width="152" height="25"><img src="'$settings['images_url'], '/keystatstab.gif"/></td>
</tr>
</table>
<div class="tborder">
<table width="100%" cellpadding="0" cellspacing="1">
<tr><td width="100%" colspan="2" style="background-image:url('
$settings['images_url'], '/smallgrad.gif);" height="5"></td></tr>
<tr>
<td width="50%" class="windowbg2" style="padding: 4px;"><span class="smalltext">'
;

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

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

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>'
$txt[616], '</b>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=regcenter">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'];

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}

echo '<br />
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />
'
$context['current_time'];
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
'
$txt['welcome_guest'], '<br />
'
$context['current_time'], '<br />

<form action="'
$scripturl'?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:right;">
<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="302400">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
'
$txt['smf52'], '
</form>'
;
}


echo
'
</span>
</td><td width="50%" class="windowbg2" style="padding: 4px;"><span class="smalltext">
Our users have posted a total of
<b>'
$modSettings['totalMessages'], '</b> articles.<br/>
This forum contains 
<b>'
$modSettings['totalTopics'], '</b> topics.<br/>
We have <b>'
$modSettings['memberCount'], '</b> registered users.<br />
Please welcome <a href="'
$scripturl'?action=profile;u='$modSettings['latestMember'], '">'$modSettings['latestRealName'], '</a>, our newest member.
</span>
</td></tr></table></div>
<table width="100%" cellpadding="0" cellspacing="0" style="border-right: 2px solid black; border-left: 2px solid black; border-bottom: 1px solid black;">
<tr>
<td class="navigation" width="80%" valign="middle">
<table cellpadding="0" cellspacing="0" align="left" width="100%"><tr><td height="30" width="100%" class="navigation" style="padding-left: 6px;"><span class="smalltext"><b>News:</b> '
$context['random_news_line'], '</span></td></tr></table></td>
<td class="navigation" width="20%" valign="middle">
<table cellpadding="0" cellspacing="0" align="right" width="100%">
<tr><td height="30" width="100%" class="navigationlinksmark" onmouseover="this.className=\'navigationlinksovermark\'" onmouseout="this.className=\'navigationlinksmark\'"><a href="#">Mark All Forums Read</a></td></tr></table></td></tr></table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="45" height="16"><img src="'
$settings['images_url'], '/tabbotleft.gif"/></td>
<td width="100%" height="16" style="background-image:url('
$settings['images_url'], '/tabbotmid.gif);"></td><td width="45" height="16"><img src="'$settings['images_url'], '/tabbotright.gif"/></td>
</tr></table></td></tr></table>

'
;
// Hack's Park Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- Hack's Park Shoutbox
}

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

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

// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!--
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// --></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

echo '
</div>'
;

// This is an interesting bug in Internet Explorer AND Safari.  Rather annoying, it makes overflows just not tall enough.
if ($context['browser']['is_ie'] && !$context['browser']['is_ie4'] || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!--'
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
window_oldOnload();
}'
;
}

echo '
// --></script>'
;
}

echo '
<table width="100%" cellpadding="0" cellspacing="0" style="border-right: 2px solid black; border-left: 2px solid black; border-bottom: 1px solid black;">
<tr>
<td class="navigation" width="80%" valign="middle">
<table cellpadding="0" cellspacing="0" align="left" width="100%"><tr><td height="30" width="100%" class="navigation" style="padding-left: 6px;"><span class="smalltext">'
;
// Footer menu - no more scrolling up!
 
echo '

<a href="'
$scripturl'">' $txt[103] . ' :: </a>
<a href="'
$scripturl'?action=help">' $txt[119] . ' :: </a>';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="'
$scripturl'?action=search">' $txt[182] . ' :: </a>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="'
$scripturl'?action=admin">' $txt[2] . ' :: </a>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="'
$scripturl'?action=profile">Profile :: </a>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] . ' :: </a>';

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="'
$scripturl'?action=login">' $txt[34] . ' :: </a>

<a href="'
$scripturl'?action=register">' $txt[97] . '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] . '</a>';


echo
'
</td></tr></table></td>
<td class="navigation" width="20%" valign="middle">
<table cellpadding="0" cellspacing="0" align="right" width="100%">
<tr><td height="30" width="100%" class="navigationlinksmark" onmouseover="this.className=\'navigationlinksovermark\'" onmouseout="this.className=\'navigationlinksmark\'"><a href="http://model98.org/index.php?">Theme by Tippmaster</a></td></tr></table></td></tr></table>
</td><td width="17" class="sidebar" valign="top" align="center">&nbsp;</td></tr></table>
</body>
</html>'
;
}

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

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav"'$settings['linktree_inline'] ? ' style="font-size: 10px;"' '''>';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num 0)
echo str_repeat('<img src="' $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />'$link_num 1), '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}

// 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 $settings['linktree_inline'] ? ' &nbsp;|&nbsp; ' '<br />';
}

echo '</span>';
}

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

// Show the [home] and [help] buttons.
echo '

<td height="30" class="navigationlinkshome" onmouseover="this.className=\'navigationlinksoverhome\'" onmouseout="this.className=\'navigationlinkshome\'"><a href="'
$scripturl'">' $txt[103] . '</a></td>
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=help">' $txt[119] . '</a></td>';
// How about the [search] button?
if ($context['allow_search'])
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=search">' $txt[182] . '</a></td>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=admin">' $txt[2] . '</a></td>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=profile">Profile</a></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] . '</a></td>';

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=login">' $txt[34] . '</a></td>

<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=register">' $txt[97] . '</a></td>';
}
// Otherwise, they might want to [logout]...
else
echo '
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] . '</a></td>';

// the upshrink button
echo'
<td height="30" class="navigationlinks" onmouseover="this.className=\'navigationlinksover\'" onmouseout="this.className=\'navigationlinks\'">
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="'$settings['images_url'], '/blank.gif" alt=""/></td>';
}

?>




PS "Prvi put vidim da sirina nije u style.css -u !!?
I LOVE SMF

Madzgo

U jbt koliko je očigledno :D ;D

Nadji odmah posle "body" ovo

<table width="800" align="center" cellpadding="0" cellspacing="0">

I proširi width.. (ne mislim bukvalno, promijeni na koliko ti odgovara :D )


SMF 1.0! ;D

Quote from: RapidBelgrade™ on May 30, 2011, 02:14:29 PM
ne mozemo bez linka od foruma .... jel tako Madzgo  ;)


Ma firebug je Bog i batina ;)

Cola-Coca

Quote from: Madzgo on May 30, 2011, 02:27:14 PM
U jbt koliko je očigledno :D ;D

Nadji odmah posle "body" ovo

<table width="800" align="center" cellpadding="0" cellspacing="0">

I proširi width.. (ne mislim bukvalno, promijeni na koliko ti odgovara :D )


SMF 1.0! ;D

Quote from: RapidBelgrade™ on May 30, 2011, 02:14:29 PM
ne mozemo bez linka od foruma .... jel tako Madzgo  ;)


Ma firebug je Bog i batina ;)

Hvala radi. Prvi put nailazim na temu kojoj se mjenja sirina u index.template.php
I LOVE SMF

Cola-Coca

Sve radi mada ljudi koji imaju rezoluciju vecu nemaju forum preko cjelog ekrana. Sada me zanima dali se moze nakako nastimat da je svejedno rezolucija koja je a da je uvjek forum preko cjeloga ekrana ?
I LOVE SMF

Dzonny

Stavi na 100%. :)
Rekoh ti ja da pogledaš body taga neku tabelu, možda sam u brzini poslao drugi kod iz firebuga, ali to je to :)

undeR.

Kako da razvucem overview temu 1.1.x? Evo style

http://pastebin.com/7afYwwgu

Sry za refresh, bolje to nego da otvaram nov topic :P

Advertisement: