Donate

If you find any of the plugins I write useful then please consider making a donation. These donations can be used to offset the cost of my web hosting allowing me to produce more plugins for the e107 community

Welcome

Username:

Password:


Remember me

Gluons Gluons

Login to view your stats

Online

Guests: 8, Members: 0 ...

most ever online: 377
(Members: 0, Guests: 377) on 07 Jun : 07:44

Members: 1222
Newest member: rsetser

Forums

e107 Gold :: Forums :: Gold Additional Plugins :: Gold Lottery
 
<< Previous thread | Next thread >>
Parse error: syntax error, unexpected T_STRING
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, CrouchingPanther, 2dopey, schlrech, NFM, nlstart, gary231178, SimonP, Hobbz, fivestar, ^Shei^, DJColby
Author Post
watchndafire

Thu Jan 08 2009, 05:14pm
[ ]
Member: 363
Joined: 7-Jan-2009

Posts: 1
Gluons: gold 10,600
Spent: gold 41,000

Send a present to this user
View their 0 presents
View their 0 assets

Parse error: syntax error, unexpected T_STRING in /home/oblivi2/ public_html/e107_plugins/ gold_lottery/languages/ English.php on line 1

I receive this error when trying to install the gold lottery plugin. I'm using a clean install of e107 0.7.15,
and gold system Gold System 4.1.15.

Thanks.

Back to top
orb

Wed Jan 14 2009, 01:06am

[ ]
Member: 75
Joined: 25-Jun-2008

Posts: 4
Gluons: gold -562
Spent: gold 106,030

Send a present to this user
View their 0 presents
View their 0 assets

This is driving me nuts. Has anyone received a syntax error when installing this gold lottery plugin? Does anyoe see this syntax error on line 1 of the English.php?

<?php
/*
+------------- ------------------------- ------------------------- +
| Gold Lottery for e107 v7xx - by Father Barry
|
| This module for the e107 .7+ website system
| Copyright Barry Keal 2004-2008
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
+----------------------- ------------------------- ---------------+
*/

define('GLOTTO_FAQ1', "<h2>Welcome to our Lottery.</h2><br />To play you need to pick <b>6</b> numbers between <b>1</b> and <b>49</b> inclusive. You may only pick unique numbers on
each entry and you type the numbers in to the box in the lottery balls. You may play as many times as you like up to your balance. When you have six numbers', click on the <b>Play</b> button");
define(' GLOTTO_FAQ2',


I would like to install this plugin, if possible. Thanks.

Back to top
orb

Wed Jan 14 2009, 01:35am
[ ]
LAN_THEME_12
Member: 2
Joined: 9-Jan-2007

Posts: 44
Gluons: gold 161,420
Spent: gold 157,556

Send a present to this user
View their 5 presents
View their 0 assets

Sorry guys i have not recieved that error and is working 100% for me

Best is to wait till FB gets time to check this thread and he will be able to help out

[ image disabled ]
Back to top
Dominator

Wed Jan 14 2009, 05:47pm
[ ]
Member: 360
Joined: 13-Jan-2008

Posts: 8
Gluons: gold 17,040
Spent: gold 36,650

Send a present to this user
View their 0 presents
View their 0 assets

Same for me but this appears when I click plugin manager - using e107 7.15
Back to top
Dominator

Wed Jan 14 2009, 05:50pm
[ ]
Member: 360
Joined: 13-Jan-2008

Posts: 8
Gluons: gold 17,040
Spent: gold 36,650

Send a present to this user
View their 0 presents
View their 0 assets

chowdahead wrote ...

This is driving me nuts. Has anyone received a syntax error when installing this gold lottery plugin? Does anyoe see this syntax error on line 1 of the English.php?

<?php
/*
+------------- ------------------------- ------------------------- +
| Gold Lottery for e107 v7xx - by Father Barry
|
| This module for the e107 .7+ website system
| Copyright Barry Keal 2004-2008
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
+----------------------- ------------------------- ---------------+
*/

define('GLOTTO_FAQ1', "<h2>Welcome to our Lottery.</h2><br />To play you need to pick <b>6</b> numbers between <b>1</b> and <b>49</b> inclusive. You may only pick unique numbers on
each entry and you type the numbers in to the box in the lottery balls. You may play as many times as you like up to your balance. When you have six numbers', click on the <b>Play</b> button");
define(' GLOTTO_FAQ2',


I would like to install this plugin, if possible. Thanks.


Remove This Bit For Now

/*
+------------------------ ------------------------- --------------+
|        Gold Lottery for  e107 v7xx -  by Father Barry
|
|        This module for t he e107 .7+ website syste m
|        Copyright Barry K eal 2004-2008
|
|        Released under th e terms and conditions of  the
|        GNU General Publi c License (http:// gnu.org).
|
+------------------------ ------------------------- --------------+
*/


Worked For Me But The English.php is all screwered up


[ Edited Wed Jan 14 2009, 05:53pm ]
Back to top
orb

Wed Jan 14 2009, 06:07pm

[ ]
Member: 75
Joined: 25-Jun-2008

Posts: 4
Gluons: gold -562
Spent: gold 106,030

Send a present to this user
View their 0 presents
View their 0 assets

I finally found it. You need to remove the ' from the two lines shown
circled in red. Then upload the new English.php.

[ image disabled ]

Back to top
orb

Wed Jan 14 2009, 06:29pm

[ ]
Member: 75
Joined: 25-Jun-2008

Posts: 4
Gluons: gold -562
Spent: gold 106,030

Send a present to this user
View their 0 presents
View their 0 assets

Well,thought it was the answer...sigh, back o the syntax error again.

Back to top
orb

Wed Jan 14 2009, 10:15pm
[ ]
Member: 36
Joined: 2-May-2006

Posts: 108
Gluons: gold 56,013
Spent: gold 93,725

Send a present to this user
View their 2 presents
View their 0 assets



<?php
/*
+------------------------ ------------------------- --------------+
|        Gold Lottery for  e107 v7xx -  by Father Barry
|
|        This module for t he e107 .7+ website syste m
|        Copyright Barry K eal 2004-2008
|
|        Released under th e terms and conditions of  the
|        GNU General Publi c License (http:// gnu.org).
|
+------------------------ ------------------------- --------------+
*/

define('GLOTTO_FAQ1'" <h2>Welcome to our Lotter y.</h2><br / >To play you need to pick  <b>6</ b> numbers between <b>1</ b> and <b>49</ b> inclusive. You may onl y pick unique numbers on
each entry and you type t he numbers in to the box  in the lottery balls. You  may play as many times a s you like up to your bal ance. When you have six n umbers' , click on the <b>Play</ b> button"
);
define('GLOTTO_FAQ2'" The draw will take place  at midday on the day of t he draw. Six numbers will  be selected at random by  the computer and it will  calculate your winnings' , if any and credit your  account.");
define('GLOTTO_FAQ3'" If you are feeling lucky  you can click on the <b>L ucky Pick</ b> button and six numbers  will be chosen for you.");
define('GLOTTO_FAQ4'" The prize fund shows how  much will be distributed  to the winners and is sha red among all winners in  each draw. The prize fund  is split up in the follo wing way:");
define('GLOTTO_FAQ5'" If there are no winners f or any set of balls, the  money is added to the nex t lowest result. For exam ple if there are no 6 bal l winners the money that  would have gone to the si x ball winners is added t o the 5 ball pot and so o n. This means that a pers on with one correct numbe r could win the whole lot  if there are no other wi nners!!");
define('GLOTTO_FAQ5ROLL'" If there are no winners f or any set of balls' , the money is added to t he rollover amount. This  will then be added to the  prize fund for the next  game.");
define('GLOTTO_FAQ6'"6 balls");
define('GLOTTO_FAQ7'"5 balls");
define('GLOTTO_FAQ8'"4 balls");
define('GLOTTO_FAQ9'"3 balls");
define('GLOTTO_FAQ10'"2 balls");
define('GLOTTO_FAQ11'"1 ball");

define('GLOTTO_MENU'"Lottery");
// Start Admin Menu
define('GLOTTO_MEN01'"Lottery");
define('GLOTTO_MEN02'"Main Configuration");
define('GLOTTO_MEN03'"Lotteries");
define('GLOTTO_MEN04'"Readme");
define('GLOTTO_MEN05'"Check for Updates");
// end admin
// start plugin
define('GLOTTO_P01'"Gold Lottery");
define('GLOTTO_P02'" A Lottery plugin for the  Gold System");
define('GLOTTO_P03'" Gold Lottery now sucessfu lly installed.");
define('GLOTTO_P04'" Gold Lottery now sucessfu lly upgraded.");
// end plugin
// staart config
define('GLOTTO_C01'"Main Configuration");
define('GLOTTO_C02'"Player Class");
define('GLOTTO_C03'"Administrator Class");
define('GLOTTO_C04'" Number of past games to s how");
define('GLOTTO_C05'"Show Winners names");
define('GLOTTO_C06'"Rollover");

define('GLOTTO_C15'" Percentage of Prize Fund  for 1 Ball");
define('GLOTTO_C16'" Percentage of Prize Fund  for 2 Balls");
define('GLOTTO_C17'" Percentage of Prize Fund  for 3 Balls");
define('GLOTTO_C18'" Percentage of Prize Fund  for 4 Balls");
define('GLOTTO_C19'" Percentage of Prize Fund  for 5 Balls");
define('GLOTTO_C20'" Percentage of Prize Fund  for 6 Balls");

define('GLOTTO_C21'"Save Changes");
define('GLOTTO_C22'"Changes Saved");
define('GLOTTO_C23'"Gold Lottery");
// end config
// start lotteries
define('GLOTTO_L01'"Gold Lottery");
define('GLOTTO_L02'"Maintain Lotteries");
define('GLOTTO_L03'"ID");
define('GLOTTO_L04'"Draw Date");
define('GLOTTO_L05'"Prize Fund");
define('GLOTTO_L06'"Rollover");
define('GLOTTO_L07'"Closed");
define('GLOTTO_L08'"Action");
define('GLOTTO_L09'"Previous Lotteries");
define('GLOTTO_L10'"Current Lotteries");
define('GLOTTO_L11'"New Lottery");
define('GLOTTO_L12'"Edit");
define('GLOTTO_L13'"Delete");
define('GLOTTO_L14'"No Lotteries");
define('GLOTTO_L15'" Are you sure you wish to  delete this lottery?");
define('GLOTTO_L16'"Modify Lottery");
define('GLOTTO_L17'"Date of Draw (d-m-Y)");
define('GLOTTO_L18'"Winning Numbers");
define('GLOTTO_L19'"Not yet drawn");
define('GLOTTO_L20'"correct tickets");
define('GLOTTO_L21'"Save");
define('GLOTTO_L22'"Prize Breakdown");
define('GLOTTO_L23'"Lottery Saved");
define('GLOTTO_L24'"Lottery Created");
define('GLOTTO_L25'"Lottery Deleted");


define('GLOTTO_L26'"Bulk Create");
define('GLOTTO_L27'"Number of Lotteries");
define('GLOTTO_L28'"Every Day");
define('GLOTTO_L29'"Starting date");
define('GLOTTO_L30'"Prize fund");
define('GLOTTO_L31'"Sun");
define('GLOTTO_L32'"Mon");
define('GLOTTO_L33'"Tue");
define('GLOTTO_L34'"Wed");
define('GLOTTO_L35'"Thu");
define('GLOTTO_L36'"Fri");
define('GLOTTO_L37'"Sat");
define('GLOTTO_L38'"Lottery created for: ");
define('GLOTTO_L39'"No number specified");
define('GLOTTO_L40'" Duplicate draw date. Not  created.");
define('GLOTTO_L41'"Not created");

// end
// start main page
define('GLOTTO_001'"Lottery");
define('GLOTTO_002'"Current Game");
define('GLOTTO_003'" Pick 6 numbers from 1 to  49");
define('GLOTTO_004'"Lucky Pick");
define('GLOTTO_005'"Play");
define('GLOTTO_006'"To be drawn at Midday");
define('GLOTTO_007'"Cost to play");
define('GLOTTO_008'"My Other Entries");
define('GLOTTO_009'" You have not played in th is game yet.");
define('GLOTTO_010'" You must pick 6 unique nu mbers between 1 and 49 ");
define('GLOTTO_011'" You have already picked t hose numbers");
define('GLOTTO_012'" The current prize fund st ands at");
define('GLOTTO_013'" You picked the following  numbers");
define('GLOTTO_014'"in game number");
define('GLOTTO_015'"Lottery");
define('GLOTTO_016'"balls");
define('GLOTTO_017'"winners. Each won");
define('GLOTTO_018'"Draw Date");
define('GLOTTO_019'"Prize Fund");
define('GLOTTO_020'"Winning Numbers");
define('GLOTTO_021'"Winners");
define('GLOTTO_022'"Previous Games");
define('GLOTTO_024'"Your balance is");
define('GLOTTO_025'"My Tickets");
define('GLOTTO_026'"Winners");
define('GLOTTO_027'" You did not play this gam e");
define('GLOTTO_028'" There are no draws to pla y.");
define('GLOTTO_029'"No winners");
define('GLOTTO_030'" Sorry, you are not permit ted to play.");
// start side menu
define('GLOTTO_SM01'"Lottery");
define('GLOTTO_SM02'"Current Game number");
define('GLOTTO_SM03'"To be drawn midday");
define('GLOTTO_SM04'"Current Prize Fund");
define('GLOTTO_SM05'"Last Game");
define('GLOTTO_SM06'"Drawn on");
define('GLOTTO_SM07'"No previous games");
define('GLOTTO_SM08'"Play");
define('GLOTTO_SM09'"Winning Numbers");
define('GLOTTO_SM10'"No games to play");
define('GLOTTO_SM11'"Lottery Page");
// end side menu
// start win messages
define('GLOTTO_W01'" Your lottery ticket numbe r");
define('GLOTTO_W02'"had");
define('GLOTTO_W03'"wining numbers");
// end win messages
// start egold
define('GLOTTO_EGOLD01'"Gold Lottery");
define('GLOTTO_EGOLD02'"Cost per lottery entry");
define('GLOTTO_EGOLD03'"Gold Lottery Charges");
define('GLOTTO_EGOLD04'"Save");
define('GLOTTO_EGOLD05'"Lottery Changes Saved");
// end egold
// e_gold defines
define('GOLD_LOTTO_BUY''Buy Lottery tickets');
define('GOLD_LOTTO_TITLE''Gold Lottery');
define('GOLD_LOTTO_NAME''Lottery Shop');
define('GOLD_LOTTO_DESC'' Take a chance on lady luc k, Buy a lottery ticket ( or more than one)  and see if you can come  up trumps with the winnin g combination.');



Back to top
orb

Thu Jan 15 2009, 01:23am

[ ]
Member: 75
Joined: 25-Jun-2008

Posts: 4
Gluons: gold -562
Spent: gold 106,030

Send a present to this user
View their 0 presents
View their 0 assets

Thanks Cory, works now :-)

Back to top
kenboldt

Wed Mar 18 2009, 03:37pm
[ ]
Member: 497
Joined: 17-Mar-2009

Posts: 4
Gluons: gold 44,615
Spent: gold 20,775

Send a present to this user
View their 0 presents
View their 0 assets

I tried the code as provided by Cory above, but it still will not work for me, I am getting the same error.

Any thoughts would be appreciated.
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 5 months, 2 weeks, 2 days, 14 hours, 50 mins, 3 secs ago ]
  • diehard gold 23,475
    [ 4 years, 8 months, 3 weeks, 4 days, 2 hours, 52 mins, 46 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 9 months, 6 days, 16 hours, 56 mins, 56 secs ago ]
  • gefy gold 300,240
    [ 4 years, 9 months, 2 weeks, 4 days, 18 hours, 5 mins, 40 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 4 years, 11 months, 8 hours, 23 mins, 22 secs ago ]
  • swedsnake gold 23,540
    [ 4 years, 11 months, 1 day, 5 hours, 24 mins, 43 secs ago ]
  • stedie gold 9,326
    [ 4 years, 11 months, 3 weeks, 5 days, 14 hours, 30 mins, 3 secs ago ]
  • orb gold 337,720
    [ 4 years, 11 months, 4 weeks, 15 hours, 12 mins, 49 secs ago ]
  • rossv gold 49,150
    [ 5 years, 6 days, 11 hours, 7 mins, 36 secs ago ]
  • orb gold 52,358
    [ 5 years, 2 weeks, 2 days, 12 hours, 28 mins, 26 secs ago ]

Online

Guests: 8 Members: 0

    On this page: 1
    Members: 1222, Newest: rsetser

    Online

    Guests: 8, Members: 0 ...

    most ever online: 377
    (Members: 0, Guests: 377) on 07 Jun : 07:44

    Members: 1222, Newest member: rsetser

    Unanswered Posts

    The following forum posts remain unanswered
    just testing 05 May : 22:21
    Dead Site 05 May : 01:41
    Paypal return a[...] 24 Oct : 17:02
    paypal fail 24 Oct : 16:39
    Auto Userclass 09 Mar : 20:53
    Wishing well Qu[...] 01 Sep : 17:51
    Banner Ads for [...] 30 May : 22:43
    Golf For Calend[...] 30 May : 22:40
    to set up to a [...] 17 Feb : 20:48
    content plugin [...] 11 Oct : 01:32

    View all unanswered posts
    Render time: 0.1085 sec, 0.0233 of that for queries. DB queries: 128. Memory Usage: 1,658kB