Search found 849 matches

by barrycarlyon
Sat May 19, 2018 1:45 pm
Forum: Extension Writers Discussion
Topic: External Database connection in an Extension: non-existent parameter "dbal.driver.class"
Replies: 3
Views: 401

Re: External Database connection in an Extension

GanstaZ wrote:
Sat May 19, 2018 1:44 pm
First option is the way to go. Second option is used in module classes, but may change if module system will be re-written.
Well thats the bonus question answered… what about the primary question :-D
by barrycarlyon
Sat May 19, 2018 1:12 pm
Forum: Extension Writers Discussion
Topic: External Database connection in an Extension: non-existent parameter "dbal.driver.class"
Replies: 3
Views: 401

External Database connection in an Extension: non-existent parameter "dbal.driver.class"

I've been following this thread: https://www.phpbb.com/community/viewtopic.php?f=461&t=2248926 Which is probably outdated. imports: - { resource: parameters.yml } services: dbal.extensions_db: class: %dbal.driver.class% calls: - [sql_connect, [%host%, %user%, %password%, %dbname%, %dbport%, false, t...
by barrycarlyon
Tue Apr 17, 2018 10:26 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

Re: user_add and fun with newest_user_colour

Derp I misread, been a long day, dunno where I got zip from…

I have linked my service and controller. That should be sufficient?

I don't have the stack trace as I can't replicate it in development, it only seems to do it in production where, of course, stack traces are disabled.
by barrycarlyon
Tue Apr 17, 2018 10:10 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

Re: user_add and fun with newest_user_colour

The controller that calls a service Controller: https://gist.github.com/BarryCarlyon/78dfdce06074f29a431e55288e9ec660 Service: https://gist.github.com/BarryCarlyon/d3327fd065eadbb358c58bae7dbc285f Had to remove the cURL calls and some other NDA/secrets I can prepare the rest of it into a whole zip b...
by barrycarlyon
Mon Apr 16, 2018 8:36 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

Re: user_add and fun with newest_user_colour

Hmm… That could be it. My function in ext/me/module/service/thing.php doesn't grab $config at all. It literally: include_once('includes/functions_user.php'); /* misc bits and pieces/some cURL calls */ $user_row = array( 'username' => SOMEUSERNAME, 'user_password' => phpbb_hash(time()), 'user_email' ...
by barrycarlyon
Mon Apr 16, 2018 3:36 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

Re: user_add and fun with newest_user_colour

Yes. My code does basically what the add user ext does The problem is that when two or more people are user_add'ed at the same time the result is: "duplicate entry for newest_user_colour" Again user_add is working fine with the assigned groups untile the lines of // set the newest user and adjust th...
by barrycarlyon
Sun Apr 15, 2018 2:50 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

Re: user_add and fun with newest_user_colour

I might be missing the point here, but it looks like you just want to grab the latest registered user?
Yes you have.

I am attempting to register new users.

The result is often "SQL_ERROR Duplicate Key newest_user_colour"
by barrycarlyon
Sun Apr 15, 2018 12:34 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 679

user_add and fun with newest_user_colour

This block of code in functions_user.php if ($user_row['user_type'] == USER_NORMAL || $user_row['user_type'] == USER_FOUNDER) { $config->set('newest_user_id', $user_id, false); $config->set('newest_username', $user_row['username'], false); $config->increment('num_users', 1, false); $sql = 'SELECT gr...
by barrycarlyon
Wed Apr 15, 2009 2:39 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Twitter Status
Replies: 14
Views: 3187

Re: [RC1] Twitter Status

Easy now

I'll see what I can do this week, pretty busy.....
by barrycarlyon
Sat Jan 24, 2009 3:12 pm
Forum: [3.0.x] MODs in Development
Topic: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere
Replies: 189
Views: 20947

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Heres a link for feeds everywhere, I recovered the files from my broken hd

http://listen.lsrfm.com/feeds_everywhere.zip
by barrycarlyon
Sat Jan 24, 2009 3:10 pm
Forum: [3.0.x] MOD Database Releases
Topic: Global Announcements
Replies: 360
Views: 77955

Re: Global Announcements

Auto mod is a beta, I'm not surprised it doesn't work....
by barrycarlyon
Thu Jan 15, 2009 4:16 pm
Forum: [3.0.x] Support Forum
Topic: FTP and Site
Replies: 3
Views: 97

Re: FTP and Site

If you havnt refreshed yet, you can open the files in the acp and copy them to your local copy and then reupload

The other option is to make your templates world writeable and then editing from the ACP alters the files rather than stores in the database.
by barrycarlyon
Thu Jan 15, 2009 4:08 pm
Forum: [3.0.x] Support Forum
Topic: Using ASP code instead of HTML ?
Replies: 3
Views: 261

Re: Using ASP code instead of HTML ?

For a start you need a ASP enabled server

Secondly it wont wont, as the code was run thru the PHP parser, so any ASP stuff will get treated as plain text

So it is not possible,
by barrycarlyon
Thu Jan 15, 2009 4:07 pm
Forum: [3.0.x] Support Forum
Topic: PHPBB3 unable to detect sql database
Replies: 10
Views: 298

Re: PHPBB3 unable to detect sql database

You should also seek support and advice for the server admins of the hosting service you use.
by barrycarlyon
Thu Jan 15, 2009 4:05 pm
Forum: [3.0.x] Support Forum
Topic: Very long URL of any forum and index page. Help!
Replies: 19
Views: 373

Re: Very long URL of any forum and index page. Help!

The SID is part of the phpBB session manager so it cannot be removed.

Go to advanced search