SMFShop > Completed Additions

Where do I download shop items

<< < (2/5) > >>

voyager:
Ok, but what exactly do I need to edit?

inkstains:
it's in that thread i linked but basically if you just want the colours removed from the boardindex (who's online etc) just edit

Boardindex.php

find and remove:


--- Code: ---, mem.shop_nameStyle
--- End code ---


find and replace:

 
      
--- Code: ---// Edited for Display Name CSS item
$link = '<a ' . ((!empty($row['shop_nameStyle'])) ? ('style=\'' . str_replace('\'', '', $row['shop_nameStyle']) . '\' ') : '') . ' href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
--- End code ---


replace with:
 
      
--- Code: ---// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
--- End code ---



Make sure to backup Boardindex.php before you do anything

voyager:
My theme doesn't have that file.

www.deck-one.net

inkstains:
that just means it uses the default themes Boardindex.php file

check

forum/themes/default/

and it'll be in there

voyager:
I just copied it to the theme I'm using.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version