[TH] Fonts Manager [Deleted]

Sorry, I haven't been able to do much on that yet, but I installed it a couple of times under various conditions on my local installation without running into any sort of error. Did you interrupt the installation the first time in some sort? If so (or maybe even if not), please head to your database (phpmysql or the like) and delete the tables kl_fm_fonts and kl_fm_webfonts if they exist, then try to install it again. That might help.
 
No worries, man. ;]

I gave it a shot with a completely fresh install to no avail, sadly. Installation was fine, though I did get this line popping up occasionally when uploading the files via FTP:

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager: no such file or directory

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL: no such file or directory

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager/Full"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager/Full: no such file or directory

Not sure if its related.
 
Installation was fine, though I did get this line popping up occasionally when uploading the files via FTP:

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager: no such file or directory

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL: no such file or directory

Command: cd "/var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager/Full"
Error: Directory /var/www/thestarwarsrp.com/public_html/forum/js/KL/FontsManager/Full: no such file or directory

Not sure if its related.
Shouldn't be related with whatever issue you were having. Based on those logs, the FTP was simply trying to directly change directory into those paths (e.i. cd "/path/to/somewhere") to check whether they already existed or not. If they didn't exist, then the client would create the path and try again. And if they existed, it'd simply continue doing any other leftover tasks. Those were simply basic operations of an FTP client (or at least FileZilla, since I haven't used any other clients).
 
Last edited:
As it says, the installation process needs write access to the file specified, but is not granted, thus resulting in a "Permission Denied" error. If you don't know how to change the permission, just manually delete the file.
 
checking my site using gtmetrix and get the report below, for "Inline small JavaScript":
Code:
The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.

http://mysite.com/ should inline the following small resources:

http://mysite.com/js/KL/FontsManager/extend.js?_v=677b82e2
http://mysite.com/js/KL/FontsManager/load.js?_v=677b82e2

this caused to get C (75) instead of A (100) for "Inline small JavaScript".
 
and about "Remove query strings from static resources":
Code:
Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:

http://mysite.com/js/KL/FontsManager/extend.js?_v=677b82e2
http://mysite.com/js/KL/FontsManager/load.js?_v=677b82e2
 
do you have manual for this? like what does Custom fonts button do? cant type anything in there Font Title & Stack..

as for local font what format is supported? tff? mind listing all the formats supported?

just installed this, I go to the G button for google try to press the select button once I selected a font and it doesnt work no matter how hard I mash the select button!

1ba8bc61641b86daebdc7fe419e4927d.gif


what am I doing wrong?

I'm in firefox and it doesnt work, in chrome how ever it works...

yep it blocked by Firefox even in safe mode Firefox, something kills this in Firefox..

this vine breaks on fresh copy of Firefox with full reset as in standard no plugins no nothing...

console Logs:

Code:
15:22:14.635 TypeError: b.toElement is undefined 1 manageFontlist.js:3:3286
    googleFontSelection/< https://portalcentric.net/forums/js/KL/FontsManager/manageFontlist.js:3:3286
    n.event.dispatch https://portalcentric.net/forums/js/jquery/jquery-1.11.0.min.js:3:8014
    n.event.add/r.handle https://portalcentric.net/forums/js/jquery/jquery-1.11.0.min.js:3:4750

this what mozilla says about it: https://developer.mozilla.org/en-US...m=firefox-console-errors&utm_campaign=default
 
Last edited:
also how do I have different font faces? like if I upload via local method I don't want to have EG Caviar Dreams, CaviarDreams Bold, Caviar Dreams Italic and all that nonsense in my font list. I want only 1x Caviar Dreams in my list with all the variations? how would I do that via local upload? these are not google web fonts, they are custom...
 
do you have manual for this? like what does Custom fonts button do? cant type anything in there Font Title & Stack..

as for local font what format is supported? tff? mind listing all the formats supported?
There's a "More Help" link at the page description of the ACP page. All the information you're looking for is there.

I'm in firefox and it doesnt work, in chrome how ever it works...
There've been some reports about firefox-related problems before (1, 2). People usually sticked to using Chrome for that instead (which is generally my favorite anyways, but I understand this is not for everyone). The b.toElement-Function is introduced by the Closure Compiler I used to minify the ACP-JS-Script. So generally spoken - as I haven't found the time to revisit the code in such a manner that the function is no longer called or does no longer produce such an error in that specific spot - you should be fine if you head to js/KL/FontsManager/ and replace the manageFontlists.js with the version found in the Full-subdirectory.

