Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (isaac), 83 guests, and 168 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Mark J.Cairns
Mark J.Cairns
Northern Ireland, UK
Posts: 38
Joined: September 2009
Show All Member Profiles 
Top Posters(30 Days)
isaac 32
Gizmo 14
DennyP 12
Ruben 11
Zarzal 10
SteveS 7
Morgan 7
JAISP 4
Latest Photos
Big stuff
Test
Testing to drag photos
Comfortable Cats
Test
Previous Thread
Next Thread
Print Thread
[NotABug] 7.6.2 - admin dashboard missing strings #261998
01/05/19 03:30 PM
01/05/19 03:30 PM
Zarzal  Offline OP
Old Hand
Joined: Jun 2006
Posts: 1,170
Berlin, Germany
In the language file admin/dashboard.php I found the string
Code
$ubbt_lang['ATTACH_FOLDER'] = "Attachments in Folder";

This tring seems not to be used in /templates/default/admin/dashboard.tmpl
In this template I found this code section
Code
<!-- Forum Statistics -->
<div class="padding">
<div class="bold">{$ubbt_lang['BOARD_STATS']}</div>
	<div style="width:350px;">
		<div><a href="{$config['BASE_URL']}/admin/forummanage.php">{$ubbt_lang['TOTAL_FORUMS']}&nbsp;<span class="alvt fr" style="width:100px;">$totalforums</span></a></div>
		<div>{$ubbt_lang['TOTAL_TOPICS']}&nbsp;<span class="alvt fr" style="width:100px;">$totaltopics</span></div>
		<div>{$ubbt_lang['TOTAL_POSTS']}&nbsp;<span class="alvt fr" style="width:100px;">$totalposts</span></div>
		<div><a href="{$config['BASE_URL']}/admin/approveposts.php">{$ubbt_lang['QL_P_APPRV']}&nbsp;<span class="alvt fr" style="width:100px;">$p</span></a></div>
		<div>{$ubbt_lang['ATTACH_DB']}&nbsp;<span class="alvt fr nw" style="width:100px;">$totalattach ($totalattachsize)</span></div>
		$attachinfo
	</div>
</div>

I see $attachinfo and think there is missing something. This var is always empty and print nothing.The language string has something to do with this var.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: 7.6.2 - admin dashboard missing strings [Re: Zarzal] #262000
01/05/19 07:14 PM
01/05/19 07:14 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 17,029
Portland, OR; USA
$attachinfo shows your space used for attachments on disk vs what the db reports; this will only load if you are running a non-beta release, and you have debugging turned on. This behavior is handled by:
admin/dashboard.php - Look for line ~107-128
templates/default/admin/dashboard.tmpl


edit: the comment for the $attachinfo string within the dashboard.php file:
Quote
// Grab total attachments and size from the directory
// Because this process can be disk intensive, this option
// is only displayed when debugging is enabled.

Last edited by isaac; 01/07/19 07:21 AM. Reason: added php script comment to post

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: 7.6.2 - admin dashboard missing strings [Re: Zarzal] #262001
01/05/19 07:51 PM
01/05/19 07:51 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,284
California
it is generally not good practice for the admin landing page of a large forum to (for example) constantly count over 100,000 files and byte sizes on disk and sum 100,000 lines of text in the database each time the forum admin hits that page, unless they are debugging something related.

as gizmo mentioned, there is a note detailing this within the /admin/dashboard.php file. there is another one mentioned on the control panel's debug setting toggle.

from Control Panel > Primary Settings
Quote
Enable Debugging
FORUM: Page generation times, number of queries, memory stats, compression, forum server time, and forum software build information is displayed on the page footer. HTML Page minification is also disabled while debugging is enabled.
CONTROL PANEL: File Attachments stats are generated on the dashboard. Sites with a large number of file attachments may experience a delay in producing the page.

Warning: With this option is enabled, any time there its a database connection error, database connection information is displayed to everyone visiting your forums. This includes your database name, database user name, and the table name that failed connecting to. Passwords are not displayed. Debugging is safe to enable, but for security and overall forum performance, it should remain off.


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released

ShoutChat Box
Today's Birthdays
No Birthdays
Recent Topics
[7.6.2] English
by isaac. 01/13/19 11:31 AM
[7.6.1] English
by isaac. 01/13/19 11:31 AM
7.6.2 file attachment cleanup
by Zarzal. 01/09/19 07:29 AM
7.6.2 Gallery file manger window resize
by Zarzal. 01/08/19 06:15 PM
Forum Statistics
Forums36
Topics35,197
Posts191,800
Members12,129
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Preview build 20190112)