phpGrr! 1.2.0

Post your MODs, receive and provide feedback!
Topics in this forum are not for MOD support, they are for giving the author feedback.
Forum rules
The topics in this forum are not for general MOD support, they are for giving the MOD author some feedback, ideas and bug reports.

phpGrr! 1.2.0

Postby JwB » 20 Jul 2009, 15:52

MOD title: phpGrr!
MOD description: phpGrr! is a lightweight and easy to use modular portal add-on for phpBB3 than can be configured through the phpBB3 ACP.

Show / Hide | Select all
Feature List

Installation

  • Support for MySQL 4 and PostgreSQL
  • Automatic database installation script.
  • Only four simple and optional edits needed to phpBB3 core files.

News and Content

  • phpGrr! can be configured to display news posts on its front page from specified multiple forums and from individually specified posts in any forum in your phpBB3 installtion.
  • Can also display single posts as an article (view portal.php?pid=post_id) giving you the ability to create a website driven from your forums.
  • Obeys phpBB3 permissions fully.
  • News posts can be configured to have a maximum length, after which the post is cut off (in a BBCode safe manner) and the user given a link to the rest of the article. Useful for reducing your news page's bandwidth and readability.
  • Full BBCode, smiley and censoring support on news and article posts.

Modules

  • phpGrr! has a poweful inbuilt module system allowing you to easily add third-party modules to your portal.
  • New modules are simply uploaded to your host and can then be installed and configured through the ACP. No need for code edits.

Template and Layout Options

  • Your portal can be configured to use either a three column or two column layout to suit your site's individual needs and space requirements.
  • Custom template files can also be used, forcing your portal to have a different look and feel to your forums. This effect can be taken further if you wish to move phpGrr! outside of the phpBB root folder, even to a seperate domain.

MOD version: 1.2.0
phpBB version: 3.0.5

Development stage: Stable

MOD Format: MODX

MOD download: http://zoofware.com/?pid=87

Demo: http://zoofware.com/

Credits: JwB

(note, still awaiting validation at phpBB.com)
JwB
New member
New member
 
Posts: 4
Joined: 20 Jul 2009, 15:45

Re: phpGrr! 1.2.0

Postby Obsidian » 20 Jul 2009, 20:09

Interesting MOD. Got any screenshots of the ACP modules, by any chance?
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: phpGrr! 1.2.0

Postby JwB » 20 Jul 2009, 23:31

Certainly have:

http://zoofware.com/?pid=39

It doesnt look that strecthed in real life however :P
JwB
New member
New member
 
Posts: 4
Joined: 20 Jul 2009, 15:45

Re: phpGrr! 1.2.0

Postby Obsidian » 21 Jul 2009, 00:45

Quite an interesting setup. I'll probably download this and peek through the source sometime...later...yeaaaaaah. :lol:
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: phpGrr! 1.2.0

Postby Obsidian » 22 Jul 2009, 00:56

Okay, I just opened up the source here, and peeked at root/phpgrr/functions_phpgrr.php

There's something that I have an issue with.

Here's the snippet that caught my eye.
Code: Select all
class phpgrr_config
{
    var $config = array();
    var $type = array();
    
    function phpgrr_config
()
    {
        global $db;
        
        $sql 
= 'SELECT * FROM ' . PHPGRR_SETTINGS;
        
        
/*
         * Do a little check here as to if phpGrr! is installed
         */
        $result = @$db->sql_query($sql, 0);
            
        if
(!$result)
        {    
            exit
('Please install phpGrr!');
        } 

You should not be calling exit(), nor using supression on the dbal::sql_query call. Use trigger_error() and use non-hardcoded language.

Also, a better method to check for installation would be to use a config table entry. In the installer, use set_config with the current phpGrr! version, and simply use this line to check for installation within that file, and you're all good. This also works for detecting an older database installation when you are using new files. ;)
Code: Select all
isset($config['phpgrr_version'])
{
    trigger_error('PHPGRR_NOT_INSTALLED', E_USER_WARNING);
}
 


This is also ACP compatible code. :)
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: phpGrr! 1.2.0

Postby JwB » 22 Jul 2009, 10:50

Obsidian wrote:Okay, I just opened up the source here, and peeked at root/phpgrr/functions_phpgrr.php

There's something that I have an issue with.

Here's the snippet that caught my eye.
Code: Select all
class phpgrr_config
{
    var $config = array();
    var $type = array();
    
