mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   PrimeNet (https://www.mersenneforum.org/forumdisplay.php?f=11)
-   -   Not quite a bug... a request maybe. (https://www.mersenneforum.org/showthread.php?t=23488)

ET_ 2018-07-05 08:04

Not quite a bug... a request maybe.
 
The page [url]www.mersenneforum.org/tcpus/[/url] gives the computer name "(unnamed)" to those users that have chosen not to name their computers.

The Pages [url]www.mersenneforum.org/tworkload/[/url] and [url]www.mersenneforum.org/tresults/[/url] show a Blank cell for the same situations.

Would it be possible to use "(unnamed)" on all three documents?
Would it be possible to avoid using Blank cells (eventually inserting a hyphen, or n/a) on such 2 Pages?

Gumbo library codes the empty pair <td><\td> as non existent, and skips a field/position ...


Thank you.

wedgingt 2018-07-05 19:44

[QUOTE=ET_;491172]
Gumbo library codes the empty pair <td><\td> as non existent, and skips a field/position ...

Thank you.[/QUOTE]


That sounds like a bug in the Gumbo library that will affect more than just
this use of it.

ET_ 2018-07-06 06:31

[QUOTE=wedgingt;491203]That sounds like a bug in the Gumbo library that will affect more than just
this use of it.[/QUOTE]

Probably True. But I have not the skills to modify Gumbo, so I am asking either for a standardization of the gimps tables or eventually for a different solution to my issue :smile:

Any hints?

ET_ 2018-07-06 06:49

Guess I could use the following

[code]
\<[^\>]*\>
[/code]

Any body with a better solution?

ET_ 2018-07-06 16:08

[QUOTE=ET_;491224]Guess I could use the following

[code]
\<[^\>]*\>
[/code]

Anybody with a better solution?[/QUOTE]

Nevermind, I found a better solution using PHP preg_replace() and preg_split() functions. 10 lines it's all I need. :smile:


All times are UTC. The time now is 08:01.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.