• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Acc Gesior - Payments Methods

Apoccalypse

New Member
Joined
Apr 15, 2017
Messages
114
Solutions
2
Reaction score
4
Hi guys,
I downloaded GesiorACC 2012 modificado by Natanael Beckman for tfs 0.3.6 or 0.4.
Everything works perfect but unfortunately I had one problem with it.
When I click button "Buy now Premium Points here"
10cvwg0.jpg

I get the following error:
Error occured!
Error ID: CRITICAL ERROR
More info: Cannot load page buypoints, file does not exist.

File: C:\xampp\htdocs\system/load.compat.php Line: 20
File: C:\xampp\htdocs/index.php Line: 33

I checked the index.php file and I think that there is nothing connected with the button but I can be wrong .

<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);

define('INITIALIZED', true);

// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
define('ONLY_PAGE', false);

// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');

// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');

// DATABASE -------> Line 20 from the error message.
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
Website::getDBHandle()->setPrintQueries(true);
// DATABASE END

// LOGIN
if(!ONLY_PAGE)
include_once('./system/load.login.php');
// LOGIN END

// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END

// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
include_once('./system/load.layout.php');
else
echo $main_content;
// LAYOUT END

I found a script "buypoints.php" at this forum and it would be even better for me, because it contains paypal and homepay methods which are everything what I need. It is for tfs 0.3.6 and 0.4 so it should work for me.
Unfortunately I am completly new to .php things and I have no idea how to implement it on my site.
(I didn't insert the buypoints.php script , because it is too vast although I think it isn't necessery.)

So, to sum up,my final question is :
Is it a way to connect the button "Buy now Premium Points" with the "buypoints.php" script?
I would be very thankful for help!
 
Solution
Please read the rules; Rules for the Support board
#7

How to display CODE properly in your post

I don't know what AAC you are using, I don't even know who that is ..
The only place I would download Gesior is from github; GitHub - gesior/Gesior2012 at TFS-0.3.6_and_0.4_to_rev_3703

The error is saying that it can't find buypoints.php in www/pages/ ...
And index.php is always involed in the error, so nvm that.

The default "Gesior 2012" also has paypal & homepay;
Gesior2012/buypoints.php at TFS-0.3.6_and_0.4_to_rev_3703 · gesior/Gesior2012 · GitHub
Gesior2012/buypoints.php at TFS-0.3.6_and_0.4_to_rev_3703 · gesior/Gesior2012 · GitHub

And yes you can link a button to that page ofc, just like any link :p...
Development is all about trial and error, you never write code or implement something new and get it right the 1st time. The majority of the time you spend developing is trouble shooting errors and conflicts. You are not going to break your website by putting a file in a directory. If you put the file in the directory and doesn't work like you'd like it to then you remove the file.

Don't be afraid to test possibilities.
 
Please read the rules; Rules for the Support board
#7

How to display CODE properly in your post

I don't know what AAC you are using, I don't even know who that is ..
The only place I would download Gesior is from github; GitHub - gesior/Gesior2012 at TFS-0.3.6_and_0.4_to_rev_3703

The error is saying that it can't find buypoints.php in www/pages/ ...
And index.php is always involed in the error, so nvm that.

The default "Gesior 2012" also has paypal & homepay;
Gesior2012/buypoints.php at TFS-0.3.6_and_0.4_to_rev_3703 · gesior/Gesior2012 · GitHub
Gesior2012/buypoints.php at TFS-0.3.6_and_0.4_to_rev_3703 · gesior/Gesior2012 · GitHub

And yes you can link a button to that page ofc, just like any link :p
This is how you do it;
PHP:
<a href="?subtopic=buypoints"><img src="path to image" /></a>
 
Solution
Problem solved. I spent 15 long hours trying to deal with it and the solution was so easy...
I just replaced the shop part in my ACC Gesior layout with that from Gesior2012/tree/TFS-0.3.6_and_0.4_to_rev_3703.
The final result :D

302ypsw.jpg


I will try to configure these payment methods tomorrow.
Anyone knows some decent tutorials for its?
Anyway , thanks for help everyone!
 
Problem solved. I spent 15 long hours trying to deal with it and the solution was so easy...
I just replaced the shop part in my ACC Gesior layout with that from Gesior2012/tree/TFS-0.3.6_and_0.4_to_rev_3703.
The final result :D

302ypsw.jpg


I will try to configure these payment methods tomorrow.
Anyone knows some decent tutorials for its?
Anyway , thanks for help everyone!

Tbh there isn't alot of tutorials about it, Gesior wrote this in the thread;

About PayPal
1. Config of payments (amount of money, points, your paypal e-mail) is in:
custom_scripts/paypal/config.php
2. There is:
Code:
$paypal_report_url = 'http://anderion.net/paypal_report.php';
Change anderion.net to your domain (+folder if acc. maker is in some folder) and leave /paypal_report.php, don't change to /pages/paypal_report.php
3. Remember to make 'reported_ids' folder writeable to make acc. maker add points for payments (on linux: chmod -R 777 /var/www/custom_scripts [if acc. maker is in /var/www/):
custom_scripts/paypal/reported_id/
4. DO NOT EDIT/CONFIGURE ANYTHING ON PAYPAL.COM, acc. maker 'tells' PayPal how to report payment. You can't turn on IPN on paypal.com - it blocks script. You just need registered account and good config of script in acc. maker to make PayPal donations work.

Just look in the custom_scripts/*/config.php to see how to config it, if you run into problems just make a thread about it if you can't find anything with the search function.

And since alot of ppl have asked me before, if you wanna remove the gray background you can serach for this in buypoints.php and remove them;
CSS:
background-color:gray;
 
Back
Top