    function phpgrr_config
()
    {
        global $db;
        
        $sql 
= 'SELECT * FROM ' . PHPGRR_SETTINGS;
        
        
/*
         * Do a little check here as to if phpGrr! is installed
         */
        $result = @$db->sql_query($sql, 0);
            
        if
(!$result)
        {    
            exit
('Please install phpGrr!');
        } 

You should not be calling exit(), nor using supression on the dbal::sql_query call. Use trigger_error() and use non-hardcoded language.


The use of trigger_error here, ironically, throws a seperate error relating to phpBB templates.

But yes, this is something I am considering :) Thanks for the tips :)
JwB
New member
New member
 
Posts: 4
Joined: 20 Jul 2009, 15:45

Re: phpGrr! 1.2.0

Postby Obsidian » 22 Jul 2009, 12:40

JwB wrote:The use of trigger_error here, ironically, throws a seperate error relating to phpBB templates.


What error specifically? Might be able to figure out why. :|
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: phpGrr! 1.2.0

Postby JwB » 22 Jul 2009, 15:06

I didnt look into it in any detail, but I suspect it was because trigger_error was being called before the template and user classes had been properly initiated.

However, I'm going to re-organize this a bit in the next version so all is good :)
JwB
New member
New member
 
Posts: 4
Joined: 20 Jul 2009, 15:45

Re: phpGrr! 1.2.0

Postby Eccentric Warmonger » 06 Jul 2010, 23:01

I like the portal, but I have a few questions.

1. Is there anyway to add more stuff to the left and right column other than the basic modules? For example, how would I had affiliates or game server info?

2. Can I create links across the top or do they have to be on the left and right column?

3. If I have another theme that I want to use, how do I use that theme? I found the were it asks about another template? Do I just reference the template for example: /styles/[theme] or is it /styles/[theme]/?

Well these are just a few. Thanks for the help.
Eccentric Warmonger
New member
New member
 
Posts: 1
Joined: 06 Jul 2010, 22:31

Re: phpGrr! 1.2.0

Postby neuropass » 24 Nov 2010, 13:05

Demo and download are not accessible. Also what's wrong with the not working bbcode at the beginning of the posts? "select all" etc.. :?
neuropass
New member
New member
 
Posts: 20
Joined: 12 Apr 2010, 17:07

Re: phpGrr! 1.2.0

Postby tumba25 » 24 Nov 2010, 13:35

I don't know about the links not working. Might be abandoned.

I will have a look at that non-working BBCode thou. Thanks for reporting.

Edit: Fixed.
User avatar
tumba25
Administrator
Administrator
 
Posts: 877
Joined: 24 Oct 2007, 13:10
Location: Kokkola, Finland.
Real name: Jari Kanerva

phpgrr error

Postby bre » 12 Dec 2010, 13:27

Am new so not sure if this is right place. If not sorry.

I installed phpgrr and am getting an error:

General Error
template->_tpl_load_file(): File ./style/phpgrr/acp_phpgrr_settings.html does not exist or is empty.

Don't know what this means. AGain, sorry if wrong place so please tell me where to get help on this. Thanks.
bre
New member
New member
 
Posts: 2
Joined: 12 Dec 2010, 13:22

Re: phpGrr! 1.2.0

Postby tumba25 » 12 Dec 2010, 19:49

You might have missed to copy some files or they are missing from the package. Since this thing seems to be abandoned there is no help if that file is missing from the package.
User avatar
tumba25
Administrator
Administrator
 
Posts: 877
Joined: 24 Oct 2007, 13:10
Location: Kokkola, Finland.
Real name: Jari Kanerva

Re: phpGrr! 1.2.0

Postby bre » 12 Dec 2010, 21:09

Ok, didn't realize it was abandoned. Guess it's not a good idea to install if no one is supporting it.

I'm returning to phpbb after a long time so am trying to get used to it again.

Are there any good portals for it that I can look at? Maybe a thread listing some of them? Thanks.
bre
New member
New member
 
Posts: 2
Joined: 12 Dec 2010, 13:22


Return to MOD Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron