6121
iHackCode
Re: How does displaying user time work?

Oh I see. I was incorrect on the $time, $time is from time(). Which should be from the same TZ as the Server_TZ as you said.

So now I'm looking at formatTimestamp() function that calls the getUserTimestamp() function.

It returns:
return ucfirst(date($datestring$usertimestamp));


But if the timezone for date() is not UTC/GMT (set with the date_default_timezone_set()), it would change the calculated $usertimestamp.

So I guess the question is about locales, why is it used to set the timezone? Instead of date() should gmdate() be used?



6122
HopeL
Responsive Theme Blocks
  • 2015/1/26 22:16

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


I'm finding that the top center blocks in the Serenity Orange and xBootstrap 1.03 themes only display at the bottom. For example, if I want a block to display above a module in the top center, it won't. It displays at the bottom. How can I get it to display at the top center like in the default theme?

Thanks,
Hope



6123
Lupin
Re: Which version of forum newbb is good to installing? 3.08 or 4.0 or 4.33
  • 2015/1/26 17:29

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Hello mamba,

thanks for your answer.

Really I did the opposite ... I installed NewBB 4.3 ( irmtfan way ) and I import CBB 3.08 Db.

No errors durning import and the system seems running well, but ...

I noted this pair of problems :

1) Block "last replied topics" is ok in administration page, but is not visible in the public website.
2) When I click on "Go to post" icon ( the doubled arrow ) I obtain a blank page ( I mean the content , not the whole web page, like in previuos point ).

Any suggestions ?

Pino



6124
geekwright
Re: How does displaying user time work?

In most circumstances, server_TZ should be 0 (UTC/GMT.) There are "servers" configured incorrectly, where the system time (and therefor PHP's time() function) is not actually UTC. This was common in personal machines using Windows, but showed up occasionally in a variety of systems. Most modern systems use ntp synced clocks set to UTC, so this issue is much less common. In a perfect world, server_TZ would not be needed.

That is the theory. If it is all implemented correctly across the system, I'm not certain. But in the case of the getUserTimestamp() method, it looks correct. It really only should come into play if the server is mis-configured, and then only fix it when displaying the time.



6125
iHackCode
How does displaying user time work?

I'm a bit lost on this. The function is below (I got it from XOOPS 2.6)

$time is the time (Unix timestamp).
* The timezone can be set by the locale.php based on the general settings (default locale) for the website.

$timeoffset is the 'user' timezone
* if user. its whats they set in their profile
* if anon. its the 'Default_TZ', from the general settings.

Now there is one more offset, the 'Server_TZ'. That is confusing me.

Looking at the logic that assigns $usertimestamp it looks like it assumes the 'Server_TZ' and $time are using the same timezone. The two time stamps might not always be the same Timezone though. So if they are not the same then the displayed timezone will be off.

When will the $time timezone change timezone:
* using a different locale (because of language)

/**
     * @param mixed  $time
     * @param string $timeoffset
     *
     * @return int
     */
    
public function getUserTimestamp($time$timeoffset '')
    {
        if (
$timeoffset == '') {
            if (
$this->isUser()) {
                
$timeoffset $this->user->getVar('timezone_offset');
            } else {
                
$timeoffset $this->getConfig('default_TZ');
            }
        }
        
$usertimestamp intval($time) + (floatval($timeoffset) - $this->getConfig('server_TZ')) * 3600;
        return (int)
$usertimestamp;
    }



6126
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/24 7:58

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


A new commit on GitHub

As suggested by geekwright this we can use for issues



6127
c0ntrite
Re: Not seeing any changes to my templates
  • 2015/1/24 6:32

  • c0ntrite

  • Just popping in

  • Posts: 21

  • Since: 2007/1/26


Hello Guys,

I have a similar problem and have not solved the issue yet. I'm having problems changing the templates of my modules. I have a "Template Set" but I can't find it on the left side of Templates Manager but it is in the part of "Generate surcharge". I tried editing the templates under my current theme but to no avail and I noticed that the same templates are not the ones actually being shown at the site right now. The templates under my theme is the original default templates that came with the module and NOT the ones being shown at the site which I have edited before upgrading to XOOPS 2.5.7.1. I have extensively edited those templates and don't want to lose any data, please help, thanks!

I have tried changing the directory name of xoops_data and also deleted the files under smarty_compile but I have not fixed the problem. Also "Check templates for modifications?" is set to Yes.



6128
Bleekk
Re: Central Repository for Translations
  • 2015/1/23 11:59

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


xoops is on transifex.
Please look there to find a translation
https://www.transifex.com/



6129
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2015/1/23 11:30

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Hi Angelo

The video you have watched, is for version 1.37 another thing compared to this.

However if there is a problem with the classes that must have the same name as the database table.

is still early to produce a video for this version, since there are some additions to make and bugs to fix, unfortunately I did not have time right now to solve.

I managed to solve only the saving of both new and edit tables

If any of you can help me out let me know in this thread

Thank You!



6130
polits1210
Central Repository for Translations
  • 2015/1/23 2:01

  • polits1210

  • Just popping in

  • Posts: 2

  • Since: 2015/1/22


Hi,

Just want to ask if there is a central repository for other language packs? i've been trying to search for language packs for Japanese UTF-8, Simplified Chinese UTF-8 and Traditional Chinese UTF-8 also.

while doing a google search, i've seen some topics about the language packs but it seems the links does not work anymore because the thread is 8 or 10 years ago.

Thank you.




TopTop
« 1 ... 610 611 612 (613) 614 615 616 ... 29425 »



Login

Who's Online

462 user(s) are online (330 user(s) are browsing Support Forums)


Members: 0


Guests: 462


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits