Graphical Text MOD - FINAL - Version 2.0
Freetype is and will always be mandatory for the use of this MOD. It is clear: to handly fonts, you need a font library: freetype...snobba wrote:Looks fantasic Jerome!!
But freetype still have to be present for GD, right? My hosting provider are a bit lazy so I do not know if I will have it or not...
Gehen auch GIF?
Hi Jérôme!
Sag mal , werden in Zukunft die Bildchen vielleicht auch als Gif abgespeichert?
Als JPG sind um die 5 kurze Worte etwa 6 KB groß, je nachdem was für ein Font ich nehme. Gif ist da kleiner. Vielleicht kann man ja eine Auswahl einbauen, entweder Gif, oder JPG, ist das eine Überlegung wert ?
Ansonsten erst mal ein grosses Danke, es klappt hervorragend mit dem Caching.
Ciao
Keules
Sag mal , werden in Zukunft die Bildchen vielleicht auch als Gif abgespeichert?
Als JPG sind um die 5 kurze Worte etwa 6 KB groß, je nachdem was für ein Font ich nehme. Gif ist da kleiner. Vielleicht kann man ja eine Auswahl einbauen, entweder Gif, oder JPG, ist das eine Überlegung wert ?
Ansonsten erst mal ein grosses Danke, es klappt hervorragend mit dem Caching.
Ciao
Keules
GIF wird leider von den meisten PHP-Versionen nicht unterstützt, deswegen steht das derzeit nicht zur Auswahl.
Die Auswahl des Ausgabeformats steht in der nächsten Release an, stand aber schon auf meine ToDo Liste... Dann wird auch wieder PNG möglich sein und die Transparenz. Und alles wird über die Styles zu steuern sein. Ich möchte gerne von diesen manuellen Stil-Angaben weg kommen.
Ich weiß nur noch nicht, wann ich dazu komme. Aber irgendwann bestimmt
.
Die Auswahl des Ausgabeformats steht in der nächsten Release an, stand aber schon auf meine ToDo Liste... Dann wird auch wieder PNG möglich sein und die Transparenz. Und alles wird über die Styles zu steuern sein. Ich möchte gerne von diesen manuellen Stil-Angaben weg kommen.
Ich weiß nur noch nicht, wann ich dazu komme. Aber irgendwann bestimmt
WOW - Works great
Jerome, you have out done yourself.
Have been away from the boards for awhile....
Checked in this morning to find that you just released 1.3
And what do you know - it works great in NS!.
This is awesome mod that will lead to creative design possibilities. Much thanks for your hard work and great solution! Cannot say enough of how much I appreciate your awesome mod!
Cheers from new zealand,
jsw
Have been away from the boards for awhile....
Checked in this morning to find that you just released 1.3
And what do you know - it works great in NS!.
This is awesome mod that will lead to creative design possibilities. Much thanks for your hard work and great solution! Cannot say enough of how much I appreciate your awesome mod!
Cheers from new zealand,
jsw
-
bertalizer
- Posts: 47
- Joined: Sat 21. Feb 2004, 14:24
- Location: Belgium
super!
But wouldn't it be possible to let us choose the output format via a little conf-file; jpeg, png (and gif, if supported by the server)?
I'd like my images to be PNG's as they are "cleaner" than JPEGs (blurry edges).
I thought that some browsers only have problems with transparant png's (and this is not the case with the mod)
Thanks for your great work!
B.
But wouldn't it be possible to let us choose the output format via a little conf-file; jpeg, png (and gif, if supported by the server)?
I'd like my images to be PNG's as they are "cleaner" than JPEGs (blurry edges).
I thought that some browsers only have problems with transparant png's (and this is not the case with the mod)
Thanks for your great work!
B.
just a little note
Just wanted to add this little tidbit......Jerome you can correct me if I am wrong. Seems the title of fonts does not like uppercase. I uploaded one of my favorites, and it originally did not show up in the first scan of your mod. When I renamed with lowercase letters, showed up and was easily added to the db. Worked like a charm.
Also wanted to add this little side note....perhaps the replacement tags.txt file needs to be updated from
to reflect the names provided on the default installation.
cheers,
jsw
Also wanted to add this little side note....perhaps the replacement tags.txt file needs to be updated from
Code: Select all
{GT:trebuchet:12:1:FFFFFF:003366}This is an example text{/GT}
to {GT:treb:12:1:FFFFFF:003366}This is an example text{/GT}cheers,
jsw
Version 1.4 released
- It is now possible to use fonts with capital letters. Until now, it was only possible to have files with small letters.
- The MOD will automatically recognize, which file types (JPG, GIF, PNG) are supported on your system. In the styles area, the unsupported file types will not show up.
- The custom replacement tags have been removed. There is only the RT {GT:style} ... {/GT} left to use. So for every combination of fonts and colors, you will have to define a style. This provides more semantic security for the output and the users are not tempted to use styles too wildly.
Jérôme mein Held!
Jérôme , das ist astreine Leistung!!!!
Jetzt ist dank der PNG Auswahl hat das Bild nur noch ein Bruchteil der KB wie als JPG.
THX für diesen fetten Mod!!!!
Ciao
Keules
Jetzt ist dank der PNG Auswahl hat das Bild nur noch ein Bruchteil der KB wie als JPG.
THX für diesen fetten Mod!!!!
Ciao
Keules
Within this MOD, it is not planned that it supports interactions with the original phpwcms functions (although it seems to do with some).srossbach wrote:Is it planned to support the NAV_* tags in the future as well?
At the moment you only get a <a href="....but with nice fonts!
![]()
Thanks for the great work!!!!!!
Stefan
But the functionality of the GT MOD will be incorporated into the core of phpwcms in the next months. You can see my plans and progress when you look at the Sourceforge project site.
Last edited by Jérôme on Wed 12. May 2004, 08:31, edited 1 time in total.
@srossbach:
Have a look at http://www.kcomp.de/
Try this:
Add a style called "navi". Then make these changes in
/includes/inc_front/front.inc.php around line 668:
Now you can use the {nav_level_row} replacement-tag and the text will be replaced as image...
Have a look at http://www.kcomp.de/
Try this:
Add a style called "navi". Then make these changes in
/includes/inc_front/front.inc.php around line 668:
Code: Select all
// -------------------------------------------------------------
function nav_level_row($show_id, $show_home=1) {
//returns a simple row based navigation
if(strtoupper($show_id) == "CURRENT") {
$act_cat_id = $GLOBALS['content']["cat_id"];
} else {
$act_cat_id = intval($show_id);
}
$nav = '';
if($show_home) {
if($GLOBALS['content']["cat_id"] == $act_cat_id) {
$before = $GLOBALS['template_default']["nav_row"]["link_before_active"];
$after = $GLOBALS['template_default']["nav_row"]["link_after_active"];
} else {
$before = $GLOBALS['template_default']["nav_row"]["link_before"];
$after = $GLOBALS['template_default']["nav_row"]["link_after"];
}
$nav .= $before;
$nav .= '<a href="index.php?';
$nav .= ($GLOBALS['content']['struct'][$act_cat_id]['acat_alias']) ? html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_alias']) : 'id='.$act_cat_id.',0,0,1,0,0';
$nav .= '">{GT:navi}'.html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_name']).'{/GT}</a>';
$nav .= $after;
}
foreach($GLOBALS['content']['struct'] as $key => $value) {
if($GLOBALS['content']['struct'][$key]["acat_struct"] == $act_cat_id && $key != $act_cat_id && !$GLOBALS['content']['struct'][$key]['acat_hidden']) {
if($nav) $nav .= $GLOBALS['template_default']["nav_row"]["between"];
if($GLOBALS['content']["cat_id"] == $key) {
$before = $GLOBALS['template_default']["nav_row"]["link_before_active"];
$after = $GLOBALS['template_default']["nav_row"]["link_after_active"];
} else {
$before = $GLOBALS['template_default']["nav_row"]["link_before"];
$after = $GLOBALS['template_default']["nav_row"]["link_after"];
}
$nav .= $before;
$nav .= '<a href="index.php?';
$nav .= ($GLOBALS['content']['struct'][$key]['acat_alias']) ? html_specialchars($GLOBALS['content']['struct'][$key]['acat_alias']) : 'id='.$key.',0,0,1,0,0';
$nav .= '">{GT:navi}'.html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']).'{/GT}</a>';
$nav .= $after;
}
}
if($nav) {
$nav = $GLOBALS['template_default']["nav_row"]["before"].$nav;
$nav .= $GLOBALS['template_default']["nav_row"]["after"];
}
return $nav;
}
// -------------------------------------------------------------