Orcoa forums

I've been looking but cannot find a solution to the following scenario.

If admin or a member deletes a post, orca returns to the now non existent URL and displays the infamous ACCESS DENIED box.

There's GOT to be a way to make the forum return to the index of the particular forum when that topic is no longer available. 

If anyone can point me in that direction, I'd appreciate it!

Thanks for your time!

===

As a side not, it does this on my STOCK non modded 7.0.9 as well.

http://www.mytikibar.com
Quote · 9 Mar 2013

So, some further research, including removing ALL forums and creating a new one (not a re install of the module tho).

I can create a post.

I can reply to the post.

I can delete the reply, but, if I delete the original post, I get this....

Access denied. You must have special permissions to access this area or you are not logged in.

And upon further investigation..., it ONLY happens when the last topic in the forum is deleted.

I can create a topic and reply to it, delete the original post no error.  When I remove the last post in that particular forum, I get the error.

O____o

If ANYONE knows what changed in the forum from 7.0.9 to 7.1.0 that fixed this, please let me know.

http://www.mytikibar.com
Quote · 10 Mar 2013

Nevermind, I fixed it.

http://www.mytikibar.com
Quote · 10 Mar 2013

Mind sharing the fix?

Ultra Newb reporting for duty.
Quote · 12 Mar 2013

 

Mind sharing the fix?

 It was fixed in 7.1 .  I grabbed the code from there.  but here it is!

in forum.php around line 1283

Find this code

        if ($no_access || 0 != strcasecmp($_SERVER['REQUEST_METHOD'], 'POST'))
        {
            return <<<EOF
<html>
<body>
<script language="javascript" type="text/javascript">
    window.parent.document.f.accessDenied();
</script>
</body>
</html>
EOF;
        }   
   
        // delete post here

        $this->fdb->deletePost ($post_id);
       
        $exists = $aTopic ? 1 : 0;

        if (is_callable($this->onPostDelete))
            call_user_func_array ($this->onPostDelete,  array($aTopic, $post_id, $user));

This is the new code

        if ($no_access || 0 != strcasecmp($_SERVER['REQUEST_METHOD'], 'POST'))
        {
            return <<<EOF
<html>
<body>
<script language="javascript" type="text/javascript">
    window.parent.document.f.accessDenied();
</script>
</body>
</html>
EOF;
        }   
   
        // delete post here

        $this->fdb->deletePost ($post_id);
       
###
#SteveSoft
#03-10-2013
#
        $exists = $this->fdb->getTopic ($topic_id) ? 1 : 0;

        if (is_callable($this->onPostDelete))
            call_user_func_array ($this->onPostDelete,  array($aTopic, $post_id, $user));

remove the red and add the green.

http://www.mytikibar.com
Quote · 21 Apr 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.