Current time: 01-09-2009, 07:26 AM
Hello There, Guest! (Login — Register)
Thread Rating:
- 13 Votes - 4.38 Average
- 1
- 2
- 3
- 4
- 5
|
Thread Rating CSS Issue - How To Fix
|
|
09-11-2008, 04:28 PM
|
|
|
scylla
Member
  
|
Posts: 71
Joined: Mar 2006
|
|
|
RE: Thread Rating CSS Issue - How To Fix
Nope, no changes except for the ones listed above.
VGChat Hosting | CodesHQ
|
|
|
|
09-11-2008, 04:34 PM
|
|
MattR
Support President
|
Posts: 6,153
Joined: Apr 2008
|
|
RE: Thread Rating CSS Issue - How To Fix
(09-11-2008 04:28 PM)scylla Wrote: Nope, no changes except for the ones listed above.
It was those that added the new column... can you see how to fix it?? I think it would be a very good modification if that extra column was gone.
![[Image: mybbsig.php]](http://learnmybb.com/forums/mybbsig.php)
Forum - Blog
Thou shalt give support
|
|
|
|
09-11-2008, 05:53 PM
|
|
|
scylla
Member
  
|
Posts: 71
Joined: Mar 2006
|
|
|
RE: Thread Rating CSS Issue - How To Fix
Oh well, as long as people just lock & sticky threads instead of making announcements, they'll be fine Xd
VGChat Hosting | CodesHQ
|
|
|
|
09-14-2008, 05:13 PM
|
|
|
scylla
Member
  
|
Posts: 71
Joined: Mar 2006
|
|
RE: Thread Rating CSS Issue - How To Fix
Post updated, it seems that it only effects IE browsers as I didnt see the error in firefox.
(09-11-2008 07:48 AM)Matt_ Wrote: (09-11-2008 01:39 AM)Gordone Wrote: Thanks Matt
If like me, you had 'star_ratings.css' missing, you may be missing other files. I only had global.css listed in "Stylesheets in MyBB Default"
modcp.css
http://community.mybboard.net/cache/them.../modcp.css
showthread.css
http://community.mybboard.net/cache/them...thread.css
usercp.css
http://community.mybboard.net/cache/them...usercp.css
star_ratings.css
http://community.mybboard.net/cache/them...atings.css
Follow same procedure as in Matt's first post with each file. I hope I am not missing any 
Regards
Gordon
You're completely right. I have seen a few User CPs and Mod CPs with the menu on the left showing as just plain links - if you have this problem, like Gordone said, use the procedure in the first post, but change the name and the actual CSS you use 
(09-11-2008 02:54 AM)scylla Wrote: To get rid of the rating completely here's what you have to do:
Step 1: Goto Admin CP --> Templates & Style --> Templates --> Default Templates
Now expand Show Thread Templates --> showthread_ratethread
Choose full edit, delete everything in there and paste this in it's place:
After you pasted this, move on to step 2 in this post.
Code:
<!--
<div style="margin-top: 6px; padding-right: 10px;" class="float_right">
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<div id="success_rating_{$thread['tid']}" style="float: left; padding-top: 2px; padding-right: 10px;"> </div>
<strong style="float: left; padding-right: 10px;">{$lang->thread_rating}</strong>
<div class="inline_rating">
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
<li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li>
<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li>
<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li>
<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li>
<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li>
</ul>
</div>
</div>
-->
Step 2: Now open Forum Display Templates --> forumdisplay_thread_rating
And again choose full edit and replace all of the coding in it with this:
Code:
<!--
<td align="center" class="{$bgcolor}" id="rating_table_{$thread['tid']}">
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
</ul>
<script type="text/javascript">
<!--
Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' });
// -->
</script>
</td>-->
One last step that I just worked out to completely remove it:
open --> forumdisplay_threadlist
and copy & paste this
Code:
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
<tr>
<td class="thead" colspan="{$colspan}">
<div style="float: right;">
<span class="smalltext"><strong><a href="misc.php?action=markread&fid={$fid}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&type=forum&fid={$fid}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
</div>
<div>
<strong>{$foruminfo['name']}</strong>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&sortby=subject&order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&sortby=starter&order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&sortby=replies&order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&sortby=views&order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>
<td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&sortby=lastpost&order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
{$inlinemodcol}
</tr>
{$announcementlist}
{$threads}
<tr>
<td class="tfoot" align="right" colspan="{$colspan}">
<form action="forumdisplay.php" method="get">
<input type="hidden" name="fid" value="{$fid}" />
<select name="sortby">
<option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name="order">
<option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name="datecut">
<option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$gobutton}
</form>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
<br style="clear: both;" />
<br />
<div class="float_left">
<div class="float_left">
<dl class="thread_legend smalltext">
<dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}" title="{$lang->new_thread}" /> {$lang->new_thread}</dd>
<dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}" title="{$lang->new_hot_thread}" /> {$lang->new_hot_thread}</dd>
<dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}" title="{$lang->hot_thread}" /> {$lang->hot_thread}</dd>
</dl>
</div>
<div class="float_left">
<dl class="thread_legend smalltext">
<dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}" title="{$lang->no_new_thread}" /> {$lang->no_new_thread}</dd>
<dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}" title="{$lang->posts_by_you}" /> {$lang->posts_by_you}</dd>
<dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}" title="{$lang->locked_thread}" /> {$lang->locked_thread}</dd>
</dl>
</div>
<br style="clear: both" />
</div>
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$searchforum}
{$forumjump}
</div>
<br style="clear: both" />
{$inline_edit_js}
And here is what the end result will look like: http://codeshq.site88.net/cheat-codes-f-32.html
True, nice fix. I have, however, found one small error (click to enlarge):
To fix, remove the --> from the very end of the second piece of code.
Code:
<!--<td align="center" class="{$bgcolor}" id="rating_table_{$thread['tid']}"> <ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}"> <li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li> </ul> <script type="text/javascript"> <!-- Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' }); // --> </script></td>
I think it would be better if that when the user group settings say users of that group cannot rate threads, that column goes. I think that would be easier if you eved decide you want the column back.
VGChat Hosting | CodesHQ
|
|
|
|
09-25-2008, 04:16 PM
|
|
|
MSJ
Junior Member
 
|
Posts: 9
Joined: Sep 2008
|
|
RE: Thread Rating CSS Issue - How To Fix
Hmm afraid my problem still persists, still can't see my stars.
Check for yourself http://www.fearstavern.com/forum
|
|
|
09-25-2008, 04:24 PM
(This post was last modified: 09-25-2008 04:27 PM by MattR.)
|
|
MattR
Support President
|
Posts: 6,153
Joined: Apr 2008
|
|
|
RE: Thread Rating CSS Issue - How To Fix
I don't think the path to the star is right.
Make sure star.gif is in your images folder.
![[Image: mybbsig.php]](http://learnmybb.com/forums/mybbsig.php)
Forum - Blog
Thou shalt give support
|
|
|
|
09-25-2008, 04:30 PM
|
|
|
MSJ
Junior Member
 
|
Posts: 9
Joined: Sep 2008
|
|
|
RE: Thread Rating CSS Issue - How To Fix
I think we may be talking about two different things...I meant the stars aren't showing up...not the star rating. Like the ones below your name.
|
|
|