Skip to content

Commit

Permalink
Working on new theme (mybb#2973) (mybb#3297)
Browse files Browse the repository at this point in the history
* Working on new theme (mybb#2973)

- editpost
- memberlist
- polls
- most of postbit
- sendthread
- showteam
- most of showthread

* Working on new theme mybb#2973

more sections completed

* Fixing the CSS path reference (again)

+ search page

* Adding modals

* Adding reputation page

Also breaks out post control styles (so they can easily be reused in places like the reputation page)

* Fix post inline mod checkbox

* Starting user cp

* More of User CP

* Thread and forum subscription pages

* Thread list WIP

* Fixing announcements on forumdisplay

* Misc minor fixes

* Fixing yesterday typo

* Fix missing yesterday/today

* Minor fixes

* Misc forumbit fixes

* Postbit updates

* Beginning of moderation pages

+ a couple miscellaneous lang changes

* Add thread closed message

* More moderation pages + minor fixes

* remove link to archive mode

* Adding edit buddy/ignore list page

* Buddy popup

* RSS syndication page

* Portal

+ a few minor revisions elsewhere

* Login form on portal

* Search results

+ minor changes elsewhere

* Breadcrumb

To do (probably): page drop down

* Add portal page title

* Working on Mod CP

Mod CP menu is not fully functional (probably only works for super mods)

* Banning + find user fixes

* button tweaks

* Announcement section of Mod CP WIP

Still a few things to clean up here

* Fixes warnings list on user cp dashboard

* Replace default avatar image with icon

It's possible I missed a spot; several of these also need the actual avatar loaded

* Cleaning up announcements

* Moderator listing on forum list

* Report center, drafts, beginning of warn user page, misc changes

some still WIP

* Minor changes to report center & show thread footer

* WIP moving post options in dropdown

* postbit dropdown adjustments

* Postbit, multiquote improvements

* Moderator logs

* Mod CP home page WIP

* Warning logs

* Moderation queue

* Update fontawesome version

* Finishing up mod cp

* Attachments & drafts WIP

* Warnings WIP

* Attachments page

* Fix attachments page title

* Finishing up warnings

to do: standardize how we handle colons

* Minor warnings update

* remove loginbox from moderation pages

* Delayed moderation

* Removing one more loginbox

* Thread notes

and minor delayed moderation change

* Moderation language change

* Finishing up moderation tools

still to do: styling of moderation dropdowns in forum display, show thread

* removing colons

* Forum bit changes

* Last post "Never" changed to "No posts yet"

* Help docs

* Redirect page

* Various misc templates

Forum jump removed from show thread, forum display

* Parser changes

Quotes that don't have a citation don't have a template

* php code template

* minor language change

* Messenger WIP

To do: folders in the menu

* Messenger WIP

Folders now shown on some pages but not all

* Various moderation improvements on showthread, forumdisplay

* Standardizing fontawesome set

* fix for BCC on PM quick reply

* Update unread PM count in welcomeblock

when reading a PM

* Improving PM count update

* Thread list improvements

* Finishing up forumdisplay

Plus other minor tweaks

* Fixing forum description

* Forum description fix II

* Cleaning up forum bit

for password protected forums

* Fixing forumbit logic

* Fix indentation

* Calendar

* Finishing Calendar

* Fixed hard space in usergroups template

* Manage groups

* Misc cleanup

* Fixing page description class

* Some postbit and thread list cleanup

* Hide quick reply in deleted threads

* Thread prefix styling

* More thread prefix cleanup

* fix attachment templates

* Cleaning up last poster avatars

* Member list avatar

also switching CSS back to GitHub pages

* Fix avatar upload

* Fix user dropdown avatar

* Icon standardization (WIP)

* Fix quote

* More avatars

still a few things to clean up with these

* Fixing usercp redirect grammar

* Taming some alerts

* Fix duplicate edit buttons on announcement

* Fix hidden registration fields

* Clean up subforums list

* Fix mark read auth code mismatch

* Improve modal close button

Fixes quick login close button and standardizes button with template

* Icons, tabs/spaces, and page titles

- replacing icons with standard template
- standardizing indents as spaces
- swapping page title order

* Clean up stats page

* Finish warn user page

* Profile clean up, removing more colons

* Add templates used in Admin CP

* Add more templates used in ACP

* Improve no permission page

* No permissions logged in user message

* Pagination - jump to page

* Fix threaded mode icon

* Fixes mybb#3564 <abbr> tag on registration

* changing footer HTML comments to Twig comments

* Similar threads + threaded mode

* Hot thread, contains posts by you icons

* Adding jscripts block to <head>

* Fix forum select
  • Loading branch information
justinsoltesz authored and euantorano committed Mar 23, 2019
1 parent d225830 commit 85ce677
Show file tree
Hide file tree
Showing 275 changed files with 12,706 additions and 11,490 deletions.
1 change: 1 addition & 0 deletions calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,7 @@
}

$day_bit['day'] = $day;
$day_bit['month'] = $monthnames[$calendar_month];
$days[] = $day_bit;
++$day;
}
Expand Down
5 changes: 3 additions & 2 deletions forumdisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@
$announcement['announcementlink'] = get_announcement_link($announcement['aid']);
$announcement['subject'] = $parser->parse_badwords($announcement['subject']);
$announcement['subject'] = htmlspecialchars_uni($announcement['subject']);
$postdate = my_date('relative', $announcement['startdate']);
$announcement['postdate'] = my_date('relative', $announcement['startdate']);

$announcement['username'] = htmlspecialchars_uni($announcement['username']);

Expand Down Expand Up @@ -924,6 +924,7 @@
'subAction' => $subAction,
'multipage' => $multipage,
'threadcount' => $threadcount,
'announcements' => $announcements,
'threadCache' => $threadCache,
'perpage' => $perpage,
'prefixselect' => $prefixselect,
Expand All @@ -936,4 +937,4 @@
'sorting' => $sorting,
'customTools' => $customTools,
'hasModTools' => $hasModTools
]));
]));
21 changes: 12 additions & 9 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,27 +637,28 @@ function get_child_list($fid)
* @param string $error The error message to be shown
* @param string $title The title of the message shown in the title of the page and the error table
*/
function error($error="", $title="")
function error($error_message="", $title="", $error_page="")
{
global $db, $lang, $mybb, $plugins;

$error = $plugins->run_hooks("error", $error);
$error_message = $plugins->run_hooks("error", $error_message);

// AJAX error message?
if ($mybb->get_input('ajax', MyBB::INPUT_INT)) {
// Send our headers.
@header("Content-type: application/json; charset={$lang->settings['charset']}");
echo json_encode(array("errors" => array($error)));
echo json_encode(array("errors" => array($error_message)));
exit;
}

$timenow = my_date('relative', TIME_NOW);
reset_breadcrumb();
add_breadcrumb($lang->error);

output_page(\MyBB\template('error/error.twig', [
'title' => $title,
'error' => $error
'error_message' => $error_message,
'error_page' => $error_page,
]));

exit;
Expand Down Expand Up @@ -755,12 +756,14 @@ function error_no_permission()
}
}

