Page 11 of 16

Posted: Wed 5. May 2004, 01:58
by Jérôme
Was hast du denn da, in Zeile 72? Zeig misch ein bisschen Code :). Weil, hellsehen kann ich nicht :mrgreen:

Posted: Wed 5. May 2004, 02:01
by Jérôme
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... :cry:
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...

Gehen auch GIF?

Posted: Wed 5. May 2004, 11:13
by Keules
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 ? :lol:

Ansonsten erst mal ein grosses Danke, es klappt hervorragend mit dem Caching.
:P
Ciao
Keules

Posted: Wed 5. May 2004, 11:44
by Jérôme
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 :).

WOW - Works great

Posted: Fri 7. May 2004, 23:50
by jsw_nz
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

Posted: Fri 7. May 2004, 23:59
by bertalizer
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.

Posted: Sat 8. May 2004, 00:24
by Jérôme
Bertalizer, the next version will give you the possibility to chose the output format as you like to, and some more options... I will just need time... and some free time ;).

just a little note

Posted: Sat 8. May 2004, 00:40
by jsw_nz
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

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}
to reflect the names provided on the default installation.

cheers,
jsw

Posted: Tue 11. May 2004, 19:11
by Jérôme
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.
The next release will provide transparency for both foreground and background color and perhaps some decorative addons like underlines and borders.

Posted: Tue 11. May 2004, 20:52
by srossbach
Is it planned to support the NAV_* tags in the future as well?

At the moment you only get a <a href=".... :sad: but with nice fonts! :D

Thanks for the great work!!!!!!

Stefan

Jérôme mein Held!

Posted: Tue 11. May 2004, 21:05
by Keules
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 :wink:

Posted: Tue 11. May 2004, 21:49
by Jérôme
srossbach wrote:Is it planned to support the NAV_* tags in the future as well?

At the moment you only get a <a href=".... :sad: but with nice fonts! :D

Thanks for the great work!!!!!!

Stefan
Within this MOD, it is not planned that it supports interactions with the original phpwcms functions (although it seems to do with some).

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.

Posted: Tue 11. May 2004, 22:29
by nekket
@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:

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;
}

// -------------------------------------------------------------
Now you can use the {nav_level_row} replacement-tag and the text will be replaced as image...

Posted: Wed 12. May 2004, 13:31
by srossbach
@nekket:

Thank you, that is what I'm looking for :lol:

Posted: Sat 15. May 2004, 13:07
by Jérôme
Version 1.5 released

This release supports full transparency support for both foreground and background color. Remember: If you enable both as transparent, you will see nothing ;).