TinyPortal
0.9
TinyPortal v0.9
Bloc
http://www.tinyportal.net
$sourcedir/Load.php
$settings = $themeData[0];
if (!empty($context['TPortal']['front_type'])){
$settings['TPortal_front_type'] = $context['TPortal']['front_type'];
}
// The theme is the forum's default.
else
$ID_THEME = $modSettings['theme_guests'];
// TinyPortal
$newtheme=TP_loadTheme();
if($newtheme!=$ID_THEME && $newtheme>0)
$ID_THEME=$newtheme;
// end TinyPortal
$sourcedir/Security.php
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;
// TinyPortal
TPortal_init();
$sourcedir/Errors.php
// We don't have $txt yet, but that's okay...
if (empty($txt))
die($error);
// TinyPortal
if(!isset($context['tp_prefix']))
TPortal_init();
// end
$themedir/style.css
/* Normal, standard links. */
/* TP sitemap styles */
.sitemap{
margin: 0;
padding: 0;
list-style: none;
}
.sitemap_topheader{
background: #f0f0ff;
border-bottom: solid 1px #ffffff;
padding: 4px;
}
.sitemap_header{
background: #cDdBe8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
font-weight: bold;
}
.sitemap_header_active{
background: #bDcBd8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
font-weight: bold;
}
.sitemap_header:hover , .sitemap_header_active:hover{
background: #dDeBf8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
text-decoration: none;
}
/* TP other styles */
ul#articlelist
{
margin: 0;
padding: 0.5ex 0;
list-style: none;
}
ul#catlist
{
margin: 0;
padding: 0;
list-style: none;
border-top: solid 1px #d0d0d0;
}
ul#articlelist li
{
margin: 0;
display: block;
padding: 0 0 0 3ex;
background: url(images/divider.gif) no-repeat 5px 3px;
}
ul#catlist li
{
display: block;
padding: 0 0 0 3ex;
margin: 0;
}
/* TP rss feed styles */
.rss_title{
font-weight: bold;
}
.rss_body{
margin-bottom: 1ex;
}
.rss_image{
margin: 4px 0 4px 0;
}
$themedir/Help.template.php
global $context, $settings, $options, $txt, $scripturl;
echo '