Search found 81 matches

by microUgly
Fri May 02, 2008 1:18 am
Forum: [3.0.x] MOD Writers Discussion
Topic: ACP Mod - Where should generated text files be stored?
Replies: 14
Views: 570

Re: ACP Mod - Where should generated text files be stored?

Nah, store is forbidden also.

I've started a new thread that looks at the overall problem - http://www.phpbb.com/community/viewtopi ... 1&t=930335
by microUgly
Thu May 01, 2008 12:17 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Method: best way to write datafiles for charting?
Replies: 0
Views: 174

Method: best way to write datafiles for charting?

I'm writing an ACP mod to display stats for the forum much like Google Analytics. I'm using Open Flash Chart for the charts. I have the guts of the charting code working on some stand-alone pages and now I'm working to port it across into a functioning ACP module. The catch I'm running into is that ...
by microUgly
Wed Apr 30, 2008 11:15 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: ACP Mod - Where should generated text files be stored?
Replies: 14
Views: 570

Re: ACP Mod - Where should generated text files be stored?

Brf wrote:Why dont you just create a new folder?
I didn't want to create unneccessary extra steps if an appropriate area already exists. I'm thinking I might need to step back and look at the problem again. Writing a text file isn't going to be a good solution in a multi-user system.
by microUgly
Wed Apr 30, 2008 6:26 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Return invalid usernames
Replies: 3
Views: 249

Re: Return invalid usernames

I'm not sure if you can do it using just a query, but you can query the database once to get all the valid usernames, then use PHP to loop over the the array of questionable names and check if each is in the array of mysql results. You can use in_array() to do the check.

I hope that makes sense.
by microUgly
Wed Apr 30, 2008 5:17 am
Forum: [3.0.x] MOD Writers Discussion
Topic: ACP Mod - Where should generated text files be stored?
Replies: 14
Views: 570

ACP Mod - Where should generated text files be stored?

I have an ACP module that needs to generate some text files. The url for the text files will then be loaded by flash object in the ACP. The files will be constantly overwritten. Where is the best place to write these files to? I was thinking the cache, since it's the only folder I know of that will ...
by microUgly
Tue Apr 22, 2008 11:08 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: How to refresh ACP module style?
Replies: 4
Views: 534

Re: How to refresh ACP module style?

Thanks. I thought that might have been a little excessive, but if it's the only way...
by microUgly
Tue Apr 22, 2008 6:34 am
Forum: [3.0.x] MOD Writers Discussion
Topic: How to refresh ACP module style?
Replies: 4
Views: 534

How to refresh ACP module style?

I'm writing an ACP module and have loaded a clean template to work with. Now I've loaded it the changes I make don't appear, I suspect, because the template file is obviously cached. Is there a way to clear the ACP template cache like you can with the normal forum template?
by microUgly
Mon Apr 21, 2008 6:04 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Re: Change relative path to absolute paths

Heheh - that was a little exciting :) For reference, don't change the BASE. It stops you from being able to log into the "administration control panel"--every attempt sends you back the forum front page. I had to modify the cached copy of the forum so I could login properly. Any other idea...
by microUgly
Mon Apr 21, 2008 2:53 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Re: Change relative path to absolute paths

It's a shame to have to work around this issue in the php code, but base is easily implemented and worked a charm, so I'll stick with that. Thanks, Paul. I keep thinking this issue is a problem with the way phpBB handles paths, but I guess my situation is possibly the one and only situation that wou...
by microUgly
Sun Apr 20, 2008 9:58 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Re: Change relative path to absolute paths

I define it right before page_header(). I can't really define it any later as I need to have page_header() use it for all URLs it writes. My mod isn't complex. It's basically a copy of faq.php. But because it's configured as a 404 page, the paths break when it loads for a requested (invalid) URL tha...
by microUgly
Thu Apr 17, 2008 11:39 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Re: Change relative path to absolute paths

After upgrading to 3.0.1 this solution doesn't work properly. I get the following error: [b]Fatal error:[/b] Class 'template_compile' not found in [b][i][PATH][/i]/includes/template.php[/b] on line [b]226[/b] This is my code to reset the path $phpbb_root_path = "/"; If I take it out, the p...
by microUgly
Thu Apr 10, 2008 11:15 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Re: Change relative path to absolute paths

Thankyou. I would never have thought to do that.
by microUgly
Thu Apr 10, 2008 6:52 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Change relative path to absolute paths
Replies: 8
Views: 2779

Change relative path to absolute paths

I've created an error page (./error.php) using the phpBB template to handle common errors such as 404, 400, 500, etc. It's just to make my forum feel prettier. The page is obviously loaded by apache. All local URLs in phpBB (including those for styles sheets, etc) have a relative path (i.e. they all...
by microUgly
Sun Apr 06, 2008 11:55 pm
Forum: [3.0.x] Support Forum
Topic: SQL error listing forums on home page
Replies: 1
Views: 99

Re: SQL error listing forums on home page

Hmmm... ok. The error is in my preMadeSearch mod that displays active and new posts on the home page (it's basically a copy of search.php) - so I guess I can't expect support for that :) It's very strange though as the Mod has been working for many months. I still don't know what could have changed.
by microUgly
Sun Apr 06, 2008 11:43 pm
Forum: [3.0.x] Support Forum
Topic: SQL error listing forums on home page
Replies: 1
Views: 99

SQL error listing forums on home page

I'm not sure if other users on my forum are experiencing this, but I'm getting an error when visiting the home page of my forum: General Error SQL ERROR [ mysql4 ] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')...

Go to advanced search