Guest_imported
New member
- Jan 1, 1970
- 0
i have a forum in my site, problem is that the design's width is expanding everytime there's a number of new topics posted. Meaning...the page link/numbering at the bottom of the topics page does not break, i need the numbers to break or to create a new line after link/page No. 13, it should look something like this:
(i need like a "Word wrap" function)
[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]
Here's the script:
//Start
if (!$pages) { $pages = 1; }
$pagelink = '';
$tmp = $pages;
$pagenumber = 0;
while ($tmp != 0) {
$pagenumber++;
$tmp--;
if ($pagenumber == $page) {
if ($page == 1) {
$prevlast = 1;
} else {
$previouspage = $page - 1;
}
eval("\$pagelink .= \"".addslashes($TI[136])."\";"
$getnext = 1;
} else {
if ($getnext) {
$getnext = 0;
$nextpage = $pagenumber;
}
eval("\$pagelink .= \"".addslashes($TI[135])."\";"
}
}
if ($prevlast) {
$prevlast = 0;
$previouspage = $pagenumber;
}
if ($getnext) {
$getnext = 0;
$nextpage = 1;
}
//end
Hope to hear from you Php Guru's out there, soon!!
Thanks so much
(i need like a "Word wrap" function)
[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]
Here's the script:
//Start
if (!$pages) { $pages = 1; }
$pagelink = '';
$tmp = $pages;
$pagenumber = 0;
while ($tmp != 0) {
$pagenumber++;
$tmp--;
if ($pagenumber == $page) {
if ($page == 1) {
$prevlast = 1;
} else {
$previouspage = $page - 1;
}
eval("\$pagelink .= \"".addslashes($TI[136])."\";"
$getnext = 1;
} else {
if ($getnext) {
$getnext = 0;
$nextpage = $pagenumber;
}
eval("\$pagelink .= \"".addslashes($TI[135])."\";"
}
}
if ($prevlast) {
$prevlast = 0;
$previouspage = $pagenumber;
}
if ($getnext) {
$getnext = 0;
$nextpage = 1;
}
//end
Hope to hear from you Php Guru's out there, soon!!
Thanks so much