Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 189
Total: 189

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

Pages: [1] 2
1
Support / Re: Ironing Out the Details
« on: January 20, 2008, 09:30:37 am »
Unfortunately I have no transactions showing up at all. I have basically given up for now as the time I allotted for the store set up is gone. It would have been nice if I was directed to the up dated version of the store when I made my purchase so I might have avoided this big false start. It is a good idea and I will be getting around to setting it up on another attempt. One thing that would be great is a way to upgrade rather than having to uninstall and then redo the whole thing. Time is the thing I am out of now not patience or a willingness to get this done> I expect to have some time to fool around with it some more in March. Until then.
vd

2
Support / Re: Ironing Out the Details
« on: December 17, 2007, 07:01:10 pm »
Does that require an uninstall? The store mod does not even show up in my admin/packages control, how would I uninstall it? I did the edits that you provided above and that took care of the IPN Amount change detected. notices but none of the other issues I detailed above. I really want this to work. I need some answers.
vd

3
Support / Re: Ironing Out the Details
« on: December 15, 2007, 09:36:20 am »
I'm running SMF1.1.4 with TP version 9.8 and SMFHacks Store 1.1.7

I am doing the tax on the Pay Pal side. Is there another way?
vd

4
Support / Ironing Out the Details
« on: December 14, 2007, 12:12:59 am »
Well things are progressing. I have my products in place and priced. I tested with my own CC last night and again today after doing some research here on SMF Hacks Forum. Tonight I had my first customer. The payments are being credited to my paypal account and transaction emails are being sent to the customer and my self. However there are some issues. There are several things which seem to be related I will detail them first. The inventory is not being reduced/updated after a transaction, there are no details in the transactions que in the back end of the store. There are no items waiting to be shipped. The My Orders area remains empty even though I made two orders, and after a transaction the shopping cart is not being cleared. That is what I have noticed so far on the forum/store side.

Now for the paypal/server side. I did some research and these issues seem to have popped up before. I'm hoping that I won't have to uninstall and reinstall the store so with that in mind here goes. The quantity field is not getting passed to PayPal if someone orders 2 the price is getting doubled and PayPal calls it one for twice as much. If someone orders two widgets we should see two widgets. I am getting these emails from my server. They start with something like this.
IPN Amount change detected. The amount sent (XX.XX)  did not match the amount due. I gather that this is due to the fact that the server sends out an amount and PayPal is adding tax and sending it back as a different amount than went out and sending up a red flag to the server. This same message also has the customers address and some other info.If you would like a redacted copy let me know and I can PM you one. Sounds like a real mess but every thing seems to be intertwined so hopefully you have the answer to some of this.
thanks again

I'm running SMF1.1.4 with TP version 9.8 and SMFHacks Store 1.1.7
vd

5
Support / Re: Store Edits
« on: December 12, 2007, 09:15:18 pm »
Store.template.php is the file needed to edit.

It will be located inside the template_main function
Search for this code
Code: [Select]
echo '<h1 align="center">', $txt['store_text_title'], '</h1>';
This is the area where it says Store in the store template

I replaced your line of code with this.

Code: [Select]
echo '<img src="/forum/store/storeimg.jpg"></img>';
It worked. which for me was a major leap. I have a couple of questions which would help enlighten me about how to manipulate an image in this particular situation. 1. I tried to use various forms of the align tag to get the image I used to center. 2. I also tried to add the page break tag at the end and it was not recognised.  How would I correctly add these attributes?

6
Support / Store Edits
« on: December 11, 2007, 12:55:03 pm »
Which file would I need to edit to add an image to the store main page (up on top where it says simply, STORE)? I know in the SMF forum it is the Index.template.php file. I took a look at the Store.template but didn't see any clues for a solution.
vd

7
Support / Re: Install Errors
« on: December 11, 2007, 12:51:06 pm »
That last bit did the trick. I have started adding some product and images. Thanks for your help I will be starting a new topic for some different issues.
vd

8
Support / Re: Install Errors
« on: December 08, 2007, 03:38:57 pm »
Will do later
thanks

9
Support / Re: Install Errors
« on: December 08, 2007, 03:31:47 pm »
Right, I forgot about that I have it turned off on my set up. Here you go I will take a look later I have a work party tonight.
vd

10
Support / Re: Install Errors
« on: December 08, 2007, 02:49:42 pm »
Permissions Error: I'm gettint an error when I atempt to open the permissions via the link in the store configuration page or the SMF Admin Permissions link. Here is the error.

Parse error: syntax error, unexpected ';', expecting ')' in /home/icefishi/public_html/forum/Sources/ManagePermissions.php on line 1410

And here is the ManagePermissions.php file.
Thanks
Oh well the file exceeds the 20,000 charactor limit lae me know how you want to proceed.

