Search found 22 matches

by Gingah
07 Jun 2009, 10:57
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Hmmm, so ideally it is preferable to keep it <?php rather than the shorter version? I would, but upon doing so, I get this error: [quote="Banana Template]Parse error: parse error in index.php(7) : eval()'d code on line 51[/quote] It works with short tags ( eval("?>" . $banana->banana ...
by Gingah
05 Jun 2009, 08:56
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Well put me in a pipe and smoke me! First I got an eval error, but when I replaced <?php with just <? it worked! The site now fully parses the replacement value within the template-system, and outputs as it should, with the phpBB functions. That's really great man, thanks for the effort to help guys...
by Gingah
04 Jun 2009, 21:06
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Just to temporarily avoid killing phpBB's $template, I changed it to this: template.class.php : <? class Banana_Engine { public $banana = ''; public function load_banana($filepath) { $this->banana = file_get_contents($filepath); } public function replace_banana($var, $content) { $this->banana = str_...
by Gingah
04 Jun 2009, 19:08
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Thing is, that if I disable the template, and just put the replacement value instead of the replacement key (PostNews() instead of {jall}) into template.html (and rename it to .php), it returns completely, regardless of included files. And the template-system does not contain $db. Is the template-sy...
by Gingah
04 Jun 2009, 14:42
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Ok, changed template.class.php to: <? class Template_Engine { public $template = ''; public function load($filepath) { $this->template = file_get_contents($filepath); } public function replace($var, $content) { $this->template = str_replace("{$var}", $content, $this->template); } public fu...
by Gingah
02 Jun 2009, 21:14
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

I can't for the life of me find out which part of the simple template system is interfering. If I comment out phpBB's code in my header, it loads, if I access the page without the template system, it loads. Even the phpBB forum loads and works flawlessly. Might be a long shot, but am I wrong assumin...
by Gingah
02 Jun 2009, 09:17
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Could it be a confused error? For example that phpBB uses a template-function that uses some of the same variable-names, and then replaces some part that phpBB also replaces, and therefore kills some phpBB function.
by Gingah
01 Jun 2009, 21:02
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

No, can't find any reference to it outside of phpBB. The really odd thing though, is that the simple template-system causes the error to appear (and it has nothing that interferes with a MySQL-statement or $db).
by Gingah
01 Jun 2009, 12:57
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Hmmm, then I'm not really sure what crashes it. I mean, Call to a member on a non-object undoubtedly is a php-error (not phpBB specific), but I'm unsure what causes it, and google gave no straight answers about what regular causes of the error is.
by Gingah
01 Jun 2009, 09:33
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

I had a tought when I woke up: Is it possible that the MySQL connections are interfering with each other? The site and phpBB are running different databases, and different connections (phpBB uses $sql, the site uses $dbh) and neither are closed until at the end of the site.
by Gingah
31 May 2009, 18:10
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Me too, especially since it works when I exclude the template system. If it helps, the template system works like this: template.class.php: <? class Template_Engine { public $template_engine; function load($filepath) { $this->template = file_get_contents($filepath); } function replace($var, $content...
by Gingah
31 May 2009, 14:54
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Running phpBB 3.0.4, unmodified. Cache.php looks like this: <?php /** * * @package acm * @version $Id: cache.php 8691 2008-07-28 13:26:20Z acydburn $ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ if (!defined('IN_...
by Gingah
31 May 2009, 14:11
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

Re: What defines a member to phpBB

Please enable DEBUG and DEBUG_EXTRA in config.php. For some reason your DB connection is not working, perhaps you have the wrong connection details set in config.php? I considered that, but everything else on the page loads (the mysql-user is omnious, and can access all databases I have). I enabled...
by Gingah
31 May 2009, 12:50
Forum: phpBB 3.0.x "Olympus" discussion
Topic: What defines a member to phpBB
Replies: 28
Views: 22342

What defines a member to phpBB

As the title says, I need to find out how phpBB defines a member to it's functions. Or really, this might actually be a php-issue. After putting my site in a template-system, I get an error from phpBB saying: Fatal error: Call to a member function sql_query() on a non-object in E:\xampp\htdocs\bambo...
by Gingah
28 May 2009, 20:29
Forum: phpBB Development discussion
Topic: UID and Bitfield
Replies: 16
Views: 9534

Re: UID and Bitfield

Thanks, thats the prequisite that I was missing. However, do phpBB have a built-in function for parsing html as well, or would I need to make that manually? The function as it stands now is excellent, for inserting bbcode formatted text into the database, but I need to turn xhtml into bbcode aswell.

Go to advanced search