After installing Page Numbers, I'm getting error

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   After installing Page Numbers, I'm getting error
Artie
CZ Newbie
Artie has been a member for over 18 year's 18 Year Member
Gender: Female
Website:
Status: Offline
Joined: May 27, 2005
0.00 posts per day
Posts: 2
Points: 70
   
It say's

"You can't access this page directly"


any ideas?


I use phpnuke 7.6


*edited to add*


This is for Page Numbers News Hack icon_wink.gif



Back to top Reply with quote
#2   re: After installing Page Numbers, I'm getting error
Artie
CZ Newbie
Artie has been a member for over 18 year's 18 Year Member
Gender: Female
Website:
Status: Offline
Joined: May 27, 2005
0.00 posts per day
Posts: 2
Points: 70
   
icon_mrgreen.gif


What do ya know.... I was able to fix it icon_smile.gif


so you can ignore this post icon_wink.gif




_________________
My piece of the WWW [ Register or login to view links on this board. ]
Back to top Reply with quote
#3   re: After installing Page Numbers, I'm getting error
astalavistabd
CZ Newbie
astalavistabd has been a member for over 19 year's 19 Year Member
canada.gif
Occupation: Web Developer
Gender: Male
Website:
Status: Offline
Joined: Apr 24, 2005
0.00 posts per day
Posts: 21
Points: 2,231
AIM Address Yahoo Messenger MSN Messenger ICQ Number
ok i got the same error !! im using nuke v7.7. Does anyone know why?



Back to top Reply with quote
#4   PHP-Nuke 7.7 News Module with page numbers
astalavistabd
CZ Newbie
astalavistabd has been a member for over 19 year's 19 Year Member
canada.gif
Occupation: Web Developer
Gender: Male
Website:
Status: Offline
Joined: Apr 24, 2005
0.00 posts per day
Posts: 21
Points: 2,231
AIM Address Yahoo Messenger MSN Messenger ICQ Number
ok, i solved my problem again icon_biggrin.gif .

In the index.html file : [ icon_neutral.gif Its not .html, its actually php , i don't know why its not showing php extension]


if (!defined('MODULE_FILE')) {
   die ("You can't access this file directly...");
}


Instead of these, i used following lines :



if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
    die ("You can't access this file directly...");
}



Back to top Reply with quote
#5   re: After installing Page Numbers, I'm getting error
xGSTQ
CZ Super Newbie
 Codezwiz Site Donator
xGSTQ has been a member for over 18 year's 18 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Sep 07, 2005
0.01 posts per day
Posts: 56
Points: 4,428
   
I know this is supposed to be for 7.7 but i tried it wiht 7.6 and changed the above as i got the same error, but it wouldnt work on 7.6 for me .... icon_sad.gif



Back to top Reply with quote
#6   re: After installing Page Numbers, I'm getting error
dirtbag
CZ Newbie
dirtbag has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 29, 2006
0.00 posts per day
Posts: 7
Points: 254
   
i did the manual edits for 7.6 but all my stories come up empty... any ideas also has anyone got this to successfully to work on 7.6??

i will look at a little more closely to see what i can do but any help appreciated as there are only 3 changes...



Back to top Reply with quote
#7   re: After installing Page Numbers, I'm getting error
dirtbag
CZ Newbie
dirtbag has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 29, 2006
0.00 posts per day
Posts: 7
Points: 254
   
anyways after a closer look the manual directions show to

    if ($pagenum == "") { $pagenum = 1 ; }
    $offset = ($pagenum-1) * $storynum ;
    [b]$sql[/b] = "SELECT sid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories where catid='$catid' $querylang ORDER BY sid DESC limit $offset, $storynum";


when it variable should be $result instead of $sql as i changed it like below example and it all worked.. also in the included pre edited files its a like the example below..

   ################################################
   #### ADDED FOR NEWS PAGE NUMBERS
        if ($pagenum == "") { $pagenum = 1; }
        $offset = ($pagenum-1) * $storynum;
   [b]$result[/b] = $db->sql_query("SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $offset, $storynum");
   ################################################



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum