fonts works fine!
toma - October 30, 2007 - 10:08
| Project: | fblike |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | bonvga |
| Status: | closed |
Jump to:
Description
Hi
Thanks again for your theme, i change a little bit some css and code in order to make some page without left block, everything work fine, except the fonts, can't display logo or title...
I download the fonts and place to the fonts directory in your code
$filename = 'cache/'.md5(serialize($config[$mode]).$text).".png";Where i need to create the cache directory , is it in my theme directory ?
Check out the theme online
www.biladi.us
www.biladi.us/forum
http://www.biladi.us/themes/fblike/images/picto-title.php?text=Moroccan+...
Thanks

#1
Hi,
I think I have to improve this feature and his documentation.
You can try a chmod on the cache directory, but I don't think it's really the problem.
chmod 777 cacheArnaud.
#2
Thanks for your reply, and where to create the cache directory, and i have my theme installed with multisite systeme on sites/themes/biladi.us/fblike
#3
I've changed the cache routine and he is optional now (http://drupal.org/cvs?commit=86452)
To enable it, create a writable 'cache' directory into the 'images' directory.
> cd themes/fblike/images> mkdir cache
> chmod 775 cache
Thanks for your report.
Arnaud.
#4
Thanks for your support
My setting
GD library bundled (2.0.28 compatible)
PHP 4.4.7
Web server Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
MySQL database 4.1.22
i change because i am using multisite with drupal
<div id="header_bar"><?php if ($site_name) : ?>
<div id="header_logo">
<a href="<?php print $base_path ?>"><?php if ($logo != ""): ?><img src="<?php print check_url($logo) ?>" alt="<?php print $site_name ?> logo" id="logo" /><?php endif; ?><img src="<?php print $base_path ?>sites/biladi.us/themes/fblike/images/picto-title.php?text=<?php print urlencode($site_name) ?>&mode=logo" alt="<?php print($site_name) ?>" id="title" /></a><h1><?php print($site_name) ?></h1><?php if ($site_slogan != ""): ?><img src="<?php print $base_path ?>sites/biladi.us/themes/fblike/images/picto-title.php?text=<?php print urlencode($site_slogan) ?>&mode=slogan" alt="<?php print($site_slogan) ?>" id="slogan" /><h2><?php print($site_slogan) ?></h2><?php endif; ?>
</div>
<div class="header_image"><img src="<?php print $base_path ?>sites/biladi.us/themes/fblike/images/picto-title.php?text=<?php if ($title!="") print urlencode($title); else print $site_name; ?>&mode=title" alt="<?php if ($title!="") print $title; else print $site_name; ?>" /><h1><?php print $title ?></h1></div>I create the cache diretory and make the chmod , it doesn't work for me
#5
I've added a test mode on the picto-title script in this commit http://drupal.org/cvs?commit=86628
To run the test, call the picto-title script with the param ?mode=test
For me, the test result is like that :
PHP version : 5.2.4-0.dotdeb.1Zend version : 2.2.0
GD support is available
function gd_info : OK
GD version : bundled (2.0.34 compatible) (with freetype)
FreeType Support : Enable
PNG Support : Enable
function imagettfbbox : OK
function imagecreatetruecolor : OK
function imagecolorallocate : OK
function imagefilledrectangle : OK
function imagettftext : OK
function imagepng : OK
function imagedestroy : OK
Cache directory : OK
For your problem, I think your GD PNG support is disable.
Arnaud.
#6
Hi, your theme is very nice. But i have trouble with the fonts too.
I have check the test mode and everything is ok. I don't know what is wrong.
Have you any ideas what is wrong?
thanks mattze
#7
To have a functional theme i've deleted the picto-title.php script and upgraded the CSS file.
The old version is available in my sandbox : http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/bonvga/fbli...
I keep up trying to solve this problem (A SSH or FTP access is welcome).
Arnaud.
#8
Many thanks for the quick answer. I have found the mistake. I had writing the wrong font link. Nice work.
Greeting Mattze
#9
Ok, thank you !
To simplify the theme installation and configuration I need to commit some TTF fonts with the theme.
Do you think I've the rights for this ? Licence problem ?
#10
hey bonvga!
thanks for this great template, ive installed the version with the picto titles...
at the beginning i had big problems, but after searching for the failure in the page.php file i found that there was a failure in the link to the image folder. instead of just "themes/fblike/images/...." i've put "sites/all/themes/fblike/images/....." because this is the usualy way to install templates and it works fine now.
thanks once again!
____
www.kukljica.org
#11
Ok, Happy that you have found the problem.
I've just commited a new version of the fblike theme with more custom options (http://drupal.org/cvs?commit=88144)
I am glad that you like this theme. Thanks !
#12
ah thanks for the info. ill catch the new version now.
im glad that i could help!
EDIT:// i've just tested the new version and somehow it didn't worked. i think you made something wrong with the themesettingsapi. i have no possibility to activate the checkbox and if i change the code in the themesettings.php file to "on" the checkbox is activated but all the other feautures don't show up. it also don't work when i fullfill the other settings or change it directly in the picto-title.php.
i don't think that i am doing something wrong, i've tested it over 10 times.
the themesettingsapi module works fine with other templates, so this can't be a failure on my installation...
anyway a awsome template, ill use the last version i have with the bugfix i found.
#13
All checkboxes are disable while the themesettingsapi can't find true type font (.ttf) in the fonts directory (fblike/images/fonts)
I must add more help/error messages on the themesettingsapi.
#14
hmm strange... i had all the fonts in the folder...
i'll test again! :)
#15
don't now why this isn't working. i have all the fonts in the folder and the checkbox is still off...
EDIT:// ok i got the failure... the same as the last time. you have set the location sattings in the theme-settings.php wrong.
=> line 15; $font_list = file_scan_directory('themes/fblike/images/fonts','.ttf$');
changed to:
=> line 15; $font_list = file_scan_directory('sites/all/themes/fblike/images/fonts','.ttf$');
___
further more edit the links in the page.tpl.php
to have a optimal view of the template put the default logo options off.
___
you should remember that the themes/modules are installed usualy in sites/all/themes or sites/all/modules.
see => http://drupal.org/node/456
now everything works fine!
awsome template!
for thoose who use the avatar images in posts/comments add this to your style.css to displat the images on the right side (they fit in better):
/*avatar*/
.picture{
float:right;
margin:0 0 4px 5px;
}
.picture img{
float:none;
margin:0 0 4px 5px;
padding:0px;
border:0px solid #ccc;
}
______
Dorian
www.kukljica.org
#16
My apologize, I've developed this theme in the themes directory.
I've fixed this and added your avatar support in this commit : http://drupal.org/cvs?commit=88574
Thanks a lot !
Arnaud.
#17
no problem, im glad that i could help!
i've started loving this template even more :-)
#18
ive updated the avatar css settings to fit in perfectly also in the comments.
.picture{
float:right;
margin:24px 0 4px 5px;
}
.picture img{
float:none;
margin:0 0 -8px 5px;
padding:0px;
border:0px solid #ccc;
}
the porblem was that the comments menu/links were cuted off a bit. now this is fixed.
#19
I've commited your modifications : http://drupal.org/cvs?commit=88954
Thanks again for your help !
#20
no problem!
im trying now to configurate the template to work with collapsiblocks but its quite hard.
thanks once again that you committed this template to us!!
#21
Automatically closed -- issue fixed for two weeks with no activity.