Statici ca in imaginie
Pagina 1 din 1 • Distribuiţi
Statici ca in imaginie
Buna Ziua as dori si eu un script pentru acest cod de statici punBB:
Imaginie:
Cod Index_Box:
Multumesc!
Imaginie:
Cod Index_Box:
- Cod:
<div class="pun-crumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<p class="crumbs"><a href="{U_INDEX}" itemprop="url"><span itemprop="title">{L_INDEX}</span></a><strong>{NAV_CAT_DESC}</strong></p>
</div>
<div class="main">
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<div class="main-head">
<div class="page-title">{catrow.tablehead.L_FORUM}</div>
</div>
<div class="main-content">
<table cellspacing="0" class="table">
<thead>
<tr>
<th class="tcl">{L_FORUM}</th>
<th class="tc2">{L_TOPICS}</th>
<th class="tc3">{L_POSTS}</th>
<th class="tcr">{L_LASTPOST}</th>
</tr>
</thead>
<tbody class="statused">
<!-- END tablehead -->
<!-- BEGIN forumrow -->
<tr>
<td class="tcl" style="padding-right: {catrow.forumrow.INC_LEVEL_RIGHT}; padding-left: {catrow.forumrow.INC_LEVEL_LEFT};">
<span class="status" style="margin-right: -{catrow.forumrow.INC_WIDTH_ICON}; margin-left: -{catrow.forumrow.INC_WIDTH_ICON};">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</span>
<h{catrow.forumrow.LEVEL} class="hierarchy"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a></h{catrow.forumrow.LEVEL}>
<br />
{catrow.forumrow.FORUM_DESC}
<!-- BEGIN switch_moderators_links -->
<br />
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
<strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}
</td>
<td class="tc2">{catrow.forumrow.TOPICS}</td>
<td class="tc3">{catrow.forumrow.POSTS}</td>
<td class="tcr">
<!-- BEGIN avatar -->
<span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
<!-- END avatar -->
<span>
<!-- BEGIN switch_topic_title -->
<a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
<!-- END switch_topic_title -->
{catrow.forumrow.USER_LAST_POST}
</span>
</td>
</tr>
<!-- END forumrow -->
<!-- BEGIN tablefoot -->
</tbody>
</table>
</div>
<!-- END tablefoot -->
<!-- END catrow -->
Multumesc!
Re: Statici ca in imaginie
uite:
- Cod:
{JAVASCRIPT}
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
<ul>
<li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
<li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
<li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
</ul>
<p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
<p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->
<!-- BEGIN message_admin_index -->
<div class="main">
<!-- BEGIN message_admin_titre -->
<div class="main-head">
<h1 class="page-title">{message_admin_index.message_admin_titre.MES_TITRE}</h1>
</div>
<!-- END message_admin_titre -->
<!-- BEGIN message_admin_txt -->
<div id="pun-announcement">
<p>{message_admin_index.message_admin_txt.MES_TXT}</p>
</div>
<!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->
<!-- BEGIN switch_user_login_form_header -->
<div class="main">
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<div class="user_login_form main-box center">
<label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username" /></label>
<label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password" /></label>
<label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>
{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
<!-- BEGIN switch_fb_connect -->
<span class="fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
<!-- END switch_fb_connect -->
</div>
</form>
</div>
<!-- END switch_user_login_form_header -->
{CHATBOX_TOP}
{BOARD_INDEX}
<!-- BEGIN disable_viewonline -->
<div id="pun-info" class="main">
<div class="main-content">
<div id="stats">
<p class="right">{TOTAL_POSTS}</p>
<p>{TOTAL_USERS}</p>
<p>{NEWEST_USER}</p>
</div>
<div id="onlinelist">
<img src="{L_ONLINE_IMG}" alt="{L_WHO_IS_ONLINE}" />
<p class="right">
<!-- BEGIN switch_viewonline_link -->
<a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a>
<!-- END switch_viewonline_link -->
<!-- BEGIN switch_viewonline_nolink -->
{L_WHO_IS_ONLINE}
<!-- END switch_viewonline_nolink -->
</p>
<p>{TOTAL_USERS_ONLINE}<br />
{RECORD_USERS}
<br />
{LOGGED_IN_USER_LIST}
{L_ONLINE_USERS}
{L_CONNECTED_MEMBERS}<br />
{L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}</p>
<div class="clear"></div>
<p>{LEGEND} : {GROUP_LEGEND}</p>
</div>
<!-- BEGIN switch_chatbox_activate -->
<div id="onlinechat">
<p class="page-bottom">
{TOTAL_CHATTERS_ONLINE} :
{CHATTERS_LIST}<br />
<!-- BEGIN switch_chatbox_popup -->
<div id="chatbox_popup"></div>
<script type="text/javascript">
insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
</script>
<!-- END switch_chatbox_popup -->
</p>
</div>
<!-- END switch_chatbox_activate -->
</div>
</div>
<!-- END disable_viewonline -->
<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<div class="user_login_form main-box center">
<label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username"/></label>
<label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password"/></label>
<label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>
{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
<!-- BEGIN switch_fb_connect -->
<span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
<fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
<!-- END switch_fb_connect -->
</div>
</form>
<!-- END switch_user_login_form_footer -->
{CHATBOX_BOTTOM}
<!-- BEGIN switch_legend -->
<ul id="pun-legend">
<li>
<img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /> {L_NEW_POSTS}
<img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /> {L_NO_NEW_POSTS}
<img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /> {L_FORUM_LOCKED}
</li>
</ul>
<!-- END switch_legend -->
{AUTO_DST}
<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script>
FB.init({
appId : {switch_fb_index_login.FACEBOOK_APP_ID},
cookie : true,
xfbml : true,
oauth : true,
version : 'v2.3'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- END switch_fb_index_login -->
Ultima editare efectuata de catre Filip in Joi Mar 31, 2016 8:28 pm, editata de 1 ori (Motiv : Schimbare)
Re: Statici ca in imaginie
In CSS:
PA ~> Afisare ~> Imagini si culori ~> Culori ~> Foaia de stil CSS
Inlocuiesti index_body cu asta:
in JS:
PA ~> Module ~> HTML & JAVASCRIPT ~> Gestiunea codurilor JavaScript
PA ~> Afisare ~> Imagini si culori ~> Culori ~> Foaia de stil CSS
- Cod:
.statistics {
margin: 20px 0 0 0;
padding: 8px;
line-height: 1.3;
overflow: hidden;
border: 1px solid #393939;
}
.statistics {
background: #292929;
}
#board_stats ul {
text-align: center;
}
.ipsType_small {
font-size: 11px;
}
#board_stats li {
margin-right: 20px;
}
.ipsList_inline>li:first-child {
margin-left: 0;
}
.ipsList_inline>li {
display: inline-block;
margin: 0 3px;
}
#board_stats .value {
display: inline-block;
background: #2b2b2b url('http://i56.servimg.com/u/f56/17/39/93/85/highli10.png') repeat-x 0 0;
color: #fff;
text-shadow: rgba(0,0,0,0.8) 0px -1px 0px;
padding: 3px 7px;
font-weight: bold;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
margin-right: 3px;
-webkit-box-shadow: inset rgba(255,255,255,0.03) 0px 1px 0px;
-moz-box-shadow: inset rgba(255,255,255,0.03) 0px 1px 0px;
box-shadow: inset rgba(255,255,255,0.03) 0px 1px 0px;
}
#stat_links {
font-weight: normal;
}
.right {
float: right;
}
.statistics .statistics_head:first-of-type {
border-top: 0;
}
.statistics_head, .statistics_head a {
color: #fff;
}
.statistics_head {
border-bottom: 1px solid #393939;
border-top: 1px solid #393939;
text-shadow: rgba(0,0,0,0.8) 0px -1px 0px;
background: #222 url('http://i56.servimg.com/u/f56/17/39/93/85/highli10.png') repeat-x 0 -1px;
font-size: 11px;
font-weight: bold;
padding: 8px;
margin: -8px -8px 8px -8px;
}
div#board_statistics p, .desc, .desc.blend_links a, p.posted_info {
font-size: 11px;
color: #898989;
}
div#board_stats {
clear: both;
padding-bottom: 10px;
}
.statistics ul[style] li b + b:after {
content: " | ";
}
Inlocuiesti index_body cu asta:
- Cod:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<div class="message unspecific">
<!-- BEGIN message_admin_txt -->
{message_admin_index.message_admin_txt.MES_TXT}
<!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->
<br />
{BOARD_INDEX}
<script type="text/javascript"></script>
<!-- #INCLUDE index_body, index_stats -->
<!-- BEGIN disable_viewonline -->
<div id="board_stats">
<ul class="ipsType_small ipsList_inline">
<li class="clear">
<span class="value">{TOTAL_POSTS}</span>
Total Posts
</li>
<li class="clear">
<span class="value">{TOTAL_USERS}</span>
Total Members
</li>
<li class="clear">
<span class="value">{NEWEST_USER}</span>
Newest Member
</li>
<li class="clear" data-tooltip="">
<span class="value">{RECORD_USERS}</span>
Most Online
</li>
</ul>
</div>
<div id="board_statistics" class="statistics clearfix">
<ul id="stat_links" class="ipsList_inline right ipsType_small">
<!-- Hook point -->
<li><a href="/groups" title="View the moderating team">The Moderating Team</a></li>
<li><a href="{U_TODAY_POSTERS}" title="View today's top 20 posters">Today's Top Posters</a></li>
<li><a href="{U_OVERALL_POSTERS}" title="View the board's overall top posters">Overall Top Posters</a></li>
<li><a href="#">Most Liked Content</a></li>
</ul>
<h4 class="statistics_head"> users are online (in the past 60 minutes)</h4>
<p class="statistics_brief desc">{TOTAL_USERS_ONLINE} <a href="{U_VIEWONLINE}">(See full list)</a></p>
<br />
<p>{LOGGED_IN_USER_LIST}</p>
<ul style="margin-bottom: 6px;"><li><b><i class="fa fa-info-circle"></i> Legend:</b> {GROUP_LEGEND}</li></ul>
<h4 class="statistics_head">test</h4>
<p>{L_ONLINE_USERS}{L_CONNECTED_MEMBERS}</p>
<br />
<h4 class="statistics_head">WGRO • Parteneri</h4>
<p>
</p>
</div>
<!-- END disable_viewonline -->
<!-- / #INCLUDE index_body, index_stats -->
in JS:
PA ~> Module ~> HTML & JAVASCRIPT ~> Gestiunea codurilor JavaScript
- Cod:
(function($, d) {
$(function() {
$('div#board_stats ul').each(function() {
var nr, vtext;
// Split 1
nr = $('li:eq(0) span.value strong', this).text();
$('li:eq(0) span.value ', this).html(nr);
// Split 2
nr = $('li:eq(1) span.value strong', this).text();
$('li:eq(1) span.value', this).html(nr);
// Split 3
$('li:eq(2) span.value', this).html($('li:eq(2) span.value strong a', this));
// Split 4
nr = $('li:eq(3) span.value strong', this).text();
vtext = $('li:eq(3) span.value', this).text().split(', ')[1].split(' - ')[0];
$('li:eq(3)', this).attr('data-tooltip',vtext);
$('li:eq(3) span.value', this).html(nr);
});
$('.statistics').each(function() {
var a,b,c = 0,d,h=[];
a = $('p.statistics_brief.desc', this).text();
$('h4.statistics_head:eq(0)', this).html(a.match(/\d+/g)[0] + " users are online (in the past 15 minutes)");
h[0] = a.match(/\d+/g)[1];
h[2] = a.match(/\d+/g)[2];
h[1] = a.match(/\d+/g)[3];
$('p.statistics_brief.desc', this).html(''+ h[0] +' members, '+ h[1] +' guests, '+ h[2] +' anonymous users <a href="{U_VIEWONLINE}">(See full list)');
$('p:eq(1)', this).html($('a[href*="/u"], span:contains("Google"), span:contains("bing")', $('p:eq(1)', this)));
b = $('ul[style="margin-bottom: 6px;"]', this);
for(c; c < b.length; c++) b[c].innerHTML = b[c].innerHTML.replace(/\[|\]/gi, "");
var x = $('p:eq(2) a', this).length;
$('h4.statistics_head:eq(1)').html('Members Online Today: ' + x);
$('p:eq(2)', this).html($('a[href*="/u"], span:contains("Google"), span:contains("bing")', $('p:eq(2)', this)));
h[3] = $('div#board_stats ul li:eq(3) span.value').text();
h[4] = $('div#board_stats ul li:eq(3)').attr('data-tooltip');
$('p:eq(2)', this).prepend('<b>Most members ever online in one day was '+ h[3] +', last accomplished on '+ h[4] +'<br /><br />The following members have visited today:<br></b>');
});
});
})(jQuery, document);
Re: Statici ca in imaginie
Salut,
Inlocuieste template-ul index_body cu acesta.
Inlocuieste template-ul index_body cu acesta.
- Cod:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<div class="message unspecific">
<!-- BEGIN message_admin_txt -->
{message_admin_index.message_admin_txt.MES_TXT}
<!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->
<br />
{BOARD_INDEX}
<script type="text/javascript"></script>
<!-- #INCLUDE index_body, index_stats -->
<!-- BEGIN disable_viewonline -->
<div id="board_stats">
<ul class="ipsType_small ipsList_inline">
<li class="clear">
<span class="value">{TOTAL_POSTS}</span>
Total Posts
</li>
<li class="clear">
<span class="value">{TOTAL_USERS}</span>
Total Members
</li>
<li class="clear">
<span class="value">{NEWEST_USER}</span>
Newest Member
</li>
<li class="clear" data-tooltip="">
<span class="value">{RECORD_USERS}</span>
Most Online
</li>
</ul>
</div>
<div id="board_statistics" class="statistics clearfix">
<ul id="stat_links" class="ipsList_inline right ipsType_small">
<!-- Hook point -->
</ul>
<h4 class="statistics_head"> users are online (in the past 60 minutes)</h4>
<p class="statistics_brief desc">{TOTAL_USERS_ONLINE} <a href="{U_VIEWONLINE}">(See full list)</a></p>
<br />
<p>{LOGGED_IN_USER_LIST}</p>
<ul style="margin-bottom: 6px;"><li><b><i class="fa fa-info-circle"></i> Legend:</b> {GROUP_LEGEND}</li></ul>
<p>{L_ONLINE_USERS}{L_CONNECTED_MEMBERS}</p>
<br />
<p>
</p>
</div>
<!-- END disable_viewonline -->
<!-- / #INCLUDE index_body, index_stats -->
Re: Statici ca in imaginie
Apropo, verifica daca ai instlat corect codul JS, de asta nu iti functioneaza statisticile
Subiecte similare
» Statici ca in imagine
» As dori un script de statici!
» Cerere Script Statici PunBB
» script statici punbb elegant
» Cum pot Pune Un tabel jos Ca in imaginie?
» As dori un script de statici!
» Cerere Script Statici PunBB
» script statici punbb elegant
» Cum pot Pune Un tabel jos Ca in imaginie?
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum