UBB.Dev
Posted By: Astaran No rating templates - 06/09/2002 10:45 PM
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.

Attached File
49245-no_rating_tmpl.txt  (91 downloads)
Posted By: AllenAyres Re: No rating templates - 06/09/2002 11:27 PM
danke Astaran
Posted By: coloradok5 Re: No rating templates - 06/10/2002 12:16 AM
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.

Posted By: Astaran Re: No rating templates - 06/10/2002 12:22 AM
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.
Posted By: coloradok5 Re: No rating templates - 06/10/2002 12:31 AM
OK, I changed it back, here you go.

http://coloradok5.com/forums/postlist.php?Cat=&Board=garage

Thanks for doing this by the way.
Posted By: Astaran Re: No rating templates - 06/10/2002 12:53 AM

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.
Posted By: coloradok5 Re: No rating templates - 06/10/2002 1:11 AM
Just emailed them to you.
Posted By: Astaran Re: No rating templates - 06/10/2002 1:13 AM
Ok, found the mistake.
The attached instructions work if you use the original templates.


Attached File
49267-no_rating_tmpl_v2.txt  (89 downloads)
Posted By: coloradok5 Re: No rating templates - 06/10/2002 1:29 AM
Ooops, now when you click on a post the post does not show up.
Posted By: coloradok5 Re: No rating templates - 06/10/2002 1:32 AM
When you click on a post nothing is there.

http://coloradok5.com/forums/postlist.php?Cat=&Board=garage
Posted By: coloradok5 Re: No rating templates - 06/10/2002 1:55 AM
Looks like I had to just leave line 108 in showflat alone and it displays again.
Posted By: coloradok5 Re: No rating templates - 06/10/2002 3:32 AM
OK, now everything works per your instructions, not sure what happened when I did it.
Posted By: coloradok5 Re: No rating templates - 06/13/2002 7:18 PM
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
Posted By: DTS Re: No rating templates - 06/14/2002 6:14 AM
"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!
Posted By: Astaran Re: No rating templates - 06/14/2002 7:37 AM
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.
Posted By: Rick Re: No rating templates - 06/14/2002 7:17 PM
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.
Posted By: coloradok5 Re: No rating templates - 06/14/2002 7:37 PM
Thank's DTS, one of these days I am going to have spare time where I can fool around with this stuff myself.
Posted By: Gardener Re: No rating templates - 06/14/2002 7:41 PM
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.
Posted By: JoshPet Re: No rating templates - 06/14/2002 8:08 PM
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.
Posted By: AllenAyres Re: No rating templates - 06/14/2002 9:27 PM
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
Posted By: JoshPet Re: No rating templates - 06/14/2002 10:05 PM
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
Posted By: DTS Re: No rating templates - 06/15/2002 6:37 AM
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.
Posted By: MTO Re: No rating templates - 06/15/2002 5:20 PM
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.
Posted By: rlevant Re: No rating templates - 07/05/2002 8:22 PM
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
Posted By: mrnocal Re: No rating templates - 07/05/2002 10:30 PM
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

Attached File
51914-showflat.txt  (189 downloads)
Posted By: AllenAyres Re: No rating templates - 07/05/2002 11:17 PM
nice, and thanks for sharing
Posted By: mrnocal Re: No rating templates - 07/06/2002 2:56 AM
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>

Attached File
51933-postlist.txt  (195 downloads)
Posted By: mrnocal Re: No rating templates - 07/06/2002 3:04 AM
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

Attached File
51934-showthreaded.txt  (204 downloads)
Posted By: Beentheredonethat Help please - 07/11/2002 1:00 AM
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
Posted By: dlhanso1 Re: Help please - 07/14/2002 7:37 PM
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
Posted By: Lisa_P Re: Help please - 07/15/2002 2:35 AM
Very simple instructions to remove Thread/Post Ratings attached.

Attached File
Posted By: Lisa_P Re: Help please - 07/15/2002 2:36 AM
Very simple instructions to remove User Ratings attached.

Attached File
Posted By: Dave_L_dup1 Re: Help please - 07/15/2002 5:50 AM
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>
-->


Posted By: pootlecat Re: No rating templates - 07/24/2002 11:08 PM
Thanks so much for your help!
I was desperate to remove the ratings - my users were beginning to fight over them ;P
Posted By: JoshPet Re: No rating templates - 07/26/2002 4:31 AM
If anyone would like Ratings removed in all but a FEW of their forums... I posted a hack/template mode HERE.
Posted By: SchoolScandals Re: No rating templates - 08/31/2002 11:02 PM
What happened here?

I'm so confused please help!

http://65.166.97.24/ubbthreads/postlist.php?Cat=&Board=alemanyHS
Posted By: Gardener Re: No rating templates - 09/01/2002 12:49 AM
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>
Posted By: SchoolScandals Re: No rating templates - 09/01/2002 1:21 AM
It happens with all of the forums. What do I need put back in the template?
Posted By: Gardener Re: No rating templates - 09/01/2002 1:53 AM
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>
Posted By: SchoolScandals Re: No rating templates - 09/01/2002 2:18 AM
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
Posted By: Gardener Re: No rating templates - 09/01/2002 2:30 AM
Ah, sorry, I should have taken the code from the template of course. Glad it worked out.
© UBB.Developers