Hi
I am new to this and would like to know how to get the stars on one page and then go to the complete comments form on another page like this photoshop.jpg page
Any help welcome
thanks
peter
The best way forward would be to adjust the 'Recent Comments' add-on.
On line 14 (where the add-on echos all of the data), you could add this bit to it:
PHP Code:
<?php
$comment["rating"]
For example:
PHP Code:
<?php echo $comment["name"] . " rated " . $comment["rating"] . " out of 5 on <a href='" . $page["url"] . "'>" . $page["reference"] . "</a> at " . date("g:ia (j-F)", strtotime($comment["dated"]));
This will display the rating number (1,2,3,4,5). You could write some code to instead display the amount of star images according to which number it is. Note that a rating of 0 means that the user did not rate the page.
Even got it quite styled a bit. Just one thing I didn't get going ... instead of just linking to the page, how could I achieve it gets straight to the actual post (which is in most cases all the way to the bottom of the page - it would save people scrolling down to find it.)
Sorry, forgot.
How do I achieve to show the newest post instead, meaning it should first show the newest, then the 2nd newest and then the 3rd ... newest. (now it goes the same but from the back, meaning the oldest)
I tried changing DESC to ASC but it didn't do anything.
Hi Steven check this link, left hand column, you can see ... http://chinabiz21.com/chinabusiness/chin...opment.php
So what can I do (need to do) to make the comments appear, starting with the latest and then backwards...? [must be something conflicting the SQL call cause I also tried to do this using other columns than "dated". e.g., id... and it's always the same, it will start showing the "oldest' first and 2nd oldest and so on.]