Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Daniel15

Pages: 1 ... 67 68 [69] 70 71 72
1021
General SMFShop Discussion / Re: How was this solved????
« on: March 04, 2006, 03:32:11 pm »
Hi,
 It sounds like you missed one of the lines. Open Sources/shop/Shop.php and search for:
Code: [Select]
include "Sources/shop/item_engine.php";
Replace with:
Code: [Select]
include "$boarddir/Sources/shop/item_engine.php";

1022
Well, I've done an item that allows you to change the way the user's title is displayed. This includes changing the username colour, or making it italic, or whatever. I actually wrote it a while ago, and just rediscovered the code for it :)

Please see http://www.dansoftaustralia.net/ for more information on the item.

1023
Completed Requests / Re: Shop Button For SMFone
« on: March 03, 2006, 06:21:48 pm »
Here's the button: http://www.daniel15.com/forum/index.php?topic=49.0
Hope it works ;) (I haven't tested it myself, but it should work).

1024
Completed Shop Buttons / Button for SMFone theme
« on: March 03, 2006, 06:20:36 pm »
This is a shop button for the 'SMFone' theme by A.M.A (one of Simple Machine's Lead Graphic Designers). This theme is like the SMF 1.1RC2 default theme, in the fact that it uses text buttons. However, these buttons have small images next to them. Since I don't know what image to use, I'm just using the 'Home' button image.

Code modifications:
Open Themes/amber/index.template.php
Find:
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" /><a class="menub" href="', $scripturl, '?action=calendar">' , $txt['calendar24'], '</a>', $context['menu_separator'];

Add After:
Code: [Select]
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="Shop" /><a class="menub" href="', $scripturl, '?action=shop">Shop</a>', $context['menu_separator'];

Your shop button should now be working! To show the amount of credits a user has next to their posts, please see the How to get shop working in other themes topic.

1025
Thank you for posting that code. Here's the code for the shop button:
Code: [Select]
// The shop
echo '
<a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 2px 0;" border="0" />' : "Shop"), '</a>', $context['menu_separator'];
That should work. Please tell me if it doesn't.

Quote
This is kind of unrelated, but is it possible to not use a decimal point for money amount?  I could probably figure it out on my own if knew which files to edit
SMFShop doesn't show the decimal places, although it does store all the money amounts as decimal. Only certain sections show the money amount as decimal.

1026
Completed Requests / Re: Shop Button For SMFone
« on: March 02, 2006, 05:37:38 pm »
Hi,
 Sorry for the delay. I'll try to make this button tommorow. It does look fairly easy to do, I'd just need to find an image to suit. Once I make the button, I'll email you, and post it here.

I might try that theme, it looks really nice :D

1027
General SMFShop Discussion / Re: SMFShop & MKPortal
« on: March 02, 2006, 05:35:42 pm »
Hmmm... That's really weird (I've never noticed that before).

I think it's just a simple mistake in the HTML code of the shop. I'll have a closer look at it on Friday.

1028
General SMFShop Discussion / Re: Item suggestion
« on: February 25, 2006, 07:21:57 am »
OK, I'll see what I can do....

I worked on a name CSS changing item (so you could do the 'Add colour to your name' and 'Make your name glow'), I just need to find it.

1029
General SMFShop Discussion / Re: Are time limited items possible?
« on: February 25, 2006, 07:20:29 am »
Unfortunately, it would need quite a bit of coding :(

1030
Completed Requests / Re: Shop Button for Modified Babylon Theme Required
« on: February 25, 2006, 07:18:15 am »
Hi,
 Glad to hear that you can make the button yourself. Please post it here when you are done ;)

You'll need to edit your Index.template.php file to include the button. Search the file for a 'calendar' section, and post it here. I'll give you the code needed for the shop button. Also, to show the amount of points that users have next to their posts, please use the code in the 'How to get shop working in other themes' topic.

--daniel15

1031
General SMFShop Discussion / Re: How was this solved????
« on: February 18, 2006, 03:54:29 pm »
Well, here's some parts of the solution I sent to that user:
Quote
Open Sources/shop/ShopAdmin.php and find this line (line 162):
include "Sources/shop/items/$file";

Replace it with this:
include "$boarddir/Sources/shop/items/$file";

Also, in the same file, Find this (line 157):
include "Sources/shop/item_engine.php";

Replace with:
include "$boarddir/Sources/shop/item_engine.php";

And:
Quote
......try opening Sources/shop/ShopAdmin.php and changing:

include "Sources/shop/item_engine.php";
include 
"Sources/shop/items/{$_POST['item']}.php";


to:

include "$boarddir/Sources/shop/item_engine.php";
include 
"$boarddir/Sources/shop/items/{$_POST['item']}.php";

Also, open Sources/shop/Shop.php and change
require("Sources/shop/item_engine.php");
to
require("$boarddir/Sources/shop/item_engine.php");

Also, change:
require("Sources/shop/items/{$row['module']}.php");
to:
require("$boarddir/Sources/shop/items/{$row['module']}.php");

Hopefully, that's the whole solution (I had to go through our support ticket, and the live chat log as well)

Please tell me if this doesn't work for you
 --daniel15

1032
I believe that you would have to manually edit that into the Helios theme.  There is a post on the SMF boards that should help you
It's OK. I made a reply to his other post, and now have a button for the Helios theme in the Shop Buttons section.

1033
General SMFShop Discussion / Re: Global Mods able to edit Credits
« on: February 17, 2006, 04:01:11 pm »
how can I allow my Global Mods to edit Credits?
Sorry, but there currently is no way to do this. You may instead give them lots of money, and then they can send money to people :D

1034
SMFShop Announcements / How to get shop working in other themes
« on: February 17, 2006, 03:59:26 pm »
Well, if you use a theme other than the default, you'll be upset to find out that SMFShop doesn't put a shop button in that theme. Also, it doesn't display the amount of credits a user has next to posts that they make. But, don't worry! We can fix that!

The first thing to do is request a shop button. Please read the topic entitled 'How to request a Shop button for your theme', and once you have done that, make a new post in the 'Shop Button Requests' subforum. Please, read the How-to topic first!

Next, we need to edit the theme to put the amount of credits next to every post a user makes. To do so, just follow these steps:
Open /themes/[themename]/Display.template.php
Find:
Code: (php) [Select]
                        // Show how many posts they have made.
                        echo '
                                                                ', $txt[26], ': ', $message['member']['posts'], '<br />
                                                                <br />';

SMFShop 3.0 or higher, or development version (revision 37 or higher), replace with:
Code: (php) [Select]
            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code

SMFShop 2.3 or lower, replace with:
Code: (php) [Select]
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD
           

//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code

//BEGIN SMFShop MOD 2.2 (Build 10) code
echo "<a href='$scripturl?action=shop;do=sendmoney;member={$message['member']['username']}'>Send Money to {$message['member']['name']}</a><br />";
//END SMFShop code

Then, the amount of credits a user has, as well as a link to their inventory, will be seen next to every post they make.

If you can't find this segment of code, please make a new post here, stating the name of your theme, and a link to your forum
Thanks for reading! :D
 --daniel15

1035
Completed Shop Buttons / Button for 'Helios Multi' theme (Bloc)
« on: February 17, 2006, 03:46:03 pm »
This is a shop button for the 'Helios Multi' theme by Bloc. It was made using the Bloc Zone Button Generator.

The file for the button is attached to this post. Please save this to Themes/Helios_Multi/images/shop.gif

Theme Modifications
Now, we need to add the button to the theme. First, go into your SMF Administration Panel. Click on 'Theme and Layout Settings' and then click on 'Helios Multi'.  There should be a section for additional buttons, as shown below:

The information for the button is:
Use button 1: Ticked
Path: shop.gif
Link: index.php?action=shop
Show for members only? Ticked

Then, your shop button should be working :D

Pages: 1 ... 67 68 [69] 70 71 72