Search found 26 matches

by KFCSpike
Thu Apr 10, 2008 8:32 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Parsing bbcode
Replies: 6
Views: 348

Re: Parsing bbcode

Looking again at my old code, I think you need some CSS from \styles\prosilver\theme\content.css
Look for

Code: Select all

/* BB Code styles
in there.

(if you use other styles, you would need to check what one your User is using)
by KFCSpike
Thu Apr 10, 2008 8:10 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Parsing bbcode
Replies: 6
Views: 348

Re: Parsing bbcode

I could be wrong (usually am), but I think you need to include some CSS into your page as well for the quote bbcode to show properly.

Sorry I can't be more specific - was trying this a while back so speaking from memory.
by KFCSpike
Fri Mar 07, 2008 7:17 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: submit_post - spoof auth?
Replies: 13
Views: 2507

Re: submit_post - spoof auth?

I finally managed to get this working - it looks like you have to set $user->data['user_permissions'] as well as the other details before calling $auth->acl($user->data) The only way I could see to achieve this was to include an sql query to grab those permissions for the 'bot'. My updated code is s...
by KFCSpike
Fri Feb 29, 2008 7:52 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: submit_post - spoof auth?
Replies: 13
Views: 2507

Re: submit_post - spoof auth?

One problem that arises though is if you want to submit a post that the current user has no posting permission for. It will then submit the post, but mark it as unapproved. For this reason, you have to backup $auth and run a new $auth->acl($user->data); ;) I'm trying that in my script but posts sti...
by KFCSpike
Thu Dec 13, 2007 5:48 pm
Forum: phpBB Discussion
Topic: Discuss: phpBB3 Gold Released
Replies: 335
Views: 78787

Re: Discuss: phpBB3 Gold Released

Big Thank you to all the team. :D
by KFCSpike
Tue Dec 11, 2007 4:14 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Redirect to last viewed page on login
Replies: 4
Views: 237

Re: Redirect to last viewed page on login

Maybe you should call your function earlier and assign the result to a variable rather than trying to call it inside the <input> part? I use: $returnAddress = $_SESSION['PHP_SELF']; $result .= '<input type="hidden" name="redirect" value="'.$returnAddress.'">'; ($result is used to return the html for...
by KFCSpike
Tue Dec 11, 2007 3:49 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Redirect to last viewed page on login
Replies: 4
Views: 237

Re: Redirect to last viewed page on login

amochohan wrote:
The code i'm using to redirect is

Code: Select all

<input type="hidden" name="redirect" value=" . curPageName(); . " />
Does anyone have any ideas?
Should that not be:

Code: Select all

<input type="hidden" name="redirect" value=" . curPageName() . " />
(No semicolon after the function call)
by KFCSpike
Tue Dec 04, 2007 8:40 pm
Forum: phpBB Discussion
Topic: Another RC release?
Replies: 51
Views: 2973

Re: Another RC release?

Not to be the cynical one, here, but from my understanding of development cycles (that's to say, how I would and have done them) RC releases aren't your beta releases. They stand for "just before" live releases. They are suppose to be the polished up code to take out the quick bugs that were overlo...
by KFCSpike
Mon Oct 15, 2007 8:17 pm
Forum: phpBB Discussion
Topic: Congratulations on RC7 Release!
Replies: 120
Views: 12667

Re: Congratulations on RC7 Release!

I was dreading the upgrade from RC5 to RC7, after seeing all the problems other people had been having over the last day or two, but I'm pleased to say it seems to have worked perfectly at the first attempt. I used the "changed files" option & working slowly (to make sure I did everything correctly...
by KFCSpike
Mon Oct 08, 2007 6:30 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Cron scripts & SID
Replies: 2
Views: 390

Re: Cron scripts & SID

I've had a good look at session_begin() but still having probs. My code should work perfectly when run using a browser, but I am running it as a true cron script on the server (as opposed to cron.php in phpBB3). I'm prolly missing something silly, or maybe its a security thing that stops what I am t...
by KFCSpike
Fri Sep 28, 2007 6:46 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Cron scripts & SID
Replies: 2
Views: 390

Cron scripts & SID

Where does phpBB3 get the session ID from?
Does it generate its own?

A cron script I am writing is using

Code: Select all

session_name('cron123');
session_start();
before I call the phpBB3 stuff - I thought that phpBB3 would then use 'cron123' as the SID?

( btw - session.auto_start is off in my php.ini)
by KFCSpike
Fri Sep 28, 2007 6:32 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: attachments to show up on non forum pages
Replies: 4
Views: 562

Re: attachments to show up on non forum pages

PM sent - I don't think the code will be of interest to anyone else (and its not been tested very well so might be buggy!) so thought it best not to post it in the thread.
Hope it helps you work out your own requirements.
by KFCSpike
Wed Sep 26, 2007 5:05 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: attachments to show up on non forum pages
Replies: 4
Views: 562

Re: attachments to show up on non forum pages

I'm doing similar but I don't need attachments - I only use inline images (i.e. Img bb code). If this is enough I can let you see my code. If this is not enough and you really need genuine attachments to show, I suggest you have a look at viewtopic.php and look at the code around: parse_attachments(...
by KFCSpike
Wed Sep 26, 2007 4:43 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [solved] grabbing links from a phpBB3 page
Replies: 2
Views: 310

Re: grabbing links from a phpBB3 page

Thanks AJD, you nearly had it spot on and your reply helped. BUT - It looks like the last dash needs to be at the end or preg_match_all thinks its looking for a range between the underscore and the hash ( _-# ) and reports that this is an invalid range. Changing to preg_match_all("|href\=\"?'?`?([[:...
by KFCSpike
Tue Sep 25, 2007 6:57 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [solved] grabbing links from a phpBB3 page
Replies: 2
Views: 310

[solved] grabbing links from a phpBB3 page

The phpBB3 project I am working on needs me to load a page <html generated by phpBB3>, then get the links from that page. I use this // find all the urls preg_match_all("|href\=\"?'?`?([[:alnum:]:?=&@/;._-]+)\"?'?`?|i", $html, &$matches); And it works a treat except for the post links that phpBB3 ge...

Go to advanced search