Re: How do I stop BP from overriding default parameters passed to the template loop?
I’m at a convenient but vaguely unsatisfying stopping point in this saga.
I ended up nuking all the lovely AJAX buttons on the /activity page in favor of HTML form buttons like this one
<li style="float:left;" <?php if ($_POST["activity-tab"] == "friends") { echo 'class="selected"'; }?>">
<form action="" method="post">
<input name="activity-tab" value="friends" type="hidden" />
<input style="border:0px" type="submit" value="My Friends" />
</form>
</li>
Then later include()ing a custom stream and resetting the $_POST value to empty:
...
<?php if( $_POST["activity-tab"] == "friends" ) { $_POST["activity-tab"] = ""; include( 'activity-loop-friends.php' ); } ?>
...
The ideal solution here would be to somehow rewrite the cookie/display functions in global.js to “forget” the user’s last selected tab, but I was not smart enough to figure that one out…