Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
kingjames
Hangin' Around



Joined: Sep 27, 2011
Posts: 33

PostPosted: Thu Sep 29, 2011 4:06 am Reply with quote

I have been moving over my content from an earlier .phpnuke site and I have been trying out the Latest Reviews block at the top middle of my site. My question is just how many reviews does the Latest Reviews Block show anyway? I mean I have 12 reviews out of 160+ reviews added to the database so far and all of them are showing up in the Latest Reviews Block.

Is this normal? I mean shouldn't this be limited to say five or maybe ten like the Last Five Articles Block? If this is the normal behavior of this Latest Reviews Block to show ALL reviews is there any easy way I can limit it to displaying say only the latest five or ten reviews? Any help appreciated.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Thu Sep 29, 2011 10:53 am Reply with quote

The block is set to display the last 10. If you want to change that number, open blocks/blocks-Reviews.php and find the following code:

Code:


$sql = 'SELECT id, title FROM '.$prefix.'_reviews ORDER BY id DESC LIMIT 0,10'


change the 10 to the number you want displayed.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
kingjames







PostPosted: Thu Sep 29, 2011 12:12 pm Reply with quote

Thanks for your answer. It looks like I was wrong and the Latest Reviews block was only showing ten reviews as you pointed out. It will also be helpful to know how to edit how many reviews show up in this block. Of course I now have a follow up question, is there a easy way to display the reviews in the Latest Reviews block in two columns?
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Thu Sep 29, 2011 3:16 pm Reply with quote

The reviews block in RN 2.5 will display the reviews in two columns. I'd post it for you except that it depends on styles and some other files that are part of distribution and it gets kind of difficult trying to package up all the parts you would need. If you can deal with the reviews in one column for a bit longer you will get the fix with RN 2.5.
 
View user's profile Send private message Visit poster's website
kingjames







PostPosted: Thu Sep 29, 2011 3:52 pm Reply with quote

Thanks for the reply. I will look for the new version when it is released. I was hoping that it would be an easy matter of just adding or changing a code snippet somewhere but it doesn't sound if that is the case.

I guess I will continue using a custom block with .html code in it like my old .phpnuke site then in the meantime as this currently just looks too unbalanced. There is way too much dead space on the right of the Latest Reviews block as it now stands.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Sep 29, 2011 4:07 pm Reply with quote

kingjames wrote:
There is way too much dead space on the right of the Latest Reviews block as it now stands.

That's mainly because it was originally written as a side block (not center), where it's single data column fits more appropriately with the column width.

Why not combine two different blocks into one block, such as Last 5 Reviews and Last 5 News?
 
View user's profile Send private message Send e-mail
fkelly







PostPosted: Thu Sep 29, 2011 7:36 pm Reply with quote

The new review block only does two columns when it is a center block.

As for combining the news and reviews blocks, I am sure the RN team will be listening to new ideas again once RN 2.5 is out the door.
 
kingjames







PostPosted: Sat Oct 01, 2011 1:49 am Reply with quote

Thanks Guys.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©