1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-27 18:00:30 +02:00
Commit Graph

185 Commits

Author SHA1 Message Date
Cameron
4a9cf379a6 PHP8 Forum code cleanup 2021-01-22 06:31:23 -08:00
Cameron
f055b49d91 PHP8 Plugin code cleanup 2021-01-21 09:38:38 -08:00
Cameron
e948c6fc11 PHP8 - BC Fix for newforumposts_menu.php 2021-01-09 10:08:57 -08:00
Cameron
3f5d3786b2 PHP8 fixes and shortcode tests for forum, gallery, hero and login_menu. admin-shortcode time fix. 2021-01-07 13:24:55 -08:00
Cameron
3f8e043998 Replaced e107::getAdminLog() with e107::getLog(). e107::getAdminLog() will continue as a deprecated alias. 2020-12-22 09:36:02 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Nick Liu
f256b924ce Fix all PHP 8.0 test failures 2020-11-30 12:55:00 +01:00
Tijn Kuyper
7c54779e36 Forum - Fix LAN when error occurred when deleting a forum post 2019-11-27 16:49:32 +01:00
Tijn Kuyper
18243e7cdd Closes #3948 - Forum icons extra check added for consistency
Forum icons can be placed in the THEME/forum/images/icons folder (same as with PLUGIN/forum/images/icons structure)
2019-10-02 11:31:30 +02:00
Cameron
1e6bf9df94 Added Forum breadcrumbs to {---BREADCRUMB---} 2019-06-15 10:20:32 -07:00
Cameron
eb6401385e Code cleanup 2019-05-26 17:05:29 -07:00
Tijn Kuyper
a82c278598 Fix forum query - parent_sef now displaying correctly 2019-04-12 14:21:01 +02:00
Achim Ennenbach
e30d901259 issue #3277: fixed conditional for user_forum_topic_created_probationary event 2019-01-16 11:58:26 +01:00
Jimako
3b158218cf Fix #3338 - marked more than one forum as read
Because $currentUser['user_plugin_forum_viewed'] is not refreshed after adding one thread,  it's still the same and only last thread is changed
2019-01-06 13:48:56 +01:00
phibel
e2789872a5 FIX the database was not updated when a post was deleted
Looks like someone was interrupted during work and than it was merged into the repo?
Anyway, the needed information are stored in $postInfo[] and not in $row[].
2018-10-13 15:55:31 +02:00
phibel
3848560752 ENH allow user to delete his own post, if it is the last post in the thread 2018-10-13 15:55:31 +02:00
phibel
c644a8b9d2 FIX check moderator permissions for thread-operations
Without admin permissions (member of user class 254) it was not possible to modify threads in
the forum. This fix get the forum-moderator permissions by the threadId to modify this thread.
2018-10-13 15:55:31 +02:00
phibel
37d086c418 MNT remove debug print 2018-10-13 15:55:31 +02:00
phibel
9ca28b8fa4 FIX user can transfer his moderator permissions from one forum to an other forum
I am working further on the moderator permissions and discovered that my previous commit
692509f is a bad solution. Because the moderator submits the threadId and postID for the post
who he wants to delete. This threadId was used to check the moderator permissions of the postId.

So if a moderator has only permissions for one forum, he could change the transmitted threadId
in an other forum to get there also moderator permisssions...

Sorry that I did not noticed this glitch before I made the previous commit. :-/
2018-10-13 15:55:31 +02:00
phibel
98213ec03c FIX check if user has moderator permissions for the thread/forum
Without admin permissions (member of user class 254) it was not possible
to delete a post in the forum. This fix add the threadId to the ajax query
and fetchs the forum-moderator for the thread which will then checked
against the user permissions/classes.

