News:

Wondering if this will always be free?  See why free is better.

Main Menu

Post Anonymously In Topic

Started by dougiefresh, March 17, 2016, 01:49:55 PM

Previous topic - Next topic

Seamless

#100
Hello all,

Recently, whilst upgrading your mod, I got an error and from that point forwards I've been unable to access the admin page.

If I click anything from the admin menu, I get the following piece of code. I've upgraded to 2.0.14 from 2.0.13 but that didn't fix anything at all. I've changed themes (that didn't help either). I think I've actually made things worse as now no one can log in on new devices - it just says that the session has expired :(

It's becoming an issue pretty quickly now as we can't ban anyone. Any help would be appreciated =)


Array
(
    [forum] => Array
        (
            [title] => Main
            [permission] => Array
                (
                    [0] => admin_forum
                    [1] => manage_permissions
                    [2] => moderate_forum
                    [3] => manage_membergroups
                    [4] => manage_bans
                    [5] => send_mail
                    [6] => edit_news
                    [7] => manage_boards
                    [8] => manage_smileys
                    [9] => manage_attachments
                )

            [areas] => Array
                (
                    [index] => Array
                        (
                            [label] => Administration Center
                            [function] => AdminHome
                            [icon] => administration.gif
                        )

                    [credits] => Array
                        (
                            [label] => Support and Credits
                            [function] => AdminHome
                            [icon] => support.gif
                        )

                    [news] => Array
                        (
                            [label] => News and Newsletters
                            [file] => ManageNews.php
                            [function] => ManageNews
                            [icon] => news.gif
                            [permission] => Array
                                (
                                    [0] => edit_news
                                    [1] => send_mail
                                    [2] => admin_forum
                                )

                            [subsections] => Array
                                (
                                    [editnews] => Array
                                        (
                                            [0] => News
                                            [1] => edit_news
                                        )

                                    [mailingmembers] => Array
                                        (
                                            [0] => Newsletters
                                            [1] => send_mail
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [packages] => Array
                        (
                            [label] => Package Manager
                            [file] => Packages.php
                            [function] => Packages
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [icon] => packages.gif
                            [subsections] => Array
                                (
                                    [browse] => Array
                                        (
                                            [0] => Browse Packages
                                        )

                                    [packageget] => Array
                                        (
                                            [0] => Download Packages
                                            [url] => http://fantasy-faction.com/forum/index.php?action=admin;area=packages;sa=packageget;get
                                        )

                                    [installed] => Array
                                        (
                                            [0] => Installed Packages
                                        )

                                    [perms] => Array
                                        (
                                            [0] => File Permissions
                                        )

                                    [options] => Array
                                        (
                                            [0] => Options
                                        )

                                )

                        )

                    [search] => Array
                        (
                            [function] => AdminSearch
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [select] => index
                        )

                )

        )

    [config] => Array
        (
            [title] => Configuration
            [permission] => Array
                (
                    [0] => admin_forum
                )

            [areas] => Array
                (
                    [corefeatures] => Array
                        (
                            [label] => Core Features
                            [file] => ManageSettings.php
                            [function] => ModifyCoreFeatures
                            [icon] => corefeatures.gif
                        )

                    [featuresettings] => Array
                        (
                            [label] => Features and Options
                            [file] => ManageSettings.php
                            [function] => ModifyFeatureSettings
                            [icon] => features.gif
                            [subsections] => Array
                                (
                                    [basic] => Array
                                        (
                                            [0] => General
                                        )

                                    [layout] => Array
                                        (
                                            [0] => Layout
                                        )

                                    [karma] => Array
                                        (
                                            [0] => Karma
                                            [enabled] =>
                                        )

                                    [sig] => Array
                                        (
                                            [0] => Signatures
                                        )

                                    [profile] => Array
                                        (
                                            [0] => Profile Fields
                                            [enabled] =>
                                        )

                                )

                        )

                    [securitysettings] => Array
                        (
                            [label] => Security and Moderation
                            [file] => ManageSettings.php
                            [function] => ModifySecuritySettings
                            [icon] => security.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => General
                                        )

                                    [spam] => Array
                                        (
                                            [0] => Anti-Spam
                                        )

                                    [moderation] => Array
                                        (
                                            [0] => Moderation
                                            [enabled] =>
                                        )

                                )

                        )

                    [languages] => Array
                        (
                            [label] => Languages
                            [file] => ManageServer.php
                            [function] => ManageLanguages
                            [icon] => languages.gif
                            [subsections] => Array
                                (
                                    [edit] => Array
                                        (
                                            [0] => Edit Languages
                                        )

                                    [add] => Array
                                        (
                                            [0] => Add Language
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                        )

                                )

                        )

                    [serversettings] => Array
                        (
                            [label] => Server Settings
                            [file] => ManageServer.php
                            [function] => ModifySettings
                            [icon] => server.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => General
                                        )

                                    [database] => Array
                                        (
                                            [0] => Database and Paths
                                        )

                                    [cookie] => Array
                                        (
                                            [0] => Cookies and Sessions
                                        )

                                    [cache] => Array
                                        (
                                            [0] => Caching
                                        )

                                    [loads] => Array
                                        (
                                            [0] => Load Balancing
                                        )

                                )

                        )

                    [current_theme] => Array
                        (
                            [label] => Current Theme
                            [file] => Themes.php
                            [function] => ThemesMain
                            [custom_url] => http://fantasy-faction.com/forum/index.php?action=admin;area=theme;sa=settings;th=3
                            [icon] => current_theme.gif
                        )

                    [theme] => Array
                        (
                            [label] => Themes and Layout
                            [file] => Themes.php
                            [function] => ThemesMain
                            [custom_url] => http://fantasy-faction.com/forum/index.php?action=admin;area=theme;sa=admin
                            [icon] => themes.gif
                            [subsections] => Array
                                (
                                    [admin] => Array
                                        (
                                            [0] => Manage and Install
                                        )

                                    [list] => Array
                                        (
                                            [0] => Theme Settings
                                        )

                                    [reset] => Array
                                        (
                                            [0] => Member Options
                                        )

                                    [edit] => Array
                                        (
                                            [0] => Modify Themes
                                        )

                                )

                        )

                    [modsettings] => Array
                        (
                            [label] => Modification Settings
                            [file] => ManageSettings.php
                            [function] => ModifyModSettings
                            [icon] => modifications.gif
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] => Miscellaneous
                                        )

                                    [hooks] => Array
                                        (
                                            [0] => Integration Hooks
                                        )

                                    [pait] => Array
                                        (
                                            [0] => PAIT
                                        )

                                )

                        )

                    [tapatalksettings] => Array
                        (
                            [label] =>
                            [file] => ManageTapatalk.php
                            [function] => ManageTapatalk
                            [icon] => tapatalk_settings.png
                            [subsections] => Array
                                (
                                    [general] => Array
                                        (
                                            [0] =>
                                        )

                                    [boards] => Array
                                        (
                                            [0] =>
                                        )

                                    [rebranding] => Array
                                        (
                                            [0] =>
                                        )

                                    [others] => Array
                                        (
                                            [0] =>
                                        )

                                )

                        )

                    [likeposts] => Array
                        (
                            [label] => Like Posts
                            [file] => /LikePosts/LikePostsRouter.php
                            [function] => routeLikePostsAdmin
                            [icon] => administration.gif
                            [subsections] => Array
                                (
                                )

                        )

                )

        )

    [layout] => Array
        (
            [title] => Forum
            [permission] => Array
                (
                    [0] => manage_boards
                    [1] => admin_forum
                    [2] => manage_smileys
                    [3] => manage_attachments
                    [4] => moderate_forum
                )

            [areas] => Array
                (
                    [manageboards] => Array
                        (
                            [label] => Boards
                            [file] => ManageBoards.php
                            [function] => ManageBoards
                            [icon] => boards.gif
                            [permission] => Array
                                (
                                    [0] => manage_boards
                                )

                            [subsections] => Array
                                (
                                    [main] => Array
                                        (
                                            [0] => Modify Boards
                                        )

                                    [newcat] => Array
                                        (
                                            [0] => Create New Category
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [postsettings] => Array
                        (
                            [label] => Posts and Topics
                            [file] => ManagePosts.php
                            [function] => ManagePostSettings
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [icon] => posts.gif
                            [subsections] => Array
                                (
                                    [posts] => Array
                                        (
                                            [0] => Post Settings
                                        )

                                    [bbc] => Array
                                        (
                                            [0] => Bulletin Board Code
                                        )

                                    [censor] => Array
                                        (
                                            [0] => Censored Words
                                        )

                                    [topics] => Array
                                        (
                                            [0] => Topic Settings
                                        )

                                )

                        )

                    [managecalendar] => Array
                        (
                            [label] => Calendar
                            [file] => ManageCalendar.php
                            [function] => ManageCalendar
                            [icon] => calendar.gif
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [enabled] => 1
                            [subsections] => Array
                                (
                                    [holidays] => Array
                                        (
                                            [0] => Manage Holidays
                                            [1] => admin_forum
                                            [enabled] => 1
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Calendar Settings
                                            [1] => admin_forum
                                        )

                                )

                        )

                    [managesearch] => Array
                        (
                            [label] => Search
                            [file] => ManageSearch.php
                            [function] => ManageSearch
                            [icon] => search.gif
                            [permission] => Array
                                (
                                    [0] => admin_forum
                                )

                            [subsections] => Array
                                (
                                    [weights] => Array
                                        (
                                            [0] => Weights
                                        )

                                    [method] => Array
                                        (
                                            [0] => Search Method
                                        )

                                    [settings] => Array
                                        (
                                            [0] => Settings
                                        )

                                )

                        )

                    [smileys] => Array
                        (
                            [label] => Smileys and Message Icons
                            [file] => ManageSmileys.php
                            [function] => ManageSmileys
                            [icon] => smiley.gif
                            [permission] => Array
                                (
                                    [0] => manage_smileys
                                )

                            [subsections] => Array
                                (
                                    [editsets] => Array
                                        (
                                            [0] => Smiley Sets
                                        )

                                    [addsmiley] => Array
                                        (
                                            [0] => Add Smiley
                                            [enabled] =>
                                        )

                                    [editsmileys] => Array
                                        (
                                            [0] => Edit Smileys
                                            [enabled] =>
                                        )

                                    [setorder] => Array
                                        (
                                            [0] => Set Smiley Order
                                            [enabled] =>
                                        )

                                    [editicons] => Array
                                        (

dougiefresh

Try uploading the attached file to your Sources folder.  Let me know if it fixes the issue....

thunderchld

ALright, first...OMG Yes! thank you. This is perfect.  I thought I had a problem, but it appears to be with my test install somehow.  I was able ot make it work properly on my production site. (oddly enough).

The checkbox works amazing.

For those following along, I made a new field on my form. The internal text is "anonymous". The external Title is still whatever I want it to me. I set the type as a checkbox.

SaltedWeb

The mod appears to be working and not seen , however upon checking the box at settings its

Hide users posting anonymously? check box then saving gives this error, not sure what the check box does?

Database error, given array of integer values is empty. (boards)
Function: PAIT_ConfigApply Filter: Only show the errors from this file File: /home/******/public_html/Sources/Subs-PAIT.php
Line: 343
Quote
   
);
      $smcFunc['db_query']('', '
         UPDATE {db_prefix}boards
         SET post_anon = 1
         WHERE id_board IN ({array_int:boards})',
         array(
            'boards' => $anon,
         )
Red = line 343 Not sure what that setting does, this board only has me as a member as its being setup was needing this mod and there are no errors installing or removing it.

EDIT: ok apparently any setting under Post Anonymously In Topic settings, gives that same error. Yet it will post anonymous but none of these settings will save.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

dougiefresh

@SaltedWeb: When I installed it on a clean localhost forum, the options were able to be saved correctly.  My suggestion is to extract db_install.php and place it into your forum root folder, then call it directly from your web browser.  It should insert the fields into the database that you seem to be missing....

EDIT:  Scratch that.  Modified the board listing that could post anonymously and that error came up.  Let me figure out WTF is going on here....

SaltedWeb

Just got home, thanks  :) Dougie I had not tried it yet .....thanks for looking into it.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

dougiefresh

Uploaded v2.8 - January 7th, 2018
o Fixed "array of integer values is empty" database error in Subs-PAIT.php.




@SaltedWeb:  This update should fix the issue you reported!  Thanks again!

SaltedWeb

#107
So I removed the old one and tested it, found a conflict with a Mod but thats my own problem I worked around.
Seems to all be working as it should appreciate your hard work. I will test it more in my test forum Monday afternoon
but tonight I found permissions for groups, adding to new boards modifying old boards with the addon working fine and smooth.
And also no error codes :-)
I will try tomorrow adding a member to test forum and see if it hides them, for that button

You sure come up with some great mods thanks DougieFresh for all the help.

SW
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

dougiefresh

@SaltedWeb:  What mod are you experiencing a conflict with?  Maybe I can resolve the conflict between the two.....

SaltedWeb

@Dougiefresh
Hi Dougie it was Board-color-and-icons 1.1 it gave an error when I installed the Anonymous a mod, but found if removed Board-color-and-icons
then installed Anonymous there was no error so was my work around. I try and always check everything I can before bugging the developers.
I don't have any error codes just install or removal codes which seemed to fix it as installed.
Hope that made sense...
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

SaltedWeb

#110
So I did find that the new version gives the error below when  Board-color-and-icons 1.1 is active.
If I remover the  Board-color-and-icons 1.1 first then Anonymous mod will uninstall just fine.
So something bewteen them tow hope the attached helps.

PS as mentioned before DougieFresh, I tested the other additions and they seem to work all as they should just the above conflict between
those two mods.  Let me know if you need anything else I am running them on a test board so it wont good up anything :-)

( edit forgot the error pic)
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

dougiefresh

@SaltedWeb:  A mod I've found very useful while dealing with mods is Arantor's Sortable Packages (and Installed Time) mod.  It allows you to sort the mods by installation order....  It's been quite helpful to me, and hopefully it will be to you as well....

Regarding the mod resolution, I've make a note for the next version about the mod installation order....

aegersz

 that Sortable Packages mod was recommended to me by SM and it's absolutely vital if you have lots of mods.

it's a beauty !
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

SaltedWeb

Installed today in 2.0.15 that Sortable Packages mod
Nice for testing mods as well to tell what order and times very nice thanks DF..


SW
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

-Rock Lee-

Here I leave the translation to Latin Spanish, although I swear I had done it ... in short, the only doubt I have is to translate "PAIT" I did not know how to interpret it ???


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v2.9 - February 13th, 2018
o Added Spanish Lation translation, courtsey of Rock Lee.
o Added LICENSE.txt file to satisfy licensing concerns.




@Rock Lee:  Thank you for the translation!  It's been added to this version!

becometa

@dougiefresh,

it seems that PAIT is causing unability to edit posts/topics by members with permission to "edit others posts and topics" - even having administrator role.

Both administrators and moderators receive You are not allowed to access this section error message after saving the edited post or topic.
To make things weirder even thought that error message is being displayed... the message body is being updated properly :o
Manual return to the topic reveals that post actually was edited and SMF act like everything is ok.

I've installed PAIT 2.9 on freshly created SMF 2.0.15 instance, created new user with mod priviliges, tried to edit other user/admin post and You are not allowed to access this section is being shown.

It's not a big thing but this message is just annoying when editing lots of messages at once.

Error log does not produce any output which might help to trace the issue origin.

dougiefresh

@becometa:  Huh....  That's not good at all...  Let me look into the issue.

becometa

Quote from: dougiefresh on March 15, 2018, 06:05:45 PM
@becometa:  Huh....  That's not good at all...  Let me look into the issue.

have you encountered any progress in this matter?

dougiefresh

Quote from: becometa on May 19, 2018, 04:44:56 AM
Quote from: dougiefresh on March 15, 2018, 06:05:45 PM
@becometa:  Huh....  That's not good at all...  Let me look into the issue.

have you encountered any progress in this matter?
I'm sorry, I haven't even looked into the bug report yet.  I have been trying to rest the last two weeks or so, as I have gotten exhausted trying to keep up with everything....

Advertisement: