Menu
 Sezioni


Hux-Os Com(mercial Site) Forum Index
   Xoops Temi e Template
  Migliorie del Temi di Newbb

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
Migliorie del Temi di Newbb
#1
Webmaster
Joined: 29/4/2004
From Piacenza
Posts: 25
Level : 3
HP : 0 / 68
MP : 8 / 2920
EXP : 73
Group:
Webmasters
Utenti registrati
contabilita
Offline
Ecco un esempio pratico di modifica di newbb
per il tema d'index (da verticale a orizzontale )
Citazione:
<!-- start module contents --> <div align="left"><strong><{$lang_welcomemsg}></strong><br /> <small><{$smarty.const._MD_TOSTART}></small></div> <hr /> <div align="right"><small><{$lang_currenttime}><br /> <{$lang_lastvisit}></small> </div> <hr /> <table cellspacing="0" width="100%"> <tr> <th width="100%"><small><{$smarty.const._MD_TOTALTOPICSC}><strong><{$total_topics}></strong> | <{$smarty.const._MD_TOTALPOSTSC}><strong><{$total_posts}></strong></small> </th> </tr> <tr> <th width="100%"> <div align="center"> <ul class="newbb_level1"> <li class="newbb_folder"> <div class="newbb_submenu"><strong><{$down}>&nbsp;<{$smarty.const._MD_MAINFORUMOPT}></strong></div> <ul class="newbb_level2"> <table cellspacing="1" cellpadding="4" border="0" width="100%"> <tr> <th><{$smarty.const._MD_MAINFORUMOPT}></th> </tr> <tr> <{if $mark_read}> <td class="head"><small><a class="newbb_link" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></small></td> <td class="head"><small><a class="newbb_link" href="<{$mark_UNread}>"><{$smarty.const._MD_MARK_ALL_FORUMS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></small></td> <{/if}> <td class="head"><small><a class="newbb_link" href="<{$all_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_ALL}></a></small></td> <td class="head"><small><a class="newbb_link" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></small></td> <td class="head"><small><a class="newbb_link" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></small></td> <td class="head"><small><a class="newbb_link" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a></small></td> <{if $forum_index_cpanel}> <td class="bg3"><{$forum_index_cpanel}> </td> <{/if}> </tr> </table> </ul> </li> </ul> </div></th> </tr> </table> <!-- start forum categories --> <{foreach item=category from=$categories}> <{if $category.forums }> <{if $category.permission}> <table cellspacing="0" width="100%"> <tr align="left" valign="top"> <td class="head" align="center" width="5%"><img onClick="ToggleBlock2('cat_<{$category.cat_id}>', this)" src="<{$category.cat_display_icon}>" alt="" /></td> <td class="head" width="95%" colspan="5"><a href="<{$xoops_url}>/modules/newbb/index.php?cat=<{$category.cat_id}>"><{$category.cat_title}></a> <br /> <{$category.cat_description}> </td> </tr> </table> <div id="cat_<{$category.cat_id}>" style="display: <{$category.cat_display}>"> <table cellspacing="1" width="100%"> <tr class="head" align="center"> <td width="5%">&nbsp;</td> <{if $subforum_display == "expand"}> <td colspan="2" width="57%" nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td> <{else}> <td width="57%" nowrap="nowrap" align="left"><{$smarty.const._MD_FORUM}></td> <{/if}> <td width="9%" nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td> <td width="9%" nowrap="nowrap"><{$smarty.const._MD_POSTS}></td> <td width="20%" nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td> </tr> <!-- start forums --> <{if $subforum_display == "expand"}> <{foreach item=forum from=$category.forums}> <{if $forum.forum_permission}> <tr> <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> <td colspan="2" class="odd"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><strong><{$forum.forum_name}></strong></a> <br /> <{$forum.forum_desc}> <{if $forum.forum_moderators}><br /> <small><strong><{$smarty.const._MD_MODERATOR}></strong> <{$forum.forum_moderators}> </small> <{/if}> </td> <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td> <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td> <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br /> <{$forum.forum_lastpost_icon}> <br /> <{$forum.forum_lastpost_user}> </td> </tr> <{if $forum.subforum}> <tr class="head" > <td width="5%">&nbsp;</td> <td width="5%" align="center"><{$img_subforum}>&nbsp;</td> <td colspan="4" nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td> </tr> <{foreach item=subforum from=$forum.subforum}> <tr> <td class="odd" width="5%">&nbsp;</td> <td class="even" align="center" valign="middle" width="5%"><{$subforum.forum_folder}></td> <td width="52%" class="odd"><strong><a href="viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a></strong><br /> <{$subforum.forum_desc}> <{if $subforum.forum_moderators}><br /> <small> <strong><{$smarty.const._MD_MODERATOR}></strong> <{$subforum.forum_moderators}> </small> <{/if}> </td> <td class="even" width="9%" align="center" valign="middle"><{$subforum.forum_topics}> </td> <td class="odd" width="9%" align="center" valign="middle"><{$subforum.forum_posts}> </td> <td class="even" width="20%" align="right" valign="middle"><{$subforum.forum_lastpost_time}> <br /> <{$subforum.forum_lastpost_icon}> <br /> <{$subforum.forum_lastpost_user}> </td> </tr> <{/foreach}> <{/if}> <{/if}> <{/foreach}> <{elseif $subforum_display == "collapse"}> <{foreach item=forum from=$category.forums}> <{if $forum.forum_permission}> <tr> <{if $forum.subforum}> <td class="even" rowspan="2" align="center" valign="middle"><{$forum.forum_folder}></td> <{else}> <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> <{/if}> <td class="odd" onClick="window.location='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>'"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><strong><{$forum.forum_name}></strong></a> <br /> <{$forum.forum_desc}> <{if $forum.forum_moderators}> <br /> <small><strong><{$smarty.const._MD_MODERATOR}></strong> <{$forum.forum_moderators}> </small><{/if}> </td> <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td> <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td> <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br /> <{$forum.forum_lastpost_icon}> <br /> <{$forum.forum_lastpost_user}> </td> </tr> <{if $forum.subforum}> <tr> <td colspan="4" align="left"><{$smarty.const._MD_SUBFORUMS}>&nbsp;<{$img_subforum}>&nbsp; <{foreach item=subforum from=$forum.subforum}> &nbsp;[<a href="viewforum.php?forum=<{$subforum.forum_id}>"><{$subforum.forum_name}></a>] <{/foreach}> </td> </tr> <{/if}> <{/if}> <{/foreach}> <{else}> <{foreach item=forum from=$category.forums}> <{if $forum.forum_permission}> <tr> <td class="even" align="center" valign="middle"><{$forum.forum_folder}></td> <td class="odd"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum.forum_id}>"><strong><{$forum.forum_name}></strong></a> <br /> <{$forum.forum_desc}> <{if $forum.forum_moderators}> <br /> <small> <strong><{$smarty.const._MD_MODERATOR}></strong> <{$forum.forum_moderators}></small><{/if}> </td> <td class="even" align="center" valign="middle"><{$forum.forum_topics}> </td> <td class="odd" align="center" valign="middle"><{$forum.forum_posts}> </td> <td class="even" align="right" valign="middle"><{$forum.forum_lastpost_time}> <br /> <{$forum.forum_lastpost_icon}> <br /> <{$forum.forum_lastpost_user}> </td> </tr> <{/if}> <{/foreach}> <{/if}> <!-- end forums --> </table> </div> <{/if}> <{/if}> <{/foreach}> <!-- end forum categories --> <form action="search.php" method="post" name="search" id="search"> <table width="100%"> <tr> <td valign="middle"><{$img_hotfolder}> = <{$smarty.const._MD_NEWPOSTS}><br /> <{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}><br /> <{$img_locked_newposts}> = <{$smarty.const._MD_PRIVATEFORUM_NEWPOSTS}><br /> <{$img_locked_nonewposts}> = <{$smarty.const._MD_PRIVATEFORUM_NONEWPOSTS}></td> <td align="right" valign="bottom"><strong><{$smarty.const._MD_SEARCH}></strong>&nbsp; <input name="term" type="text" size="20" /> <input type="hidden" name="forum" value="all" /> <input type="hidden" name="sortby" value="p.post_time desc" /> <input type="hidden" name="searchin" value="both" /> <input type="submit" name="submit" value="<{$smarty.const._MD_SEARCH}>" /> <br /> [ <a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a> ]</td> </tr> </table> </form> <br /> <{$rss_enable}> <br /> <br /> <{if $online}><{include file='db:newbb_online.html'}><{/if}> <{include file='db:system_notification_select.html'}> <!-- end module contents -->
Posted on: 24/6/2008 12:50
Create PDF from Post Print
Top
ALTRE Migliorie del Temi di Newbb
#2
Webmaster
Joined: 29/4/2004
From Piacenza
Posts: 25
Level : 3
HP : 0 / 68
MP : 8 / 2920
EXP : 73
Group:
Webmasters
Utenti registrati
contabilita
Offline
ECCO UN'ALTRO ESEMPIO
Citazione:

