Graphical Text MOD - FINAL - Version 2.0

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Locked
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

Hi Jerome, one question about efficientcy of your graphical text mod..
are the graphics created once and stored in the db OR are they created every fresh every time the page is view? if this is the case, are the graphics cached in any way by the browsers?
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

At this moment, every graphic is generated each time the page is reloaded. But now, I get the point for the first time - I think somebody else has already mentioned something in this direction, but I did not understand what he meant.

It would be certainly more efficient to create an image and store it on the server and to use it as a normal image afterwards.

But this would require a complete restructuration of this MOD. It would not be a dynamic MOD anymore, but more likely to an image generator.

I will have to think about that. But I can already tell you that this will not be just a small thing and take quite a lot of time which is worsened by the fact that I can't spend so much time on my MODs anymore, because I have other projects :?.

But they will be done :).

- Jérôme
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post by cmslover »

frold wrote:
cmslover wrote: Note the third part original code from Oliver is :

Code: Select all

case "modules":	//Modules -> later
						echo 'in preparation - will follow later';
						break;
plz delete

Sorry Frold, I don't understand what you mean?
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

if you have that included in your file it needs to be deleted
Cause then you have to times the "action"
case "modules":....
... sorry I was in a hurry this morning :D
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

Hi J,
As i have not looked at your code yet I could not sugest how this may be done either :)
but I was thinking of an IF this word-image exists ELSE create new word.

I guess if you are not storing the graphics at all then his is much more work :)
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Re: does not work in RC3?

Post by cmslover »

Jérôme wrote:
cmslover wrote:Hi Jerome,

I have RC3 and just installed your mod. In Article column it show" Graphical Text " but clicking on it will direct me to MODULES column with these words "in preparation - will follow later"

Any idea?

Thanks
If the entry appears in the "Articles"-Column, I assume that you must have messed up something while copypasting the code during install. From the code that you pasted later, I can't see an error, but there must be something wrong if you can't see it :).

I have my installed the MOD on a fresh RC3 and I had no problems... I am sorry I can't give you any solution to your problem right now... And I also don't know if and, if yes, why the news MOD could cause a problem...

Ok, I found the problem :D

Code: Select all

case "modules":   //Modules       switch ($p) {  ...
need to change to two seperate lines and there is no space between SWITCH and ($p) {

Code: Select all

case "modules":   //Modules 
      switch($p) {
BTW, Jerome, do you have any idea after reading the following post ?
http://www.phpwcms.de/forum/viewtopic.php?t=1683

And Thanks Frold! I got your NEWS mod working too!

Have a wonderful day!!
Keules
Posts: 80
Joined: Tue 2. Mar 2004, 17:06
Location: Hamburg

HERE ARE SOME SAMPLES !!!!

Post by Keules »

HI !

I made a site with some samples. Look at my site to see how it works.

I used some freeware fonts and it looks cool. Big THANKS at Jérôme !!!!

LOOK AT THIS !!!!!
http://cms.web-intrest.de/index.php


Ciao
Keules
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Holy shit it works! :mrgreen:
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

I'm still not convinced by this trickery, are you saying that it work? :D
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

Post by Florian »

Hi there!

It's really a phantastic mod :D!

But (jep volks, there's a 'but') it's a lot to slow. I've install the function on my "firm" page under http://www.hyparchiv.de and let it render the navigation. The page have a average clic fequency of 60 - 80 clics per minute. The server goes total down while rendering the navigation (It's a single Itanium2 with 2,4 Ghz). So I think we should think about a caching concept behind. Otherwise the script is absolute not recomend to pages with a hit fequency of more than 10 - 15 clicks per minute. I have at the moment absolute no clue how to build such a temp-caching-function.

The other "but" I allready discuss with Jerome via ICQ was the possibility of integrating the function in redering the Breadcrumbs, NAV_TABLE_COLUMN and so on. But to me it seems, that we should solve the problem of the cache first?!

So, any suggestions to the temp-cache are wellcome here.

Thanks,
Florian
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

The cacheing issue is being thought of and will be solved. The problem of high server load is known and on my ToDo-List. It is just a question of time (of which I don't have too much).

I can also inform you that it is definitively planned to include the generation of graphical text into the core of phpwcms. Again: this is a matter of time.

Meanwhile, I will include a notice in the first post that the MOD is not recommended for sites with a huge amount of accesse.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Yes, the caching concept is a a good one.

Post by jsw_nz »

First of all, all thanks to Jerome and his labor of love. Simply a great job!

I think averyone agrees that the caching concepts is a good one. Since I am not a hardcore coder, I will be patient and see what Jerome cooks up next release. I wanted to bring up the NS 4.75 issues, since I loaded Keules page. Looks something like this:

Image

Jerome, what is strange is that the workaround you provided with '&nbsp' worked in cases where the style was not declared, at least on my localhost wintel box

if no style declared (or it is mistyped 'hedder'..............
works (shows complete sentence in netscape -- small type, with no control (defaults)

if a 'header' style declared (or other standard Graphical Text Mod syntax is used) it throws a missing image error in NS, similar as above.

So basicaly there is something of a bug in Netscape's handling of either the the GD code or the formatting fo the requests via the GET method. I am not sure what to make of this, but I do belive there is a workaround. Unfortunately , I do not have much time at the moment, but I wanted to share this issue, since this mod is really, really powerful. I only wish I knew more about the requests and GET formatting to offer more help.

I will continue to watch this thread.

cheers,
jsw
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Re: Yes, the caching concept is a a good one.

Post by Jérôme »

jsw, I am sorry to tell you that this is a false conclusion of yours (a german called "Trugschluss").

The generated images are created with an ALT-Text that contains the text that is being generated. That means: if you create a GT-image "This is a test.", the ALT-attribute contains "This is a test.", too.

All Mozilla-Browsers (NS 4.x-7, Mozilla, Firefox, etc.) show the complete ALT-text, if an image can not be loaded (or if someone has disabled images in his browser).

So you don't see the image but only the ALT-text. Sorry to disappoint you in this point :?
jsw_nz wrote:So basicaly there is something of a bug in Netscape's handling of either the the GD code or the formatting fo the requests via the GET method.
The GD code is processed on the server, so the browser is not concerned with the process of generating the images. I do actually believe that this is a GET-request handling problem.
machrobby
Posts: 7
Joined: Sat 24. Apr 2004, 09:45
Location: Italy
Contact:

Post by machrobby »

is it possible to have a "double tag"?
for example:
{GT:style}{AUTHOR}{/GT}
with article aurhor name with a particular font??
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

You have not tried it, right? ;). Yes, this is possible.
Locked