11
Support / Re: Install Errors
« on: December 08, 2007, 07:55:32 am »
Well that is solved the last bit of code was what it needed to set its self up. I was a bit dismayed when I ran the storeinstall.php my screen went all SMF BLUE and just stayed that way. I opened up another browser window and there it was, my forum has a store. Thanks for your assistance.
vd

12
Support / Re: Install Errors
« on: December 06, 2007, 11:19:12 pm »
Well, it took me long enough, (other responsibilities) but, I have finally gotten all the files in place. I am getting two errors. The first occours at the top of the forum page, and there are no categories or boards to be seen. here is that error...

Table 'icefishi_ice247.ice_store_group_log' doesn't exist
File: /home/icefishi/public_html/forum/Sources/Store.php
Line: 2879

The second occurs when I try to run the storeinstall.php file and this is what it looks like...

Fatal error: Call to undefined function: db_query() in /home/icefishi/public_html/forum/storeinstall.php on line 22

Thanks I really appreciate the quick responses I'm getting here. First Class Operation.
vd

13
Support / Re: Install Errors
« on: December 04, 2007, 10:00:08 pm »
Thanks I'll check it out and get back.
vd

14
Support / Re: Install Errors
« on: December 04, 2007, 09:43:03 pm »
here ya go, this is the file with the first edit done and the other waiting to be done. and thanks!

Code: [Select]
<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1.4                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 1.1.4';

// Get everything started up...
define('SMF'1);
@
set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');
if (
file_exists($sourcedir '/LoadAds.php'))
require_once($sourcedir '/LoadAds.php');
// TinyPortal include
require_once($sourcedir '/TPortal.php');

