Author Topic: Where do I download shop items  (Read 17849 times)

Offline voyager

Where do I download shop items
« 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?

Offline J-xToF

Re: Where do I download shop items
« Reply #1 on: September 19, 2007, 11:56:49 pm »

Offline Daniel15

Re: Where do I download shop items
« Reply #2 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/ :)

Offline voyager

Re: Where do I download shop items
« Reply #3 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?

Offline inkstains

Re: Where do I download shop items
« Reply #4 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.

Offline voyager

Re: Where do I download shop items
« Reply #5 on: September 23, 2007, 06:41:43 am »
Ok, but what exactly do I need to edit?

Offline inkstains

Re: Where do I download shop items
« Reply #6 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

Offline voyager

Re: Where do I download shop items
« Reply #7 on: September 23, 2007, 07:03:54 am »
My theme doesn't have that file.

www.deck-one.net

Offline inkstains

Re: Where do I download shop items
« Reply #8 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

Offline voyager

Re: Where do I download shop items
« Reply #9 on: September 23, 2007, 07:09:42 am »
I just copied it to the theme I'm using.

Offline voyager

Re: Where do I download shop items
« Reply #10 on: September 23, 2007, 07:14:24 am »
I can't find it, here's my boardindex.


Offline inkstains

Re: Where do I download shop items
« Reply #11 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?

Offline voyager

Re: Where do I download shop items
« Reply #12 on: September 23, 2007, 07:17:16 am »
I copied the same exact file that was in my default folder.
« Last Edit: September 23, 2007, 07:20:45 am by voyager »

Offline inkstains

Re: Where do I download shop items
« Reply #13 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

Offline voyager

Re: Where do I download shop items
« Reply #14 on: September 23, 2007, 07:22:34 am »
Just edited my last post.