SMF Shop

SMFShop => Completed Additions => Topic started by: voyager on September 10, 2007, 06:30:34 am

Title: Where do I download shop items
Post 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?
Title: Re: Where do I download shop items
Post by: J-xToF on September 19, 2007, 11:56:49 pm
http://www.daniel15.com/forum/index.php/board,35.0.html


Use package manger to add them.  =)
Title: Re: Where do I download shop items
Post by: Daniel15 on September 21, 2007, 10:26:37 am
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/ :)
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 06:34:34 am
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?
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 06:39:57 am
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.
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 06:41:43 am
Ok, but what exactly do I need to edit?
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 06:50:19 am
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: [Select]
, mem.shop_nameStyle

find and replace:

 
      
Code: [Select]
// 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:
 
      
Code: [Select]
// 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
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:03:54 am
My theme doesn't have that file.

www.deck-one.net
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:08:54 am
that just means it uses the default themes Boardindex.php file

check

forum/themes/default/

and it'll be in there
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:09:42 am
I just copied it to the theme I'm using.
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:14:24 am
I can't find it, here's my boardindex.

Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:16:06 am
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?
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:17:16 am
I copied the same exact file that was in my default folder.
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:21:45 am
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
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:22:34 am
Just edited my last post.
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:34:30 am
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.
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:38:28 am
Nope, no errors. Here's index.template:
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:39:02 am
post above edited

 me = :uglystupid2:
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:39:58 am
I don't understand your edited post.
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:41:26 am
forum/Sources

and grab the file called Boardindex.php and attach that i was asking for the right file but wrong location.
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 07:43:06 am
Ok, I really  hope this is the last one I need to attach.
Title: Re: Where do I download shop items
Post by: inkstains on September 23, 2007, 07:49:50 am
could be worse you could have waited a few days

heres the edited file replace your current Boardindex.php file in forum/Sources
Title: Re: Where do I download shop items
Post by: voyager on September 23, 2007, 04:06:09 pm
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?