• Hey there,

    I’m currently trying to implement a Star Rating system into my WordPress site.

    At the moment i’m using Filosofo Home-Page Plugin which requires Permalinks to work correctly… so that’s fine and working.

    The problem lies with the Star Rater:

    http://furydesigns.com.au/2006/09/15/firefox-extensions/

    If you mouse over one of the stars you’ll notice that the permalink structure appears in the link… however that’s not where the database is located.

    I need to remove the /2006/09/15/firefox-extensions/ part.

    Anyone know of a way this can be achieved?

    Or any other fix that will make this star rater work?

    Thank you.

    Nathan

    PS. the star rater can be found here: http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hmmm. Just said in your other thread I didn’t have any ideas…. but really, that has to be something in the .php for the plugin, I’ve never used it myself so don’t really have any explicit knowledge – but the addition of something like “firefox-extensions” has to be something thrown by the core code in the plugin file.

    So if this was me, I’d open the plugin .php file in notepad2 and search for “firefox-extensions” – and see what it comes up with.

    Have you tried contacting the plugin author?

    FYI – Found this on the star rater web site that might relate to your problem.

    ————————————-
    Installing along with WordPress

    I found one conflict with WordPress that has to do with the database query. If you get the rating system working on your WordPress site and find that some of your WordPress queries aren’t working, you can use this method to fix it so that all the WordPress queries and rater queries work in harmony. It may not be the best method, but it worked for me. Suggestions welcome.

    1. Change _config-rating.php
    Comment out the mysql_select_db($rating_dbname); line.
    2. Append db name variable to table name variables in your rating queries
    Now, anywhere there is a database query in _drawrating.php, db.php, or rpc.php you need to append the $rating_dbname to the $tableName variable.
    For example, on line 24 of db.php we have:

    $query = mysql_query(“SELECT total_votes, total_value,
    used_ips FROM $tableName WHERE…

    That should be changed to:

    $query = mysql_query(“SELECT total_votes, total_value,
    used_ips FROM $rating_dbname.$tableName WHERE…

    Do that to all of your queries, and the ratings queries (I believe there are seven total) and your WordPress queries should play nice together.

    ————————-

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink Help’ is closed to new replies.