aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | [ticket/10967] adding $root_path to posting_get_topic_iconsSenky2012-10-111-2/+4
| | | | | | | | | | | | | | | | PHPBB3-10967
* | | | [feature/soft-delete] Fix the rest of *_approved and the delete_post unit testJoas Schilling2012-11-101-8/+7
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Append _approved to *_posts and *_topics column namesJoas Schilling2012-11-091-4/+5
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Correctly manage softdeleting via posting.phpJoas Schilling2012-11-021-4/+4
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Correctly increase topics post counts when postingJoas Schilling2012-10-281-0/+2
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Fix some more topic/post count handlingJoas Schilling2012-10-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Only disapproving in queue is missing. PHPBB3-9567
* | | | [feature/soft-delete] Fix forum syncing in ACP and deleting postsJoas Schilling2012-10-221-3/+12
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Fix submit_post() topic_replies* usageJoas Schilling2012-10-221-10/+37
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Split unapproved/soft deleted posts from topicsJoas Schilling2012-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a topic is soft deleted through a moderator, the topic_delete_user is set. If it is passively soft deleted (f.e. while the only approved post is deleted) the topic_delete_user is not set. This way, we can distinguish between these two cases. The same also applies to unapproved posts. So we need to set the topic_delete_user when an unapproved topic is posted. Topics that were soft deleted/unapproved by a user (rather then passive) are going to be displayed in the Topics modules, while all others are in the posts modules of the MCP queue. PHPBB3-9567
* | | | [feature/soft-delete] Fix several issues within submit_post()Joas Schilling2012-10-091-200/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - $post_visibility is not boolean, so we need to check for == ITEM_APPROVED - sync() already updates the topic/forum info, so we don't need to do that again - use set_post_visibility() when changing the posts visibility Should be ready for testing. PHPBB3-9567
* | | | [feature/soft-delete] Fix restoring a post via editingJoas Schilling2012-10-081-1/+1
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Update post counts within set_post_visibilityJoas Schilling2012-10-081-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an additional query in some rare cases, but it makes it much easier to use and understand. This is mostly a preparation for the restore case. PHPBB3-9567
* | | | [feature/soft-delete] Allow to update multiple posts with set_post_visibilityJoas Schilling2012-10-081-2/+0
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Add test case for (soft)deleting the only post + fixJoas Schilling2012-10-061-3/+2
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Fix delete_post() functionJoas Schilling2012-10-061-16/+32
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Update and simplify the logic on delete_post()Joas Schilling2012-10-061-42/+38
| | | | | | | | | | | | | | | | | | | | | | | | Todo: delete_topic case PHPBB3-9567
* | | | [feature/soft-delete] Allow setting the visibility change reasonJoas Schilling2012-09-281-4/+4
| | | | | | | | | | | | | | | | PHPBB3-9657
* | | | [feature/soft-delete] Fix some small bugsJosh Woody2012-08-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To wit: using non-existing constant POST_DELETED in posting.php; first test post was initially unapproved; soft delete checkbox appeared at post time Links pointing to the wrong place. PHPBB3-9657
* | | | [feature/soft-delete] Rename phpbb_visibility class to phpbb_content_visibilityJosh Woody2012-08-291-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Rename the class to more accurately reflect what it does. PHPBB3-9657
* | | | [feature/soft-delete] Implement the ability to soft-delete and restore postsJosh Woody2012-08-291-50/+62
| | | | | | | | | | | | | | | | | | | | | | | | The soft delete feature seems to work. Tests are pending. A real icon is pending. Add the permissions and the interface to soft-delete posts. Also able to restore posts via the MCP queue PHPBB3-9657
* | | | [feature/soft-delete] I told you I was going to rename the class!Josh Woody2012-08-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Rename topic_visibility class to phpbb_visibility. Also a bit of work to the class itself, mostly cleanup and adding the comments that I'd previously written. PHPBB3-9657
* | | | [feature/soft-delete] Lay the groundwork for a soft-delete featureJosh Woody2012-08-291-32/+32
|/ / / | | | | | | | | | | | | | | | So far, I've added no new functionality. The biggest change here is adjusting the DB column names to "visibility" rather than "approved". Some things here are pretty likely to change, for example the name and location of the topic_visibility class. Happy birthday phpBB :) PHPBB3-9657
* | | Merge remote-tracking branch 'nickvergessen/feature/php-events-4' into developDavid King2012-08-201-1/+13
|\ \ \
| * | | [feature/php-events] Fix doc of core.generate_smilies_afterJoas Schilling2012-08-201-1/+1
| | | | | | | | | | | | | | | | PHPBB3-9550
| * | | [feature/php-events] Fix naming and doc of core.generate_smilies_afterJoas Schilling2012-08-041-3/+12
| | | | | | | | | | | | | | | | PHPBB3-9550
| * | | [feature/events] Removing the third trigger_event parameterMichael Cullum2012-08-011-1/+1
| | | | | | | | | | | | | | | | PHPBB3-9550
| * | | [feature/events] Change to use the new method of adding eventsMichael Cullum2012-08-011-3/+1
| | | | | | | | | | | | | | | | PHPBB3-9550
| * | | [feature/events] Adding ledge generate_smilies_footerJoas Schilling2012-08-011-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Used by phpBB Gallery PHPBB3-9550
* | | | [ticket/11052] pass parametes to search construct while postingDhruv2012-08-151-1/+1
|/ / / | | | | | | | | | | | | | | | | | | Proper parameters are passed in search backend constructor in functions_posting.php PHPBB3-11052
* | | [ticket/10968] Render pagination within the templateDrae2012-07-181-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since phpBB 2 pagination has been rendered mostly within the source. This limits just what designers can do with pagination. The current form is also questionable in terms of "best practice". The aim is to move rendering completely to the template via the use of a block element. Enabling S_ template vars also allows for control over specific aspects of the pagination output such as next, previous, active and ellipsis. Related to this - merging the capabilities of the topic_generate_pagination with generate_pagination removes an element of duplication. PHPBB3-10968
* | | [ticket/10640] Do not change default value of truncate_string()Joas Schilling2012-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | The default value should be kept, so we do not change the behaviour for MODs and Extensions that use the function with its default values. PHPBB3-10640
* | | Merge branch 'develop-olympus' into developIgor Wiedler2012-03-311-1/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | * develop-olympus: [Ticket/10675] Correct language string ATTACH_DISK_FULL [feature/event-dispatcher] Adding composer.phar to .gitignore for olympus [ticket/10675] Add disk full language string when posting attachments
| * | Merge remote-tracking branch 'Dickyf/ticket/10675' into develop-olympusIgor Wiedler2012-03-311-1/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | * Dickyf/ticket/10675: [Ticket/10675] Correct language string ATTACH_DISK_FULL [ticket/10675] Add disk full language string when posting attachments
| | * | [ticket/10675] Add disk full language string when posting attachmentsRichard Foote2012-03-191-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add language string visible by admins only for when the disk does not have enough free space to upload attachments. PHPBB3-10675
* | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-03-221-26/+20
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10684] Adjust function and parameter name, minor changes. [ticket/10684] Rename function phpbb_get_banned_users_ids() parameter [ticket/10684] Remove intval mapping for array keys [ticket/10684] Adjust pm_notifications() to handle stale bans [ticket/10684] Cast user_id to integer [ticket/10684] Refactor $sql_ignore_users array update [ticket/10684] Remove isset() for $sql_ignore_users update [ticket/10684] Fix 2 typos in comment lines. [ticket/10684] Send notifications for users with stale bans Conflicts: phpBB/includes/functions_user.php
| * | | [ticket/10684] Adjust function and parameter name, minor changes.rxu2012-03-221-2/+2
| | | | | | | | | | | | | | | | PHPBB3-10684
| * | | [ticket/10684] Cast user_id to integerrxu2012-03-111-5/+7
| | | | | | | | | | | | | | | | PHPBB3-10684
| * | | [ticket/10684] Refactor $sql_ignore_users array updaterxu2012-03-101-10/+3
| | | | | | | | | | | | | | | | PHPBB3-10684
| * | | [ticket/10684] Remove isset() for $sql_ignore_users updaterxu2012-03-091-4/+1
| | | | | | | | | | | | | | | | PHPBB3-10684
| * | | [ticket/10684] Fix 2 typos in comment lines.rxu2012-03-091-1/+1
| | | | | | | | | | | | | | | | PHPBB3-10684
| * | | [ticket/10684] Send notifications for users with stale bansrxu2012-03-081-17/+19
| |/ / | | | | | | | | | PHPBB3-10684
* | | Merge branch 'develop-olympus' into developAndreas Fischer2012-03-021-0/+14
|\ \ \ | |/ / | | | | | | | | | | | | * develop-olympus: [ticket/8652] Comment for also updating forum watch table in user_notification. [ticket/8652] Sending 2 emails on 2 replies
| * | [ticket/8652] Comment for also updating forum watch table in user_notification.Andreas Fischer2012-03-021-2/+10
| | | | | | | | | | | | PHPBB3-8652
| * | [ticket/8652] Sending 2 emails on 2 repliesBruno Ais2012-03-021-0/+6
| |/ | | | | | | | | | | | | | | | | | | This is a fix for the problem of the system sending 2 emails when there are 2 replies to a topic where the user is subscribed in a topic and the forum that contains the topic. This simple fix seems to solve the problem. In simple tests I made it shows it does. PHPBB3-8652
* | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-311-2/+1
| | | | | | | | PHPBB3-9916
* | Merge remote-tracking branch 'nickvergessen/ticket/10484' into developOleg Pudeyev2011-11-241-5/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | * nickvergessen/ticket/10484: [ticket/10484] Use variables for sql_build_query() calls Conflicts: phpBB/includes/mcp/mcp_front.php
| * | [ticket/10484] Use variables for sql_build_query() callsJoas Schilling2011-11-211-5/+6
| | | | | | | | | | | | | | | | | | It's easier for mods/extensions to extend the arrays. PHPBB3-10484
* | | Merge remote-tracking branch 'naderman/feature/extension-manager' into developIgor Wiedler2011-11-191-7/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * naderman/feature/extension-manager: (67 commits) [feature/extension-manager] Removing now unused acp_search code [feature/extension-manager] Split disabling extensions up into steps as well [feature/extension-manager] Add documentation on caching in ext finder [feature/extension-manager] Reference correct new module basenames in install [feature/extension-manager] Rename default methods to core methods on finder. [feature/extension-manager] Document what the class loader stores in cache [feature/extension-manager] Add docblock to cached paths map in class loader [feature/extension-manager] Clear up docs of extension related template changes [feature/extension-manager] Use "core files" instead of "global files" in docs [feature/extension-manager] Add docblocks to new search backend methods [feature/extension-manager] Add docblocks to new methods in functions_module [feature/extension-manager] Clarify comment on ext meta class instantiator [feature/extension-manager] Add more info on suffixes in extension finder [feature/extension-manager] Clarify is_dir parameter description [feature/extension-manager] Clarify class finding method docblock [feature/extension-manager] Correct default path comment & remove double strlen [feature/extension-manager] Fix "disbale" typo in comment [feature/extension-manager] Properly remove old ACP language loading code [feature/extension-manager] Support extensions in subdirectories of ext/ [feature/extension-manager] Add prefix to extension meta data / install classes ...
| * | | [feature/extension-manager] Make search backends loadable from extensionsNils Adermann2011-09-291-7/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | Search backends are now required to be autoloadable. The database updater to 3.1 tries to guess the class name as phpbb_search_<oldname> which works for the default backends we ship. PHPBB3-10323
* | | Merge branch 'develop-olympus' into developNils Adermann2011-11-181-4/+4
|\ \ \ | |/ / |/| / | |/ | | * develop-olympus: [ticket/9776] Delete poll if no poll options were submitted.