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 2 [3] 4 5
31
Completed Shop Buttons / Dilber Multicolour (HarzeM)
« on: October 07, 2006, 02:43:53 pm »
This is a shop button for Dilber Multicolour (Otherwise known as Dilber MC). Like most themes, this theme doesn't use individual buttons for the menu bar, making it very easy to code up a button for it :)

Code modifications:
Open Themes/dilbermc/index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// SMFShop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
	
	

	
echo
'
	
	
	
	
<td align="center" class="menubg' 
$current_action == 'calendar' '2' '' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
	

	
	
	
	
</td>'
;


Add after:

        // SMFShop
	
echo
'
	
	
	
	
<td align="center" class="menubg' 
$current_action == 'shop' '2' '' '">
	
	
	
	
	
<a href="'
$scripturl'?action=shop">Shop</a>
	
	
	
	
</td>'
;
	


Then, your shop button should be working :D

32
Completed Shop Buttons / SAF Multicolour
« on: October 07, 2006, 02:33:32 pm »
This is a shop button for SAF Multicolour. Like most themes, this theme doesn't use individual buttons for the menu bar, making it very easy to code up a button for it :)

Code modifications:
Open Themes/safmc101/index.template.php
Find:

	
if (
$context['current_action'] == 'search2')
	
	
$current_action 'search';


Add after:

        // SMFShop
	

	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo 
'<li><a' $current_action == 'calendar' ' class="active"' ''' href="'$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>';


Add after:

	
//SMFShop
	
echo 
'<li><a' $current_action == 'shop' ' class="active"' ''' href="'$scripturl'?action=shop">Shop</a></li>';


Then, your shop button should be working :D

33
This is a fix for the 'Unable to load InstantMessage.template' error. This error only occurs when running SMFShop under SMF 1.1 (it doesn't occur under SMF 1.0, I don't think). If you're getting a similar error message in your error log, here's how to fix it:

Open Sources/shop/Shop.php
Find: (line 25 in an unedited Shop.php file)

	
         loadLanguage("InstantMessage");


Replace with:

    if (loadLanguage('PersonalMessage'''false) === false)
            loadLanguage('InstantMessage'''false);


34
Completed Shop Buttons / Button for 'Enterprise' theme (Bloc)
« on: September 25, 2006, 12:29:58 pm »
This is a shop button for the 'Enterprise' theme by Bloc. It uses text-based buttons, making it easy to make a button for it (this seems to be the trend with newer themes)

Code modifications:
Open Themes/Enterprise_smf11rc2/Index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
	
	
	
	
<td class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Add after:

	
// The shop
	
	
echo (
$current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
	
	
	
	
<td 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>' '';


Then, your shop button should be working :D

35
Completed Shop Buttons / Button for 'SlickPro Graphite' theme (m3talc0re)
« on: September 24, 2006, 11:21:15 am »
This is a shop button for the 'SlickPro Graphite' theme. Again, like most modern themes, it doesn't use individual images for the buttons (this theme's buttons are actually quite simple).

Code modifications:
Open Themes/SlickPro_Graphite/index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo 
'
	
	
	
	
<td class="main-navigation"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';


Add after:


	
// The shop
	
	
echo 
'
	
	
	
	
<td class="main-navigation"><a href="'
$scripturl'?action=shop">Shop</a></td>';


Then, your shop button should be working :D

36
Completed Shop Buttons / Button for 'Aero79' theme (Bloc)
« on: September 19, 2006, 05:08:05 pm »
This is a shop button for the 'Aero79' theme (originally requested by fivewinds here). Like most 'modern' themes, this theme doesn't use individual buttons for the menu, which makes it a lot easier to make buttons for the theme :)
So, let's begin!

Code modifications:
Open Themes/Aero79_smf11RC2/index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
	
	
	
	
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Add after:

	
// 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">Shop</a>
	
	
	
</td>' 
$current_action == 'shop' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Then, your shop button should be working :D

