The new and improved Rankster has just been rebuilt on Drupal 6.x.
With Rankster you get an independent, hand picked list of top sites listed by category. Search engines don't always return the best sites first. Additionally some sites may be brilliant but obscure. Rankster lists the best sites and users rank them using a 5-star rating system. Those with the highest average rating appear at the top (there are no 'paid-to-be-top' listings).
A new addition to Rankster are the reviews of hot sites and other things web related. I have added a basic review of Drupal, so if you want to go and leave some positive comments about this great product and community please do.
There are features I would still like to implement at some stage, but if you have any feedback or questions about the site, or how it's built, let me know via the on-site contact form.
Go to the Rankster.co.uk homepage.
Give Drupal a 5-star rating or add general comments here.
Read my review/overview of Drupal here.
Last, but not least, I would like to thank the Drupal community and all those contributers. (I will stop now - I sound like I'm giving an Oscars speech!)
Comments
customized taxonomy term views
Hi Justin,
your site is looking great!
I was wondering how you made the customized views when you click on, for example,
Entertainment/Music:
You get a list of items with a link like "Go to England-Rocks.co.uk".
Normally it only states "more..." .
How did you change the default view? I need something similar for my site, and I really don' t have a clue.
thanks, Jacques
Customised 'view'
Hi,
Here is how I got custom links etc. As you guessed I used views to return the list of items belonging to a particular taxonomy term.
In the view that I setup I set the style as unformatted so that the entire node shows in the list (instead of the teaser). This may not be good for you as you probably only want to show the teaser view.
To show the custom link instead of the "more..." link I did the following.
1) I set up a new content type eg. listing_item. I also gave it a field called weburl where I could specify the external website URL for use in the custom link.
2) Instead of this content type being shown using the default node.tpl.php I made a copy called node-listing_item.tpl.php. This ensures that my custom content type (listing_item) uses it's own template (node-listing_item.tpl.php)
3) I then edited the node-listing_item.tpl.php adding this
<a href="http://<?php print $node->field_weburl[0]['safe'] ?>" target="_blank">Go to <?php print check_plain($node->title) ?></a>4) This link renders the weburl field set in the custom content type and copies the node title.
The easiest way for you achieve what you want may be to use the CONTEMPLATE module, with this you can easily set how your teaser and body renders. I think you can do what I did above but for rendering your teaser, but off the top of my head I'm not sure how.
If you do it the way I did then the Contemplate module can still be useful, as when you set up a content template you can choose what fields you would like to show. You just click what field and it gives you the appropriate PHP syntax. I then added this to my custom node.tpl.php file (node-listing_item.tpl.php).
This was a bit of a rambling explaination - if there is anything I can clarify let me know.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
re: Customised 'view'
hey, thanks a lot! Your reply put already solved a part of my problem:
By creating a node-activity.tpl.php, I was able to show the CCK fields the way I wanted.
So the "full" page view is correct now - without the need of using views.
However, for the teaser view it's a lote more complicated: the teaser itself is rendered by a template (so, modifyable),
but it's the taxonomy module which adds the link "more" on the bottom left, and the terms (like "activity" ) on the bottom right site.
My additional links need to be placed between the "more" and term links.
This is done outside of a template, and I even can't find the function that is responsible.
Nice site but ...
Very nice idea and design but how on earth did you achieve the rating system using fivestar? For example on this page: http://www.rankster.co.uk/football
I have been trying to do the same for a small site am working on without success. Thanks.
Sort by Five star rating
I achieved the 5 star rating system by ordering the list with views. I use views to firstly show all listings for a particular taxonomy (using a copy of the default taxonomy_term view), I then order the list based on the average 5 star rating.
Once you have managed to get the view listing the taxonomy content, to get it ordering the list by the 5 star rating go to the view setup and under 'Relationship' add 'Node: Voting results' (obviously you will need to have enabled the 5 star voting widget for this to work).
Set the 'Data Filters' to the following:
Value type: - Percent
Vote tag: - Vote
Aggregation function: - Average
Once you have done this you can then go to the 'Sort Criteria setup and add 'Voting API results as the sort criteria. The Relationship will be set to Voting Results and the Sort order to Descending (to sort from highest ranking avg. to lowest).
Hope this helps - if you need more info on any part of the above let me know.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
there seems a difference somewhere
Cant find most of the feature you mentioned. Found the default taxonomy view but every other thing I cant see. Am using Drupal 5.10. For example, I cant find this:
Once you have managed to get the view listing the taxonomy content, to get it ordering the list by the 5 star rating go to the view setup and under 'Relationship' add 'Node: Voting results' (obviously you will need to have enabled the 5 star voting widget for this to work).
Set the 'Data Filters' to the following:
Value type: - Percent
Vote tag: - Vote
Aggregation function: - Average
I dont have the 'Relationship' tab during views edit? I have the Five star installed and enabled. What am I doing wrong?
Drupal 5.x vs. Drupal 6.x
The new Rankster is built using Drupal 6.x - the views module is quite different from 5.
I originally built the site on Drupal 5.x and I did manage to get the Fivestar rating ordering working using views. I can't remember exactly how I did it, but I remember it was a bit more complex.
Ok - I have just restored my 5.x version. One module you must make sure you have enabled is Voting API which I presume you have enabled as the Fivestar module requires it.
This is how my 5.x view was setup.
Fields
I added Node title and Body fields (what gets shown in the list)
Arguments
Argument Type = Taxonomy: Term ID
Default = Summary, sorted as view
Title = %1
Option, wildcard, wildcard sub = all blank
Filters
Node Published - Equals - yes (only shows published nodes)
Node Type - Is One of - select all relevant taxonomy types (shows nodes only of selected types)
Sort Criteria
VotingAPI percent vote result (average) - order Descending (this does the fivestar sorting)
Now when you go to your 'taxonomy list' page at yoursite.com/?=taxonomy/term/xxx - substituting xxx with one of your taxonomy term id's - you should get a list of nodes belonging to that taxonomy, sorted by vote result average. (At least I hope you do - I used the Categories module instead of normal taxonomy items so I reference something like yoursite.com/?=node/xxx)
Hope that helps you.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
what about the clickable widget
How did you insert the clickable fivestar widgets
Inserting the Fivestar widget
To add the Fivestar widget you need to go into Content Types within the Admin > Content management area.
You then select the content type you would like the Five star widget to appear on eg. Page, Story... (I added my own content types for my listings). Within the content type there is the option of enabling the Five Star Ratings for that type, as well as setting the display style, location etc.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
thanks
thanks. I got it working now.
Votingapi-6.x-2.0-rc1 - problem
I just tried to update my VotingAPI module to the latest release and it broke the views sorting. For some reason the Voting Relationship and Sort Criteria options I mention in my "Sort by Five star rating" comment above don't appear. Will raise it as an issue.
The VotingAPI version that does work for me is - 6.x-2.0-beta6.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
VotingAPI Fix
To resolve the above problem, make sure you change both the Views and VotingAPI modules for their latest releases.
Updating one module without the other will cause the problem.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
I like the ranking system,
I like the ranking system, works well.
__________________________________________________________________________________
www.DrupalBased.com - Showcasing Drupal Powered Sites.
Hi your site looks fantastic ....
Hi Your site looks fantastic. I have also created this type of directory site but it's not good as yours.
http://www.onetravel4you.com
Could you tell me the name of those modules which you have been in you site.
Thanks in advance
Sumit
Modules used
I used a bunch of modules, but the main ones used to achieve the listings and voting/ranking functionality are:
5 Star
Voting API
ConTemplate (content templates)
Tokens
Views
Advanced forum
Mollum - to handle spam
----------
Drupalden.co.uk - Drupal guides, hints, tips...
Great work, i like the way
Great work, i like the way you use all the module to achieve a good link directory, i am familiar with all the module you are using in your website, but its not easy to have such a good navigation! how do you make the the left menu for example
http://www.rankster.co.uk/arts-culture
it show the subdirectories in the center and the left, can you tell us how .?!
Thanks for all you answers :)
---
Spread Google Chrome
http://www.spreadgooglechrome.com
Navigation menu and category index page
I set up the menu manually. I probably should have created the menu using the taxonomy menu module or something as it would have been easier. Basically it is my taxonomy in a menu representation.
The 'main' navigation categories, like Arts & Culture, are set so that they aren't expanded. When you click it the Arts & Culture sub-categories then appear. The Arts & Culture index page is just a static page of content. There are other ways I could have done this, but don't mind this solution as it's not going to change often (apart from the review features).
I suspect I haven't done something correctly though as the menu & breadcrumbs work don't work when clicking through a category. When you go to one of the sub categories like Photography the menu works ok, but the breadcrumb doesn't show the Arts & Culture link. Then when you click in to a site listing within Photography the menu collapses and the breadcrumb gets the Photography link but is still missing the main category Arts & Culture link. I have been trying to get around it using tokens and custom breadcrumbs, but not found a way yet.
----------
Drupalden.co.uk - Drupal guides, hints, tips...
Nicely done!
I especially like the look of your voting pages using fivestar. Do you have any tips on how you themed pages like:
http://www.rankster.co.uk/open-source
Are you displaying the teaser view of the custom content type or did you pick the fields you wanted in Views? The reason I ask is that I had trouble getting views to display just the vote results and not the individual votes until I switched to displaying a page made of the node teasers.
Thanks,
Chris
Views setup
When I first set the site up with Drupal 5 I wasn't very clued up so haven't done this the best way. At the time the only way I could get it working as I wanted was by showing the whole node in the view list output.
In retrospect the list view should ideally have shown just the node teasers, but as the descriptions are so short this option worked as I needed it to.
----------
Drupalden.co.uk - Drupal guides, hints, tips...