<!-- start module contents -->

<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="font-family: times;font-size: 9px;" >
<tr>
<td align="left"><{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/index.php"><{$forum_index_title}></a><br />
<{if $parent_forum}> &nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$parent_forum}>"><{$parent_name}></a><br />
&nbsp;&nbsp;&nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a> <br />
<{else}> &nbsp;&nbsp;<{$folder_topic}> <a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$forum_id}>"><{$forum_name}></a> <br />
<{/if}> </td>
</tr>
</table>
<br />
<{if $subforum}>
<!-- start forum categories -->
<table cellspacing="1" class="outer" width="100%" style="font-family: times;font-size: 9px;">
<tr class="head" align="center">
<td>&nbsp;</td>
<td nowrap="nowrap" align="left"><{$smarty.const._MD_SUBFORUMS}></td>
<td nowrap="nowrap"><{$smarty.const._MD_TOPICS}></td>
<td nowrap="nowrap"><{$smarty.const._MD_POSTS}></td>
<td nowrap="nowrap"><{$smarty.const._MD_LASTPOST}></td>
</tr>
<!-- start forums -->
<{section name=forum loop=$subforum}> <{if $subforum[forum].forum_permission}>
<tr>
<td class="even" align="center" valign="middle" width="5%"><{$subforum[forum].forum_folder}></td>
<td class="odd" onclick="window.location='<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$subforum[forum].forum_id}>'"><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$subforum[forum].forum_id}>"><strong><{$subforum[forum].forum_name}></strong></a><br />
<{$subforum[forum].forum_desc}> <{if $subforum[forum].forum_moderators}> <br/>
<span style="font-size:smaller;"><strong><{$smarty.const._MD_MODERATOR}>:&nbsp;</strong><{$subforum[forum].forum_moderators}></span> <{/if}> </td>
<td class="even" width="5%" align="center" valign="middle"><{$subforum[forum].forum_topics}></td>
<td class="odd" width="5%" align="center" valign="middle"><{$subforum[forum].forum_posts}></td>
<td class="even" width="20%" align="right" valign="middle"><{$subforum[forum].forum_lastpost_time}><br />
<{$subforum[forum].forum_lastpost_icon}><br />
<{$subforum[forum].forum_lastpost_user}></td>
</tr>
<{/if}> <{/section}>
<!-- end forums -->
</table>
<br />
<{/if}>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 3px;font-family: times;font-size: 12pxpx;">
<{if $forum_moderators}>
<tr valign="bottom">
<td width="100%" align="left" colspan="2"> (<{$smarty.const._MD_MODERATEDBY}>: <{$forum_moderators}>)<br />
<br /></td>
</tr>
<{/if}>
<tr>
<td width="70%" align="left"><{$forum_addpoll}><{$forum_post_or_register}></td>
<td width="30%" align="right"><{$forum_pagenav}></td>
</tr>
</table>
<table class="outer" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width: 0px;font-family: times;font-size: 12px;">
<tr>
<th width="100%"><{$forum_name}></th>
</tr>
<tr>
<th width="100%"> <div align="center">
<ul class="newbb_level1">
<li class="newbb_folder">
<div class="newbb_submenu"><strong><{$down}>&nbsp;<{$smarty.const._MD_FORUMOPTION}></strong></div>
<ul class="newbb_level2">
<table cellpadding="4" cellspacing="1" border="0" width="100%" style="font-family: times;font-size: 9px;" >
<tr>
<th><{$smarty.const._MD_FORUMOPTION}></th>
</tr>
<tr>
<{if $mark_read}>
<td class="head"><small><a class="newbb_link" href="<{$mark_read}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_READ}></a></small></td>
<td class="head"><small><a class="newbb_link" href="<{$mark_unread}>"><{$smarty.const._MD_MARK_ALL_TOPICS}>&nbsp;<{$smarty.const._MD_MARK_UNREAD}></a></small></td>
<{/if}>
<td class="head"><small><a class="newbb_link" href="<{$digest_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_DIGEST}></a></small></td>
<td class="head"><small><a class="newbb_link" href="<{$unreplied_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREPLIED}></a></small></td>
<td class="head"><small><a class="newbb_link" href="<{$unread_link}>"><{$smarty.const._MD_VIEW}>&nbsp;<{$smarty.const._MD_UNREAD}></a></small></td>
<{if $can_post}>
</tr>
<tr>
<td class="head"><small><a class="newbb_link" href="newtopic.php?forum=<{$forum_id}>"><{$smarty.const._MD_POSTNEW}></a></small></td>
</tr>
<{/if}>
</table>
</ul>
</li>
</ul>
</div>
</th>
</tr>
<tr>
<th width="100%"> <div align="center">
<ul class="newbb_level1">
<li class="newbb_folder">
<div class="newbb_submenu"><strong><{$down}>&nbsp;<{$smarty.const._MD_FORUMSEARCH}></strong></div>
<ul class="newbb_level2">
<form action="search.php" method="get">
<table cellpadding="4" cellspacing="1" border="0" width="100%" style="font-family: times;font-size: 9px;" >
<tr>
<th><{$smarty.const._MD_FORUMSEARCH}></th>
</tr>
<tr>
<td class="head"><input name="term" type="text" size="15" />
<input type="hidden" name="forum" value="<{$forum_id}>" />
<input type="hidden" name="sortby" value="p.post_time desc" />
<input type="hidden" name="since" value="<{$forum_since}>" />
<input type="hidden" name="action" value="yes" />
<input type="hidden" name="searchin" value="both" />
<input type="submit" class="formButton" value="<{$smarty.const._MD_GO}>" />
<br />
</td>
<td class="head"><a href="<{$xoops_url}>/modules/newbb/search.php"><{$smarty.const._MD_ADVSEARCH}></a></td>
</tr>
</table>
</form>
</ul>
</li>
</ul>
</div></th>
</tr>
</table>
<table class="outer" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="font-family: times;font-size: 9px;" >
<tr class="head" align="left">
<td width="5%" colspan="2">&nbsp;</td>
<td>&nbsp;<strong><a href="<{$h_topic_link}>"><{$smarty.const._MD_TOPICS}></a></strong></td>
<td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_reply_link}>"><{$smarty.const._MD_REPLIES}></a></strong></td>
<td width="10%" align="center" nowrap="nowrap"><strong><a href="<{$h_poster_link}>"><{$smarty.const._MD_POSTER}></a></strong></td>
<td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_views_link}>"><{$smarty.const._MD_VIEWS}></a></strong></td>
<{if $rating_enable}>
<td width="5%" align="center" nowrap="nowrap"><strong><a href="<{$h_rating_link}>"><{$smarty.const._MD_RATINGS}></a></strong></td>
<{/if}>
<td width="15%" align="center" nowrap="nowrap"><strong><a href="<{$h_date_link}>"><{$smarty.const._MD_DATE}></a></strong></td>
</tr>
<{if $sticky > 0}>
<tr class="head">
<td colspan="2">&nbsp;</td>
<{if $rating_enable}>
<td colspan="6"><strong><{$smarty.const._MD_IMTOPICS}></strong></td>
<{else}>
<td colspan="5"><strong><{$smarty.const._MD_IMTOPICS}></strong></td>
<{/if}> </tr>
<{/if}>
<!-- start forum topic -->
<{foreach name=loop item=topic from=$topics}> <{if $topic.stick}> <{if $smarty.foreach.loop.iteration == $sticky+1}>
<tr class="head">
<td colspan="2">&nbsp;</td>
<{if $rating_enable}>
<td colspan="6"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></td>
<{else}>
<td colspan="5"><strong><{$smarty.const._MD_NOTIMTOPICS}></strong></td>
<{/if}> </tr>
<{/if}> <{/if}>
<tr class="<{cycle values="even,odd"}>">
<td width="4%" align="center"><{$topic.topic_folder}></td>
<td width="4%" align="center"><{$topic.topic_icon}></td>
<td>&nbsp;<a href="<{$topic.topic_link}>" title="<{$topic.topic_excerpt}>"> <{if $topic.allow_prefix}>
<{if $topic.topic_subject eq NONE}>
<{else}>
<{$topic.topic_subject}>
<{/if}>
<{/if}>
<{$topic.topic_title}></a><{$topic.attachment}> <{$topic.topic_page_jump}></td>
<td align="center" valign="middle"><{$topic.topic_replies}></td>
<td align="center" valign="middle"><{$topic.topic_poster}></td>
<td align="center" valign="middle"><{$topic.topic_views}></td>
<{if $rating_enable}>
<td align="center" valign="middle"><{$topic.rating_img}></td>
<{/if}>
<td align="center" valign="middle"><{$topic.topic_last_posttime}><br />
<{$topic.topic_page_jump_icon}><br />
<{$smarty.const._MD_BY}> <{$topic.topic_last_poster}></td>
</tr>
<{/foreach}>
<!-- end forum topic -->
<tr class="foot"> <{if $rating_enable}>
<td colspan="8" align="center"><{else}> </td>
<td colspan="7" align"align""center">
<{/if}> <{strip}>
<form method="get" action="viewforum.php">
<strong><{$smarty.const._MD_SORTEDBY}></strong>&nbsp;<{$forum_selection_sort}>&nbsp;<{$forum_selection_order}>&nbsp;<{$forum_selection_since}>&nbsp;
<input type="hidden" name="forum" value="<{$forum_id}>" />
<input type="submit" name="refresh" value="<{$smarty.const._MD_GO}>" />
</form>
<{/strip}>
</td>
</tr>
</table>
<!-- end forum main table -->
<br />
<table cellpadding="2" cellspacing="0" border="0" style="font-family: times;font-size: 9px;" >
<tr>
<td width="70%" valign="top"><{$img_newposts}> = <{$smarty.const._MD_NEWPOSTS}> (<{$img_hotnewposts}> = <{$smarty.const._MD_MORETHAN}>) <br />
<{$img_folder}> = <{$smarty.const._MD_NONEWPOSTS}> (<{$img_hotfolder}> = <{$smarty.const._MD_MORETHAN2}>) <br />
<{$img_locked}> = <{$smarty.const._MD_TOPICLOCKED}> <br />
<{$img_sticky}> = <{$smarty.const._MD_TOPICSTICKY}> <br />
<{$img_digest}> = <{$smarty.const._MD_TOPICDIGEST}> <br />
<{$img_poll}> = <{$smarty.const._MD_TOPICHASPOLL}> </td>
<{if $show_jumpbox == true}>
<td width="30%" align="right"><{$forum_pagenav}><br />
<{$forum_jumpbox}></td>
<{/if}> </tr>
</table>
<br />
<{$permission_table}> <br />
<br />
<{if $online}><{include file='db:newbb_online.html'}><{/if}>
<{include file='db:system_notification_select.html'}>
<!-- end module contents -->
Posted on: 24/6/2008 13:01
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
 Cerca

Ricerca avanzata