FUD_OPT_2 [message #162666] |
Wed, 30 June 2010 17:18 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I have PATH_INFO enabled, but the PAGE_PAGER, drawn with the function tmpl_create_pager from draw_pager.inc.t does not work.
It commits a check like this:
if ($FUD_OPT_2 & 32768)
However, this returns false, eventhough i have PATH_INFO enabled in my admglobals.php
I wrecked one of the symlinks by misstake earlier so I repaired it today, but I have currently 3 FUD_OPT values.
If I in the above check change FUD_OPT_2 to FUD_OPT_1 it works.
Here are my FUD_OPTs, perhaps you could suggest to me what to change them too, or can I erase them or change them to something default to "repair" them perhaps?
$FUD_OPT_1 = 1739256863;
$FUD_OPT_2 = 1264554494;
$FUD_OPT_3 = 2626114;
The draw_pager.inc that I have also is "bugged" and outputs &start=N even in path_info mode, but I shall check that later against the newest version if perhaps mine is borked when it comes to that.
So, the question is:
Can I somehow alter my FUD_OPT_2 so that all the if ($FUD_OPT_2 & 32768) returns TRUE, or should I comment out that check in the 8 places it occurs?
Ginnunga Gaming
|
|
|
|
Re: FUD_OPT_2 [message #162668 is a reply to message #162667] |
Wed, 30 June 2010 18:13 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
PATH_INFO is enabled and working across the board, I can disable it in the global settings and enable it again no problem (if I disable it, the forum navigation and links etc stop working)
The only issue I bumped into was that the page_pager, that draws how many pages of threads you have in a forum, is not conforming to the PATH_INFO settings, and the check that it attempt to see if PATH_INFO is enabled isnt returning true.
I know nothing about that bit manipulation thing so I cant really tell what is wrong hehe.
Ginnunga Gaming
|
|
|
Re: FUD_OPT_2 [message #162669 is a reply to message #162668] |
Wed, 30 June 2010 18:18 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
It's this piece of code that doesn't validate:
if ($FUD_OPT_2 & 32768) {
$page_pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $frm->thread_count, '{ROOT}/sf/thread/'.$frm_id.'/1/', '/' ._rsid);
} else {
$page_pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $frm->thread_count, '{ROOT}?t=thread&frm_id='.$frm_id.'&'._rsid);
}
If I alter that and change FUD_OPT_2 to FUD_OPT_1 it works.
I checked the FUD_OPT_2 value, it alters when i enable/disable path_info in ACP
Ginnunga Gaming
|
|
|
|
Re: FUD_OPT_2 [message #162671 is a reply to message #162670] |
Wed, 30 June 2010 19:01 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Well, my if ($FUD_OPT_2 & 32768) doesnt return true, is there no way to calculate $FUD_OPT_2 = 1264554494; and see if it should validate, or if you can edit it, ors something?
Ginnunga Gaming
|
|
|
|
Re: FUD_OPT_2 [message #162673 is a reply to message #162672] |
Wed, 30 June 2010 19:26 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
When i echo $FUD_OPT_2 just above the function in thread.php.t I see the value 1264521726 (which is not the same as the value I see in my GLOBALS.php)
Argh, this is annoying hehe
Ginnunga Gaming
|
|
|
|
Re: FUD_OPT_2 [message #162675 is a reply to message #162674] |
Wed, 30 June 2010 20:12 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I removed and then re-created the 4 symlinks:
ln -s /home/ginnunga/FUDforum/include/GLOBALS.php /home/ginnunga/FUDforum/scripts/GLOBALS.php
ln -s /home/ginnunga/FUDforum/include/GLOBALS.php /home/ginnunga/public_html/forums/GLOBALS.php
ln -s /home/ginnunga/FUDforum/include/GLOBALS.php /home/ginnunga/public_html/forums/adm/GLOBALS.php
ln -s /home/ginnunga/FUDforum/include/GLOBALS.php /home/ginnunga/public_html/forums/apl/GLOBALS.php
Still reports the wrong value. Head is exploding =(
Ginnunga Gaming
|
|
|
Re: FUD_OPT_2 [message #162676 is a reply to message #162675] |
Thu, 01 July 2010 05:53 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
After 8 hours I have found the culprit. Well worth the time IMO.
In users.inc.t there is a row like this:
/* this should allow path_info & normal themes to work properly within 1 forum */
if ($o2 & 32768 && !($u->theme_opt & 4)) {
$o2 ^= 32768;
}
If I echo $o2 before and after that, i see that this is where it changes.
soooo, how to fix? =)
Ginnunga Gaming
|
|
|
|
|
|
|
|
|