Page 1 of 1

More simple questions

Posted: Tue 17. Feb 2004, 18:09
by quiquedcode
I learnt in just 2 hours to use phpwcms !!
It is onf of the easiest cmss i have seen !! lot of friends told me the installation is easy, but the creation of a site is a pain, and I DONT AGREE WITH THAT !

my questions are:

1.
I know how to create and put the BACK tag... [BACK]string[/BACK]..
but, how can i create the print and #top stuff in each site, like phpwcms's home ?

2.
How to include a static .htm file in the article using a tag:
i know that {PHP:file.php} calls a php file and writes its output.
i know a workaround to make what i want but i think it must be a better way to make the output of simple htm files in the articles.

warkaround:in file.php
<?
$html = <<<END_OF_HTML;
HTMLCODEGOESHERE
END_OF_HTML;
echo $html;
?>
and then i call {PHP:file.php} from the article and works fine... simpler way?

3.
itd be great to have the possibility to build a DHTML menu using categorie's ids. I use DHTML menu builder, but maybe the code it generates is too complicated 4 using in phpwcms, but i think there r more easier menues that we'd like to use.
Anyway, i love the {MAIN_MENU_COLUM} (dunno rem. the name of tag) which generates the menu like phpwcms's home.

4.
any tip for the {breadcrumb} & date aligned to right and <br> "dotted line" included in the header of phpwcms's website?
:lol:

thanks a lot 4 reading... !!
this cms must go on 4ever !!
:)

Posted: Tue 17. Feb 2004, 18:15
by pSouper
lot of friends told me the installation is easy, but the creation of a site is a pain
give us thier addresses we'll change thier opinions of phpwcms even if if kills them ;)

Posted: Tue 17. Feb 2004, 18:46
by Oliver Georgi
1)
TOP:

Code: Select all

<a href="#top" title="goto top of the page"><img src="img/article/top_link_0.gif" border="0"></a>
PRINT:

Code: Select all

[PRINT]<img src="picture/symbols/print_icon.gif" width="44" height="9" border="0" title="open optimized page for printing">[/PRINT]
2)
You can include any possible file (*.htm, *.html and so on). There is no need for your workaround. There is no decisison if it is static HTML or PHP.

3)
Give me time.

4)

Code: Select all

<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="10"></td></tr>
<tr>
<td class="breadcrumb">{BREADCRUMB}</td>
<td align="right" class="footer">{DATE_ARTICLE}</td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="5"></td></tr>
<tr><td colspan="2"><img src="img/article/elements/content_line_499.gif" width="499" height="1"></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="15"></td></tr>
</table>
Oliver

Posted: Tue 17. Feb 2004, 20:10
by pSouper
with regaurds to the menu system I'd like to see a whole template like the layout page dedicated to a menu builder.
I like to be able to set individual .css class per structure/article too (this way i get to use images instead of words for my menu's).

no rush ;)

:edit: I invisage this 'menu layout' allowing the choice to cut an paste any menu code such as those from 'listmastic' and project7 etc. I think some may like to use dhtml and javascript menus too.

Posted: Wed 18. Feb 2004, 01:52
by quiquedcode
pSouper wrote:with regaurds to the menu system I'd like to see a whole template like the layout page dedicated to a menu builder.
I like to be able to set individual .css class per structure/article too (this way i get to use images instead of words for my menu's).

no rush ;)
this is an awesome suggestion, and it really would be great...
but i think we ( ;) ) gotta get more ppl involved in the development of this awesome work, so we give its author a little more free time to think in new features, etc.
I'm sure there are lot of exp. php geeks that will be very glad to help this man...

ANOTHER QUESTION !!!

*********************************************
how to show 2 or more complete articles (without the ...more link) in the same category ?
*********************************************

come php geeks !!! join this project and help !!! (im not geek, yet) :lol:

Posted: Wed 18. Feb 2004, 09:35
by Oliver Georgi
quiquedcode wrote:how to show 2 or more complete articles (without the ...more link) in the same category ?
This is not possible at the moment - (but I have planned such function) - another used asked - and it sounds good.

Oliver

Posted: Wed 18. Feb 2004, 16:24
by quiquedcode
Thanks Olivier...
I know u will make it !!

---------

Another qs.:

1.
I made an article, then i tried to add it the "email form" content, but i dont know what to fill in the "form fields" textarea, and when i fill it in anyway, the contents are erased... :(

A better question then: how can i create a custom email form which i would include using {PHP:contact.php} and then make the form submit inside the site?... i thought using the IFRAME tag and make the form submit to the IFRAME but maybe u have a better solution... :)

