Fake Target Employees Prank Black Friday Shoppers

Here is another quick IPB 3.3.x+ tutorial showing you how to swap the “Delete” option with the date for status replies to match that of the original status message.

Navigate back to the template editor in the ACP: Look & Feel > Manage Skin Sets & Templates > Select Your Skin Set that you want to modify > Remain on the Templates section > Board Index > statusReplies

NOTE: You can double click the code samples below to highlight all of the code.

Find:

<span class="desc ipsType_smaller">{parse date="$reply['reply_date']" format="manual{%d %b}" relative="true"}  </span>
 <span class="desc mod_links ipsType_smaller">
 <a id="statusReplyDelete-{$reply['reply_status_id']}-{$reply['reply_id']}" class="__sDR __dr{$reply['reply_status_id']}-{$reply['reply_id']}" href="{$this->settings['base_url']}app=members&module=profile&section=status&do=deleteReply&status_id={$reply['reply_status_id']}&reply_id={$reply['reply_id']}&k={$this->member->form_hash}">{$this->lang->words['status_delete_link']}</a>
 </span>

Replace with:

<span class='desc mod_links ipsType_smaller'>
 <if test="canDelete:|:$reply['_canDelete']"><a href="{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=deleteReply&amp;status_id={$reply['reply_status_id']}&amp;reply_id={$reply['reply_id']}&amp;k={$this->member->form_hash}" id="statusReplyDelete-{$reply['reply_status_id']}-{$reply['reply_id']}" class="__sDR __dr{$reply['reply_status_id']}-{$reply['reply_id']}">{$this->lang->words['status_delete_link']}</a></if>
 </span>
 <span class='desc ipsType_smaller'>{parse date="$reply['reply_date']" format="manual{%d %b}" relative="true"}&nbsp;&nbsp;</span>

Save and you’re done!

Change the Width of Status Replies in IPB 3.2.x+

One of the things that bothered me with Invision Power Board 3.2+ was that the space given for status replies had a fairly small width, making long status replies become a mess, this quick and easy tutorial will show you how to change it.

First start off by opening the Template Manager in the ACP by going to: Look & Feel > Manage Skin Sets & Templates > Click the Skin Set You Wish to Modify > CSS > ipb_style.css

Find:

.status_list .status_list { margin: 10px 0 0 50px; }

Replace with:

.status_list .status_list { margin: 0 -10px 0 0; background: #FFFFFF; padding: 3px 0; }

Optional – Re-align the Comment button

Below add:

.status_textarea { width: 99%; margin: 0 0 3px 0; }
.status_submit { text-align: right; padding: 0 0 3px 0; }

Importance of Maintaining Free Disk Space on Servers

After doing my daily check up on my Webserver hosting a few websites (including this one) and multiple mySQL database, I found something was not right as all of the websites I host that used a database were seeing “Could Not Establish Connection To Database.”  I Looked at the  error logs and saw nothing, the file was clean, you would think having nothing in your error log is a good thing right? Well not in this case…

The message “Could Not Establish Connection To Database” is telling you that, well it can’t connect to the mySQL server, so make sure that it is running. After logging into the server I noticed that the mySQL server has stopped running, but why? Ok simple fix, I’ll just restart the mySQL server by issuing the command “start mysql.” No luck I was getting another error message “start: Job failed to start mysql,” ok but why? Ok I’ll check the error log again, maybe there is something in there now! Nope, error log is still blank.

After realizing how long the issue has been occurring (1 1/2 hours after 5 PM) I realize that 5PM is when the server does a complete database backup of everything, 5PM everyday. I go and check the folder of backups and see there is over 1 months worth of backups, all 190MBs or more. Although the server is backing up the databases as planned it’s also not deleting old database backups as it should be, because having a server backup everyday can eat your disk space quickly.

After deleting most of the backups I immediately reissued the “start mysql” command and finally everything started to work again.

TLDR: Make sure your servers have a lot of free disk space.

Website Update :D

After many months of having a boring website, I’ve finally taken the time to  come in and update  my personal website. Hopefully I’ll actually use it now…

My GitHub Repos

ServerStatus

Server Status website script, displays uptime (days), free RAM, free HDD.

Quick Gallery

Instantly make your web folder of images an online gallery.

Twitter Feed