Post Reply 
Different testimonials on page refresh?
13-Apr-2012, 08:11 PM
Post: #1
Different testimonials on page refresh?
I'm using commentics for my Testimonial page and was wondering if it's built in some where or if it can be added to where on a page refresh it randomly will show different user testimonials.
Find all posts by this user
Quote this message in a reply
14-Apr-2012, 06:07 PM
Post: #2
RE: Different testimonials on page refresh?
Hi,

That's an interesting request. I can see how it would be useful.

In comments/includes/template/comments.php, replace this (line 358):

PHP Code:
if ($settings->newest_first == "1") {
    
$sort "is_sticky DESC, dated DESC"//newest
} else {
    
$sort "is_sticky DESC, dated ASC"//oldest


With this:

PHP Code:
if ($settings->newest_first == "1") {
    
$sort "is_sticky DESC, RAND()"//newest
} else {
    
$sort "is_sticky DESC, RAND()"//oldest


Have you completed the interview?
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to automatically make a new page. Hobittual 1 351 26-Mar-2013 09:13 PM
Last Post: Steven
  Page id ""page one m1155 2 1,049 22-Dec-2012 04:32 PM
Last Post: m1155
  Page distinction? kustungu 3 951 22-Oct-2012 06:58 PM
Last Post: Steven
Tongue New Comments on first page Amadeo 6 1,069 17-Jul-2012 05:17 PM
Last Post: Steven
Bug Page loading stops after comment submission useful4u 3 1,126 14-Jul-2012 06:18 AM
Last Post: useful4u
  How do I extract page-specific stat from the comments? Fikayo 2 626 29-Apr-2012 09:46 PM
Last Post: Steven
  Get page not to go to Add Comment Section golfmonke 2 2,257 08-Aug-2011 11:12 PM
Last Post: golfmonke

Forum Jump:


User(s) browsing this thread: 1 Guest(s)