All right. Curiosity got the best of me. I went ahead and tested it.
Just change the whole if statement to this:

if ((!isset($_GET['p'])) || ($_GET['p'] == '')) $pageLink =
BOLTconfig('BOLTdefaultPage', 'main');
else $pageLink = $_GET['p'];

I just tested it. Works great!

Cheers,
Dan


On Wed, Sep 10, 2008 at 9:32 PM, The Editor <[EMAIL PROTECTED]> wrote:
> According to line 55 of the engine.php script, you need to do
> $defaultPage = 'notmain'; in your index.php before calling the engine.
>  Ok, but not ideal.
>
> The line should be changed from
>
>        BOLTdefault($defaultPage, 'main');
>
> to
>
>        BOLTconfig('BOLTdefaultPage', 'main');
>
> Could you give it a test and see if this doesn't do what you want?  If
> so, I'll make the change to the core.  Thanks in advance for saving me
> a bit of work.
>
> Cheers,
> Dan
>
>
> On Mon, Sep 8, 2008 at 7:29 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>>
>> On 17 ago, 20:52, "The Editor" <[EMAIL PROTECTED]> wrote:
>>
>>> > (By the way, a configurabledefaultpageinstead of "main" would be
>>> > great. I remember there's a hack to achieve it, in other thread.)
>>>
>>> I think you can just put the following in your site.configpage:
>>>
>>> defaultPage: notmain
>>
>> That never worked for me. I tried with several BW versions. Now I use
>> 2.31. No matter what page I configure, I always get Main by default.
>> Does it really work yet or maybe there's something wrong with my
>> installation?
>>
>> Thanks
>>
>> Marcos
>>
>> --
>> http://alinome.net
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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