I wanted to post this for a long time, today is the day:
1. Avatar Gallery Dropdown fix
Make the Dropdown keep it's selection when a new gallery is picked:
CODE
--- sources/action_public/usercp.php (v2.1.7)
@@ -2790,9 +2790,9 @@
$av_gals = "<select name='av_cat' class='forminput'>\n";
foreach( $av_categories as $cat )
{
- $av_gals .= "<option value='".$cat[0]."'>".$cat[1]."</option>\n";
+ $av_gals .= "<option value='".$cat[0]."'".($cat[0] == urlencode($av_cat_selected)?' selected':'').">".$cat[1]."</option>\n";
}
$av_gals .= "</select>\n";
@@ -2790,9 +2790,9 @@
$av_gals = "<select name='av_cat' class='forminput'>\n";
foreach( $av_categories as $cat )
{
- $av_gals .= "<option value='".$cat[0]."'>".$cat[1]."</option>\n";
+ $av_gals .= "<option value='".$cat[0]."'".($cat[0] == urlencode($av_cat_selected)?' selected':'').">".$cat[1]."</option>\n";
}
$av_gals .= "</select>\n";
2. Maintain the RSS-Export order as defined in ACP
If you define more than just one RSS feed to be exported from your website the order of the Feed is critical to define: Firefox only can 'subscribe' to the first feed, so do most browsers which detect embedded RSS support.
The following fix here puts the feeds in the order you define.
Note: you need to rebuild the RSS cache at the ACP in order to see your changes.
CODE
--- sources/action_admin/rssexport.php (v2.1.7)
@@ -150,7 +150,7 @@
// Go loopy
//--------------------------------------------
- $this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'rss_export' ) );
+ $this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'rss_export', 'order' => 'rss_export_id' ) );
$outer = $this->ipsclass->DB->exec_query();
while( $row = $this->ipsclass->DB->fetch_row( $outer ) )
@@ -150,7 +150,7 @@
// Go loopy
//--------------------------------------------
- $this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'rss_export' ) );
+ $this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'rss_export', 'order' => 'rss_export_id' ) );
$outer = $this->ipsclass->DB->exec_query();
while( $row = $this->ipsclass->DB->fetch_row( $outer ) )
I hope both patches make it into the next release, since they are quite simple to integrate and fix two minor annoyances (well, for me they do
best,
frame