Support Forum

Problem with buttons

UN
Unknown
Member

Hi there. I have just upgraded to SP V5 successfully. Everything went smoothly except that now I am unable to create a new thread or reply to a post because the buttons “New topic” or reply are not working. I have tried to disable W3 Total Cache but the problem remains the same. I have excluded the forum page from W3 Cache. You can find the forum here:

http://www.technize.net/forum/

Kindly let me know what could be the problem.

27 Answers

New Answer

MP Mr Papa
Mr Papa
Member

well. the button works. you get redirected to the forum page, but js does not work on the site…

its because everything is still being cached… from your site:

<!– Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (Requested URI contains query)
Database Caching 59/81 queries in 0.027 seconds using disk: basic

Served from: www.technize.net @ 2012-03-02 18:30:05 –>

if you use w3 total cache you must ignore the forum page for ALL caching types you use…

PA patrick182
patrick182
Member

Hi,

I run v5. Recently, my “Add Reply” button disappeared. Any ideas why and how to get it back?

MP Mr Papa
Mr Papa
Member

so what has changed?

is the template tag for the button function call still in your template file? In this case, the spTopicView.php of the sp theme you are using…

PA patrick182
patrick182
Member

For what should I be looking in the spTopicView.php file?

MP Mr Papa
Mr Papa
Member

something like this:

sp_PostNewButton(‘tagId=spPostNewButtonTop&tagClass=spButton spRight’, __sp(‘Add Reply’), __sp(‘Add a new post in this topic’), __sp(‘This topic is locked’));

its the call to sp_sp_PostNewButton() with your options that dictate the button coming out…

if its there, then you need to make sure the user in question has permission to add reply to topics…

so if it was working, what changed?

PA patrick182
patrick182
Member

The code is there so that means that my permissions somewhere got mixed up. I haven’t changed a thing. Everything worked well up until two days ago. Where do I reset permissions for my users? It looks like everyone lost post permission. Any ideas why this happened so randomly?

MP Mr Papa
Mr Papa
Member

almost nothing happens randomly…. didnt you have an upgrade issue? did the permissions ever end up right after that?

go to forum – permissions- manage permissions and you can see what the various permission sets are…

if you want to reset the permissions to default AND you are running 5.0.2, you can go to forum – permissions – reset permissions and reset them to the install state….

PA patrick182
patrick182
Member

I have done this and still, when I view permissions for my members, their permissions don’t add up to the permissions that I have set for my members. I give my members standard access and when I view their permissions, they can only view topics, posts, and links. Any ideas what’s going on here? Thank you.

MP Mr Papa
Mr Papa
Member

have you read our controlling access section of the codex? http://codex.simple-press.com/codex/getting-started/controlling-access/

explains how you combine usergroups (collection of users) with a permission set (collection of permissions) and apply them to a forum to control access and permissions?

once you update the permissions in manage permissions, you have to pair that set with a usergroup and apply it to a forum… then users in that usergroup get those permissions…

PA patrick182
patrick182
Member

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

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…