Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Problem with buttons
Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
Mar 17, 2012 - 10:21 pm

I have done that. All registered users are provided member permissions. The Post Reply button is still missing. Any ideas? Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2012 - 10:29 pm

at this point, you should probably create a temp account for us and pm the details to us if that is acceptable... the account should be a wp admin and have sp admin caps, so we can take a closer look... if good, pm to myself and yellow swordfish...

Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
Mar 17, 2012 - 10:57 pm

PM sent

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2012 - 11:24 pm

replied in pm... account needs to be set up more...

also, that is a nasty problem with the timezone based on your wp timezone setting... have opened a ticket for research on that... something going haywire with a UTC-7 setting in your wp timezone... most folks use an actual city, so probably why we havent run across that... for now, I switched your setting to an equivalent city with same utc offset...

not sure best way around that currently... and I disabled the w3tc plugin for now so its not getting in the way (it was)... but now the real pages are showing more errors...

more in pm...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2012 - 11:31 pm

can you try a quick code change for me?

go to simple-press/forum/database/sp-db-statistics.php and find routine sp_set_last_visited()... go to about line 312 and fine this code:

        $date_time_zone_selected = new DateTimeZone(sp_esc_str($opts['timezone_string']));
        $userOffset = timezone_offset_get($date_time_zone_selected, date_create());
        $wptz = get_option('timezone_string');

can you try changing it to:

        if (preg_match('/^UTC[+-]/', $opts['timezone_string']) ) {
            # correct for manual UTC offets
            $userOffset = preg_replace('/UTC\+?/', '', $opts['timezone_string']) * 3600;
        } else {
            # get timezone offset for user
            $date_time_zone_selected = new DateTimeZone(sp_esc_str($opts['timezone_string']));
            $userOffset = timezone_offset_get($date_time_zone_selected, date_create());
        }
        $wptz = get_option('timezone_string');

and see if that fixes that issue for existing users and guests...  i dont really have any chance at this late hour to set up a proper test for it...

or it you want to provide us with ftp access we could try the change... getting late though so needs to be quick or wait for Andy to come back in AM...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2012 - 12:04 am

slight mod for the replace code:

        if (preg_match('/^UTC[ \t+-]/', $opts['timezone_string'])) {
            # correct for manual UTC offets
            $userOffset = preg_replace('/UTC\+?/', '', $opts['timezone_string']) * 3600;
        } else {
            # get timezone offset for user
            $date_time_zone_selected = new DateTimeZone(sp_esc_str($opts['timezone_string']));
            $userOffset = timezone_offset_get($date_time_zone_selected, date_create());
        }
        $wptz = get_option('timezone_string');
Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
Mar 18, 2012 - 12:10 am

PM with login creds sent

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2012 - 12:18 am

okay, the last change has fixed the timezone error...  and logout error...

and with cached pages no longer being served, users are able to post... as evident by the test posts (one new topic and one reply) I left...

http://radithreads.com/forum/f.....-post#p872

http://radithreads.com/forum/f.....ystem#p873

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2012 - 12:19 am

so up to you if you want to re enable those caching and js manipulating plugins...  just be sure they dont server cached pages like they were...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2012 - 12:21 am

to be clear...  all sp forum pages appear on a single wp page... which is why you cannot cache it... that single wp page is dynamically generated...  if you cache the wp page, the forum dynamic page generation cannot happen...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626