Page 12 of 32
Posted: Tue 9. May 2006, 01:17
by fardilha
Hi!
Thank you for your quick response.
I definitely need to get some sleep.
That " //-->" on the end of my script is a good example of what lack of a proper night of sleep can do to a person.
That "big whole linking table" actually was a thing that my client wanted...
Well back to the real thing:
If I understood you correctly (and again I'll remember my lack of sleeping time) with the "<!--start_cut//-->" and "<!--end_cut//-->" only the empty rows would be cut.
My doubt is that depending of the record, a field can be empty or not.
I don't want to cut that row always only when, for some reason, there's no data in it and I'm just afraid that my lack of decent English skills could be inducing you in error.
(Although I'm assuming that if you had understood that O wanted to clean that row always, you had simply suggested to delete it from the template...)
If that could be "doable" that would be great.
This way I don't need to clean the padding on the cells... I really don't like to see the text close to the borders.
Again thank you for all your help.
Pedro Fardilha
Posted: Tue 9. May 2006, 19:21
by StudioZ
Hey... Sorry for dropping in, only at this point of history
Never had time yet, to test this tremendously interesting Mod
Before going through editing core files....
I wish I could get an answer to this simple question:
Does ExData allows a frontend user to write/submit through a form,
data to the database?
Cheers,
Posted: Tue 9. May 2006, 20:00
by Ben
I'm 99% sure that it doesn't do that at the current time, StudioZ.
Posted: Tue 9. May 2006, 20:13
by StudioZ
Ben wrote:I'm 99% sure that it doesn't do that at the current time, StudioZ.
K. Thanks Ben for your input.
Cheers,
Posted: Tue 9. May 2006, 20:46
by fardilha
Hello.
As far as I can tell, no exData does not allow a frontend user to submit data.
Right now that's what I'm using to do that:
http://phpformgen.sourceforge.net/
Among other things you can select fields from an existing database and make the form populate them.
Best rgards
Pedro Fardilha
Posted: Tue 9. May 2006, 20:57
by StudioZ
Thank you Fardilha
I may give it a try
I was also thinking about using
http://www.allibsus.com/mailpro
A story to follow...
Cheers,
Posted: Thu 11. May 2006, 12:09
by fardilha
Well... phpformgen is free....

Posted: Fri 12. May 2006, 11:52
by fardilha
Hi all!!
I know that I'm being really a pesky but I would like to know if someone else has made something like this using the exdata mod:
On my site I'm using exdata as a book catalog on one of my pages.
To make it work a little more like a catalog I need to make it order entries by date, having the newest ones first.
This way I can always show the "what's new first"

My problem is that, right now, I can only make him order by date showing the oldest one first.

(Well, I could try to change the code to make it always sort "backwards" but this way when a user selected "sort by name" it would look kinda strange)
Another thing:
IF this sort "problem" could be solved (it's not a true problem, I'm just being picky

) my next one would be to try to show those "what's new" on the left menu.
For that I need to be able to only show some entries (like the 3 first with the inverted sort order) on another template.
Thank you
Posted: Sun 14. May 2006, 03:50
by breitsch
fardilha wrote:...but if you wanna that free stay in Portugal I need to ask your help once more...
If I were you, fardilha, I'd already call that nice little beach-hotel!
I worked for you and just for you!
Pretty much all your requests are done now:
- clean empty records in html-output in private templates as well, cross-browser
- news-function with new RT: EXDNEWS where you can set up the number of news
Can be used for auto-templates and moo.fx as well
- order entries by date, newest first (default - I think its better like that)
- the sort-function is much better now in all templates (private, moo.fx and auto). e.g. empty records now on the end of the list, numbers in correct order now, date in reverse order ...
Example for your request fardilha:
http://web.casa-loca.com/index.php?privatetemplates
So, send my the reservation confirmation and i'll give you the download-link.

Posted: Sun 14. May 2006, 04:05
by fardilha
You have to confess, working with a real life example is way better, isn't it??

This way you can test how far your great mod can go, and what different types of situations people try to use it!!
Nevertheless I do think I own you a nice vacation here!!!
We do have great beaches on the summer.
Did I already mention that you are a life savior and that I thank you endlessly?????
Pedro Fardilha
Posted: Sun 14. May 2006, 14:52
by sustia
Hi all, I have two question
1-
Breitsch
I'm trying to make the pagination works, but it doesn't work.
In this page
http://noria.ba.cnr.it/index.php?id=53,70,0,0,1,0
I've putted this replacement tag:
Code: Select all
{EXDATA:1:page.sort.template.php:1:0}
{EXDAUTO:1:auto:1:0}
The sort by works, but the pagination not, because all the items are shown in the same page.
2-
fardilha
How you have obtained the moo.fx to work with Internet Explorer?
Because I see that your doctype is
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
but with that doctype for me only in Firefox the moo.fx works, in IE it doesn't work properly, as you can see in this page:
http://noria.ba.cnr.it/index.php?id=53,81,0,0,1,0
Thanks.
Posted: Sun 14. May 2006, 15:43
by fardilha
Hi sustia!
Yes, I had the same problem on the beginning.
Moo.fx recommended that we should use
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
but I use
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
AS you can see in this forum
http://www.phpwcms.de/forum/viewtopic.p ... ht=doctype
Are you sure that you dind't use only the "transitional" as on the instructions without the "loose" part?
HTML 4.01 Transitional seems to corrupt the rendering with IE6
This way everything works fine (at least for me) in IE (pc) FF (PC) FF (Mac), Safari (Mac) and Opera (Mac).
(IE for Mac is considered dead and buried by Microsoft so I no longer test in it)
Take care.
Pedro Fardilha
Posted: Sun 14. May 2006, 16:02
by sustia
Hey fardilha, thanks again and again
Now it works perfectly

Posted: Sun 14. May 2006, 17:02
by breitsch
@sustia
Why do you use two RT's on the same page?
EXDATA is the RT for private templates and does not work together with EXDAUTO wich is RT for auto-templates
use only the EXDAUTO an set the parameters in Template-Section in backend (in your case template with ID=1).
when you want do do it with your personal templates (wich is not the case when I see your site) then use EXDATA correctly - it has only 3 parameters:
{EXDATA:[category-ID]:[main template file]:[entries template file]}
Posted: Sun 14. May 2006, 17:31
by sustia
Thanks for the quick answer, but I'm not sure I've understood.
For example, in this page
http://web.casa-loca.com/index.php?privatetemplates
what RT you have utilized?
Please don't write in this form
Code: Select all
{EXDATA:[category-ID]:[main template file]:[entries template file]}
but the real RT in order to understand this