I added also an additional error message, if something goes wrong.
2018-09-30 23:21:43 +02:00
Cameron
2429f9058e Merge pull request #3363 from SimSync/fix_3337
fixes #3337 usage of old v1 table names
2018-08-13 11:27:27 -07:00
Achim Ennenbach
0afb9e67bf fixes #3269 switched v1 tables to v2
Fixed issue with null values in table (on duplicate)
2018-08-09 14:52:17 +02:00
Achim Ennenbach
a3dae1ecfd fixes #3337 usage of old v1 table names
new route /forum/?new to display new posts
2018-08-08 20:27:04 +02:00
Achim Ennenbach
181149665d fixes #3338 fixed typo and e_SELF calling itself (infinite loop) 2018-08-07 12:27:24 +02:00
Achim Ennenbach
d838a825c8 fixes #3059 updated lans (removed html)
Renamed lan vars
Cleanup code in e_notify.php
Fixed wrong event name in forum_class.php
2018-08-06 21:50:25 +02:00
Achim Ennenbach
480ccc20bc fixes #3277 implemented events for:
thread moved, thread updated, post created, post updated
deactivated: thread split
2018-08-03 20:49:16 +02:00
Achim Ennenbach
7a616430de wip #3277 implemented events for:
thread created, thread of new user created, thread deleted,
post deleted, post reported
still missing: thread moved, thread split, post created
2018-08-02 22:34:11 +02:00
Nick Liu
32b844dad3 Grammar correction near previous commit
Also cleaned up comments made in previous commit
2018-06-21 23:33:46 -05:00
Achim Ennenbach
94cb469862 Removed the orphaned debug message
concerning "legacy forum menu prefs detected. Upgrading ..." as it
actually doesn't detect or upgrade anything.
2018-06-21 23:31:15 -05:00
Tijn Kuyper
65f840d5b3 #2287 - Fix for LAN loading in forum plugin 2017-01-17 00:42:28 +01:00
Cameron
126f89da9f Code cleanup 2016-12-01 15:38:40 -08:00
Cameron
a9c40a8f00 Issue #2053 - Forum missing SEF URL debug info added. 2016-11-21 17:21:07 -08:00
Cameron
e5d9b896ca Issue #2016 Fix for forum "New Post" indicator icon. 2016-11-17 16:14:25 -08:00
Gábor
e0b2248662 Update forum_class.php
Add lang codes
2016-09-15 10:55:12 +02:00
rica-carv
96235b5f08 Pull errors fix
Pull errors fix
2016-06-15 10:08:20 +01:00
rica-carv
fe54bd0377 Forum $fVar, $tVar removal
Forum $fVar, $tVar removal

Added also some code clean up for previous submit #1677 (forum.php & forum_shortcodes.php)
2016-06-14 13:34:52 +01:00
Cameron
00c640626d Forum #295 Preparations for thread/topic filtering. 2016-05-22 11:58:27 -07:00
Cameron
b05785dd01 Forum: Added missing breadcrumbs to report and move pages. 2016-05-04 09:25:44 -07:00
Cameron
1ad918eb65 Forum: Fix wrapper styling. More work on experimental 'split' function. 2016-05-04 09:13:46 -07:00
Cameron
8dbe69c291 Forum: Experimental topic/thread split feature added. (requires e_DEVELOPER to be true in e107_config.php) 2016-05-03 20:52:46 -07:00
Cameron
699257e3c3 Forum triggerData fix. 2016-04-22 09:01:18 -07:00
Cameron
798d1d4c91 Corrected Forum event data. 2016-04-22 08:45:11 -07:00
Cameron
3c2def3a31 Issue #1493 : Allow tracking of topics via tracking page only (no emails). (work in progress) 2016-04-05 11:21:53 -07:00
Cameron
2dedb86ba8 Viewable By shortcode added. Forum deleted template corrected. 2016-03-26 15:17:11 -07:00
Cameron
e401e4b4ac Correction to last commit. 2016-03-26 12:54:08 -07:00
Cameron
74f0e2f3d9 Forum: Fix for SEF Url on Redirect to post. 2016-03-26 12:29:32 -07:00
Cameron
a4583a4f52 Forum: Fix for forum creation access rights. 2016-03-24 20:14:56 -07:00
Cameron
cd57f1aef8 Forum notice fixes and bootstrap3 poll styling. 2016-03-23 20:13:26 -07:00
Cameron
825ab74984 Custom Forum title now respected throughout. 2016-03-23 17:25:21 -07:00