bazfalty
|
Star Rating BBCode helphttp://www.onlyoldskool.myfastforum.org
I was adding this code to my forum as it would be very useful for my members to rate certain things on my site.
Description: The Star Rating BBCode adds a star rating to your topic (Multiple colour choices and anyone can submit multiple ratings while still using one rating per page.)
Available colour choices: Ruby, Red, Golden, Green, Emerald, Blue, Indigo, Violet.
BBCode:
[rating]{IDENTIFIER}[/rating]
HTML:
<script src="http://js-kit.com/ratings.js"></script>
Helpline:
Rating: [rating]Colour[/rating]
Example:
Code: Select all
[rating]Golden[/rating]
But if I do this on one topic and then create a new topic in a different section and add this code again it still has the rating from the original topic. I was wondering if there is anyway to have a seperate ratings on different topics.
|
admin (no pm's please)
|
Where did you find this bbcode?
|
bazfalty
|
I was having a look on other phpbb support forums this afternoon and came across a site with this on along with many more. I just thought it was a nice little thing to have but it don't work to how most people would want it to when I tried it out. I think to make it work I would have to access files which I haven't and don't want(because of my lack of knowledge) to. So I was just enquiring if it was possible for you guys to add to add one that works right.
|
Zudane
|
This is more of a feature that you would need to add yourself. That would take some javascript knowledge it looks like.
So.. either learn javascript or see if someone can help.
I still don't understand what the point of the script is though.
|
bazfalty
|
Lets say on my forum that some of the members upload some of there own dj mixes. Then members could give them a vote out of 5 for there mix.
But when I added it to one of the posts, then added it to another one in a different new thread the rating from the other one was still on and didnt reset for each new thread. So I was just inquring if you guys knew a way round it. As the only way I have found round it is by uploading a file which isn't possible on myfastforums.
|
Zudane
|
it sounds like you want members to be able to rate another member's mix?
Sounds like you want a separate rating system similar to Karma, which could possibly be done with a second portal.
Admin would know more about that though.
|
admin (no pm's please)
|
My first question was not answered.
I have no idea where this came from. e.g. a link where we can see what it is meant to be about.
You give a bbcode that invokes some javascript and we are meant somehow to know what it is meant to be doing and how it might be going wrong, all without knowing where you got it from.
|
bazfalty
|
http://www.phpbb3bbcodes.com/viewtopic.php?f=4&t=1795
first result on google if you put in star rating bbcode
Its no bother if it cannot be done but I just thought it looked a good add on to have if it wasn't to much bother.
|
admin (no pm's please)
|
It is not our job to try and trace what you may have done though. In the same vein if you follow a guide here to put something on, we ask you to post the guide link. It may be possible to work it out, but it makes support a vaguer job. Always post relevant links!
It does seem from the posting that this is both unreliable and inherently flaky. It relies on them to store the rating in their database. As such if you have entered the code correctly then so that you get some rating behavior then it is down to whatever bugs they have and totally beyond our control.
Notably even the SEO change on phpbb3 put in this morning might easily disrupt such a bbcode.
|
bazfalty
|
Ok thanks for letting me know, I'm not getting much luck with any codes that would work well with my forum, this one not being very reliable and the hide till reply hack which seems quite common now and popular, not being considered by the admin on myfastforum.
|
admin (no pm's please)
|
Why do you *need* codes anyway? forums are about posts and members and not hacks.
Hide till reply will continue to get rejected as it adds load for a feature that really is not that special.
|
bazfalty
|
| admin (no pm's please) wrote: | | forums are about posts and members and not hacks.. |
Exactly which is why the hack code is good as it would encourage members to reply to get some of the links they are after. Otherwise they can just come on and browse everything without having to post much. Which is why it's popular on most music forums. So even though it might not be special to certain forums, it's the best possible thing that can be put on to my forum. I've already had to put a minimum number of posts to access certain areas of the forum and now because I'm not allowed to have the hide hack I'm removing members from this group that have not posted in a month, where if they had the hide hack this wouldn't be needed.
I wouldn't exactly call the wiki button special but it's still been added. Different forums require different things.
|
admin (no pm's please)
|
The argument has been had time and time again that such buttons are more likely to encourage one word replies than real involvement, but that is not the issue here.
We try and run fast forums, hacks that add to server load need to be seriously convincing ones. Those that don't like the Wiki system (and you can read the discussion there on avoiding load issues) can be far more casually added.
No one can look at these forums and say the number of add ons is lacking.
|
bazfalty
|
I totally understand you side of the argument about 1 word reply's. But it could work the other way where if people realise that they have to reply, they might think they would look out of order just saying thanks all the time so it might encourage them to actually join in discussions, where as if they can just come on and take what they like without people knowing that they have, then they will carry on doing it without feeling embarresed by it and encouraging them to participate in the general forum.
I understand (well only on a basic level ) about the load thing as well, but if you ran a poll on here how many people would use it on there forum then I wouldnt see it as a problem. I think forums either don;t need it at all, or the ones that do it really helps them. But that is just my personal opinion.
But it looks as though well have to disagree on this one and as your the main man theres nothing I can do.
|
admin (no pm's please)
|
If it was a matter of enabling it for some forums only it would be an arguable case, but essentially the system works by everyone running the same code, and there is a deep tendency for people to click "yes" to any options for extras.
You may note again looking at the Wiki discussion and it associated extras that I have tried to steer it so that people with no real use for the extra, don't have then for the sake of it. They are no where near as bad on load as the bbcode you want, but we don't want to slap the servers for anything without good reason. Much better for example to slap them a little as I have today on the SEO bits we have added.
|
Zudane
|
Just to inject the idea for the show after post... couldn't the same thing be done for dotted topics? Is there an entry for that, or does it just check if the user has posted on the thread when it loads?
I would assume there is an entry, since the ACP has an option to resynchronize dotted topics. If the entry is there, couldn't the reference be made to simply have that it can be seen when the user has posted on that thread at all?
Just a thought.
|
admin (no pm's please)
|
If this hack can be done in phpbb3 without an additional query then post a link to the mod that does it and it will be done. No one can say we are reluctant to put stuff in.
|
Zudane
|
http://www.phpbb.com/community/viewtopic.php?f=70&t=1688875
It's a ModX, so I don't know if you can do that.. Plus it's listed as in development at the moment.
I'd guess that it shouldn't be too hard to set up the bbcode though, or a macro or something. Just check if the user has posted on the topicID, or if the topicID is dotted, and if yes show the code, if no show a default "You must post to view this."
|
admin (no pm's please)
|
I will try and look in the morning, can't be bothered to fight with a rar at the minute.
|
admin (no pm's please)
|
It is a database query:
| Code: |
$topic_id = request_var('t', 0);
if ($topic_id>0)
{
global $user;
global $db;
$sql = 'SELECT *
FROM ' . POSTS_TABLE . '
WHERE topic_id ="' . $topic_id . '"
AND poster_id ="' . $user->data["user_id"] . '"';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if(empty($row)) $code = $user->lang['HAVE_TO_REPLY'];
}
|
Or more to the point perhaps 20 database queries if there are 20 posts on a page Latter version of mysql cache queries so there is a good chance that the query cache will save the day a little there, but that is a particularly shitty way to code this mod. Even ignoring the specially awful code you would have to ask what justifies an additional query on a massive table every time a topic is viewed? The fact that the code does 20 queries is evidence enough that the authors have not paid any attention at all to the issue!
We have a number of mods that do additional database queries, but the only ones we have ever allowed when viewing the common pages are those that simply slot in an additional field or bit of data into a query that is going to happen anyway. It is not exactly a "policy" or "rule", it is simply common sense. Straying from that path leads to server overload.
|
|
|