Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

cant access page 2 in rooms

Asked Modified Viewed 2,535 times
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

well I just started to fill up my forums with various posts. I have 27 in one room and i cant get to page 2 at all, it just refreshes page 1 all the time. anyone else had this problem? I have the latest vers of Fusion. everything else seems to be fine. I tested cookies and IE and Firefox just in case.
Edited by Von_Stylon on 30-01-2007 11:46,
0 replies

16 posts

V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

someone help please :o i have 2 weeks left until our old provider expires and then im left with the new site that has a serious issue. please has anyone got an idea as to why this is happening? I have made the room public so anyone can view the issue without having to register, check the link here. just try to view page 2...
http://redfoxwarriors.com/portal/foru...orum_id=16

sorry but im so desperate and my backs against the wall :(
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

hmmm... have you edited the maincore.php?

This seems to me that the issue is either in maincore.php at the pagination function OR in forum/viewthread.php... to be on the safe side... just leave maincore alone for a while and why not do a backup of the viewthread.php that you have now and upload a fresh one from the zip file... if the issue persists, then we scratch one possible cause from the list...
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

i did tweak maincore.php but i backed it up first. this was for an audit mod. i didnt like it so i removed the infusion and restored the old back up.

I just tried restoring the old viewthread. which i replaced when i added the delthreads mod.

However its not the pages in a thread its the threads in the room. i have 27 in one room and the page only displays 20 of them or so. i press page 2 and nothing happens, it just refreshes the current page.
[url]
http://redfoxwarriors.com/portal/forum/viewforum.php?forum_id=16[/url]

EDIT! i just posted over 20 in a thread also. and that now seems to do the same thing u cant view any pages after the first one is full in either forum of threads :|
Edited by Von_Stylon on 30-01-2007 22:09,
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

I must be crazy...

I apologize, I referenced the wrong file... I actually meant the /forum/viewforum.php file

The code in which this pagination function is being called from is in that file... whatever the problem might be, it could be related to a malfunction of the mod you mentioned and you just realize this now that your threads surpass the capacity of one page (20 threads).

Try doing that to the viewforum.php file... back up the current one and then replace with a fresh copy from your current version installment.
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

:( nope i tried that to begin with. its now happening in the threads also. i get to 20 posts, or threads click on page 2 for either and nothing :|
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Ok... open maincore.php and look for a line like this:

// Universal page pagination function by CrappoMan

The function right below that line please copy it and insert it to a reply.

Put it between the [ * ] *code* [/* ] BBCode. Using the code button below the box in which we type our messages.

That is the code that makes the pagination... at least that is the MAIN function... the problem here could be the pagination code or a database query failing to work properly... but we would need to check that out first... this is like fishing needles in a haystack... more or less ;)
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

As requested


// Universal page pagination function by CrappoMan
function makepagenav($start,$count,$total,$range=0,$link=""){
   global $locale;
   if ($link == "") $link = FUSION_SELF."?";
   $res="";
   $pg_cnt=ceil($total / $count);
   if ($pg_cnt > 1) {
      $idx_back = $start - $count;
      $idx_next = $start + $count;
      $cur_page=ceil(($start + 1) / $count);
      $res.="<table cellspacing='1' cellpadding='1' border='0' class='tbl-border'>\n<tr>\n";
      $res.="<td class='tbl2'><span class='small'>".$locale['052']."$cur_page".$locale['053']."$pg_cnt</span></td>\n";
      if ($idx_back >= 0) {
         if ($cur_page > ($range + 1)) $res.="<td class='tbl2'><a class='small' href='$link"."rowstart=0'>&lt;&lt;</a></td>\n";
         $res.="<td class='tbl2'><a class='small' href='$link"."rowstart=$idx_back'>&lt;</a></td>\n";
      }
      $idx_fst=max($cur_page - $range, 1);
      $idx_lst=min($cur_page + $range, $pg_cnt);
      if ($range==0) {
         $idx_fst = 1;
         $idx_lst=$pg_cnt;
      }
      for($i=$idx_fst;$i<=$idx_lst;$i++) {
         $offset_page=($i - 1) * $count;
         if ($i==$cur_page) {
            $res.="<td class='tbl1'><span class='small'><b>$i</b></span></td>\n";
         } else {
            $res.="<td class='tbl1'><a class='small' href='$link"."rowstart=$offset_page'>$i</a></td>\n";
         }
      }
      if ($idx_next < $total) {
         $res.="<td class='tbl2'><a class='small' href='$link"."rowstart=$idx_next'>&gt;</a></td>\n";
         if ($cur_page < ($pg_cnt - $range)) $res.="<td class='tbl2'><a class='small' href='$link"."rowstart=".($pg_cnt-1)*$count."'>&gt;&gt;</a></td>\n";
      }
      $res.="</tr>\n</table>\n";

   }
   return $res;
}


i really want to thank your for your help. i feel so helpless, im an IT technician, I know nothing about php. but im willing to learn as much as i can B)
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

hehe thats funny, I am studying IT now... however, I learned php with php-fusion, so it makes Zend's tutorials a lot more easier to digest lol... well back to your issue...

i compared this to my code and it is ok, so it leaves us with other issues... maybe a database thing...

When you mouse over the last thread on the list... on June 2005, that link is

forum_id=16&thread_id=17

if we change that to thread_id=18 it should open the thread indicated ... and go to that thread id... however, when I do that it only refreshes the page just like when we use the pagination... so we got ourselves some strange database issue here i am almost certain now...
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

oh crap. im going sleep on it now, must get up early. thank you for your help. ill post back tmrw. thanks again elvenelf
0 replies
R
Rippenwolf
R
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

I really dont think this is a database issue. Im not even in your guys league as far as forums go but I have an observation.

At first I figured your page 2 was refreshing page one instead of redirecting. But look at this.

No need to go to the links, just read on....

You click on the link here....
http://redfoxwarriors.com/portal/foru...orum_id=16

when you click on page 2 it does redirect to where page two should be, but redisplays page 1.
http://redfoxwarriors.com/portal/foru...owstart=20

I compared it to this thread from these forums...
http://www.php-fusion.co.uk/forum/vie...d_id=14912

When you click page two it comes up the same string but actually does redirect.
http://www.php-fusion.co.uk/forum/vie...owstart=20

The difference is that you can go back to page one, but you get a different string.
http://www.php-fusion.co.uk/forum/vie...rowstart=0

In the redfoxwarriors forum it goes to rowstart=20 but stays at rowstart=0. You can click on page two or three as much as you want and it will say rowstart=20, 40, 60 and so on. However it never gives the option to go back to rowstart=0 as it never leaves there.

I know this is just pointing out the obvious here and I have no idea how to fix it. But maybe this will help guide you or someone else in the right direction.
Edited by Rippenwolf on 31-01-2007 05:11,
0 replies
F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

Quote

Von_Stylon wrote:
i did tweak maincore.php but i backed it up first. this was for an audit mod. i didnt like it so i removed the infusion and restored the old back up.

I just tried restoring the old viewthread. which i replaced when i added the delthreads mod.

However its not the pages in a thread its the threads in the room. i have 27 in one room and the page only displays 20 of them or so. i press page 2 and nothing happens, it just refreshes the current page.
[url]
http://redfoxwarriors.com/portal/forum/viewforum.php?forum_id=16[/url]

EDIT! i just posted over 20 in a thread also. and that now seems to do the same thing u cant view any pages after the first one is full in either forum of threads :|


I would download newst fusion, then reupload the whole forum again...

Obviously the rowstart value is correct as earlierly stated. But for some reason the script isn't selecting this from the database. So i would guess something is throwing it off. But hard to tell without knowing what files you've got. Best bet is to reupload with a fresh install package forum folder.

Does pagination work on other places?

test with articles...make category. Make a test article and do a few <--PAGEBREAK--> in it with text in between so you know if it works or not. and this I think only works after you save, not in preview, at least this was the case before.
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

I fixed it. im running v6.00_v.6.01-Announcements_Mod_and_Panel-v1.1 on the latest fusion vers, when u make an announcement thats when u cant view next pages, delete the announcement and it works fine. any ideas?
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Remove the mod... ? Most likely the latest version does not support that mod completely.
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

lol i knew u would say that. i really need an announcement panel though. can u recomend any?
0 replies
E
Elvenelf
E
  • Member, joined since
  • Contributed 184 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Well I actually have a suggestion on that one... =)

IF you do not need to save the announcements you make, and you just post announcements and thats that. You can then use a simple panel created at panels admin page. Selecting the box that allows for it to show on ALL pages and then you simply go to that panel and edit its content anytime you need a new announcement. Otherwise it will show the last announcement entered until you edit it.

This will be fully manual though...so I am not sure how feasible this is for you... it does sound good to me if it will give back functionality to the forums. That way you keep a means to announce your stuff and the forums go back to work as they should. :D
0 replies
V
Von_Stylon
V
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

now that sounds like a plan! cool idea ill give it ago :D
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 16 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet