Get True 50/50 Value For Split-Testing Users In PHP

So, one of the projects I’m working on is a sales funnel & at a particular point in the process, I’m trying to figure out whether a video or written text works best with regards to converting users. Obviously, I need to do a split test… But how can I get a get true 50/50 …

Read more

[Fix] cPanel & WHM Update Failure

Recently, I started getting an email every single day from cPanel telling me the following: The cPanel & WHM update process failed for the following reason: Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/rpmup”. Review the update logs to determine why the update failed. I’d been ignoring the …

Read more

How To Automatically Add Affiliate Links To WordPress or bbPress Posts

I’ve been working on a WordPress site with bbPress installed (well, BuddyBoss to be precise) & one of the requests was for all of the links posted in the bbPress forum to automatically turn to affiliate links. Is it possible? You betcha… In fact, I’ve actually done it before on another site in the past …

Read more

How To Prevent “Normal Users” From Accessing /wp-admin/

For some installations of WordPress you might want to prevent “normal users” (non-admins) from getting access to the /wp-admin/ directory… For example in a BuddyPress or BuddyBoss installation. There’s no reason for them to be there, and so for added security, it’s best not to give them access. But how do you do it? Well, …

Read more

How To Fix Broken (Unclosed) BBCode With PHP

Over the past week or so I’ve been trying to import and old phpBB forum into bbPress & due to the importer struggling with incomplete BBCode, I’ve had to come up with a little PHP script to sort it out. Initially I had just wiped out ALL bracketed text from the posts, and whilst this …

Read more