Close

This Weeks Special

I see a lot of people complain about their WordPress site being slow to load.

The Internet is full of complaints about this issue and people asking for help to fix it.

Then you do simple profiling of their site and see stuff like
215 requests
2.7 MB downloaded
(1.2 MB from cache)
20.85s (onload: 14.35s)

Those are ridiculous numbers!
Read on…..

phpStorm Logo As I mentioned in a previous phpStorm post, phpStorm is my favourite PHP IDE.
Since I do a lot of work with phpBB3, I have a couple tips for code completion.

There are basically 2 main phpBB3 code libs that do not have completion and are used a lot.
The DBAL and ACM, though the DBAL is used the most, I put the caching in as well, just in case its needed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Open phpBB3 root/common.php
 
// Add doc blocks above
$cache = new cache();
$db = new $sql_db();
 
// So they look like this
/** @var $cache acm */
$cache = new cache();
 
/** @var $db dbal_mysql */
$db = new $sql_db();
 
// This should provide code completion for most if not all query functions in phpBB3 and also cache functions

What we are doing is setting the reference for the class to the global var using the @var annotation.
This will give you almost complete code completion for any SQL query functions you need to use from the DBAL.
Also including the phpBB3 caching mechanism ACM.

There are others that require class assigning annotations as well.
Like the custom profile field class to name one.

So when you work with these, just annotate your instance var referencing it to the class like we did in the above code.
Then you should have full completion for your phpBB3 project.

Stay tuned for more phpStorm tips.

This is a minor update for the phpBB3 invitation only mod.

For current users that have it installed you only need to change out the template ucp_add_user.html
The UMIL package is also updated to the latest.

Update your original package

  • Replace the ucp_add_user.html
  • Delete the old umil and replace it with the new one.
  • Replace the ucp_add_user_installer.php (Not on the live site, this should have been deleted)

The only major change is the verifiedby field is changed to just text instead of a form input field.
The above instructions are also included.

The update package can be downloaded here phpBB Invitation Only mod update

For those of you who want this mod, you should jump the chance to get it for $5.00.
The price will go up to $10.00 this week!

New purchases: The download for new purchase is already updated.

Want more information before you buy it?
phpBB Invitation Only Mod Information Manual

Install Instructions?
phpBB Invitation Only Mod Instructions Manual

Any questions feel free to ask in the forum Support Forum

Page 1 of 151234510...Last »