Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
مجهول
$ 10.00
macavity
$ 115.00
RedGerry
£ 50.00
مجهول
$ 10.00
minor
$ 20.00
User Info
مرحبا مجهول
(تسجيل)
عضوية:
الأخير: Witewolf
جديد اليوم: 0
جديد بالأمس: 0
الكل: 151
المتصفحون الآن:
الأعضاء: 0
الزوار: 44
Bots: 3
المجموع: 47
من و أي:
الزوار:Support Forums
Support Forums
Pro News Articles
Pro News Articles
My Account
Home
Nedlastninger
Pro News Articles
Downloads
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Nedlastninger
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Downloads
Home
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Support Forums
Home
Home
Downloads
Nedlastninger
Support Forums
Support Forums
Support Forums
Pro News Articles
Support Forums
Downloads
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Bots:Google > Support Forums
Baidu > Pro News Articles
YANDEX > Downloads
فريق العمل متص:
لا أحد من فريق العمل متص
الرجوع الى المقدمة
Skip to menu
Skip to content
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1
Extra Small Login Block
Extra Small Login Block
ارسل: الجمعة فبراير 23, 2007 11:38 pm
The following hack for 9.1.1 will reduce the login block to just the login and registration parts for Anonymous users. Reduce the apparent complexity for newbies, and hide the users on-line info from non-members, bots, etc.
File blocks\block-User_Info.php. Find:
PHP:
if (is_admin()) {
$content .= '<a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'">'._ADMIN.' '._LOGOUT."</a><br />\n";
}
$day = L10NTime::tolocal((mktime(0,0,0,date('n'),date('j'),date('Y'))-date('Z')), $userinfo['user_dst'], $userinfo['user_timezone']);
Insert extra line as shown:
PHP:
if (is_admin()) {
$content .= '<a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'">'._ADMIN.' '._LOGOUT."</a><br />\n";
}
if (is_user() || is_admin()) {
$day = L10NTime::tolocal((mktime(0,0,0,date('n'),date('j'),date('Y'))-date('Z')), $userinfo['user_dst'], $userinfo['user_timezone']);
At end of file add:
PHP:
}
Note: An easier and cleaner way is to have a menu item, eg in header, to call Your Account. Then you can restrict the User-Info block to Registered Members only (because you have another way to logon).
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- نشرات: 1229
- شاركت: مارس 18, 2006
لاتستطيع وضع مواضيع جديدة في هذا المنتدى
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You can download files in this forum
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You can download files in this forum
جميع الاوقات تستعمل نظام GMT











