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.


Topics - Daniel15

Pages: 1 ... 3 4 [5]
61
Completed Shop Buttons / Button for 'Amber' theme (Bloc)
« on: February 04, 2006, 07:27:26 am »
This is a shop button for the 'Amber' theme by Bloc. This theme is like the SMF 1.1RC2 default theme, in the fact that it uses text buttons. So, we don't need a shop button image for it, we just need to modify the code

Code modifications:
Open Themes/amber/index.template.php
Find:
Code: [Select]
if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login')))
REPLACE with:
Code: [Select]
if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login', 'shop')))

(your line may not look exactly the same, especially if you've installed other MODs. The important thing is that you add 'shop' to the end, as shown)

Find:
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo $tab1, $ca== 'calendar' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">'.$txt['calendar24']. '</a></td>';

Add After:
Code: [Select]
echo $tab1, $ca== 'shop' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">Shop</a></td>';

Your shop button should now be working!

62
Note: This was for an OLD version of SMFShop (1.31). The contents of this post no longer apply to versions 1.31 and higher.

If you are getting an error when clicking on a 'View Inventory' link (something like 'ERROR: The member you typed ('1') doesn't exist!'), then you need to change  some code in your Display.template.php file.

Open Display.template.php
Find the old Inventory link. It will probably look something like this:
Code: [Select]
            //BEGIN SMFShop MOD 1.1 (Build 4) CODE
            echo "<a href='$scripturl?action=shop;do=invother2;membertype=id;member={$message['member']['id']}'>View Inventory</a><br>";
            //END SMFShop MOD 1.1 code

Replace it with the new code. This code is used since SMFShop 1.31 and looks something like this:
Code: [Select]
//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
This is due to a change in how the member name is passed to the View Inventory page (it used to be passed by ID, but is now passed by name).

63
Completed Shop Buttons / Shop button for Cerberus theme by Bloc
« on: January 14, 2006, 02:38:56 pm »
This is a shop button for the 'Ceberus' 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/cerberus/images/english/shop.gif

Code modifications:
Open Themes/cerberus/Index.template.php
Find:
Code: [Select]
        if ($context['allow_calendar'])
                echo '
                                <a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

Add after:
Code: [Select]
                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'];

Then, your shop button should be working :D
Quote

64
Completed Shop Buttons / Shop button for 'Apollo' theme by Bloc
« on: January 06, 2006, 09:25:07 am »
This is a shop button for the 'Apollo' 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/apollo/images/english/shop.gif

Code modifications:
Open Themes/apollo/Index.template.php
Find:
Code: [Select]
        // The [calendar]!
        if ($context['allow_calendar'])
                echo '
                                <a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

Add after:
Code: [Select]
                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'];

Then, your shop button should be working :D

65
If you're having the problem that the shop button is dissapearing on SMF 1.1 RC2, then please try this:

Open Themes/default/Index.template.php
Find this:
Code: [Select]
//Begin SMFShop 2.0 (Build 8) MOD code
loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END SMFShop MOD code

Change to:
Code: [Select]
//Begin SMFShop 2.0 (Build 8) MOD code
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END SMFShop MOD code

Tell me if that works for you

66
General SMFShop Discussion / How to turn off trade centre emails
« on: January 05, 2006, 01:56:10 pm »
If you don't like the email feature, here's how to turn it off:

Open Sources/shop.php
Find: (lines 785 - 789)
Code: [Select]
//Send message to original owner
$to = $row_item['emailAddress'];
$subject = "Your trade of '{$row_item['name']}' item";
$message = "Congratulations! {$row_user['realName']} has purchased your '{$row_item['name']}' item from you for ".formatMoney($row_item['tradecost']).".\r\n\r\nHave a good day,\r\n --Forum Management";
mail($to, $subject, $message);

See the mail($to, $subject, $message) line? Just put a // in front of it (eg.:
Code: [Select]
//mail($to, $subject, $message);

This will comment out that line, and stop the email from being sent.

67
If you're getting  'Unable to load main Template' error messages when you click on the 'Shop' button on your forum, then you'll need to unarchive the SMFShop TAR.GZ file and upload some files manually:

  • All the files and folders in the 'shop' directory (Shop.php, ShopAdmin.php, etc.) in the archive goes to Sources/shop on your forum.
  • Shop.template.php and ShopAdmin.template.php go into Themes/default/
  • Shop.english.php goes to Themes/default/languages
  • shop.gif goes to Themes/default/images/english

This is due to a bug in the SMF 1.1RC1 package manager. Personally, I use SMF 1.0.5 so I've never had this error come up.

68
Shop Button Requests / How to request a Shop button for your theme
« on: January 03, 2006, 06:21:20 am »
SMFShop only comes with a button for the default theme. If you use another theme, you'll need to either make your own button, or request one here. If you're requesting a button, please use the following template (you may cut and paste it):

Code: [Select]
[b]Theme Name:[/b] <name of the theme you use>
[b]Link to Theme:[/b] <link to the theme on the SMF Themes website, or somewhere else>
(note that I no longer need the address to the button images, as I download and install the theme myself)
If the theme uses graphical buttons (ie. something like the 'Apollo' theme used here), the button is made by cutting the 'S' and 'h' from 'Search', the 'o' from 'Home' and the 'p' from 'Help'. Yes, it's messy, but the end result is a button that blends in with your current theme. However, if the theme used 'text buttons' (like the SMF 1.1 RC2/3 default theme), it's a lot easier to make the button, as no new images are involved.

If you have read this, and want to submit your request, please start a new topic in this forum. Please be sure to give the topic a descriptive subject, such as 'Shop button for Helios Multi required'.

Pages: 1 ... 3 4 [5]