Google dot what?
Posts: 2
16 credits Members referred : 0
« on: Apr 04, 2007, 04:00:44 PM »
I've noticed that the formatting for the output when you do "all info" seems to pretty much wrap everything on one line. I checked the code and it seems to try to use nl2br() to convert new line characters into html breaks. However, when viewing the output with either the nl2br() function or not, the output is the same. I'm going to look into seeing if the data can be better formatted at the time of retrieval from the remote server when I get some free time, but I wanted some feedback incase this is only happening to me.
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #2 on: Apr 04, 2007, 09:54:10 PM »
I added a <br> when the code was getting retrieved.
whois_class.php changed a line in the get_domain_info() function from
Code:
$this->info .= $val;
to
Code:
$this->info .= $val."<br>";
This adds a break in the output when it gets displayed. The only problem is, this data gets retrieved in an array, and the array breaks paragraphs at odd places some times, like in the middle of a sentence.
I'll see if I can scrub the array some more to throw in a check or two so it doesn't do that.
The normal behavior actually has it printing the information all on one line whether seen from Joomla via an IFRAME or directly accessing the script. Adding the <br> in that location at least makes it easier to read.
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6352
38936 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Apr 04, 2007, 10:05:39 PM »
you can place an extra enter into the code maybe that will help...