Cerere cod tamplate pentru widget-ul "Subiecte recente"
Forum gratuit: forum de suport al utilizatorilor :: Forum de suport :: Administreaza prezentarea forumului :: Arhiva probleme privind designul forumurilor
Pagina 1 din 2 • Distribuiţi
Pagina 1 din 2 • 1, 2
Cerere cod tamplate pentru widget-ul "Subiecte recente"
Buna seara!
As dori sa pun si eu in tamplate, in subsol, ultimele subiecte, cum ar aparea si in widget-urile pe care ni le ofera forumul. Nu neaparat sa defileze. Ci doar sa am script care sa mi le genereze pe ultimele x.
As dori sa pun si eu in tamplate, in subsol, ultimele subiecte, cum ar aparea si in widget-urile pe care ni le ofera forumul. Nu neaparat sa defileze. Ci doar sa am script care sa mi le genereze pe ultimele x.
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Buna ziua,
Aveti aici un tutorial ~> https://help.forumgratuit.ro/t31910-ultimele-subiecte-sistem-nou
Aveti aici un tutorial ~> https://help.forumgratuit.ro/t31910-ultimele-subiecte-sistem-nou
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Pai si pentru subsol, ce se presupune ca inlocuiesc?
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Pentru adaugarea acestuia in subsol, nu trebuie decat sa pozitionati widget-ul din partea stanga in partea dreapta. Puteti face acest lucru intrand in P.A ~> Module ~> Portal & Widget-uri ~> Configurarea widget-urilor forumului ~> Gestiunea widget-urilor forumului
Urmand ca mai apoi sa intrati in overall_footer_begin:
P.A ~> Afisare ~> Template-uri ~> General ~> overall_footer_begin
Stergeti:
Cautati:
Adaugati dupa:
Urmand ca mai apoi sa intrati in overall_footer_begin:
P.A ~> Afisare ~> Template-uri ~> General ~> overall_footer_begin
Stergeti:
- Cod:
<div id="{ID_RIGHT}">
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
</div>
Cautati:
- Cod:
<!-- END html_validation -->
Adaugati dupa:
- Cod:
</div><div>
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
</div>
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Tampletul acela il am modificat si arata mai asa:
Adaug codul dat dupa
~ adaugare balize code
- Cod:
<!-- BEGIN html_validation -->
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<!-- END html_validation -->
</div>
</div>
</div>
</div>
</div>
<div id="{ID_RIGHT}">
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
</div>
</div>
</div>
</div>
<div id="pun-foot">
<div id="pun-about" class="clearfix">
<ul>
<li style="float: left;"> <a href="/forum" id="home" title="Return home"><img src="http://i36.servimg.com/u/f36/11/96/49/61/home10.png"/> </a> </li>
<li>
<!-- BEGIN html_validation -->
</li>
</ul>
</div>
</div>
<!-- END html_validation -->
Adaug codul dat dupa
- Cod:
<!-- END html_validation -->
~ adaugare balize code
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Codul meu trebuie adaugat la sfarsitul template-ului, mai exact dupa <!-- END html_validation --> de la sfarsit.
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Nu imi apare in subsol ... in plus, mi-as fi dorit sa-l introduc in acea zona de recent post
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Uite
~ adaugare balize code
- Cod:
<!-- BEGIN html_validation -->
<!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">
<body>
<div>
<div>
<div>
<div>
<div>
<div>
<ul>
<li>
<!-- END html_validation -->
</li>
</ul>
<!-- BEGIN switch_footer_links -->
<ul>
<li>
<!-- BEGIN footer_link -->
<!-- BEGIN switch_separator --> | <!-- END switch_separator -->
{switch_footer_links.footer_link.FOOTER_LINK_SEPARATOR}<a name="bottom" class="copyright" href="{switch_footer_links.footer_link.U_FOOTER_LINK_HREF}" rel="{switch_footer_links.footer_link.FOOTER_LINK_REL}" target="{switch_footer_links.footer_link.FOOTER_LINK_TARGET}" title="{switch_footer_links.footer_link.L_FOOTER_LINK_TITLE}">{switch_footer_links.footer_link.L_FOOTER_LINK_TEXT}</a>
<!-- END footer_link -->
</li>
</ul>
<!-- END switch_footer_links -->
</div>
<br />
<p class="center">
<strong>{ADMIN_LINK}</strong>
</p>
</div>
{PROTECT_FOOTER}
</div>
</div>
</div>
</div>
<div id="footer">
<script type="text/javascript">
$(function() {
$('#back-top').click(function() {
$('body,html').animate({scrollTop:0},800);
});
});
</script>
<div id="back-top">
<a href="#"><img src="http://i36.servimg.com/u/f36/11/96/49/61/backto10.png"/></a>
</div>
<div id="f-content">
<ul id="social">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/users_10.png"/> Find us on: </h1>
<li>
<a href="#" target="_blank"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/facebo10.png" alt="Facebook"/>
Find us on Facebook </a>
</li>
<li>
<a href="#" target="_blank"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/twitte10.png" alt="Twitter"/>
Follow us on Twitter </a>
</li>
<li>
<a href="/rss"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/rss11.png" alt="RSS"/>
RSS Feed </a>
</li>
<li>
<a href="/sitemap.xml"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/portal10.png" alt="Sitemap"/>
Sitemap </a>
</li>
</ul>
<div id="connect">
<!-- BEGIN switch_user_logged_out -->
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/lock12.png"/> Log in </h1>
<form action="/login" method="post" autocomplete="off"><fieldset class="frm-set login"><dl> <dd><input type="text" placeholder="Username" tabindex="1" name="username" id="username" size="20" maxlength="40" value="" class="inputbox autowidth" autocomplete="off" autofill="off"/></dd></dl><dl><dd><input type="password" placeholder="Password" tabindex="2" id="password" name="password" size="20" maxlength="25" class="inputbox autowidth" autocomplete="off" autofill="off"/></dd><dd><a href="/profile?mode=sendpassword" rel="nofollow">Lost Password?</a></dd></dl><dl><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked"/> Remember Me </label></dd></dl><dl><dd class="login"><input type="submit" name="login" tabindex="6" value="Login" class="button1"/></dd></dl></fieldset></form>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<div id="user-panel">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/commen10.png"/> User Panel </h1>
<script>
jQuery(document).ready(function(){
jQuery.get('/profile?mode=editprofile&page_profil=avatars', function(data) {
link = jQuery('.frm-set dl:first img', data).attr('src');
jQuery('#avatar').attr('src', link);
});
});
</script>
<span><img id="avatar" src="http://i36.servimg.com/u/f36/11/96/49/61/no_ava10.gif" align="left" width="45"/><span class="USERLINK"></span><br />
<b>Messages:</b> <span class="USERCOUNTPOST"></span><br />
<br /> </span>
<a href="/profile?mode=editprofile&page_profil=informations" target="_blank"> My Profile </a>
<br />
<a href="/search?search_id=watchsearch" target="_blank"> Topic(s) being watched </a>
<br />
<a href="/search?search_id=egosearch" target="_blank"> Topics I Replied </a>
<br />
<a href="/search?search_id=newposts" target="_blank"> New on forum <br /> <small>(<span class="USERLASTVISIT"> </span>)</small> </a> </div>
<!-- END switch_user_logged_in -->
</div>
<ul id="site-links">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/link10.png"/> Forum Links </h1>
<li>
<a href="http://www.foru-girls.com/t2-regulament"> Regulament </a>
</li>
<li>
<a href="http://www.foru-girls.com/f3-nou-veniti"> Nou Veniti </a>
</li>
<li>
<a href="http://www.foru-girls.com/c8-orasul-f-g"> Orasul F-g </a>
</li>
<li>
<a href="http://www.foru-girls.com/f28-concursuri"> Concursuri </a>
</li>
<li>
<a href="http://www.foru-girls.com/f49-evenimente"> Eveniment </a>
</li>
<li>
<a href="http://www.foru-girls.com/c7-girls-zone"> Girls Zone </a>
</li>
</ul>
<div id="other">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/star_o10.png"/> Recent posts</h1>
</div>
</div> </div>
<!-- BEGIN switch_facebook_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
appId: '{switch_facebook_login.FACEBOOK_APP_ID}',
status: true,
cookie: true,
xfbml: true,
oauth: true
});
//]]>
</script>
<!-- END switch_facebook_login -->
<!-- BEGIN switch_facebook_logout_TMP -->
<script type="text/javascript">
//<![CDATA[
FB.Event.subscribe('auth.logout', function(response) {
if ($('a#logout'))
{
var lien_redir = $('a#logout').attr('href');
if ($('a#logout').attr('href') && $('a#logout').attr('href') != '')
{
document.location.href = 'http://{switch_facebook_logout.SERVER_NAME}/' + lien_redir;
}
}
});
$(document).ready( function() {
$('a#logout').click( function() {
FB.logout();
} );
} );
//]]>
</script>
<!-- END switch_facebook_logout_TMP -->
<script type="text/javascript">
//<![CDATA[
fa_endpage();
//]]>
</script>
</body>
</html>
~ adaugare balize code
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Cautati in overall_footer_end:
Adaugati dupa:
Stergeti din overall_footer_begin:
Inregistrati si publicati template-ul.
Intrati in P.A ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil css
Modificati 150px cu o valoare mai mica sau mai mare, dupa propriile preferinte.
- Cod:
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/star_o10.png"/> Recent posts</h1>
Adaugati dupa:
- Cod:
<div class="ultimelemesaje">
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
</div>
Stergeti din overall_footer_begin:
- Cod:
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
Inregistrati si publicati template-ul.
Intrati in P.A ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil css
- Cod:
.ultimelemesaje {width: 150px !important;}
Modificati 150px cu o valoare mai mica sau mai mare, dupa propriile preferinte.
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Tot nu merge Am adaugat si validat si nu apare.
Marionette- Membru activ
- Mesaje : 440
Varsta : 26
Data înscrierii : 25/12/2010
Mulțumiri : 3
Re: Cerere cod tamplate pentru widget-ul "Subiecte recente"
Inlocuiti tot overall_footer_end cu:
Intrati in P.A ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil css
Adaugati:
Modificati 150px cu o valoare mai mica sau mai mare, dupa propriile preferinte.
- Cod:
<!-- BEGIN html_validation -->
<!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">
<body>
<div>
<div>
<div>
<div>
<div>
<div>
<ul>
<li>
<!-- END html_validation -->
</li>
</ul>
<!-- BEGIN switch_footer_links -->
<ul>
<li>
<!-- BEGIN footer_link -->
<!-- BEGIN switch_separator --> | <!-- END switch_separator -->
{switch_footer_links.footer_link.FOOTER_LINK_SEPARATOR}<a name="bottom" class="copyright" href="{switch_footer_links.footer_link.U_FOOTER_LINK_HREF}" rel="{switch_footer_links.footer_link.FOOTER_LINK_REL}" target="{switch_footer_links.footer_link.FOOTER_LINK_TARGET}" title="{switch_footer_links.footer_link.L_FOOTER_LINK_TITLE}">{switch_footer_links.footer_link.L_FOOTER_LINK_TEXT}</a>
<!-- END footer_link -->
</li>
</ul>
<!-- END switch_footer_links -->
</div>
<br />
<p class="center">
<strong>{ADMIN_LINK}</strong>
</p>
</div>
{PROTECT_FOOTER}
</div>
</div>
</div>
</div>
<div id="footer">
<script type="text/javascript">
$(function() {
$('#back-top').click(function() {
$('body,html').animate({scrollTop:0},800);
});
});
</script>
<div id="back-top">
<a href="#"><img src="http://i36.servimg.com/u/f36/11/96/49/61/backto10.png"/></a>
</div>
<div id="f-content">
<ul id="social">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/users_10.png"/> Find us on: </h1>
<li>
<a href="#" target="_blank"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/facebo10.png" alt="Facebook"/>
Find us on Facebook </a>
</li>
<li>
<a href="#" target="_blank"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/twitte10.png" alt="Twitter"/>
Follow us on Twitter </a>
</li>
<li>
<a href="/rss"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/rss11.png" alt="RSS"/>
RSS Feed </a>
</li>
<li>
<a href="/sitemap.xml"> <img src="http://i36.servimg.com/u/f36/11/96/49/61/portal10.png" alt="Sitemap"/>
Sitemap </a>
</li>
</ul>
<div id="connect">
<!-- BEGIN switch_user_logged_out -->
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/lock12.png"/> Log in </h1>
<form action="/login" method="post" autocomplete="off"><fieldset class="frm-set login"><dl> <dd><input type="text" placeholder="Username" tabindex="1" name="username" id="username" size="20" maxlength="40" value="" class="inputbox autowidth" autocomplete="off" autofill="off"/></dd></dl><dl><dd><input type="password" placeholder="Password" tabindex="2" id="password" name="password" size="20" maxlength="25" class="inputbox autowidth" autocomplete="off" autofill="off"/></dd><dd><a href="/profile?mode=sendpassword" rel="nofollow">Lost Password?</a></dd></dl><dl><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked"/> Remember Me </label></dd></dl><dl><dd class="login"><input type="submit" name="login" tabindex="6" value="Login" class="button1"/></dd></dl></fieldset></form>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<div id="user-panel">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/commen10.png"/> User Panel </h1>
<script>
jQuery(document).ready(function(){
jQuery.get('/profile?mode=editprofile&page_profil=avatars', function(data) {
link = jQuery('.frm-set dl:first img', data).attr('src');
jQuery('#avatar').attr('src', link);
});
});
</script>
<span><img id="avatar" src="http://i36.servimg.com/u/f36/11/96/49/61/no_ava10.gif" align="left" width="45"/><span class="USERLINK"></span><br />
<b>Messages:</b> <span class="USERCOUNTPOST"></span><br />
<br /> </span>
<a href="/profile?mode=editprofile&page_profil=informations" target="_blank"> My Profile </a>
<br />
<a href="/search?search_id=watchsearch" target="_blank"> Topic(s) being watched </a>
<br />
<a href="/search?search_id=egosearch" target="_blank"> Topics I Replied </a>
<br />
<a href="/search?search_id=newposts" target="_blank"> New on forum <br /> <small>(<span class="USERLASTVISIT"> </span>)</small> </a> </div>
<!-- END switch_user_logged_in -->
</div>
<ul id="site-links">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/link10.png"/> Forum Links </h1>
<li>
<a href="http://www.foru-girls.com/t2-regulament"> Regulament </a>
</li>
<li>
<a href="http://www.foru-girls.com/f3-nou-veniti"> Nou Veniti </a>
</li>
<li>
<a href="http://www.foru-girls.com/c8-orasul-f-g"> Orasul F-g </a>
</li>
<li>
<a href="http://www.foru-girls.com/f28-concursuri"> Concursuri </a>
</li>
<li>
<a href="http://www.foru-girls.com/f49-evenimente"> Eveniment </a>
</li>
<li>
<a href="http://www.foru-girls.com/c7-girls-zone"> Girls Zone </a>
</li>
</ul>
<div id="other">
<h1> <img src="http://i36.servimg.com/u/f36/11/96/49/61/star_o10.png"/> Recent posts</h1>
<div class="ultimelemesaje">
<!-- BEGIN giefmod_index2 -->
{giefmod_index2.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index2 -->
</div>
</div>
</div> </div>
<!-- BEGIN switch_facebook_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
appId: '{switch_facebook_login.FACEBOOK_APP_ID}',
status: true,
cookie: true,
xfbml: true,
oauth: true
});
//]]>
</script>
<!-- END switch_facebook_login -->
<!-- BEGIN switch_facebook_logout_TMP -->
<script type="text/javascript">
//<![CDATA[
FB.Event.subscribe('auth.logout', function(response) {
if ($('a#logout'))
{
var lien_redir = $('a#logout').attr('href');
if ($('a#logout').attr('href') && $('a#logout').attr('href') != '')
{
document.location.href = 'http://{switch_facebook_logout.SERVER_NAME}/' + lien_redir;
}
}
});
$(document).ready( function() {
$('a#logout').click( function() {
FB.logout();
} );
} );
//]]>
</script>
<!-- END switch_facebook_logout_TMP -->
<script type="text/javascript">
//<![CDATA[
fa_endpage();
//]]>
</script>
</body>
</html>
Intrati in P.A ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil css
Adaugati:
- Cod:
.ultimelemesaje {max-width: 150px !important;}
Modificati 150px cu o valoare mai mica sau mai mare, dupa propriile preferinte.
Pagina 1 din 2 • 1, 2
Subiecte similare
» Actualizări recente ale Forumgratuit: acces la forumul în construcție pentru moderatori, 2 noi widget-uri ...
» subiecte recente
» Cerere Script Ultimele subiecte[WidGet]
» Cum mut subiecte recente mai jos?
» Cum fac: SUBIECTE RECENTE
» subiecte recente
» Cerere Script Ultimele subiecte[WidGet]
» Cum mut subiecte recente mai jos?
» Cum fac: SUBIECTE RECENTE
Forum gratuit: forum de suport al utilizatorilor :: Forum de suport :: Administreaza prezentarea forumului :: Arhiva probleme privind designul forumurilor
Pagina 1 din 2
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum