Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 93
8 members and 85 guests
ass6reetmanageb, carlhodgkinson1, digeoitalpimcf3, howhnw9toplanxo, lawn22ev12, makaa3emoneywit, sacsn9eramentjf, ssefqarchmar2dx
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > General > Site design

Reply
 
LinkBack Thread Tools Display Modes
reviews module, hack?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 37
Join Date: May 2003
reviews module, hack? - 05-25-2003, 09:18 AM

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
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-25-2003, 09:29 AM

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
  Send a message via AIM to MrGeekDude  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-25-2003, 09:32 AM

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
  Send a message via AIM to MrGeekDude  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
reviews block
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 37
Join Date: May 2003
reviews block - 05-25-2003, 09:35 AM

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
major problem
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 37
Join Date: May 2003
major problem - 05-25-2003, 09:51 AM

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
fixed??
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 37
Join Date: May 2003
fixed?? - 05-25-2003, 03:46 PM

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
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-25-2003, 05:16 PM

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
  Send a message via AIM to MrGeekDude  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-25-2003, 05:19 PM

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
  Send a message via AIM to MrGeekDude  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
they worked before
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 37
Join Date: May 2003
they worked before - 05-25-2003, 09:52 PM

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
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 7
Join Date: May 2003
05-26-2003, 07:48 AM

can I see your site, so I have more of an idea of what's wrong?


Mr Geek Dude
  Send a message via AIM to MrGeekDude  
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 07:13 PM
Reviews module name asdfghh Nuke 6.5 to 6.9 - Modules 4 10-11-2004 12:51 PM
Reviews module with search Polo Open topics 1 07-08-2003 05:32 AM
Easy fix on the Reviews module? Kristic Site design 2 06-14-2003 12:44 AM
Reviews Module needed to be modified Kristic Nuke 6.5 to 6.9 - Modules 2 06-13-2003 12:35 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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