[solved] pcdtr - font replacement

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

[solved] pcdtr - font replacement

Post by manuel »

Dear All,

I'm trying to use pcdtr (font replacement) in cmsms 1.8.2 "Toliara".
http://code.google.com/p/pcdtr/

When I upload the test script and use it outside of cmsms everything is working fine but I can't seem to get it working with cmsms...  :-[

I've followed instructions and added the following code to the template:

Above in template: {literal}{/literal}
Below in template: {literal}{/literal}
In the : {literal}{/literal}
I replaced the "Docset" and "Chartype" to match the ones used in the demo

The styles from pcdtr/styles.css are being applied but the font-replacement itself doesn't seem to work.

In the readme file the following is stated:
If you are using this script in a CMS that doesn't allow you to use output buffering functions, simply comment the line with `ob_start('PCDTR_init');` in the class.php file and, in your code, execute PCDTR_init($buffer); with your generated content string.
If you have any advice on how to accomplish this, I would love to hear it! :)

Greetings,
Manuel
Last edited by manuel on Tue Oct 26, 2010 8:50 am, edited 1 time in total.
Do you like your open source cms? Buy from the CMSMS partners || Donate
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: pcdtr - font replacement

Post by Dr.CSS »

I don't know about any of that but I do know you have to change a setting in the config.php to allow php usage and since none of that has any {   }  in it there is no need to use {literal}...

I find http://www.fontsquirrel.com/fontface way easier to use than any others, no need for php etc...
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: pcdtr - font replacement

Post by manuel »

Thx for the site tip!!

I'll try using @font-face a.s.a.p.! Now that i've read a little about it, it seems strange i didn't use it sooner... Sometimes the solution is indeed to use what is already available  ;D
Great browser support too it seems! Just too bad IE has to be the ........ (fill it out for yourself) and not support .ttf or we would actually have something that works for all browsers!

Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] pcdtr - font replacement

Post by Dr.CSS »

I use it and it works in IE6,7,8...

Header text, menu, slider, h1,2 etc...

http://www.newrivergorgecvb.com/
Post Reply

Return to “Layout and Design (CSS & HTML)”