collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 562
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Number of portal pages error  (Read 8819 times)

0 Members and 1 Guest are viewing this topic.

Offline amko_sa

  • Translator
  • *
  • Posts: 45
  • Gender: Male
    • Newsapp Portal
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Number of portal pages error
« on: April 11, 2010, 02:47:43 PM »
Hi for all

I have two questions.
When I add the number of boardnews pages or the number of posts that I want to appear in the portal everithing is OK but when I click on boardnews pages 2 I have blank page.This is a picture what I am doing:



as shown in the picture I am set 50 topics to appear in groups of 10 pages.First page is always Ok but second is blank.



and my second question
Sinan I expect that you respond to this  :nervous-happy:
How to reduce the members space.This is picture:

Now i have this (This is to much space for me)


and i want this:


Or is it posible to move members space in topic to the right side?
I ask this because I think that the contents of topic in the middle would have been nicer and logical in the portal system.

Thanks and sry about my bad english.
« Last Edit: April 13, 2010, 02:51:06 PM by amko_sa »

Offline amko_sa

  • Translator
  • *
  • Posts: 45
  • Gender: Male
    • Newsapp Portal
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Number of portal pages error
« Reply #1 on: April 12, 2010, 05:15:17 PM »
Can you help me please.

I am found this issue:

This is my link to page 2 in board news

/index.php??sa=news;start=6

article pages work with this link

/index.php?sa=articles;start=3

Can there be an error in the two questionnaires in link because when I delete one everything is Ok?
« Last Edit: April 12, 2010, 05:44:11 PM by amko_sa »

Offline amko_sa

  • Translator
  • *
  • Posts: 45
  • Gender: Male
    • Newsapp Portal
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Number of portal pages error
« Reply #2 on: April 14, 2010, 05:23:09 PM »
Perhaps no one understands me  :ill:
Because of that and because I'm desperate I give an example for my links:

This is a correct link to the boardnews first page :
http://newsapp.info/index.php?sa=news;start=0

and this is what I get when I click on any boardnews page:
http://newsapp.info/index.php??sa=news;start=0

I get a blank page.

The only difference between these two links is that one has a question mark in it and the other link two question mark.When I delete one question mark in second link my newsboard page work.

Is this a bug, because I am using the latest SP 2.3.2 and i am install that version first over mod installer and leter manually because I doubted that it was my fault.





Offline amko_sa

  • Translator
  • *
  • Posts: 45
  • Gender: Male
    • Newsapp Portal
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Number of portal pages error
« Reply #3 on: April 15, 2010, 03:13:12 PM »
Solved but I dont know how.

This is a part of Portalblock.php

Quote
$clean_url = preg_replace('~(;|\?)?sa=news;start=\d+~', '', $_SERVER['REQUEST_URL']);
      $current_url = $clean_url . (strpos($clean_url, '?') !== false ? ';' : '?');

      $page_index = constructPageIndex($current_url . '?sa=news', $start, $limit, $per_page);

I am delete "?"

Quote
$clean_url = preg_replace('~(;|\?)?sa=news;start=\d+~', '', $_SERVER['REQUEST_URL']);
      $current_url = $clean_url . (strpos($clean_url, '?') !== false ? ';' : '?');

      $page_index = constructPageIndex($current_url . 'sa=news', $start, $limit, $per_page);

After this everything is OK
« Last Edit: April 15, 2010, 04:48:24 PM by amko_sa »

sama55

  • Guest
Re: Number of portal pages error
« Reply #4 on: April 22, 2010, 01:00:46 AM »
Thank you amko_sa.
I was troubled with the same problem, too. This topic helped me.  :nervous-happy:

Offline galataman

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Number of portal pages error
« Reply #5 on: April 24, 2010, 10:20:00 PM »
Searching an solution for the same problem till this morning, thank you  ;)

Offline amko_sa

  • Translator
  • *
  • Posts: 45
  • Gender: Male
    • Newsapp Portal
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Number of portal pages error
« Reply #6 on: May 04, 2010, 01:21:11 PM »
I found solution how to reduce members space in my first post.
If someone need it here is the solution.

Open index.css in default template folder and find this line:

Quote
/* poster and postarea + moderation area underneath */
.poster
{
   float: left;
   width: 15em;
}
.postarea, .moderatorbar
{
   margin: 0 0 0 15em;
}
.postarea div.flow_hidden
{
   width: 100%;
}

You must change two option:
width: 15em;  example: width: 12em;
and margin: 0 0 0 15em; example: margin: 0 0 0 12em;
Both changed number must have same value, in my example "12"
This is code after change:

Quote
/* poster and postarea + moderation area underneath */
.poster
{
   float: left;
   width: 12em;
}
.postarea, .moderatorbar
{
   margin: 0 0 0 12em;
}
.postarea div.flow_hidden
{
   width: 100%;
}

Thats it  :P

Offline grafitus

  • Comrade
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Number of portal pages error
« Reply #7 on: May 04, 2010, 01:43:50 PM »
Can you help me please.
I am found this issue:
This is my link to page 2 in board news
/index.php??sa=news;start=6
article pages work with this link
/index.php?sa=articles;start=3
Can there be an error in the two questionnaires in link because when I delete one everything is Ok?
I added to ProjectTracker [link].
Thanks!
my modsI don't reply support PMs. Please use support forums.

Offline makaluch

  • Newbie
  • Posts: 3
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Number of portal pages error
« Reply #8 on: October 21, 2010, 12:56:40 AM »
Yup. This fix worked like a charm. :D

Solved but I dont know how.

This is a part of Portalblock.php

Quote
$clean_url = preg_replace('~(;|\?)?sa=news;start=\d+~', '', $_SERVER['REQUEST_URL']);
      $current_url = $clean_url . (strpos($clean_url, '?') !== false ? ';' : '?');

      $page_index = constructPageIndex($current_url . '?sa=news', $start, $limit, $per_page);

I am delete "?"

Quote
$clean_url = preg_replace('~(;|\?)?sa=news;start=\d+~', '', $_SERVER['REQUEST_URL']);
      $current_url = $clean_url . (strpos($clean_url, '?') !== false ? ';' : '?');

      $page_index = constructPageIndex($current_url . 'sa=news', $start, $limit, $per_page);

After this everything is OK