Skip to content

u/revocer

In this archive from Aug 2012 to Dec 2024

50
posts
204
comments
7
media
1k
score
4 saved before deletion

Condensing if statements in PHP

What is the best way to condense if statements in PHP? For example, consider A, B, C, and options 1, 2, 3, 4, 5, 6. In pseudo code: if (A), then compare 1 and 2. if (B), then compare 3 and 4. if (C), then compare 5 and 6. Instead of writing 3 if statements, is there a way to just use one function, b...

1 points28 comments
Open on Reddit

WordPress logged in user access logs. Do these exist? How do you track what (admin) users are logged in and what changes they are making?

We might be having too many chefs in the kitchen. It is hard to pinpoint who did what, when we are making changes to the site. Sometimes, something breaks, and we want to be able to trace how to fix it. It seems as though a user access log would help in the mystery.

0 points9 comments
Open on Reddit

What is the WordPress Philosophy? How do Frameworks and Foundries live, add-on, take-away and/or change that philosophy? What is your WordPress Philosophy?

Background: I've been looking into various frameworks and themes, that use WordPress as a base. Without naming names, some companies think it is best to use just WordPress to build a theme on top of. Others think there needs to be a framework, and then a theme. Yet others try to make WordPress to fu...

1 points3 comments
Open on Reddit

WordPress Workflow: Exporting Title and URL?

I want to create a spreadsheet to help keep track of our site audit. We have 500 pages to go through one by one, and need some way to track which pages have been reviewed and which have not. What is the best way to export just the title and the associated URL to a Google Doc or Spreadsheet? I am not...

2 points3 comments
Open on Reddit

Apache to Nginx Battle Stories

I am thinking about changing our webserver from Apache to Nginx, to gain the performance benefit. (I will be changing hosts, so thought it might be a good time transition the webserver, since I have to reinstall things anyway). I am looking for battle stories of the transition. What were the biggest...

8 points21 comments
Open on Reddit

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.