» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 98
0 members and 98 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Rimonabant
www.rimonabant-weight-loss.com
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on reviews module, hack? within the Site design forums, part of the General category; I searched these forums and couldn't find an answer, so here goes. Though I saw posts for multiple reviews ...



Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2003, 08:18 AM
Junior Member
 
Join Date: May 2003
Posts: 37
reviews module, hack?
I searched these forums and couldn't find an answer, so here goes.

Though I saw posts for multiple reviews modules, is there a way to show more than the standard last 10 reviews/10 most pop reviews? Say last 20 or 30. Instead of searching through the alphabet links.

Also saw in the forum search that there is a block for last 10 reiviews that is in all versions of nuke. But not in mine.

thanks
warren
http://wdubradio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-25-2003, 08:29 AM
Junior Member
 
Join Date: May 2003
Posts: 7
Send a message via AIM to MrGeekDude
Quote:
Also saw in the forum search that there is a block for last 10 reiviews that is in all versions of nuke. But not in mine.
really? it's in mine... the block file (what you select to add the block) is called "reviews" as for changing the top #... let me get on that...
__________________
Mr Geek Dude
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-25-2003, 08:32 AM
Junior Member
 
Join Date: May 2003
Posts: 7
Send a message via AIM to MrGeekDude
OK... I was wrong before... here's what you have to do... (this is for 20 most pop and recent)
find the code (modules/Reviews/index.php)
Code:
echo "<tr><td width=\"50%\" bgcolor=\"$bgcolor2\">"._10MOSTPOP."</td>";
    echo "<td width=\"50%\" bgcolor=\"$bgcolor2\">"._10MOSTREC."</td></tr>";
    $result_pop = sql_query("select id, title, hits from ".$prefix."_reviews $querylang order by hits DESC limit 10", $dbi);
    $result_rec = sql_query("select id, title, date, hits from ".$prefix."_reviews $querylang order by date DESC limit 10", $dbi);
    $y = 1;
    for ($x = 0; $x < 10; $x++)	{
	$myrow = sql_fetch_array($result_pop, $dbi);
	$id = $myrow["id"];
	$title = $myrow["title"];
	$hits = $myrow["hits"];
	echo "<tr><td width=\"50%\" bgcolor=\"$bgcolor4\">$y) <a href=\"modules.php?name=$module_name&rop=showcontent&id=$id\">$title</a></td>";
	$myrow = sql_fetch_array($result_rec, $dbi);
	$id = $myrow["id"];
	$title = $myrow["title"];
	$hits = $myrow["hits"];
	echo "<td width=\"50%\" bgcolor=\"$bgcolor4\">$y) <a href=\"modules.php?name=$module_name&rop=showcontent&id=$id\">$title</a></td></tr>";
	$y++;
    }
    echo "<tr><td colspan=\"2\">
</td></tr>";
    $result = sql_query("SELECT * FROM ".$prefix."_reviews $querylang", $dbi);
    $numresults = sql_num_rows($result, $dbi);
    echo "<tr><td colspan=\"2\">
<center>"._THEREARE." $numresults "._REVIEWSINDB."</center></td></tr></table>";
    CloseTable();
and replace it with the code
Code:
echo "<tr><td width=\"50%\" bgcolor=\"$bgcolor2\">"._10MOSTPOP."</td>";
    echo "<td width=\"50%\" bgcolor=\"$bgcolor2\">"._10MOSTREC."</td></tr>";
    $result_pop = sql_query("select id, title, hits from ".$prefix."_reviews $querylang order by hits DESC limit 20", $dbi);
    $result_rec = sql_query("select id, title, date, hits from ".$prefix."_reviews $querylang order by date DESC limit 20", $dbi);
    $y = 1;
    for ($x = 0; $x < 20; $x++)	{
	$myrow = sql_fetch_array($result_pop, $dbi);
	$id = $myrow["id"];
	$title = $myrow["title"];
	$hits = $myrow["hits"];
	echo "<tr><td width=\"50%\" bgcolor=\"$bgcolor4\">$y) <a href=\"modules.php?name=$module_name&rop=showcontent&id=$id\">$title</a></td>";
	$myrow = sql_fetch_array($result_rec, $dbi);
	$id = $myrow["id"];
	$title = $myrow["title"];
	$hits = $myrow["hits"];
	echo "<td width=\"50%\" bgcolor=\"$bgcolor4\">$y) <a href=\"modules.php?name=$module_name&rop=showcontent&id=$id\">$title</a></td></tr>";
	$y++;
    }
    echo "<tr><td colspan=\"2\">
</td></tr>";
    $result = sql_query("SELECT * FROM ".$prefix."_reviews $querylang", $dbi);
    $numresults = sql_num_rows($result, $dbi);
    echo "<tr><td colspan=\"2\">
<center>"._THEREARE." $numresults "._REVIEWSINDB."</center></td></tr></table>";
    CloseTable();
(note: see where I changed 10 to 20?)

ok, then you need to go into modules/Reviews/language/lang-english.php and find
Code:
define("_10MOSTPOP","10 most popular reviews");
define("_10MOSTREC","10 most recent reviews");
replace that with
Code:
define("_10MOSTPOP","20 most popular reviews");
define("_10MOSTREC","20 most recent reviews");
and you're done!
__________________
Mr Geek Dude
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-25-2003, 08:35 AM
Junior Member
 
Join Date: May 2003
Posts: 37
reviews block
It's uploaded and in the blocks directory, it just isn't visible on the admin/blocks page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-25-2003, 08:51 AM
Junior Member
 
Join Date: May 2003
Posts: 37
major problem
Changed the code like you said, it worked fine on the reviews page, problem is, now when you click on a review you get this - "Sorry, such file doesn't exist..."

did I just lose all my reviews???

If you click on, say, the letter E and click on the review there you can read the review, just can't from the main reviews page after chaging the code...help!!!!!!!!!!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-25-2003, 02:46 PM
Junior Member
 
Join Date: May 2003
Posts: 37
fixed??
I uploaded the old reviews module and this put me back at the beginning. Why would changing the code like we tried result in the story not available message?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-25-2003, 04:16 PM
Junior Member
 
Join Date: May 2003
Posts: 7
Send a message via AIM to MrGeekDude
ya got me puzzled on that one... let me take a look at the code... see the reviews module is one file, and I think it wanted to go to a different file... I'll check
__________________
Mr Geek Dude
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-25-2003, 04:19 PM
Junior Member
 
Join Date: May 2003
Posts: 7
Send a message via AIM to MrGeekDude
truthfully... I have no idea why that cuased it to not work... It's odd... we didn't edit anything with links... are you sure the reviews worked BEFORE you edited it?
__________________
Mr Geek Dude
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-25-2003, 08:52 PM
Junior Member
 
Join Date: May 2003
Posts: 37
they worked before
I uploaded the original reviews-index.php and language file and it went back to 10 most/10 recent and everything worked fine. Tried your code one more time and got the same result, story not available......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-26-2003, 06:48 AM
Junior Member
 
Join Date: May 2003
Posts: 7
Send a message via AIM to MrGeekDude
can I see your site, so I have more of an idea of what's wrong?
__________________
Mr Geek Dude
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using HTML in reviews module Cyberkiller Nuke 7.x - Modules 19 02-22-2006 06:13 PM
Reviews module name asdfghh Nuke 6.5 to 6.9 - Modules 4 10-11-2004 11:51 AM
Reviews module with search Polo Open topics 1 07-08-2003 04:32 AM
Easy fix on the Reviews module? Kristic Site design 2 06-13-2003 11:44 PM
Reviews Module needed to be modified Kristic Nuke 6.5 to 6.9 - Modules 2 06-13-2003 11:35 AM


All times are GMT -5. The time now is 05:53 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31