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 ... 68 69 [70] 71 72
1036
General SMFShop Discussion / Re: Fix for this?
« on: February 16, 2006, 06:59:34 pm »
Are you sure this is stemming from the Shop mod?

Anyway, I can tell you that the error is definately from the index.template.php (regardless of what the error says it's from). Open your index.template.php and go to the line mentioned in the error. Copy 10 lines above and below this, and paste them here. I'll see if I can help you solve the problem.

1037
Quote
I also submitted a support ticket on Sunday 12th for another problem and it remains 'open' and not assigned.
I'm really sorry about that. I have school during the week, and free time is fairly limited. I'll look at it tommorow, about this time.

Make sure you're typing the cPanel command correctly. It should look like:

Quote
/usr/bin/php -q /home/username/public_html/forum/sources/Shop/dointerest.php > /home/username/public_html/forum/interest_log.htm
username is your cPanel username, and forum is the directory you placed your forum in. Set this to run every day at midnight. If you're still having trouble, I'll make some screenshots for you.

 --daniel15

1038
General SMFShop Discussion / Re: Issue with user sessions?
« on: February 16, 2006, 06:54:08 pm »
Firstly, make sure the user is going to the correct domain. For example, in the view of cookies, http://daniel15.com/ and http://www.daniel15.com/ are completely different domains.
Also, could you post the domain here? I'll try it and see what happens for me.

P.S You could also try and persuade this user to use Opera 8.5 :D

1039
Completed Requests / Re: shop button
« on: February 16, 2006, 06:50:36 pm »
Sorry I couldn't help you sooner, I have school during the week, and my spare time is limited.

I'll help you tommorow about this time. Sorry for this, but I don't have any free time at the moment

 --daniel15

1040
SMFShop Announcements / Bank interest without cron job? Read this!
« on: February 10, 2006, 08:43:23 pm »
Hi,
 Unfortunately, some people don't have access to cron jobs, and therefore ask me if there's a way to add the interest without using cron jobs.

First, create a file somewhere on your website. Give it a random name, maybe something like dointerest2342351.php. This is so members of your site don't know the name of the file, and therefore can't add the interest themselves. Put the following text in the file:
Code: (php) [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.net/        |
\**********************************************/

//File: dointerest.php
//      The file to add interest to member's bank

//VERSION: 1.31 (Build 7)
//DATE: 10th December 2005

include("/home/[username]/public_html/forum/SSI.php");

$interest_rate $modSettings['shopInterest'] / 100;
db_query("UPDATE {$db_prefix}members
SET moneyBank = moneyBank + (moneyBank*
{$interest_rate})"__FILE____LINE__);

echo 
"Interest added at ".date("d/m/Y h:i:s A");
?>


Replace '/home/[username]/public_html/forum/' with the absolute URL of the forum. This can be found by going to SMF Admin Panel --> Edit Server Settings --> SMF Directory. It will look something like '/home/username/public_html/forum'.

Next, we use a utility that calls this script every day. There are several web-based cron tools, but most are in other languages. You can get a Windows program that will call the script every day, or, if you want to, you could just run the script yourself :)

Once you've set that up, your interest should now be working!

UPDATE: You may try to call the script via the Windows Task Scheduler. Please see this post for more details

1041
General SMFShop Discussion / Re: Bank Interest
« on: February 10, 2006, 08:32:46 pm »
Yes, the same code is for all versions.

Please tell me what control panel you use for your hosting, and I'll find out how to add cron jobs.

1042
General SMFShop Discussion / Re: Add New Item Error
« on: February 10, 2006, 08:30:19 pm »
For everyone that's wondering, we solved this problem :D

--Topic Locked--

1043
General SMFShop Discussion / Re: download xxx file
« on: February 10, 2006, 08:29:33 pm »
Hello Bigguy,

Would you be so kind to share how you got your shop to have an item that downloads a file?

I too would like to offer a file download from the shop

Thanks

It's an in-bulit SMFShop item. Just put the file somewhere on your website, with a RANDOM file name (so people can't just guess the file name and download the file without paying). Next, you add a 'Download xxx File' item via the SMFShop admin panel.

1044
General SMFShop Discussion / Re: Error in installscript
« on: February 10, 2006, 08:28:00 pm »
Hi Mike,
 What's the address to your forum?

1045
General SMFShop Discussion / Re: How can I make a post have a cent value
« on: February 10, 2006, 08:27:20 pm »
I don't believe that's possible at the moment.
The first version of SMFShop had decimal values, which confused a lot of people. That's why I removed the decimals, although decimal numbers are slowly coming back into SMFShop...

1046
SMFShop Announcements / How to change money upper limit (9,999,999)
« on: February 05, 2006, 08:48:37 am »
Well, some people have noticed an upper limit of 9,999,999 for the money in pocket/bank. Some people were wondering how to make the limit greater. Well, you need to have access to cPanel/DirectAdmin or something else with phpMyAdmin access...

Just follow these steps:
1) Log in to your cPanel
2) Click on MySQL Databases and then 'phpMyAdmin'
3) On the left hand side, click on your forum's database (in the dropdown box)
4) Underneath the drop down box, there should be a list of all the tables. Click on 'smf_members'
5) Tick the box next to 'money' and 'moneyBank', and then click the edit button under 'With selected'(it looks like a pencil)
6) Where it says '9,2', change that to whatever you want. The '9' is how many numbers in total, and the '2' is how many numbers after the decimal point. You might want to type '15,2' or something.

Fixed :D

1047
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!

1048
General SMFShop Discussion / Re: smf shop not working
« on: February 03, 2006, 03:54:36 pm »
Quote
I get failure notice when try to install remove topic.php and display template.php
and then these.

2: fopen(/home/ajcgr/public_html/Packages/installed.list): failed to open stream: Permission denied
Αρχείο: /home/ajcgr/public_html/Sources/Subs-Package.php
line: 1476

i have tryed to cahnge the ftp to 755 as has been sugested but it didnt work.
Try changing installed.list to 0777, rather than 0755. If not, please post in the SMF forums at http://www.simplemachines.org/community/ . This sounds like a problem with the package manager, rather than SMFShop.

1049
General SMFShop Discussion / Re: I got nothing much
« on: January 29, 2006, 04:05:56 pm »
OK, here you go:
Open Themes/babylon/Display.template.php
Find:
Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Replace with:
Code: [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

1050
General SMFShop Discussion / Re: download xxx file
« on: January 29, 2006, 02:26:12 pm »
Your root path is /home/[username]/

So the path will be /home/****/files (**** = cPanel username)

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