Letzter Beitrag: 10.08.2020, 14:25

10.08.2020, 14:25
#1

Dieser Beitrag wurde zuletzt bearbeitet: 12.08.2020, 15:43 von [ExiTuS].
MyBB CORE FILE CHANGES
MyBB Forum Code Changes (Core Files)

./index.php
# Switch members, bots
(1822) 175: $onlinemembers = array_merge($onlinemembers, $onlinebots);
(1824) 168: ...
# Removed $botcount from onlinemembers
(1822) 187: $onlinecount = $membercount + $guestcount + $botcount;
(1824): (obsolete in 1.8.24)

./inc/functions.php
# HTML Doctype
(1822) 300: HTML DOCTYPE - hashed out, line copy
(1822) 312: HTML XMLLANG - hashed out

./stats.php
# Language prefix (DE, EN)
(1822) 109 + 137: $thread['prefix_lang'] = ($thread['fid'][0] == "1" ) ? "DE" : "EN";

./inc/functions_forumlist.php
# Variable length lastpost, ellipsis
(1822) 312: if ($mybb->settings['lastpostsubjectlength'] > 0) {
(1822) 314: if(my_strlen($lastpost_subject) > $mybb->settings['lastpostsubjectlength']) { $lastpost_subject = my_substr($lastpost_subject, 0, $mybb->settings['lastpostsubjectlength']).$mybb->settings['lastpostsubjectellipsis'];}}
(1824) 309: ...
(1824) 311: ...

./online.php
# Add Avatar
(1822) 88: $ets_useravatar = format_avatar($online['avatar'], $online['avatardimensions'], my_strtolower($mybb->settings['memberlistmaxavatarsize']));
(1824) 88: ...

./portal.php
# Prefix in lastthreads
(1822) 382/559: "p.prefix, p.displaystyle"
(1822) 385/562: "LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)"
(1822) 428: "$thread['prefix_lang'] = ($thread['fid'][0] == "1" ) ? "DE" : "EN";"
# Switch members, bots
(1822) 319: "$onlinemembers = array_merge($onlinemembers, $onlinebots);"
#Variable length threadlist
(1821) 340: if ($mybb->settings['lastpostsubjectlength'] > 0) { if(my_strlen($lastpost_subject) > $mybb->settings['lastpostsubjectlength']) { $lastpost_subject = my_substr($lastpost_subject, 0, $mybb->settings['lastpostsubjectlength']).$mybb->settings['lastpostsubjectellipsis'];}}
(1822) 422:

./global.php
# Language/theme select,a make available in site header
(1821) 903-944: language + theme select code block moved up to line 868
(1822) 987-1028: ... code block moved up to line 946
(1824) 990-1031: ... code block moved up to line 949

./showthread.php
# Thread lastpost date, new variable
(1822) 71: $ets_thread_lastpost_date = my_date('relative', $thread['lastpost']);
(1824) 71: ...
# Show Register Button to Guests
(1824) 26: Added "ets_showthread_newreply_guest" to templatelist
(1824) 688: elseif ($mybb->usergroup['canpostreplies'] == 0) { eval("\$ets_newreply_guest = \"".$templates->get("ets_showthread_newreply_guest")."\";"); }
Created Global Template: "ets_showthread_newreply_guest"

./usercp.php
# Latest Subscriptions/Latest ThreadsPosts removed " "
(1822) 1646,4246,4441: $thread['threadprefix'] = $threadprefixes[$thread['prefix']]['displaystyle'].' ';
(1824) 1641: (obsolete)
# Icons replaced $icon = " " by empty string:
(1822) 1668,4265,4464: $icon = " ";
(1824): (obsolete)
# Added thread Rating
(1822) 4453: if($thread['numratings'] <= 0) { $thread['width'] = 0; } else { $tread['width'] = (int)round($thread['averagerating'])*20; }
(1824): (obsolete)

./calendar.php
# Added Week Number
(1822) 2471: $week_number = date("W", mktime(0, 0, 0, $calendar_month, $say, $calendar_year));
(1824) 2471: ...

./ratethread.php
# cannotrateownthread
(1822) 45: #error($lang->error_cannotrateownthread);

./member.php
# User Notes, no cut-down)
(1822) 2852: deactivate lines 2852-2856
(1824) 2715: deactivate lines 2715-2720


Language
global.lang "subscription method option"

Added setting to mybb_settings
ID 9991: lastpostsubjectlength
ID 9992: lastpostsubjectellipsis

Plug-Ins
TopStats: many modifications of PHP + templates
ETS Calendar Events: modified
WernickeAdministrator Live Escape Game Forum
Thema geschlossen
Gehe zu: