SMF Shop
SMFShop => Completed Additions => Topic started by: voyager on September 10, 2007, 06:30:34 am
-
And how do I add them in? I've seen ones like change username color and put a line through it or italics, and all that stuff, so how do I add that?
-
http://www.daniel15.com/forum/index.php/board,35.0.html
Use package manger to add them. =)
-
SMFShop items are either normal packages you install via the Package Manager, or separate PHP files. If they're a package, install them via the Package Manager. If it's only a lump of code (or a .php file), you need to upload it to the Sources/shop/items directory. Once you've done this, you add it to your shop in the "Add/Edit/Delete Items" section in the admin panel.
The one you're talking about is the "Display Name CSS" item. You may download it from http://dev.dansoftaustralia.net/projects/namecss/ :)
-
Ok, I tried the CSS name thing, but on the who's online list, I don't have my red admin thing anymore. Is there a way I can get it to not show up on there?
-
don't know if this is what you're chasing but i think it it.
http://www.daniel15.com/forum/index.php/topic,1029.msg5763.html#msg5763
and edit those files just check what needs to be removed from them.
-
Ok, but what exactly do I need to edit?
-
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:
, mem.shop_nameStyle
find and replace:
// 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>';
replace with:
// 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>';
Make sure to backup Boardindex.php before you do anything
-
My theme doesn't have that file.
www.deck-one.net
-
that just means it uses the default themes Boardindex.php file
check
forum/themes/default/
and it'll be in there
-
I just copied it to the theme I'm using.
-
I can't find it, here's my boardindex.
-
you don't need to copy it anywhere leave it where it is in the default themes folder. your theme doesn't need it it is using the one from the default theme. is the Boardindex.php file you attached the correct one? from default themes folder?
-
I copied the same exact file that was in my default folder.
-
sorry bit of confusion there been up all night kinda tired
okay i just checked that file you attached and it doesn't contain any of the edits are you sure this came from the default themes folder? or are you sure your custom theme doesn't have a Boardindex.php file? do you mind checking.
cool forum btw just checked it out O0
-
Just edited my last post.
-
sorry Voyager my bad no sleep and no coffee makes homer go something something
actually my bad can you grab the Boardindex.php file from your sources directory not the default themes directory. my bad.
-
Nope, no errors. Here's index.template:
-
post above edited
me = :uglystupid2:
-
I don't understand your edited post.
-
forum/Sources
and grab the file called Boardindex.php and attach that i was asking for the right file but wrong location.
-
Ok, I really hope this is the last one I need to attach.
-
could be worse you could have waited a few days
heres the edited file replace your current Boardindex.php file in forum/Sources
-
My users online is fixed now, but I still have the colors and stuff on the threads view. How do I get it down to just posts?