// Using an old version of PHP?
if (@version_compare(PHP_VERSION'4.2.3') != 1)
require_once($sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name$db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset(
$_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}

if (!
defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();

// Register an error handler.
set_error_handler('error_handler');

// Start the session. (assuming it hasn't already been.)
loadSession();

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$maintenance$sourcedir;

// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Check if any group memberships have expired.
if (empty($modSettings['store_lastgroupexpire']) || time() > $modSettings['store_lastgroupexpire'])
{
require_once($sourcedir '/Store.php');
CheckGroupExpire();
}
// Load all the ads up
if (function_exists("loadAds"))
loadAds();


// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''jsoption''.xml')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

        
// TinyPortal
        
TPortal_init();

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir '/LogInOut.php');
return $_REQUEST['action'] == 'login2' 'Login2' 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login''login2''register''register2''reminder''activate''smstats''help''.xml''verificationcode'))))
{
require_once($sourcedir '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... maybe the portal page?
if (empty($board) && empty($topic) && $settings['TPortal_front_type']!='boardindex')
{
require_once($sourcedir '/TPortal.php');
return 'TPortal';
}
if (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex' && (isset($_GET['cat']) || isset($_GET['page'])))
{
require_once($sourcedir '/TPortal.php');
return 'TPortal';
}
// Action and board are still both empty...and no portal startpage - BoardIndex!
elseif (empty($board) && empty($topic) && $settings['TPortal_front_type']=='boardindex')
{
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php''Activate'),
'admin' => array('Admin.php''Admin'),
'announce' => array('Post.php''AnnounceTopic'),
'ban' => array('ManageBans.php''Ban'),
'boardrecount' => array('Admin.php''AdminBoardRecount'),
'buddy' => array('Subs-Members.php''BuddyListToggle'),
'calendar' => array('Calendar.php''CalendarMain'),
'cleanperms' => array('Admin.php''CleanupPermissions'),
'collapse' => array('Subs-Boards.php''CollapseCategory'),
'convertentities' => array('Admin.php''ConvertEntities'),
'convertutf8' => array('Admin.php''ConvertUtf8'),
'coppa' => array('Register.php''CoppaForm'),
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
'detailedversion' => array('Admin.php''VersionDetail'),
'display' => array('Display.php''Display'),
'dlattach' => array('Display.php''Download'),
'dumpdb' => array('DumpDatabase.php''DumpDatabase2'),
'editpoll' => array('Poll.php''EditPoll'),
'editpoll2' => array('Poll.php''EditPoll2'),
'featuresettings' => array('ModSettings.php''ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php''ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php''JSMembers'),
'help' => array('Help.php''ShowHelp'),
'helpadmin' => array('Help.php''ShowAdminHelp'),
'im' => array('PersonalMessage.php''MessageMain'),
'jsoption' => array('Themes.php''SetJavaScript'),
'jsmodify' => array('Post.php''JavaScriptModify'),
'lock' => array('LockTopic.php''LockTopic'),
'lockVoting' => array('Poll.php''LockVoting'),
'login' => array('LogInOut.php''Login'),
'login2' => array('LogInOut.php''Login2'),
'logout' => array('LogInOut.php''Logout'),
'maintain' => array('Admin.php''Maintenance'),
'manageattachments' => array('ManageAttachments.php''ManageAttachments'),
'manageboards' => array('ManageBoards.php''ManageBoards'),
'managecalendar' => array('ManageCalendar.php''ManageCalendar'),
'managesearch' => array('ManageSearch.php''ManageSearch'),
'markasread' => array('Subs-Boards.php''MarkRead'),
'membergroups' => array('ManageMembergroups.php''ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php''MergeTopics'),
'mlist' => array('Memberlist.php''Memberlist'),
'modifycat' => array('ManageBoards.php''ModifyCat'),
'modifykarma' => array('Karma.php''ModifyKarma'),
'modlog' => array('Modlog.php''ViewModlog'),
'movetopic' => array('MoveTopic.php''MoveTopic'),
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
'news' => array('ManageNews.php''ManageNews'),
'notify' => array('Notify.php''Notify'),
'notifyboard' => array('Notify.php''BoardNotify'),
'optimizetables' => array('Admin.php''OptimizeTables'),
'packageget' => array('PackageGet.php''PackageGet'),
'packages' => array('Packages.php''Packages'),
'permissions' => array('ManagePermissions.php''ModifyPermissions'),
'pgdownload' => array('PackageGet.php''PackageGet'),
'pm' => array('PersonalMessage.php''MessageMain'),
'post' => array('Post.php''Post'),
'post2' => array('Post.php''Post2'),
'postsettings' => array('ManagePosts.php''ManagePostSettings'),
'printpage' => array('Printpage.php''PrintTopic'),
'profile' => array('Profile.php''ModifyProfile'),
'profile2' => array('Profile.php''ModifyProfile2'),
'quotefast' => array('Post.php''QuoteFast'),
'quickmod' => array('Subs-Boards.php''QuickModeration'),
'quickmod2' => array('Subs-Boards.php''QuickModeration2'),
'recent' => array('Recent.php''RecentPosts'),
'regcenter' => array('ManageRegistration.php''RegCenter'),
'register' => array('Register.php''Register'),
'register2' => array('Register.php''Register2'),
'reminder' => array('Reminder.php''RemindMe'),
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php''RemoveOldTopics2'),
'removepoll' => array('Poll.php''RemovePoll'),
'repairboards' => array('RepairBoards.php''RepairBoards'),
'reporttm' => array('SendTopic.php''ReportToModerator'),
'reports' => array('Reports.php''ReportsMain'),
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
'search' => array('Search.php''PlushSearch1'),
'search2' => array('Search.php''PlushSearch2'),
'sendtopic' => array('SendTopic.php''SendTopic'),
'serversettings' => array('ManageServer.php''ModifySettings'),
'serversettings2' => array('ManageServer.php''ModifySettings2'),
'smileys' => array('ManageSmileys.php''ManageSmileys'),
'smstats' => array('Stats.php''SMStats'),
'spellcheck' => array('Subs-Post.php''SpellCheck'),
'splittopics' => array('SplitTopics.php''SplitTopics'),
'stats' => array('Stats.php''DisplayStats'),
'sticky' => array('LockTopic.php''Sticky'),
'store' => array('Store.php''StoreMain'),
'theme' => array('Themes.php''ThemesMain'),
'trackip' => array('Profile.php''trackIP'),
'admod' => array('Ads.php''Ads'),
'about:mozilla' => array('Karma.php''BookOfUnknown'),
'about:unknown' => array('Karma.php''BookOfUnknown'),
'unread' => array('Recent.php''UnreadTopics'),
'unreadreplies' => array('Recent.php''UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php''ViewErrorLog'),
'viewmembers' => array('ManageMembers.php''ViewMembers'),
'viewprofile' => array('Profile.php''ModifyProfile'),
'verificationcode' => array('Register.php''VerificationCode'),
'vote' => array('Poll.php''Vote'),
'viewquery' => array('ViewQuery.php''ViewQuery'),
'who' => array('Who.php''Who'),
'.xml' => array('News.php''ShowXmlFeed'),
                
'tpadmin' => array('TPortalAdmin.php''TPortalAdmin'),
                
'forum' => array('BoardIndex.php''BoardIndex'),
                
'tpmod' => array('TPmodules.php''TPmodules'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>

15
Support / Re: Install Errors
« on: December 04, 2007, 09:10:26 pm »
Here is where I'm at. I have made all the edits to downloaded copies of the .php files per the parser's recommendations. With one exception. The parser has two edits indicated for the $boarddir/index.php the first edit is the very first edit in the list and the other one is the last. It stood out to me that they were separated and I wondered why. Well I cannot find the indicated spot to add the second edit to the index.php file. The spot is simple enough
Code: [Select]
LoadPermissions(); but it is not to be found nor any of its brokendown components like
Code: [Select]
load.

Could someone take a look at this. I used the parser set for SMF version 1.1.4 and just downloaded my store .zip file last night so it is fresh. I'm ready to go save for this one hang up.
thanks
virtualdave

If you want the whole index file just let me know and I'll post it.

Pages: [1] 2

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal