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: 2, 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 >>
Lottery date
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, CrouchingPanther, 2dopey, schlrech, NFM, nlstart, gary231178, SimonP, Hobbz, fivestar, ^Shei^, DJColby
Author Post
nozi

Sun Nov 30 2008, 02:47pm
[ ]
Member: 259
Joined: 24-Nov-2008

Posts: 15
Gluons: gold 29,230
Spent: gold 64,850

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

All other plugs has the correct dates but the lottery plug show me English names on days and dates. I cant figure out why. All lang files are correct. But still..

Back to top
orb

Sun Nov 30 2008, 05:28pm
Revd Baz

[ ]
LAN_THEME_12
Member: 3
Joined: 27-Nov-2003

Posts: 510
Gluons: gold 830,459
Spent: gold 282,292

Send a present to this user
View their 17 presents
View their 3 assets
Sunglasses 
Probably my stupidity somewhere

[ image disabled ]
Back to top
rickcarr

Mon Dec 08 2008, 04:03pm
[ ]
Member: 232
Joined: 7-Nov-2008

Posts: 3
Gluons: gold 11,810
Spent: gold 42,950

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

I was wondering about that also. I have the same problem! I seached everywhere in all plugins files and I did'nt found anything. It must bee well hidden!

Back to top
orb

Tue Dec 09 2008, 09:05am
Revd Baz

[ ]
LAN_THEME_12
Member: 3
Joined: 27-Nov-2003

Posts: 510
Gluons: gold 830,459
Spent: gold 282,292

Send a present to this user
View their 17 presents
View their 3 assets
Big TV 
I'm thinking it is the php date() function that is called which may be the problem. Not sure about the language issue with that.

[ image disabled ]
Back to top
nozi

Wed May 06 2009, 02:43pm
[ ]
Member: 259
Joined: 24-Nov-2008

Posts: 15
Gluons: gold 29,230
Spent: gold 64,850

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

I think I've found whats causing this.
As the problem dont exist at newspost's and the news dates are called trough the php date function to as all your plugins does.

But the only difference is that the news are handeled by the shortcode: e107_files/shortcode/ batch/ news_shortcodes.php
with the function convert_date.

So if you could help me to mange to include this convert_date function to a the lottery or the transaction history page I would be so pleased.


Back to top
nozi

Wed May 06 2009, 05:55pm
[ ]
Member: 259
Joined: 24-Nov-2008

Posts: 15
Gluons: gold 29,230
Spent: gold 64,850

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

Ah the difference is that the convert_date functions uses strftime() instead of date() like U uses.
I tried to change date to strftime but then the history page didnt show any transactions any more.

Someone have any soloution for this?

EDIT second try and then the history page shows correctly (but still in English) with strftime.

With this code:
$gold_currentmonth = str ftime('%m', $gold_obj- >gold_time());;
$gold_currentyear = strft ime('%Y', $gold_obj- >gold_time());;


Why doesnt it work? it works if I create a whole new php file like this:
<?php
setlocale
(LC_TIME"sv_SE");
echo 
strftime("%A %d %B %Y");
?> 


I have even tried to put the set locale in the history.php file but still no difference.

Still no solution?



[ Edited Wed May 06 2009, 06:36pm ]

Back to top
IZON

Sat May 09 2009, 09:56pm
[ ]
Member: 444
Joined: 19-Sep-2006

Posts: 7
Gluons: gold 48,940
Spent: gold 14,450

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

I've tried for several days with different solutions now but still no clue whats causing this.

I wont stop trying.
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 3 weeks, 1 hour, 15 mins, 37 secs ago ]
  • diehard gold 23,475
    [ 4 years, 3 months, 4 weeks, 1 day, 13 hours, 18 mins, 20 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 4 months, 1 week, 4 days, 3 hours, 22 mins, 30 secs ago ]
  • gefy gold 300,240
    [ 4 years, 4 months, 3 weeks, 2 days, 4 hours, 31 mins, 14 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 4 years, 6 months, 4 days, 18 hours, 48 mins, 56 secs ago ]
  • swedsnake gold 23,540
    [ 4 years, 6 months, 5 days, 15 hours, 50 mins, 17 secs ago ]
  • stedie gold 9,326
    [ 4 years, 7 months, 1 day, 55 mins, 37 secs ago ]
  • orb gold 332,720
    [ 4 years, 7 months, 3 days, 1 hour, 38 mins, 23 secs ago ]
  • rossv gold 49,150
    [ 4 years, 7 months, 1 week, 3 days, 21 hours, 33 mins, 10 secs ago ]
  • orb gold 52,358
    [ 4 years, 7 months, 2 weeks, 6 days, 22 hours, 54 mins, 0 secs ago ]

Online

Guests: 2 Members: 0

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

    Online

    Guests: 2, 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.0821 sec, 0.0166 of that for queries. DB queries: 108. Memory Usage: 1,378kB