SimplePortal
Customization => Blocks and Modifications => Mod Requests => Topic started by: amko_sa 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:
(http://img532.imageshack.us/img532/6781/numberof.jpg)
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.
(http://img402.imageshack.us/img402/6388/numberof2.jpg)
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)
(http://img697.imageshack.us/img697/451/ihave.jpg)
and i want this:
(http://img359.imageshack.us/img359/8053/iwant.jpg)
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.
-
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?
-
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.
-
Solved but I dont know how.
This is a part of Portalblock.php
$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 "?"
$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
-
Thank you amko_sa.
I was troubled with the same problem, too. This topic helped me. :nervous-happy:
-
Searching an solution for the same problem till this morning, thank you ;)
-
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:
/* 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:
/* 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
-
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] (http://simpleportal.net/index.php?issue=374.0).
Thanks!
-
Yup. This fix worked like a charm. :D
Solved but I dont know how.
This is a part of Portalblock.php
$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 "?"
$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