|
Microformats: Google Rich Snippets
|
|
24-Jan-2011, 04:08 PM
Post: #1
|
|||
|
|||
|
Microformats: Google Rich Snippets
I wonder if is possible to integrate the commentics stars rating system with Google Rich Snippets Microformats to appear in search results.
Thank you. |
|||
|
24-Jan-2011, 10:00 PM
Post: #2
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
This is totally new to me so I need a bit of time to learn about Rich Snippets first. I assume that the Review markup would be the appropriate type of snippet? Do you want the star ratings to be displayed in an aggregate way, as opposed to individual, so that it gives an overall view of the ratings?
Have you completed the interview? |
|||
|
25-Jan-2011, 08:35 AM
Post: #3
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
Exactly. I am interested in the score can change dynamically.
|
|||
|
25-Jan-2011, 01:33 PM
Post: #4
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
This is what I have come up with. I have written it so that the 'page reference' is used as the title. Can you please test the markup for me.
In comments/includes/template/comments.php, find this part: PHP Code: if ($average_rating != 0) {And replace it with this: PHP Code: if ($average_rating != 0) {Then add this to your CSS stylesheet: Code: .hreview-aggregate {Have you completed the interview? |
|||
|
25-Jan-2011, 02:47 PM
Post: #5
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
Wow..!!! You're amazing. Fantastic.
Thanks, Steven.
|
|||
|
25-Jan-2011, 07:21 PM
Post: #6
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
I'm glad it worked. Hopefully others will also find it useful.
Have you completed the interview? |
|||
|
04-Aug-2011, 07:41 PM
Post: #7
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
Modified
'commentics_1.6/comments/includes/functions/comments.php' to show also 'hreview' (not 'aggregate', the single ones) Google 'Rich Snippets' (Microformats markup). ----------------------------------------------------- Google test tool shows something like this for every comment: hreview item fn = Šotori, bungalovi, senčnice, paviljoni, zastave, stojnice - zastopstvo in prodaja. reviewer hcard fn = stariocek rating value (normalized to 5.0 scale) = 5.0 value = 5 description = komentarji delajo! lp, admin |
|||
|
06-Aug-2011, 12:04 PM
Post: #8
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
Second version of comments.php, now without hidden text for comment - better for SEO.
|
|||
|
06-Aug-2011, 01:05 PM
Post: #9
|
|||
|
|||
RE: Microformats: Google Rich Snippets
(06-Aug-2011 12:04 PM)stariocek Wrote: Second version of comments.php, now without hidden text for comment - better for SEO. Third version of comments.php, Rich Snippets completely incorporated into initial code. Without ugly tricks for testing purposes. |
|||
|
13-Dec-2011, 03:36 PM
Post: #10
|
|||
|
|||
|
RE: Microformats: Google Rich Snippets
Tried to upload your comments.php and it breaks the page.
|
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| problem with google. | kunalp | 4 | 382 |
12-Oct-2012 07:43 PM Last Post: Steven |
|
| Google Rich Snippets Testing Tool does not show any data | poropopo | 2 | 360 |
12-Jul-2012 12:29 PM Last Post: poropopo |
|
| Rich Snippets in 1.7. | Norbs | 1 | 439 |
27-Nov-2011 02:27 PM Last Post: Steven |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help


