Not sure, I definitely have it working on my site.  Looking at the
plugin page, the function code looks right to me...

Must be some typo in the function. Or the line in engine.php. (The
line break?). No ideas what. If you spot some typo let me know...
It's pretty straightforward php--you should be able to figure out what
is going on.

Cheers,
Dan

P.S. Oh, I think I know what it is. 3.16 uses the BOLTingroup
function. You need that. Stick this somewhere later in engine.php. It
will get overwritten when you upgrade.

function BOLTingroup($group, $id='') {
        global $BOLTid, $pagesPath, $BOLTmemberships, $BOLTadmin;
        if ($id == '') $id = $BOLTid;
        if (strpos(" ,$BOLTadmin,", ",$id,") && $BOLTadmin != '') return true;
        $BOLTgroupPages = BOLTconfig('BOLTgroupPages', 'group');
        $group = BOLTlowercase($group);
        if ($id == $BOLTid) return (strpos(",$BOLTmemberships,", ",$group,")
!== false);
        return (strpos("\n".BOLTloadpage("$BOLTgroupPages.$group")."\n",
"\n$id\n") !== false);
        }


On Wed, Sep 30, 2009 at 6:23 PM, Kevin <[email protected]> wrote:
>
>
> On Wed, Sep 30, 2009 at 2:22 PM, The Editor <[email protected]> wrote:
>>
>> On Wed, Sep 30, 2009 at 5:04 PM, Kevin <[email protected]> wrote:
>> > The section you are talking about:
>> >
>> > If you are using a version prior to 3.17, you can add the line manually,
>> > just after the section setting your membership information. Is that in
>> > the
>> > BOLTauth function?
>>
>> No it is in engine.php ~168.  Here:
>>
>> else {
>>        $BOLTmember = BOLTconfig('BOLTguestname', 'Guest');
>>        $BOLTmemberships = 'guest';
>>        }
>> if (function_exists('BOLTswitchUser')) BOLTswitchUser();   // in the
>> next release this line will be added, commented out by default.
>>
>
> Put the code in the index.php and added to the engine...
>
> else {
>     $BOLTmember = BOLTconfig('BOLTguestname', 'Guest');
>     $BOLTmemberships = 'guest';
>     }
> if (function_exists('BOLTswitchUser')) BOLTswitchUser();
>
> if (isset($BOLTsession['MSG'])) $msg = $BOLTsession['MSG'];
> if (isset($BOLTsession['QUERY'])) $query = $BOLTsession['QUERY'];
>
> When I try it, I get a blank page when I add the &myid=guest
>
> I put some debug code in it and it gets to the function... and the function
> is used every for every page,  so not sure why the blank page.
>
> I'm still using 3.15.
>
>>
>> By the way you could easily create a link like this to activate, or a
>> button of course:
>>
>> [[{p}&myid=guest|Guest View]] | [[{p}&myid=Bob&mygroups=editor|Editor Bob
>> View]]
>>
>> Cheers,
>> Dan
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to