$errorpage = \MyBB\template('error/no_permission.twig', [
$error_message = \MyBB\template('error/no_permission_message.twig');

$error_page = \MyBB\template('error/no_permission.twig', [
'username' => $username,
'redirect_url' => $redirect_url
]);

error($errorpage);
error($error_message, $lang->error_nopermission, $error_page);
}

/**
Expand Down Expand Up @@ -2478,7 +2481,7 @@ function build_forum_jump($pid=0, $selitem=0, $addselect=1, $depth="", $showextr
$forum_link = "'".str_replace('{fid}', "'+option", FORUM_URL);
}
}

$forumjump = \MyBB\template('misc/forumjump.twig', [
'showextras' => $showextras,
'forumjumpbits' => $forumjumpbits,
Expand Down Expand Up @@ -2888,7 +2891,7 @@ function build_mycode_inserter($bind="message", $smilies = true)
function build_clickable_smilies()
{
global $cache, $smiliecache, $theme, $templates, $lang, $mybb, $smiliecount;

$clickablesmilies = '';

if ($mybb->settings['smilieinserter'] != 0 && $mybb->settings['smilieinsertercols'] && $mybb->settings['smilieinsertertot']) {
Expand Down
6 changes: 5 additions & 1 deletion inc/functions_forumlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function build_forumbits($pid=0, $depth=1)
$parent_counters['viewers'] = 0;
$forum_list = $comma = '';
$donecount = 0;
$more_count = 0;

// Foreach of the forums in this parent
foreach($fcache[$pid] as $parent)
Expand Down Expand Up @@ -272,7 +273,10 @@ function build_forumbits($pid=0, $depth=1)
{
if(subforums_count($fcache[$pid]) > $donecount)
{
$forum_list .= $comma.$lang->sprintf($lang->more_subforums, (subforums_count($fcache[$pid]) - $donecount));
$more_count = subforums_count($fcache[$pid]) - $donecount;
$forum_list .= \MyBB\template('forumbit/subforums_more.twig', [
'more_count' => $more_count
]);
}
}
continue;
Expand Down
37 changes: 20 additions & 17 deletions inc/languages/english/calendar.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,24 @@

$l['calendar'] = "Calendar";

$l['jump_month'] ="Jump to month:";
$l['jump_month'] ="Jump to month";

$l['go_week'] = "Go to Week";

$l['birthdays_on_day'] = "Birthdays on {1}";
$l['birthdayhidden'] = "Hidden";

$l['event'] = "event";
$l['events'] = "events";
$l['add_event'] = "Add Event";
$l['event_date'] = "Event Date:";
$l['event_date'] = "Event Date";
$l['event_recurring_start_date'] = "Start Date:";
$l['event_recurring_end_date'] = "End Date:";
$l['event_recurring_repeat_days'] = "Event Repeats On:";
$l['event_name'] = "Event Name:";
$l['event_details'] = "Event Details:";
$l['event_options'] = "Options:";
$l['private_option'] = "<b>Private</b> Only you will be able to view this event. (Registered Users Only).";
$l['event_name'] = "Event Name";
$l['event_details'] = "Event Details";
$l['event_options'] = "Options";
$l['private_option'] = "<b>Private:</b> Only you will be able to view this event. (Registered Users Only).";
$l['delete_option'] = "<b>Delete:</b> Delete this event.";
$l['post_event'] = "Post Event";
$l['day_view'] = "Day View";
Expand All @@ -57,7 +59,7 @@
$l['event_author'] = "Event Author:";
$l['edit_event'] = "Edit Event";
$l['view_event'] = "View Event";
$l['no_events'] = "This day does not have any events associated with it.<p><a href=\"calendar.php?action=addevent&amp;calendar={1}&amp;day={2}&amp;month={3}&amp;year={4}\">Post an Event</a>.</p>";
$l['no_events'] = "This day does not have any events associated with it.";
$l['years_old'] = "{1} Years Old";
$l['alt_edit'] = "Edit this event";
$l['alt_delete'] = "Delete this event";
Expand Down Expand Up @@ -91,16 +93,16 @@
$l['delete_2'] = "<b>Note:</b> This process cannot be undone.";
$l['delete_now'] = "Delete Now";
$l['delete_no_checkbox'] = "The event was not deleted because you didn't check the \"Delete\" checkbox.";
$l['jump_to_calendar'] = "Jump to calendar:";
$l['select_calendar'] = "Calendar:";
$l['jump_to_calendar'] = "Jump to calendar";
$l['select_calendar'] = "Calendar";
$l['type_single'] = "Single day event";
$l['type_ranged'] = "Ranged or recurring event";
$l['enter_time'] = "Time:";
$l['start_time'] = "Starts:";
$l['end_time'] = "Finishes:";
$l['timezone'] = "Time Zone:";
$l['enter_time'] = "Time";
$l['start_time'] = "Starts";
$l['end_time'] = "Finishes";
$l['timezone'] = "Time Zone";
$l['ignore_timezone'] = "<strong>Ignore time zone:</strong> This event should use the time zone of the viewer.";
$l['repeats'] = "Repeats:";
$l['repeats'] = "Repeats";
$l['does_not_repeat'] = "Does not repeat";
$l['repeats_daily'] = "Daily";
$l['repeats_weekdays'] = "Every weekday (Mon-Fri)";
Expand All @@ -119,8 +121,9 @@
$l['every'] = "every";
$l['year_or_years'] = "year(s)";
$l['of'] = "of";
$l['move_to_calendar'] = "Move to Calendar:";
$l['move_to_calendar'] = "Move to Calendar";
$l['weekly_overview'] = "Weekly Overview";
$l['through'] = "through";
$l['previous_week'] = "Previous Week";
$l['next_week'] = "Next Week";
$l['first'] = "First";
Expand All @@ -129,8 +132,8 @@
$l['fourth'] = "Fourth";
$l['last'] = "Last";
$l['all_day'] = "All Day";
$l['starts'] = "Starts: ";
$l['finishes'] = "Finishes: ";
$l['starts'] = "Starts ";
$l['finishes'] = "Finishes ";

$l['error_incorrectday'] = "The day you have entered does not appear to exist. Please go back and try again.";
$l['error_invalidevent'] = "The event you specified is either invalid or doesn't exist.";
Expand Down
6 changes: 3 additions & 3 deletions inc/languages/english/editpost.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
$l['delete_2'] = "<b>Note:</b> If this post is the first post in a thread deleting it will result in deletion of the whole thread.";
$l['subject'] = "Subject";
$l['your_message'] = "Your Message";
$l['post_options'] = "Post Options:";
$l['editreason'] = "Edit Reason:";
$l['post_options'] = "Post Options";
$l['editreason'] = "Edit Reason";
$l['options_sig'] = "<strong>Signature:</strong> include your signature. (registered users only)";
$l['options_emailnotify'] = "<strong>Email Notification:</strong> receive an email whenever there is a new reply. (registered users only)";
$l['options_disablesmilies'] = "<strong>Disable Smilies:</strong> disable smilies from showing in this post.";
$l['preview_post'] = "Preview Post";
$l['update_post'] = "Update Post";
$l['add_poll'] = "Add Poll";
$l['poll'] = "Poll:";
$l['poll'] = "Poll";
$l['poll_desc'] = "Optionally you may attach a poll to this thread.";
$l['poll_check'] = "I want to post a poll";
$l['num_options'] = "Number of options:";
Expand Down
75 changes: 43 additions & 32 deletions inc/languages/english/global.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,48 @@
$l['welcome_my_avatar'] = "My Avatar";
$l['welcome_my_profile'] = "Go to My Profile";

$l['moved_prefix'] = "Moved:";
$l['poll_prefix'] = "Poll:";
$l['moved_prefix'] = "Moved";
$l['poll_prefix'] = "Poll";

$l['forumbit_announcements'] = "Announcements";
$l['forumbit_stickies'] = "Important Threads";
$l['forumbit_forum'] = "Forum";
$l['forumbit_threads'] = "Threads";
$l['forumbit_posts'] = "Posts";
$l['forumbit_lastpost'] = "Last Post";
$l['forumbit_moderated_by'] = "Moderated By:";
$l['forumbit_moderated_by'] = "Moderated by:";
$l['forum_count_threads'] = "threads";
$l['forum_count_thread'] = "thread";
$l['forum_count_posts'] = "posts";
$l['forum_count_post'] = "post";
$l['new_posts'] = "Forum Contains New Posts";
$l['no_new_posts'] = "Forum Contains No New Posts";
$l['click_mark_read'] = "Click to mark this forum as read";
$l['forum_closed'] = "Forum is Closed";
$l['forum_redirect'] = "Redirect Forum";
$l['lastpost_never'] = "Never";
$l['lastpost_by'] = "Last post by";
$l['lastpost_no_posts'] = "No posts yet";
$l['viewing_one'] = " (1 user browsing)";
$l['viewing_multiple'] = " ({1} users browsing)";
$l['by'] = "by";
$l['more_subforums'] = "and {1} more.";
$l['more_subforums_single'] = "1 more subforum";
$l['more_subforums_multiple'] = "{1} more subforums";

$l['password_required'] = "Password Required";
$l['forum_password_note'] = "The administrator has required it so that a password is required for access to this forum.";
$l['enter_password_below'] = "Please enter the password below:";
$l['forum_password_note'] = "You must enter this forum's password to gain access";
$l['enter_password_below'] = "Enter the forum password";
$l['verify_forum_password'] = "Verify Forum Password";
$l['wrong_forum_password'] = "The password you entered is incorrect. Please try again.";

$l['reset_button'] = "Reset";
$l['username'] = "Username:";
$l['username1'] = "Email:";
$l['username2'] = "Username/Email:";
$l['password'] = "Password:";
$l['login_username'] = "Username:";
$l['login_username1'] = "Email:";
$l['login_username2'] = "Username/Email:";
$l['login_password'] = "Password:";
$l['username'] = "Username";
$l['username1'] = "Email";
$l['username2'] = "Username/Email";
$l['password'] = "Password";
$l['login_username'] = "Username";
$l['login_username1'] = "Email";
$l['login_username2'] = "Username/Email";
$l['login_password'] = "Password";
$l['lost_password'] = "Lost Password?";
$l['remember_me'] = "Remember me";
$l['remember_me_desc'] = "If ticked, your login details will be remembered on this computer, otherwise, you will be logged out as soon as you close your browser.";
Expand Down Expand Up @@ -113,6 +119,8 @@

$l['nobody'] = "Nobody";

$l['close'] = "Close";

$l['attachments'] = "Attachments";
$l['attachments_desc'] = "Optionally you may attach one or more attachments to this post. Please select the file on the right and click 'Add Attachment' to upload it.";
$l['remove_attachment'] = "Remove";
Expand All @@ -127,14 +135,16 @@
$l['change_user'] = "change user";
$l['post_icon'] = "Post Icon:";
$l['no_post_icon'] = "No Post Icon";
$l['thread_subscription_method'] = "Thread Subscription:";
$l['thread_subscription_method'] = "Thread Subscription";
$l['thread_subscription_method_desc'] = "Specify the type of notification and thread subscription you'd like to have to this thread. (Registered users only)";
$l['no_subscribe'] = "Do not subscribe to this thread";
$l['no_subscribe_notification'] = "Subscribe without receiving any notification of new replies";
$l['instant_email_subscribe'] = "Subscribe and receive email notification of new replies";
$l['instant_pm_subscribe'] = "Subscribe and receive PM notification of new replies";
$l['options'] = "Options";

$l['today_rel'] = "<span title=\"{1}\">Today</span>";
$l['yesterday_rel'] = "<span title=\"{1}\">Yesterday</span>";
$l['today'] = "Today";
$l['yesterday'] = "Yesterday";
$l['error'] = "Board Message";
Expand Down Expand Up @@ -218,7 +228,7 @@
$l['editor_maximize'] = "Maximize";

$l['quote'] = "Quote:";
$l['wrote'] = "Wrote:";
$l['wrote'] = "wrote:";
$l['code'] = "Code:";
$l['php_code'] = "PHP Code:";
$l['posted_image'] = "[Image: {1}]";
Expand All @@ -230,11 +240,11 @@
$l['guest'] = "Guest";
$l['unknown'] = "Unknown";
$l['never'] = "Never";
$l['postbit_posts'] = "Posts:";
$l['postbit_threads'] = "Threads:";
$l['postbit_group'] = "Group:";
$l['postbit_joined'] = "Joined:";
$l['postbit_status'] = "Status:";
$l['postbit_posts'] = "Posts";
$l['postbit_threads'] = "Threads";
$l['postbit_group'] = "Group";
$l['postbit_joined'] = "Joined";
$l['postbit_status'] = "Status";
$l['postbit_attachments'] = "Attached Files";
$l['postbit_attachment_filename'] = "Filename:";
$l['postbit_attachment_size'] = "Size:";
Expand All @@ -248,10 +258,10 @@
$l['postbit_status_away'] = "Away";
$l['postbit_edited'] = "This post was last modified: {1} by";
$l['postbit_editreason'] = "Edit Reason";
$l['postbit_ipaddress'] = "IP Address:";
$l['postbit_ipaddress'] = "IP Address";
$l['postbit_ipaddress_logged'] = "Logged";
$l['postbit_post'] = "Post:";
$l['postbit_reputation'] = "Reputation:";
$l['postbit_post'] = "Post";
$l['postbit_reputation'] = "Reputation";
$l['postbit_reputation_add'] = "Give Reputation to this user";
$l['postbit_website'] = "Visit this user's website";
$l['postbit_email'] = "Send this user an email";
Expand All @@ -270,14 +280,15 @@
$l['postbit_full_edit'] = "Full Edit";
$l['postbit_show_ignored_post'] = "Show this Post";
$l['postbit_currently_ignoring_user'] = "The contents of this message are hidden because {1} is on your <a href=\"usercp.php?action=editlists\">ignore list</a>.";
$l['postbit_warning_level'] = "Warning Level:";
$l['postbit_warning_level'] = "Warning Level";
$l['postbit_warn'] = "Warn the author for this post";
$l['postbit_purgespammer'] = "Purge Spammer";
$l['postbit_post_deleted'] = "This post has been deleted.";
$l['postbit_post_unapproved'] = "This post is awaiting approval.";
$l['postbit_thread_deleted'] = "This thread has been deleted.";
$l['postbit_thread_unapproved'] = "This thread is awaiting approval.";
$l['postbit_deleted_post_user'] = "This post by {1} has been deleted.";
$l['postbit_post_deleted'] = "This post has been deleted";
$l['postbit_post_unapproved'] = "This post is awaiting approval";
$l['postbit_thread_deleted'] = "This thread has been deleted";
$l['postbit_thread_unapproved'] = "This thread is awaiting approval";
$l['postbit_deleted_post_user'] = "This post by {1} has been deleted";
$l['postbit_post_options'] = "Post Options";

$l['postbit_button_reputation_add'] = 'Rate';
$l['postbit_button_website'] = 'Website';
Expand Down Expand Up @@ -310,7 +321,7 @@
$l['post_fetch_error'] = 'There was an error fetching the posts.';

$l['smilieinsert'] = "Smilies";
$l['smilieinsert_getmore'] = "get more";
$l['smilieinsert_getmore'] = "Get More";
$l['on'] = "On";
$l['off'] = "Off";
$l['remote_avatar_disabled_default_avatar'] = "<a href='usercp.php?action=avatar'>You are currently using a remote avatar, which has been disabled. The default avatar will be used instead.</a>";
Expand Down
4 changes: 0 additions & 4 deletions inc/languages/english/index.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
$l['forum_unapproved_post_count'] = "There is currently 1 unapproved post in this forum.";
$l['forum_unapproved_threads_count'] = "There is currently {1} unapproved threads in this forum.";
$l['forum_unapproved_thread_count'] = "There is currently 1 unapproved thread in this forum.";
$l['forum_count_threads'] = "threads";
$l['forum_count_thread'] = "thread";
$l['forum_count_posts'] = "posts";
$l['forum_count_post'] = "post";
$l['forumteam'] = "Forum Team";
$l['forumstats'] = "Forum Statistics";
$l['todays_birthdays'] = "Today's Birthdays";
Expand Down

0 comments on commit 85ce677

Please sign in to comment.