37
Completed Shop Buttons / Button for 'Silver_Shine v2' theme (m3talc0re)
« on: September 02, 2006, 11:13:19 am »
This is a shop button for the 'Silver_Shine v2' theme by m3talc0re. This theme, like the SMF 1.1 RC2 default theme, does not need a seperate button image for each button. This makes it easier to make a button for it (as it's only code to be changed)

Code modifications:
Open Themes/Silver_Shine_v2/Index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' 

'' '
	
	
	
	
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Add after:

	
// The 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">Shop</a>
	
	
	
</td>' 
$current_action == 'shop' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Then, your shop button should be working :D

38
Completed Shop Buttons / Button for 'WoW-DK' theme
« on: August 19, 2006, 03:43:55 pm »
This is a shop button for the 'WoW-DK' theme.  Note that like a lot of the 'modern'-style themes, this theme does not use images for each button in the menu. This makes it easier to code a button for it, as I don't need to put together an image :)

Anyways, here's the code for it:

Code modifications:
Open Themes/wowdk11rc2e/Index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop'


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
	
	
	
	
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'off_back' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';


Add after:

	
// The Shop
	
echo (
$current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '<td class="maintab_off_' $first '">&nbsp;</td>' '
	
	
	
<td valign="top" class="maintab_' 
$current_action == 'shop' 'active_back' 'off_back' '">
	
	
	
	
<a href="'
$scripturl'?action=shop">Shop</a>
	
	
	
</td>' 
$current_action == 'shop' '<td class="maintab_active_' $last '">&nbsp;</td>' '<td class="maintab_off_' $last '">&nbsp;</td>';


Then, your shop button should be working :D

39
Completed Shop Buttons / Button for 'Darkness' theme
« on: August 19, 2006, 12:33:07 pm »
This is a shop button for the 'Darkness' theme. Thanks to Sableye for the button image.

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

Code modifications:
Open Themes/darkness/Index.template.php
Find:

	
// 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:

// 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'];


Then, your shop button should be working :D

40
General SMFShop Discussion / SMFShop 2.2 now out!!
« on: July 29, 2006, 07:57:02 pm »
Well, after a long period of inactivity (I was way too busy to do any real work on SMFShop), SMFShop 2.2 is now out! This release has many changes in it, and I would consider it quite a big release. This release has one of the most requested features - The ability to send an item in your inventory to another member (thanks to Basil Beard - My code is based on his). From a coding perspective, I've split up the Shop.php file in to several seperate files, as I think this will be more efficient (it was getting too big).

Anyways, here's the changes in this version:
  • A minimum can now be set for bank deposits and withdrawls
  • The 'Who's Online' function now says when someone is in the shop
  • A 'Send Money' link is now displayed next to people's posts (right underneath their Post Count)
  • PM's are used instead of emails when you send money, and in the Trade Centre
  • Added 'Who owns this item?' feature to 'Buy stuff' listing (so you can see who owns an item)
  • Ability to send an item to a member (much like the 'Send money to someone' feature)
  • A large portion of the Shop.php file has been split into different files (Shop-Buy.php, Shop-Inventory.php, Shop-Send.php, Shop-Bank.php, Shop-Trade.php). This was done because the Shop.php file was getting too large (in my opinion)
  • And some other minor changes
If you want to see a detailed changelog (and I mean very, very detailed), then please see the SVN Changelog, at http://svn.sourceforge.net/viewvc/*checkout*/smfmods/smfshop/tags/release-2.2/svn_changelog.txt)

As usual, please see the SMF Mods page on the DanSoft Australia website to download this new version :)

41
Completed Shop Buttons / Button for 'Aa_New_Damage' theme (m3talc0re)
« on: July 29, 2006, 03:56:28 pm »
This theme was released less than a week ago, and I've already done a shop button for it  :P
Anyways, this theme reminds me of the 'Oxygen' theme by Bloc, in the way that it handles the buttons using CSS...

The file for the button is attached to this post. Please save it to Themes/Aa_New_Damage/images/menu_shop.gif

Code modifications:
Open Themes/Aa_New_Damage/index.template.php
Find (line 575):

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '' '' '
	
	
	
	
<li class="mainNav-calendar"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>' $current_action == 'calendar' '' '';

Add after:


	
// SMFShop
	
	
echo (
$current_action == 'shop' || $context['browser']['is_ie4']) ? '' '' '
	
	
	
	
<li class="mainNav-shop"><a href="'
$scripturl'?action=shop">Shop</a></li>' $current_action == 'shop' '' '';


Now, on to the CSS. Open Themes/Aa_New_Damage/style.css
Find:

Code: [Select]
.main-navigation li.mainNav-calendar
{
 width:72px;
 background: url(images/menu_calender.gif) 0 -18px no-repeat;
}
.main-navigation li.mainNav-calendar a
{
 width:72px;
 background: url(images/menu_calender.gif) 0 0 no-repeat;
}
.main-navigation li.mainNav-calendar a:hover
{
 background: transparent;
}


Add after

Code: [Select]
/* SMFShop */
.main-navigation li.mainNav-shop
{
 width:59px;
 background: url(images/menu_shop.gif) 0 -18px no-repeat;
}
.main-navigation li.mainNav-shop a
{
 width:59px;
 background: url(images/menu_shop.gif) 0 0 no-repeat;
}
.main-navigation li.mainNav-shop a:hover
{
 background: transparent;
}
/* End SMFShop */


Then, your Shop button should be working :)

