News:

Join the Facebook Fan Page.

Main Menu

Theme Question

Started by svpernaut, December 24, 2009, 02:04:28 PM

Previous topic - Next topic

svpernaut

Ok sorry it was simple portal its with the theme. I need to put these 2 php lines in the theme so my script works...
<?php include_once("stellar-paypal.php"); ?>
<?php include_once("stellar-donations.php"); ?>

Where am I suppose to put them.
EDIT: I put them in index.php and got no error but when I go to enable the script with this code:
<?php donationsMapRecent('donation',100,5); ?>

I get this:
Parse error: syntax error, unexpected T_STRING in /home/headshot/public_html/Sources/PortalBlocks.php(3272) : eval()'d code on line 1
Any clue?

svpernaut


N3RVE

Disable eval() so we can track the code generating that error. See: How to Enable / Disable eval()

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

svpernaut

Hmmmm I don't use phpmyadmin, im using cpanel. Is that the same thing?

N3RVE

You should have phpMyAdmin inside cPanel or you should be able to install it.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

svpernaut

#5
Ok I found it, ive never used this. I followed your tutorial, but im stuck on this part
Quoteto do that, open phpMyAdmin (What is phpMyAdmin?), select your forum database and run this query:

EDIT:
Nevermind figured it out. Will post the error when ever I get it

svpernaut

After I do the query:

Fatal error: Call to undefined function donationsMapRecent() in /home/headshot/public_html/Sources/PortalBlocks.php(3272) : eval()'d code on line 1

I cant hit submit because it says theirs a parse error

N3RVE

You still haven't disabled eval() that's why the eval () errors are still being generated. Scroll to the bottom of that thread, there's a link to a modification that let's you disable it via the Administration Center.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

svpernaut

I disabled it. I added the mod and click the check box and hit save and got the same error?

svpernaut


Tyrsson

#10
Where is this function defined?

<?php donationsMapRecent('donation',100,5); ?>

ETA: Why have you called this function?
donationsMapRecent()
Without the same arguments that it was defined with?
PM at your own risk, some I answer, if they are interesting, some I ignore.

svpernaut

#11
Theres this scripted. http://stellarwebsolutions.com/en/products.php#donations

It tracks all the donations that have been sent to your paypal account.
I installed the scripted and everything I put these in the index.php
<?php include_once("stellar-paypal.php"); ?>
<?php include_once("stellar-donations.php"); ?>


So in one of the files, either stellar-paypal.php or stellar-donations.php define
donationsMapRecent()

svpernaut


Advertisement: