Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Visitor logs, Host field
ruud wrote #292604:
Characters inserted by the
soft_wrap()function to make the hostname wrap
OK, thanks for the clarification. Is this desirable any more, given the more fluid nature of the admin-side these days? I could just remove the soft_wrap() and then the need to swap the columns round is lessened somewhat.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Visitor logs, Host field
Bloke wrote #292608:
OK, thanks for the clarification. Is this desirable any more, given the more fluid nature of the admin-side these days? I could just remove the
soft_wrap()and then the need to swap the columns round is lessened somewhat.
I don’t think so. For my own theme (Sandspace) I have both columns set to white-space: nowrap anyway (both for TXP 4.5.x and 4.6dev). Don’t remember it ever caused me problems — not that I often look at logs anyway.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Visitor logs, Host field
Bloke wrote #292608:
OK, thanks for the clarification. Is this desirable any more, given the more fluid nature of the admin-side these days? I could just remove the
soft_wrap()and then the need to swap the columns round is lessened somewhat.
See the screenshot Bert posted. You’d get horizontal scrollbars due to the long URL without soft_wrap. I’d vote for showing the IPnr always and only showing the hostname when viewing the details, but keep soft_wrap there.
Offline
Re: Visitor logs, Host field
Swapped columns. Thanks everyone.
Now, do we hide the Visitor Logs menu when logs are off in prefs, or leave it available so logs can be viewed after they’ve been turned off? Hmmm…
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Visitor logs, Host field
Bloke wrote #292631:
Now, do we hide the Visitor Logs menu when logs are off in prefs, or leave it available so logs can be viewed after they’ve been turned off? Hmmm…
Logs get cleaned out when you visit the logs page, if you turn off logging, and you hide the drop down menu for the Visitor logs, how does the log file get purged of expired entries?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Visitor logs, Host field
hcgtv wrote #292632:
Logs get cleaned out when you visit the logs page, if you turn off logging, and you hide the drop down menu for the Visitor logs, how does the log file get purged of expired entries?
Another good point. Best leave it available in the menu. I’ll do that.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Visitor logs, Host field
Bloke wrote #292633:
Another good point. Best leave it available in the menu. I’ll do that.
Hmmm, hang on. It seems that if you turn off Logging, the logs are truncated so there’s no need to visit the panel again to purge them.
I was just toying with the idea of leaving the panel available, even if you turn logging off, as long as there’s a value set for Logs expire after how many days. That would give you a chance to check out your logs until they expire, even after you stop logging hits. Under this scenario, if you wanted to remove the menu entry entirely you’d need to both:
- Turn off logging.
- Set log expiry to 0 days.
At the moment in 4.6-dev, the logs are purged as soon as you turn off logging so checking the expiry time is pointless.
It may have purged logs in prior versions too, I’m not sure. Is that desired behaviour? Or a tad unexpected?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Visitor logs, Host field
What makes sense to me is if there’s a preference to turn logs off (thus hide the tab/link/panel too), it purges any existing logs at the same time.
If ever you want to turn them on again, the tab/panel comes back and whatever your last value was for “number of days to log” restarts.
Rinse and repeat.
Offline
Re: Visitor logs, Host field
Destry wrote #292653:
What makes sense to me is if there’s a preference to turn logs off (thus hide the tab/link/panel too), it purges any existing logs at the same time.
If ever you want to turn them on again, the tab/panel comes back and whatever your last value was for “number of days to log” restarts.
+1.
Offline
Re: Visitor logs, Host field
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Visitor logs, Host field
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Visitor logs, Host field
Destry wrote #292653:
What makes sense to me is if there’s a preference to turn logs off (thus hide the tab/link/panel too), it purges any existing logs at the same time.
In which case, that’s what it does already. Best ever bug resolution in history: no action required.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Visitor logs, Host field
Offline