2.
How can i know the ID of my articles? i know how to call the category's ID but i saw i have the possibility to link to the article ID too, but i try to find the id of article in the admin area but i dont c it...

Sorry 4 bothering, but i want to go learning phpwcms in the fastest way i can... :wink:

Posted: Wed 18. Feb 2004, 17:12
by Vadim
Oliver Georgi wrote:
quiquedcode wrote:how to show 2 or more complete articles (without the ...more link) in the same category ?
This is not possible at the moment - (but I have planned such function) - another used asked - and it sounds good.

Oliver
And perhaps it would be possible to divide many articles into groups, and create links [1][2][3][4][5] etc. Great function for news

Posted: Wed 18. Feb 2004, 18:29
by Pappnase
quiquedcode wrote:1.
I made an article, then i tried to add it the "email form" content, but i dont know what to fill in the "form fields" textarea, and when i fill it in anyway, the contents are erased... :(

:wink:
Hello

look at this!

http://www.phpwcms.de/forum/viewtopic.php?t=215

Pappnase

Posted: Wed 18. Feb 2004, 19:29
by pSouper
i know this is not the request area [and maybe the request should all be cut and pasted there too] but...
And perhaps it would be possible to divide many articles into groups, and create links [1][2][3][4][5] etc. Great function for news
I would very much love to have one or two replacement tags for this.

1: [PAGINATE:Int] [/PAGINATE] - this would automatically split the enlosed article/text/etc in to pages of a set number of screen lines with the 'page number' links as above

2: [PAGEBREAK] forces a page break here (this can be used within the PAGINATE replacement tag)

Posted: Wed 18. Feb 2004, 20:54
by quiquedcode
I agree with pSouper...

following goes some errors i new suggs. i have:

1.
i put all that rare code in the "form fields" field when i tried to make a contact form.
I tried it and got an error!

Code: Select all

Fatal Error: Call to undefined function html_entity_decode() in D:\....\...\include\inc_act\act_formmailer.php line 91
I fixed it changing the following line (91):
..... = html_entity_decode(trim($_POST["subject"]));
by
..... = trim($_POST["subject"]);

and then it worked great... what is the cause of that error? maybe my php version is outdated? (4.2.3)

2.
I read all the threads about the formmailer and well, i agree that the thank you page must be changed... or maybe at least customized in the admin area, because i get it in english and it shows all the hidden values etc. and that is not so kind... also id like to keep the style of the website in the thankiu page.

3.
i think i posted it recently... how to get the article's ID ?
so i can call it using [ID myarticlenumber] GO GO GO !!! [/ID]

thanks a lot...
The more i use phpwcms the more i love it !!!
:lol: 8) :D :shock:

Posted: Wed 18. Feb 2004, 23:45
by DeXXus
quiquedcode wrote:I agree with pSouper...

following goes some errors i new suggs. i have:

1.
i put all that rare code in the "form fields" field when i tried to make a contact form.
I tried it and got an error!

Code: Select all

Fatal Error: Call to undefined function html_entity_decode() in D:\....\...\include\inc_act\act_formmailer.php line 91
I fixed it changing the following line (91):
..... = html_entity_decode(trim($_POST["subject"]));
by
..... = trim($_POST["subject"]);

and then it worked great... what is the cause of that error? maybe my php version is outdated? (4.2.3)
Yes, cause is just older version of PHP... Oliver explained here:http://www.phpwcms.de/forum/viewtopic.php?p=4696#4696

Code: Select all

Sorry - I have included new functionality and did not thought about PHP < 4.3 - change line 91 in act_formmailer.php into: 

Code: 
$subject = html_despecialchars(trim($_POST["subject"])); 
quiquedcode wrote:3. i think i posted it recently... how to get the article's ID ?
In site structure and article list, hover your mouse pointer over the leading "x box" of each article name and the article ID will be revealed (ie: article ID:5).

custom php scripts for forms

Posted: Sun 27. Aug 2006, 02:06
by anthony.abraira
Does anybody have an official thread where this question was answered
:?
A better question then: how can i create a custom email form which i would include using {PHP:contact.php} and then make the form submit inside the site?... i thought using the IFRAME tag and make the form submit to the IFRAME but maybe u have a better solution...
I would rather have more formatting control of my forms, so I was wondering if anybody ever got this one figured out?

Peace