42
Completed Shop Buttons / Button for 'Spikey' theme (megamoose)
« on: July 22, 2006, 01:28:21 pm »
This is the shop button code for the 'Spikey' theme by megamoose. This theme only requires you to do one simple edit :)

Code modifications:
Open Themes/spikey/Index.template.php
Find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo 
'<td><a href="' $scripturl '?action=calendar"><p class="userbarbutton">&nbsp;'.$txt['calendar24'].'&nbsp;</p></a></td>';


Add after:

	
//Shop
	

	
echo 
'<td><a href="' $scripturl '?action=shop"><p class="userbarbutton">&nbsp;Shop&nbsp;</p></a></td>';


Then, your shop button should be working :D

43
Completed Shop Buttons / Button for 'Oxygen' theme (Bloc)
« on: July 22, 2006, 01:13:50 pm »
This is the shop button code for the 'Oxygen' theme by Bloc. This theme handles the buttons a bit differently, so some people get confused when implementing a button on this theme. Anyways...

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

Code modifications:
Open Themes/oxygen/Index.template.php
Find:

        // The [calendar]!
        if ($context['allow_calendar'])
                echo '
                                <div id="bbcalendar"  '
.$mycode.'><a href="'$scripturl'?action=calendar"><img src="' $settings['images_url'] . '/blank.gif" alt="' $txt['calendar24'] . '" style="margin: 0px; width: 74px; height: 24px;" border="0" /></a></div>';


Add after:

	
	
//Shop
	
	
	
	
	

        echo '
                                <div id="bbshop"  '
.$mycode.'><a href="'$scripturl'?action=shop"><img src="' $settings['images_url'] . '/blank.gif" alt="Shop" style="margin: 0px; width: 47px; height: 24px;" border="0" /></a></div>';


Now, we also need to modify a bit of the CSS.
Open Themes/oxygen/style.css
Find:

Code: [Select]
#bbcalendar
 {
  background-image: url(images/english/back/calendar.gif);
  background-repeat: no-repeat;
  background-position:0 -24px;
  border-width:0;
  position: relative;
  float: left;
  }

Add after:

Code: [Select]
  #bbshop
 {
  background-image: url(images/english/back/shop.gif);
  background-repeat: no-repeat;
  background-position:0 -24px;
  border-width:0;
  position: relative;
  float: left;
  }

Then, your shop button should be working :D

44
SMFShop Announcements / Latest development code for Beta testers!
« on: July 08, 2006, 07:43:58 pm »
NOTE: The development code may not be stable, and should NOT be used in a production environment! Please use this on a fresh install ONLY
Does anyone want to beta test the latest development code for SMFShop? I've set up an SVN repository so that you can easily get the latest development code.

Ok, to get the code, you'll need a program called 'TortoiseSVN'. Once you install TortoiseSVN, you'll need to restart your computer (as it installs itself as a shell extension). Once you've restarted, create a new folder (anywhere on your computer, maybe in your My Documents folder, or on the Desktop?). Then, right-click the file, and you should see some TortoiseSVN options. Click on the 'SVN Checkout' option

Then, you'll need to input the path to the SMFShop repository. In the 'URL of repository' textbox, please put: http://dev.dansoftaustralia.net/svn/smfshop/trunk/. Finally, click on 'OK'.

Congratulations! You now have the latest testing code! If you add this code to a ZIP file, you should be able to install it using the SMF package manager. If that fails, the changes are documented in the svn_changelog.txt file, so you can get the released version, install it, and then update it yourself (manually).

Additionally, if I release some newer testing code, and you want to upgrade your code to the very latest, then just right-click on the folder and choose 'SVN Update'. This will check for updates, and download any changed files. Please check the svn_changelog.txt for all the details on what I've changed.

Another good thing about SVN is the nice web interface. If you go to http://dev.dansoftaustralia.net/plugins/scmsvn/viewcvs.php/?root=smfshop , you'll see the web interface for this SVN repository. From this interface, you can see all the files in the repository, and what changed have been done to them. To see a 'diff' (basically, show the difference between two versions), then click on the file you want to see, and then choose 'Diff to previous x' at  the top of the page. You can also see the difference between two different revisions, by using the textboxes and buttons at the bottom of the page...

Have fun!

Updated 19th August 2006: Changed URL to new one.
Updated 8th April 2007: Changed URL again

Pages: 1 2 [3] 4 5