also how do I have different font faces? like if I upload via local method I don't want to have EG Caviar Dreams, CaviarDreams Bold, Caviar Dreams Italic and all that nonsense in my font list. I want only 1x Caviar Dreams in my list with all the variations? how would I do that via local upload? these are not google web fonts, they are custom...
I generally don't recommend this, as it will kill your page load time. The usual rendering process of modern browsers and the OS is normally enough to get them into the desired shape for most fonts. As such, there's currently no built in way to upload multiple fonts for a single font face.
 
@katsulynx anyway to make it so that uploaded fonts don't show up as "font1480224055" in font stack? like if a user where to type in the font BBcode manually like I do when I am using a live chat plugin on my site, I would prefer the type of font be be easily rememberable to type in, atm the only way I see changing this is via renaming the file manually in FTP then editing the DB for the desired name...

Uploaded fonts should take the name of the original file name or the name given by the admin in the field "Title" if said font is renamed again it should auto be renamed both file and font stack. or just simply allow for font stack rename/replace at any given time, instead of locking it.

also I replaced the manageFontlist.js found within the Full Folder into the main FontsManager JS Folder, and the issue is still there, did a full cache clean for my browser, rebuild add one caches as well a changed the javascript ver in debug mode to force a recache of all scripts + purged manageFontlist.js from cloud flare cache as well.

and I am a heavy Firefox user I use it to help me debug and develop webpages for basic html development + its my main go 2 browser for anything CSS editing, element inspection as I have heavy Developer add ones installed on it.

as for chrome it always cooks my CPU for some reason, and Safari well I tend to get glitches with it when messing around with Xenforo..

Code:
TypeError: buttonEvent.toElement is undefined[Learn More]  manageFontlist.js:8:38
    googleFontSelection/< https://portalcentric.net/forums/js/KL/FontsManager/manageFontlist.js:8:38
    n.event.dispatch https://portalcentric.net/forums/js/jquery/jquery-1.11.0.min.js:3:8014
    n.event.add/r.handle https://portalcentric.net/forums/js/jquery/jquery-1.11.0.min.js:3:4750

notices the "8:38" it giving different code error this time then the other one. but still same same error.
 
Last edited:
@katsulynx anyway to make it so that uploaded fonts don't show up as "font1480224055" in font stack? like if a user where to type in the font BBcode manually like I do when I am using a live chat plugin on my site, I would prefer the type of font be be easily rememberable to type in, atm the only way I see changing this is via renaming the file manually in FTP then editing the DB for the desired name...

Uploaded fonts should take the name of the original file name or the name given by the admin in the field "Title" if said font is renamed again it should auto be renamed both file and font stack. or just simply allow for font stack rename/replace at any given time, instead of locking it.
I don't see any benefit in doint that? The Font is called by title anyways.

I'll try to look into the error later this week.
 
I don't see any benefit in doint that? The Font is called by title anyways.

I'll try to look into the error later this week.

by title you say?

then whats this then?

1ee261dc7f507ba83bca0ede7277e2d2.gif


why in raw BBcode mode it show as font148.... and not the actual name? only in the editor it show the name but the actual raw BBCode value isn't very rememberable...
 
Capture.webp Capture2.webp Capture3.webp
There isn't anything that stops you from using both. Instead of protesting, why wouldn't you just give it a shot instead if I explicitely tell you?
 
1 other thing, how are spaces treated within ?

and what is the Custom Font function? as I still don't know how to use it, I assume it calls the font stacks installed onto the server/Xenforo? but I am unsure where to check what font stacks are installed or how to call them.
 
1 other thing, how are spaces treated within ?

Mhhh, I don't remember on top of my head, can look it up later, but I think the code is space sensitive, so you can't just leave them away.

and what is the Custom Font function? as I still don't know how to use it, I assume it calls the font stacks installed onto the server/Xenforo? but I am unsure where to check what font stacks are installed or how to call them.
There's a "More Help" link at the page description of the ACP page. All the information you're looking for is there.
 
Top Bottom