Some don't want to use the new rating feature in UBBT 6.0
For those I put together some instructions for removing all these components.
Only some small changes in your template files are needed.
Just see the attached file.
danke Astaran
Pretty close but not quite there yet, I did this and it still leaves the rating table in place and moves the "last post" output into it.
I did everything in the directions but left postlist.tmpl alone and the option for user ratings are gone but the ones for messages are still there, I think I might leave it that way for now to see how it works out.
The person who came out with this "brain fart" of a feature with no control from the admin was obviously a programmer and not a webmaster.
Anyone want to tell me how to remove the stars from the users that already have been rated.
Can you give me a link so that i can take a look what ratings still occur?
Maybe i missed something. I modified several things in my templates so this happens easily.
OK, I changed it back, here you go.
http://coloradok5.com/forums/postlist.php?Cat=&Board=garageThanks for doing this by the way.
I checked my instructions i missed the display of the message rating. Will repost it in a few minutes.
But you have some other mistake in your templates.
Would you mind to send me your modified templates files?
I could take a quick look and hopefully find the mistake.
Just emailed them to you.
Ok, found the mistake.
The attached instructions work if you use the original templates.
Ooops, now when you click on a post the post does not show up.
Looks like I had to just leave line 108 in showflat alone and it displays again.
OK, now everything works per your instructions, not sure what happened when I did it.
OK, I just noticed that the stars from before I removed the ratings are showing up in the profiles, how do I edit the showprofile.php file?
Thanks
"The person who came out with this "brain fart" of a feature with no control from the admin was obviously a programmer and not a webmaster."
I agree wholeheartedly! And recommend that the admin. control option should be restored in the next version.
In any event, this thread is very helpful. Thanks!
Here you go:
showprofile.tmpl
find line 62-68
code:
<tr>
<td class="darktable">
{$ubbt_lang['RATING']}
</td>
<td>
$Rating
</td>
</tr>
remove that too.
Will update the full instructions when i'm back home.
Unfortunately this is one where it's going to be impossible to make both sides happy. The plan with templates was to give those users that don't like to muck around in code an easy way to change the HTML of the pages. So, wherever possible I put all HTML into the templates and removed it from the scripts. In order to have admin toggles for these would mean that the HTML would need to be put back into the scripts for these areas and by doing that the templates become less flexible as you'd still need to go into the scripts to make HTML/layout type changes.
Hopefully we can get a template download area going. Maybe with sections for screenshots of what the modified templates actually do. Then it would just be a matter of downloading the altered templates and overwriting the originals.
Thank's DTS, one of these days I am going to have spare time where I can fool around with this stuff myself.
Maybe the templates without ratings could be included in the threads package and a question in the install asks which versions to make default?
Since it seems that many people doesn't want the ratings it could be a good idea to help them remove them. Downloading and installing new templates might be a bit cumbersome for a first time user.
On a personal note, I'm not that fond of ratings myself but I think my users are and unless I get complaints I'll leave them in.
I liked the ratings idea.. but my users were going to mention it at the mere suggestion of it. We run a support site and there were whole arguments about how everyone is important and it's tough to get people to participate... now add the fear of being rated poorly. So I edited the templates to remove it.
I would agree with Scream. If infopop doesn't have a problem with it, the ability to download completed templates that make basic changes would be a plus. Surely anyone trying to fool with threads to begin with can handle uploading a different template file into their server. But completed templates would be easier than instructions to modify.
The only thing about completed templates is that if you want thread ratings but not user ratings, your templates aren't gonna be compatible. Toggles for some things sound like a better solution in that if you don't want it, you just turn it off and it doesn't make it more difficult to edit the basic look of the template
Otherwise, you'd have to have an almost infinite number of templates available to cover the most basic of choices... moderators/no moderators, ratings/ no ratings, thread views/ no thread views, etc
I can make templates to look how I want them too, but not always the larger group of web site owners threads is beginning to attract
Good point. Hadn't thought of all the various combinations of customizations. The few you listed in different combinations mean more than 20 different templates.... then sombody is ALWAYS going to want something different, right? Isn't that the way it always goes.
LOL
The toggle in Admin. is handy. But, the tradeoff Scream mentions adds valuable perspective that I do appreciate, because as a webmaster I also value flexibility.
A FEW changes to the code templates such as was necessary here is tolerable. It would be more tolerable if there was another forum that only contained template modifications tested and approved by Infopop with complete and accurate instructions for each modification.
Agreed, I like it more being totally template based.
The template stage for UBBThreads has just started, but I think it would be logical to expect that in some time there will be a place with a template collection.
Ideally it would be somewhat like a Yahoo style of index place, where you go through different categories to find the template you like.
Anyway, I like it as it is, if you dont want a feature, remove it from the template. If you want it, add it to the template.
Hi there
Are the complete rating templates posted anywhere?
I already messed withthe rating template unsuccessfully so the instructions don't help much.
Scream mentioned these were posted somewhere inthe template forum but so far I can't find them...anyone?
Thanks
Renee
I can't believe I did it! A couple of more modifications in the showflat template, and I got rid of the user's ratings in the user's column, and the "rate this post" in the Extra information section at the bottom of the thread.
Attached is the new showflat.tmpl (in the form of a .txt file), modified from the original showflat.tmpl that came with UBB.Threads 6.0.1.
in the showflat.tmpl, remove the following parts:
{$ubbt_lang['RATING']}: $ThreadRating
<br />
<tr>
<td class="small">
<b>{$postrow[$i]['Rating']}</b>
</td>
</tr>
$ratinghtml
nice, and thanks for sharing
Learning more and more each day! Now I figured out how to get rid of the thread ratings and the ratings column on the post list template (postlist.tmpl), and not have the other columns get messed up in the process. Attached is the modified postlist template (from the original postlist template that came with UBB.Threads 6.0.1), also in the form of a txt file.
Remove the following from postlist.tmpl:
<td align="center" nowrap="nowrap">
{$postrow[$i]['Rating']}
</td>
and<td nowrap="nowrap" width="5%" class="tdheader" align="center">
<a href="{$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&page=$page&view=$view&sb=$sortrating&o=$o">
{$ubbt_lang['RATING']}
</a>
$RatingS
</td>
And here's the modified one for threaded view (showthreaded.tmpl), again attached in the form of a txt file. It removes the rating option in the Extra Information section at the bottom of the threaded view page.
All I removed were the following:
<tr>
<td class="small">
<b>$Rating</b>
</td>
</tr>
and{$ubbt_lang['RATING']}: $ThreadRating
and$ratinghtml
I want to remove all the ratings, my members hate them...
I read all posts above and still do not see how to do it...
Can someone please post exactly what needs to be done and where for a guy who is not good with code?
(There seems to be several options... I just need one that works)
I use UBB.threads™ 6.0.1
Thanks
My users also hate these ratings. I think it was a big mistake to put them in to start with but now that they are there we need a simple way to get rid of them.
I'm not good at code either so I'll need detailed instructions to get rid of them.
Thanks
Very simple instructions to remove Thread/Post Ratings attached.
Very simple instructions to remove User Ratings attached.
I believe you also need to comment out the section which displays the current rating:
code:
<!--
<tr>
<td class="darktable">
{$ubbt_lang['RATING']}
</td>
<td>
$Rating
</td>
</tr>
-->
Thanks so much for your help!
I was desperate to remove the ratings - my users were beginning to fight over them ;P
If anyone would like Ratings removed in all but a FEW of their forums... I posted a hack/template mode
HERE.
It seems that you have removed the Subject table header cell as well.
Just remove the comments around the following code:
<td align="left" width="50%" class="tdheader">
<a href="http://65.166.97.24/ubbthreads/postlist.php?Cat=&Board=alemanyHS&page=0&view=collapsed&sb=1&o=93">
Subject
</a>
</td>
It happens with all of the forums. What do I need put back in the template?
I did tell you, but here is a more thorough explanation that should fix your problem:
Open the file templates/default/postlist.tmpl
Find this block of code:
<!-- <td align="left" width="50%" class="tdheader">
<a href="http://65.166.97.24/ubbthreads/postlist.php?Cat=&Board=alemanyHS&page=0&view=collapsed&sb=1&o=93">
Subject
</a>
</td> -->
Replace it with this:
<td align="left" width="50%" class="tdheader">
<a href="http://65.166.97.24/ubbthreads/postlist.php?Cat=&Board=alemanyHS&page=0&view=collapsed&sb=1&o=93">
Subject
</a>
</td>
Thanks so much! worked like a charm. Sorry I was confused by the "Board=alemanyHS" part because alemanyHS is the name of just one of the boards that was having the problem... anyway it's fixed you rock.
-SchoolScandals
Ah, sorry, I should have taken the code from the template of course. Glad it worked out.