On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




Mods can’t move posts or topics

UserPost

4:01 am
19 Jul 2008


david

Guest

 
1

Hi,

I am running SPF 3.1.3 - WP Plugin. My mods noticed that they cannot move posts or topics. When they click the “move” icon from the Mod toolbar, the pop-up reads “Access Denied”.

In the admin console both “Can Move Topics” and “Can Move Posts” are selected for mods.

I am able to move posts/topics as an Admin that my Mods cannot move.

Any ideas what im missing?

Thanks

david

5:34 am
19 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1270

 
2

yeah, dang it… looks like a bug…  we tried to lock down some security stuff and appears we missed something here…

if you open up file simple-forum/forum/ahah/sf-ahahadmintools.php and replace the following lines at line 31

sf_initialise_globals('forum');

$thistopic = sf_get_topic_record(sf_syscheckint($_GET['id']));
$thisforum = sf_get_forum_record($thistopic->forum_id);
$groups = sf_get_combined_groups_and_forums();

with

$thistopic = sf_get_topic_record(sf_syscheckint($_GET['id']));
sf_initialise_globals('forum', $thistopic->forum_id);
$thisforum = sf_get_forum_record($thistopic->forum_id);
$groups = sf_get_combined_groups_and_forums();

and also, if you find in the same file, lines 67

sf_initialise_globals('topic');

$thispost = sf_syscheckint($_GET['pid']);
$thistopic = sf_get_topic_record(sf_syscheckint($_GET['id']));
$thisforum = sf_get_forum_record($thistopic->forum_id);
$groups = sf_get_combined_groups_and_forums();

and replace with

$thispost = sf_syscheckint($_GET['pid']);
$thistopic = sf_get_topic_record(sf_syscheckint($_GET['id']));
sf_initialise_globals('topic', $thistopic->forum_id);
$thisforum = sf_get_forum_record($thistopic->forum_id);
$groups = sf_get_combined_groups_and_forums();

will get this fixed in the next version…  mostly reordering, but also passing a param that was left out…

4:47 pm
19 Jul 2008


david

Guest

 
3

works like a charm - thanks!!

1:15 am
20 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1270

 
4

good news!  thanks for letting me know…



Reply to Topic: Mods can’t move posts or topics

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 5        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

rwin

13 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1785

Posts: 12041

Members:

There are 827 members

There are 754 guests


Yellow Swordfish has made 4649 posts

Top Posters:

Mr Papa - 1270

-Radio- - 482

ovizii - 94

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)