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 - Faust

Pages: [1] 2
1
Requested additions / Re: Bank Money
« on: April 24, 2008, 11:44:27 pm »
I created a Bank User, whenever someone buys stuff the money goes to this user, it is very simple code.

2
General SMFShop Discussion / Re: CronJob: How To?
« on: March 11, 2008, 05:36:33 pm »
In where it says define file to run you have to add the following:
/whereyouinstalledsmf/Sources/shop/dointerest.php > /whereyouinstalledsmf/interest_log.htm

replace whereyouinstalledsmf with the directory where you installed smf if you did install it in a different directory, you can go see in admin, server settings, SMF Directory.

Tick execute file at this time:
and select from Days of the week if you want to calculate interest on a certain day of the week, else you can do it on a specific day of the month you like, or even worse do it once a year by selecting a Month.
Then I think you just need to click on schedule to run schedule it.

You should be able to see the interest log by typing your url/whereyouinstalledsmf/interest_log.htm

3
General SMFShop Discussion / Re: CronJob: How To?
« on: March 09, 2008, 02:17:41 pm »
What do you want to run via the cronjob ?

4
Shop Button Requests / Re: Shop Button Request: Verde (by Crip)
« on: March 09, 2008, 02:16:51 pm »
I am sorry,  I was not thinking properly when I pasted that code, please replace  this  section

Code: [Select]
436:  //Begin SMFShop code

437:         echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

438:                         <td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
439:                                 <a href="', $scripturl, '?action=shop">Shop</a>
440:                         </td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
441:         //END SMFShop code


with this


Code: [Select]
//Begin SMFShop code
        echo '<li', $current_action == 'shop' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=shop"><span>' , Shop , '</span></a></li>';
//END SMFShop code



I believe that should clear it up

5
Installation Problems / Re: Shop mod isnt working!!!!
« on: March 08, 2008, 04:34:08 am »
Do you have a custom theme ?

6
General SMFShop Discussion / Re: Shop Link in HFG theme?
« on: March 08, 2008, 04:33:14 am »
No Problem

7
General SMFShop Discussion / Re: Shop Link in HFG theme?
« on: March 07, 2008, 01:11:39 am »
Try this one, if  does not work, I will post the code you need to add and where here

8
Shop Button Requests / Re: Shop Button Request: Verde (by Crip)
« on: March 06, 2008, 01:57:30 pm »
Find

Code: [Select]
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')

Replace with
Code: [Select]

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'shop', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
        // Begin SMFShop code
        if ($context['current_action'] == 'shop')
                $current_action = 'shop';
        if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory'
, 'shop_restock', 'shop_usergroup')))
                $current_action = 'admin';
        // End SMFShop code


Find
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

Add below it

Code: [Select]
       //Begin SMFShop 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 code

9
General SMFShop Discussion / Re: Shop Link in HFG theme?
« on: March 06, 2008, 01:38:36 pm »
Post index.template.php

10
What would you like to do with 2 currencies ?

11
Installation Problems / Re: Musiconia Theme Shop Button
« on: March 03, 2008, 03:24:21 am »
Search for :
Code: [Select]
// The [calendar]!
   if ($context['allow_calendar'])
      echo '
            <td class="main-navigation"><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></td>';


Paste After:

Code: [Select]
// The [shop]!
   if ($context['allow_shop'])
      echo '
            <td class="main-navigation"><a href="', $scripturl, '?action=shop">' , Shop , '</a></td>';

12
Installation Problems / Re: Musiconia Theme Shop Button
« on: March 02, 2008, 12:17:02 pm »
Would it be possible to post your theme's index.template.php ?

13
Bugs / Re: [ SERIOUS ISSUES WITH pet_engine.php ]
« on: March 02, 2008, 12:10:42 pm »
Is this the description of your pet ?

Quote
near 's the best! Built for Battle!

because if it is, then that is the problem, the ' is not properly escaped in the query, for the time being just go find your pet in the db and remove the ' in the description at near's

I am working on fixing the query

14
Bugs / Re: How do I Increase Max Pets Permitted.
« on: February 29, 2008, 12:54:40 pm »
Ok that is easy to fix:
change this
class item_PetCage extends itemTemplate {
to
class item_cage extends itemTemplate {
and remember to change the filename to
cage.php

15
Bugs / Re: How do I Increase Max Pets Permitted.
« on: February 29, 2008, 05:13:26 am »
change from
return "You have too many pets already...."
to
Code: [Select]
return "You have too many pets already....";

Pages: [1] 2