Skip to content

Commit

Permalink
fix forumdisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
asphum committed Jan 30, 2020
1 parent 1cbc8cf commit 3a67a36
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 50 deletions.
12 changes: 7 additions & 5 deletions common/addstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,16 @@ select {
}
.listmenucat {
border: none;
position: relative;
z-index: 50;
padding: 10px;
}
.listmenucat li {
float: left;
padding-bottom: 5px;
list-style: none;
margin: 0;
padding: 0;
display: unset !important;
}
.listmenucat li a {
float: left;
margin-right: 5px;
padding: 4px 8px 3px;
border: 1px solid #CDCDCD;
Expand All @@ -278,11 +276,12 @@ select {
text-decoration: none;
border-radius: 4px;
}
.listmenucatative a, .listmenucat li a:hover {
.listmenucatative a, .listmenucat li a:hover, .xw1 a {
background: #222 !important;
color: #FFF !important;

}
.tl .th td, .tl .th th { font-weight: 800; }
.bg-head {
background-color: #CCC;
color: #000;
Expand Down Expand Up @@ -339,3 +338,6 @@ select {
#myBtn:hover {
background-color: #555; /* Add a dark-grey background on hover */
}
.t_fsz {
min-height: auto !important;
}
10 changes: 5 additions & 5 deletions forum/forumdisplay.htm
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,20 @@ <h2><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</
<!--{if $_G['forum']['threadtypes']}-->
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
<!--{if $_GET['typeid'] == $id}-->
<li class="listmenucatative"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="badge badge-primary">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<li class="listmenucatative"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--> <span class="badge badge-primary">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="badge badge-primary">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--> <span class="badge badge-primary">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->

<!--{if $_G['forum']['threadsorts']}-->
<!--{if $_G['forum']['threadtypes']}--><li><span class="pipe">|</span></li><!--{/if}-->
<!--{if $_G['forum']['threadtypes']}--><li><i class="fas fa-plus mr-2"></i></li><!--{/if}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
<!--{if $_GET['sortid'] == $id}-->
<li class="listmenucatative"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="badge badge-info">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<li class="listmenucatative"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--> <span class="badge badge-info">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="badge badge-info">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--> <span class="badge badge-info">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
Expand Down
62 changes: 22 additions & 40 deletions forum/guide.htm
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,26 @@
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><!--{if helper_access::check_module('guide')}--><em>&raquo;</em><a href="forum.php?mod=guide&view=index">{lang guide}</a><!--{/if}-->$navigation
</div>
</div>

<!--{if $view != 'index'}-->
<div class="p-3">
<a href="forum.php?mod=misc&amp;action=nav" class="btn btn-ready"><i class="fas fa-pencil-alt"></i> {lang send_posts}</a>
</div>
<!--{/if}-->
<ul id="thread_types" class="listmenucat">
<li $currentview['hot']><a href="forum.php?mod=guide&view=hot">{lang guide_hot}</a></li>
<li $currentview['digest']><a href="forum.php?mod=guide&view=digest">{lang guide_digest}</a></li>
<li $currentview['new']><a href="forum.php?mod=guide&view=new">{lang guide_new}</a></li>
<li $currentview['newthread']><a href="forum.php?mod=guide&view=newthread">{lang guide_newthread}</a></li>
<li $currentview['sofa']><a href="forum.php?mod=guide&view=sofa">{lang guide_sofa}</a></li>
<li $currentview['my']><a id="filter_special" href="forum.php?mod=guide&view=my" onmouseover="showMenu(this.id)">{lang guide_my}</a></li>
<!--{hook/guide_nav_extra}-->
</ul>
<!--{hook/guide_top}-->

<div class="boardnav">
<div id="ct" class="wp cl{if $_G['forum']['allowside']} ct2{/if}"{if $leftside} style="margin-left:{$_G['leftsidewidth_mwidth']}px"{/if}>
<div class="mn">
<div class="bm bml pbn">
<div class="bm_h cl">
<!--{if $view != 'index' && $view != 'my'}-->
<span class="y">
<a href="forum.php?mod=guide&view=$view&rss=1" class="fa_rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a>
</span>
<!--{/if}-->
<h1 class="xs2">
$lang['guide_'.$view]
</h1>
</div>
<!--{if $view != 'my'}-->
<div class="bg-content">
<div id="forum_rules_1163">
<div class="ptn xg2">$lang['guide_'.$view.'_description']</div>
</div>
</div>
<!--{/if}-->
</div>
<!--{if $view != 'index'}-->
<div id="pgt" class="bm bw0 pgs cl">
<a href="forum.php?mod=misc&amp;action=nav" class="btn btn-ready"><i class="fas fa-pencil-alt"></i> {lang send_posts}</a>
</div>
<!--{/if}-->
<ul id="thread_types" class="listmenucat">
<li $currentview['hot']><a href="forum.php?mod=guide&view=hot">{lang guide_hot}</a></li>
<li $currentview['digest']><a href="forum.php?mod=guide&view=digest">{lang guide_digest}</a></li>
<li $currentview['new']><a href="forum.php?mod=guide&view=new">{lang guide_new}</a></li>
<li $currentview['newthread']><a href="forum.php?mod=guide&view=newthread">{lang guide_newthread}</a></li>
<li $currentview['sofa']><a href="forum.php?mod=guide&view=sofa">{lang guide_sofa}</a></li>
<li $currentview['my']><a id="filter_special" href="forum.php?mod=guide&view=my" onmouseover="showMenu(this.id)">{lang guide_my}</a></li>
<!--{hook/guide_nav_extra}-->
</ul>
<!--{hook/guide_top}-->
<div>
<div>
<!--{if $view == 'index'}-->
<!--{loop $data $key $list}-->
<div class="bm bmw">
Expand Down Expand Up @@ -81,9 +64,9 @@ <h2>
<!--{/loop}-->
<!--{else}-->
<!--{loop $data $key $list}-->
<div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}>
<div id="threadlist" class="tl bm bmw" >
<div class="th">
<table cellspacing="0" cellpadding="0">
<table class="uk-table-responsive">
<tr>
<th colspan="2">
{lang title}
Expand Down Expand Up @@ -136,15 +119,14 @@ <h2>
</div>
<div class="bg-content">
<div id="forumnew" style="display:none"></div>
<table cellspacing="0" cellpadding="0">
<table class="uk-table-responsive">
<!--{subtemplate forum/guide_list_row}-->
</table>
</div>
</div>
<!--{/loop}-->
<div class="bm bw0 pgs cl">
$multipage
<span class="pgb y"><a href="forum.php?mod=guide">{lang guide_index}</a></span>
</div>
<!--{/if}-->
<!--{hook/guide_bottom}-->
Expand Down

0 comments on commit 3a67a36

Please sign in to comment.