Firefox PHP

Current Page in Page listing

Posted by WillyPS 
Current Page in Page listing
May 27, 2003 02:01AM
I like better to make bold the current page on the page listing when reding a thread with two or more pages. What I did was this:

In read.php...

I repleace:

if ($page==$pageno) {
$pageno = "$pageno";
$PHORUM["DATA"]["PAGES"][] = array(
"pageno"=>$pageno,
"url"=>phorum_get_url(PHORUM_READ_URL, $thread, "page=$pageno")
);
}

With this:

if ($page==$pageno) {
$pageno = "<strong>&#91;$pageno&#93;</strong>";

$PHORUM["DATA"]["PAGES"][] = array(

"pageno"=>$pageno,

);
}
else {

$PHORUM["DATA"]["PAGES"][] = array(

"pageno"=>$pageno,

"url"=>phorum_get_url(PHORUM_READ_URL, $thread, "page=$pageno")

);
}

Though it worked fine, but I wanted to completly remove the href link on current page number, that's why I deleted "url" from the array. Anyway, the href links keeps printing with the current-page number to the root dir of phorum. How do I removed it completly?

If my explanation was confusing (and I think is was!), please, take a look at this link to see what I did and understand what I want to do:

[lasalabanzas.com]

The page listing is at the right-top corner of the forum table.
Re: Current Page in Page listing
May 27, 2003 06:02AM
You will have to write some PHP in your template to do this. See, people say that removing the HTML from the PHP is a good idea, until they have to do something neat. I mean, the whole point of PHP is to have it embedded in an HTML page. Sorry, I will stop my rant now.
Re: Current Page in Page listing
May 27, 2003 07:07AM
I did not get what you wanted to mean, Brian, sorry. Though you have reason: PHP is designed to embed it on HTML. Anyway, I'll see what I can do with templates so I can achieve this :)
Sorry, only registered users may post in this forum.

Click here to login