Skip to content

Commit

Permalink
! Attempting to fix the missing star images on membergroup ranks. (sm…
Browse files Browse the repository at this point in the history
…f11_to_wedge.xml, smf2_to_wedge.xml, smf2RC_to_wedge.xml)

! Also fixing online colors for SMF 1.1. (smf11_to_wedge.xml)

Signed-off-by: Nao <nao@wedge>
  • Loading branch information
Nao committed Mar 29, 2014
1 parent 8c2ced7 commit ebc715a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions smf11_to_wedge.xml
Expand Up @@ -409,6 +409,17 @@
<options>
<replace>true</replace>
</options>
<preparsecode>
if (!empty($row['online_color']))
{
if ($row['online_color'] == '#FF0000') // admin's shiny red?
$row['online_color'] = '#d2653a'; // subdued red is better.
if ($row['online_color'] == '#0000FF') // global mod's bright blue?
$row['online_color'] = '#c18933'; // light brown is better.
}
if (!empty($row['stars']))
$row['stars'] = str_replace('#star', '#rank', $row['stars']);
</preparsecode>
<query>
SELECT
ID_GROUP AS id_group, groupName AS group_name, '' AS description,
Expand Down
2 changes: 2 additions & 0 deletions smf2RC_to_wedge.xml
Expand Up @@ -522,6 +522,8 @@
if ($row['online_color'] == '#0000FF') // global mod's bright blue?
$row['online_color'] = '#c18933'; // light brown is better.
}
if (!empty($row['stars']))
$row['stars'] = str_replace('#star', '#rank', $row['stars']);
</preparsecode>
<query>
SELECT
Expand Down
2 changes: 2 additions & 0 deletions smf2_to_wedge.xml
Expand Up @@ -522,6 +522,8 @@
if ($row['online_color'] == '#0000FF') // global mod's bright blue?
$row['online_color'] = '#c18933'; // light brown is better.
}
if (!empty($row['stars']))
$row['stars'] = str_replace('#star', '#rank', $row['stars']);
</preparsecode>
<query>
SELECT
Expand Down

0 comments on commit ebc715a

Please sign in to comment.