Search found 233 matches

by $tring
Mon Apr 11, 2011 9:12 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Sportsbook - Ultimate Soccer
Replies: 412
Views: 32903

Re: [DEV] phpBB Sportsbook (sports prediction system)

Demo board now online.
by $tring
Mon Apr 11, 2011 5:10 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Sportsbook - Ultimate Soccer
Replies: 412
Views: 32903

[ABD] Sportsbook - Ultimate Soccer

Modification Name: Sportsbook - Ultimate Soccer Author: $tring Modification Description: The ultimate soccer mod for phpBB. Modification Version: 0.3.2-beta Requirements: phpBB 3.0.9 Features: Ability to predict the outcome of matches between 2 teams. Teams selected from admin defined leagues. Poin...
by $tring
Sun Apr 03, 2011 10:03 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Child class accessing parent data
Replies: 6
Views: 149

Re: Child class accessing parent data

This board is for phpBB , not PHP in general. Read the manual: parent:: Hi, I'm writing a mod for phpBB! I still can't work this one out... However, this is basic php, and this board is not meant to learn php :) I think that's a little bit condescending, but you are the second person to express dis...
by $tring
Sat Apr 02, 2011 11:11 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Child class accessing parent data
Replies: 6
Views: 149

Re: Child class accessing parent data

class bar {    protected $config = array();    protected function get_config()    {       $this->config = array(          'a' => 1,          'b' => 2,       );    } } class foo extends bar {    public function display_config()    {       if (empty($this->config))       {          $this->get_config(...
by $tring
Sat Apr 02, 2011 10:34 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Child class accessing parent data
Replies: 6
Views: 149

Re: Child class accessing parent data

AmigoJack wrote:This board is for phpBB, not PHP in general. Read the manual: parent::
Hi, I'm writing a mod for phpBB!

I still can't work this one out...
by $tring
Sat Apr 02, 2011 8:22 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Child class accessing parent data
Replies: 6
Views: 149

Child class accessing parent data

Hi, Consider the following code, my question is in the comments of class b. I hope you understand! class a { function get_config() { $this->config = array( a => 1, b => 2 ); return; } } class b extends a { function display_config() { $a = // want to make this value of $this->config['a'] from parent ...
by $tring
Fri Apr 01, 2011 9:47 am
Forum: [3.0.x] MOD Writers Discussion
Topic: ACP Info File
Replies: 3
Views: 105

Re: ACP Info File

Thanks for the replies. I'll link the modules to admin permissions, and create a new category for them.
by $tring
Fri Apr 01, 2011 12:05 am
Forum: [3.0.x] MOD Writers Discussion
Topic: ACP Info File
Replies: 3
Views: 105

ACP Info File

I have added modules to the ACP, using the code below. All works fine, but I am wondering what do the following keys do? As you can see, I've left the values empty: 'auth' 'cat' Full code (which works fine) is: 'modes' => array( 'general' => array('title' => 'ACP_SPORTSBOOK_GENERAL', 'auth' => '', '...

Go to advanced search