MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > General Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old June 16th, 2005, 15:47   #21
witchesmagick
 
witchesmagick's Avatar
 
Join Date: Mar 2005
Posts: 122
witchesmagick is on a distinguished road
Unhappy How to...

Hey, how do I make it so the visitor has to fill out all the feilds. I replaced none with all, it worked but then I just wanted 2 out of the 5 feilds to be a MUST. How do I change it? I tried putting

[requierd_feilds] blah blah
[requierd_feilds] yea yea

But then when I filled out the form some weird message came, or I put it back to none. Can ya help me?


Thanx,

J
__________________
Dark Witch
A Witchcraft & Wicca website, with everything a Witch could want
www.witchesmagick.com
witchesmagick is offline   Reply With Quote
Old June 16th, 2005, 21:12   #22
hark
 
hark's Avatar
 
Join Date: Jun 2005
Posts: 17
hark is on a distinguished road
Default

witchesmagick,
If I understand right you will need to add an entry in the config file for each form field to be required. All is not an option (unless you have a form field called All). Notice that they are case sensative. all is not the same as All.

From the HiQFormMail fdocumentation:
required_fields:
#list of required form fields entered 1 per line.
[required_fields] none

I sure would love to know why I can't get a sig to display in my posts.

Sorry late -- just got home from Linux users group meeting.

Richard
<edit>
As in if youy have:
<INPUT TYPE="TEXT" NAME="FName" SIZE="25" MAXLENGTH="25">

<INPUT TYPE="TEXT" NAME="LName" SIZE="25" MAXLENGTH="25">

To require both:
[required_fields] FName
[required_fields] LName

To require only first name:
[required_fields] FName

Don't know what happened but my sig suddenly appeared.
</edit>
hark is offline   Reply With Quote
Old June 17th, 2005, 02:33   #23
maxa
 
maxa's Avatar
 
Join Date: Apr 2005
Posts: 59
maxa is on a distinguished road
Default

Quote:
Originally Posted by guilliam
QUESTION 1: are the content editors be having a ADMIN user level or just content managers? (since my workaround suggestion will be a "module" to be inserted at the top)

QUESTION 2: can we ask for the url of your site in which the forms will be displayed?
(you can do a work around on the template depends on what your templaate layout looks like. let us take a look.)

Q1: Preferably just contenet managers.

Q2: Of course, it's www.andresmaleri.se, but it's only 50% done and it's in Swedish =)

/maxa
maxa is offline   Reply With Quote
Old June 18th, 2005, 12:15   #24
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Lightbulb Maxa's Walkthru, for a MODULE type content and a WRAPPER type FORM.

Quote:
Originally Posted by maxa
Q1: Preferably just contenet managers.

Q2: Of course, it's www.andresmaleri.se, but it's only 50% done and it's in Swedish =)

/maxa
CONS:
a.) the CMS function is LIMITED to someone who has "super administrator" access since the content that would be edited will be a "User Module"(not the content).

I. Tools, Templates, skills, specifics, etc.. NEEDED for this walkthru:
1. Mambo 4.5.2

2. Mambo Template: "md_digitalether" by http://www.mambodev.com (non free/commercial template)

3. Any wyswyg HTML editor(i've used Macromedia Dreamweaver for this tutorial)


II. The Walkthru:

1. open your HTML wyswyg editor(dreamweaver).

1.a) make a new basic HTML page.

1.b) in the design view of the wyswyg HTML editor, create a table with a specified with of 370 pixels, this is because the template youre using has a width limit of more OR around 380 pixels.

1.c) assuming you filled in all the necessary FORM FIELDS and the texts on that page,.. you will gonna have something like this:


1.d) ASSUMING again that you made all the necessary configuration of the HiQFM,.. all the necessary FORM fields are done. save teh HTML file and upload to your webhost.

2. open the MAMBO administrator(back end)

3. click on the menu "MODULES", then "Site Modules". create a new user MODULE by clicking on the icon "New"(upper right side). fill in the Fields, for this tutorial fill the following:
"Title:" - "Test Module 1"
"Show title:" - Yes
"Module Order:" - should be "1" or the top most.
"Position:" - "user1"(select on the drop down choices)
"Published:" - Yes

if you are following, your screen would look like something like this:


UNDER: "Pages / Items", "Menu Item Link(s):" highlight only the pages which you only want this particular module will be visible. in this tutorial will make it only visible to the link named "wrapper". see sreenshot for reference below:


4. scroll down and skip the fields in the "Parameters".. go directly to the "Custom Output - Content:" and see/read this thread for a DETAILED reference:
http://forum.mamboserver.com/showthr...582#post233582

PLEASE FOLLOW "The Procedure - #4" in that thread.

5. STILL on the back end.. go to the tab "menu" then "mainmenu", click on "Menu Item" named "wrapper".

6. on the field " Wrapper Link:" put the url of the HTML form page that you have uploaded as per discussed in "II. The Walkthru #1"

7. fill in all the fields GUIDED by the instructions given in the Item #11 of the first post of this thread. OR please see HERE
Quote:
11. it will now lead you to: "Add Menu Item :: Wrapper",.. fill in the details boxes, such as NAME, Wrapper Link, Url, etc.
a.) "Wrapper link" is to be pointed where your FORM PAGE is located.. so for our walkthru having as an example, point it to: http://www.yourdomain.com/HiQFM/test.html
b.) for this walkthru, fill the "Name:" field to "Form Test"
c.) generally, tick the NO radio button on "Scroll Bars:".. this is so that the FORM page will be wrapped properly without the scroll bars.
d.) set the "Auto Height:" to yes
e.) set " Published:" to "yes"
f.) click "Save" icon on top.

8. assuming you save the wrapper menu, go to the front end. and click on the menu link named "wrapper". you SHOULD see something like this:

(i have made the border of the table color "green" so you can see the width variable of the table, BUT of course the HTML form is up to you to configure.. as the title of this thread says "..FULLY CONFIGURABLE.."

9. do the same thing with the other wrapper pages,.. and other forms. i'll leave the TINKERING to you.

DONE!

lemme hear your thoughts.. try it first then ask what else to do.

~guilliam~

.
guilliam is offline   Reply With Quote
Old June 18th, 2005, 20:06   #25
hark
 
hark's Avatar
 
Join Date: Jun 2005
Posts: 17
hark is on a distinguished road
Default

Damn, I think I'll go dig a hole crawll in and pull the hole in after me. To old, to many dead brain cells to learn this kind of stuff.

I need K.I.S.S. stuff.
hark is offline   Reply With Quote
Old June 19th, 2005, 01:19   #26
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

^^.. ahhahahha.. yes sir richard,.. it kinda intimidating to look at first. BUT when you get the hang and grasp of Mambo as a CMS.. you will be delighted that you found Mambo first MORE than tons of other CMS out there.

guilliam
guilliam is offline   Reply With Quote
Old June 19th, 2005, 07:03   #27
lilqhgal
 
lilqhgal's Avatar
 
Join Date: Apr 2005
Posts: 47
lilqhgal is on a distinguished road
Default

Quick question regarding this... can you take the contents of the submitted form and add them to a database for displaying/sorting/editing/etc. later? (please keep in mind I am a *TOTAL* phpnoob, thanks.) :-)
lilqhgal is offline   Reply With Quote
Old June 19th, 2005, 09:19   #28
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

hello @lilqhgal!

as stated in one of my post here in this thread is that "the data IS NOT" stored to the mySQL DB in this way of implementation/method.. its a pure FORM to email.

though there is another option on what you wanted,.. having the data sent/inserted to a DB for easy fetching of that data,.. you can try "mosforms",.. but a cons to that its not as higly configurable and customizable in comparison to a HTML form. so for now, best of both worlds doesnt meet in one module or neighter on this method presented on this thread.

guilliam

btw.. nice kiddo you got there!

ditto
guilliam is offline   Reply With Quote
Old June 19th, 2005, 10:15   #29
hark
 
hark's Avatar
 
Join Date: Jun 2005
Posts: 17
hark is on a distinguished road
Default

Just a quick question. Wopuld the fact that this is being used in the Mambo environment would that dictate hou one would insert FiQFM output in a database.

I did not do this myself but a user posted an example of how he 'logs' the usage in a SQL database on the HiQ support forum.

I am am having a real conflict with myself on this issue. IMHO this goes beyond the purpose of a formmail application. Also, the possible complexity of doing it in a way that would make everyone happy would not be easy. But... more & more people are asking this question.

It also adds a lot of complexity to the code which adds to possible errors popping up. Maybe a lite and pro version BUT I am not sure I even want to tackle this issue.

I guess I am really asking for some input.
hark is offline   Reply With Quote
Old June 19th, 2005, 12:15   #30
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

^^i agree sir hark, it will be a little work to do making it happen.. i'll check with HiQ support forums and see how the method of LOGS in the DB is made.

tackle this issue? im sure lots of cummunity members will be needing this.. but it will take some time to get the drift how the mambo db architecture is for you.

guilliam
guilliam is offline   Reply With Quote
Old June 19th, 2005, 12:52   #31
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

@lilqhgal, just an addendum.. there is actually a way/tweak to insert he data from the FORM. sorry,.. i just checked the threads in @hark's community forums. i havent tried it yet.. but it looks to be very promising this can be very possible(send email then insert to db) with this existing HiqFM.

guilliam
guilliam is offline   Reply With Quote
Old June 19th, 2005, 14:50   #32
hark
 
hark's Avatar
 
Join Date: Jun 2005
Posts: 17
hark is on a distinguished road
Default Re: your question at HiQ...

They are same. I took his hack and posted it in the other thread as it goes with the subject.

Yes the info is all there & you can do anything you want (short of screwing up the email)

The issues I face with adding as default option is how to select items to be logged and telling the average user how to make it work and then having to support.

It may take a while for Dave to answer the question. I think he has already setup the database / tables and just doing a connect inorder to insert the data.

The garbage (just my guess) he refers to may be that stuff gets inserted under some error conditions or fields with no data entered. <edit> Took me a while but it dawned on me driving down the road. When a form is defined then all fields are posted and can be accessed from the script. So fields with no data entered might be entered in the db. I guess I had better take a look. It is not hard to exclude 'blank' fields.</edit>


IMHO if this was to be done a function should be written (or maybe a class to add) ellements to the db, data passed off error checked etc and then included in the script only when needed.
hark is offline   Reply With Quote
Old June 20th, 2005, 01:36   #33
maxa
 
maxa's Avatar
 
Join Date: Apr 2005
Posts: 59
maxa is on a distinguished road
Default Thanx for the Walkthru!

Thank you so much for the walkthru, guilliam!
Sorry, but that I didn't have time to try it out yet, and it will probably take a few days before I will.
I'll be back!
Keep up the good work
/maxa
__________________
www.indell.se/webbhotell
maxa is offline   Reply With Quote
Old June 20th, 2005, 02:25   #34
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

warmly welcome @maxa.. you got mail(replied to your email)

guilliam
guilliam is offline   Reply With Quote
Old June 23rd, 2005, 04:04   #35
pli
 
Join Date: Nov 2004
Posts: 23
pli is on a distinguished road
Default style sheets

guilliam - Thanks very much for your walk thru.

Has anyone figure out how to get the form result to produce text as per the site style sheet instead of the default font

cheers
P
pli is offline   Reply With Quote
Old June 23rd, 2005, 08:15   #36
guilliam
 
guilliam's Avatar
 
Join Date: Apr 2005
Location: sunny city, CEBU!, Philippines.
Posts: 408
guilliam is on a distinguished road
Default

hello pli!

youre warmly welcome!

what do oyu meant by text in the the site? the form page it self? or the email that would be sent to the recipient?

guilliam
guilliam is offline   Reply With Quote
Old June 23rd, 2005, 11:20   #37
hark
 
hark's Avatar
 
Join Date: Jun 2005
Posts: 17
hark is on a distinguished road
Default

Quote:
Originally Posted by guilliam
hello pli!

youre warmly welcome!

what do oyu meant by text in the the site? the form page it self? or the email that would be sent to the recipient?

guilliam
I think this is the same person who posted at HiQ... and emailed me. They are refering to the information displayed after the email has been sent. Does look bad. This is because of the default header file being included.

I looked at the form & did a test. It appears the default option is being used instead of a redirect. If this is what they want custom header & footer files should be built.

Sequence---
The script (by default) includes a header file. Here one builds the page basics, includes any css or links, nav menus etc. DO NOT close the html and body tags.

The script then echos the message body.

Lastly the script includes a footer file where one can include nearly anything they want. All open tags from the header should be closed in the proper order.

It appears that I need to find the time to figure out some of this Mambo stuff.

Below is a real example of header and footers from one of my sites.
Header:
Code:
<HTML> 
  <HEAD> 
    <TITLE></TITLE>
    <LINK REL="STYLESHEET" HREF="../css/links.css">
    <LINK REL="STYLESHEET" HREF="../css/main.css"> <STYLE TYPE="text/css">

BODY {
  margin-top: 10pt;
  margin-right: 0pt;
  margin-left: 0pt;
  margin-bottom: 0pt;
  padding-top: 0pt;
  padding-right: 0pt;
  padding-left: 0pt;
  padding-bottom: 0pt;
}
</STYLE><SCRIPT LANGUAGE="JavaScript" SRC="../scripts.js"></SCRIPT> 
  </HEAD> 
  <BODY BGCOLOR="#330033" TEXT="#000000" STYLE="font-family: Arial"> 
    <CENTER> 
      <TABLE WIDTH="750" BORDER="0" CELLPADDING="3" BGCOLOR="#FFFFD9"> 
        <TR> 
          <TD ALIGN="CENTER"> 
            <TABLE WIDTH="750" CELLPADDING="0" CELLSPACING="0"
             BGCOLOR="#FFFFD9" BORDER="0"> 
              <TR VALIGN="MIDDLE"> 
                <TD WIDTH="50%" ALIGN="CENTER" VALIGN="MIDDLE"><STRONG><U><FONT
                  SIZE="+1">Info Request Confirmation</FONT></U></STRONG> <BR><BR></TD> 
              </TR> 
            </TABLE> 
            <TABLE CELLPADDING="3" WIDTH="750" CELLSPACING="0" BORDER="0"
             BGCOLOR="#FFFFD9"> 
              <TR VALIGN="TOP"> 
                <TD WIDTH="130" VALIGN="TOP" ALIGN="LEFT"
                 STYLE="font-family: Arial"> 
                  <DIV ID="menu"
                   STYLE="width: 135px; text-align: center; float: left; clear: right; margin-right: 10px; background-color: transparent; border-top: medium #000000 dotted; border-right: medium #000000 dotted; border-bottom: medium #000000 dotted; border-left: medium #000000 dotted">
                    
                    <TABLE WIDTH="135" BORDER="1" CELLPADDING="2"
                     BGCOLOR="#CCFFFF"
                     STYLE="border-top: #808080 none; border-right: #808080 none; border-bottom: #808080 none; border-left: #808080 none"
                     CELLSPACING="0"> 
                      <TR> 
                        <TD ALIGN="CENTER"
                         STYLE="font-size: 10px; padding-top: 1pt; padding-right: 1pt; padding-left: 1pt; padding-bottom: 1pt"
                         BGCOLOR="#330000"><FONT COLOR="#FFFFFF">Roseville Pottery <BR>for Sale by
                          Pattern </FONT></TD> 
                      </TR> 
                      <TR> 
                        <TD ALIGN="CENTER" STYLE="font-size: 12px"
                         BGCOLOR="#99CCCC"> 
                          <OL> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville01.php"
                              TITLE="Roseville patterns from Apple Blossom thru Bushberry">Rv Pottery A -
                              B</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville02.php"
                              TITLE="Roseville patterns from Cameo thru Egypto">Rv Pottery C - E</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville03.php"
                              TITLE="Roseville patterns from Falline thru Futura">Rv Pottery F</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville04.php"
                              TITLE="Roseville patterns from Gardinia thru Lustre">Rv Pottery G - L</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville05.php"
                              TITLE="Roseville patterns from Magnolia thru Mostique">Rv Pottery M</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville06.php"
                              TITLE="Roseville patterns from Normandy thru Quaker">Rv Pottery N - Q</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville07.php"
                              TITLE="Roseville patterns from Raymor thru Tuscany">Rv Pottery R - T</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville08.php"
                              TITLE="Roseville patterns from Utility Ware thru Woodland">Rv Pottery U -
                              W</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/roseville09.php"
                              TITLE="Roseville Zepher Lily pattern">Rv Pottery X - Z</A></LI> 
                            <LI><A
                              HREF="http://www.rosevilleplace.com/roseville-pottery/special.php"
                              TITLE="Roseville Experimantals, trial glazes, lamps etc.">Special
                              Roseville</A></LI> 
                            <LI><STRONG><A HREF="http://www.all-pottery.com/"
                              TITLE="All other American Art Pottery">All Other Pottery </A></STRONG></LI> 
                          </OL></TD> 
                      </TR> 
                    </TABLE> 
                    <TABLE WIDTH="135" BORDER="1" CELLPADDING="2"
                     BGCOLOR="#CCFFFF"
                     STYLE="border-top: #808080 none; border-right: #808080 none; border-bottom: #808080 none; border-left: #808080 none"
                     CELLSPACING="0"> 
                      <TR> 
                        <TD ALIGN="CENTER" STYLE="font-size: 10px"
                         BGCOLOR="#000000"><FONT COLOR="#FFFFFF">On Site Links</FONT></TD> 
                      </TR> 
                      <TR> 
                        <TD ALIGN="CENTER" STYLE="font-size: 11px"
                         BGCOLOR="#99CCCC"> 
                          <OL> 
                            <LI><STRONG><A HREF="http://www.rosevilleplace.com"
                              TITLE="Roseville Place home">RosevillePlace</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/sell-roseville-pottery.htm"
                              TITLE="Sell your Roseville Pottery">Sell</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/faq.htm"
                              TITLE="Facts and Questions">F.A.Q.</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/Evaluations.htm"
                              TITLE="How to get your roseville evaluated">Evaluate</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/art-pottery-links.htm"
                              TITLE="links to Art Pottery websites">Pottery Links</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/non-pottery-links.htm"
                              TITLE="links to NON-Pottery websites">NON-Pottery Links</A></STRONG></LI> 
                            <LI><STRONG><A
                              HREF="http://www.rosevilleplace.com/rvpinfo.php" TITLE="Send us an email">
                              eMail</A></STRONG></LI> 
                          </OL> </TD> 
                      </TR> 
                    </TABLE> </DIV> </TD> 
                <TD WIDTH="620" VALIGN="TOP" ALIGN="CENTER" BGCOLOR="#FFFFD9"> 
                  <CENTER> 
                    <TABLE WIDTH="500"> 
                      <TR> 
                        <TD VALIGN="MIDDLE"> Your request for additional
                          information has been emailed . <BR>If you have not already done so please read
                          the <A HREF="termsofuse.htm" TARGET="_blank">Terms of Use Agreement</A><BR><BR>
                          <STRONG>Choose your next destination from the list at the left.</STRONG></TD> 
                      </TR> 
                    </TABLE><HR> </CENTER> 
                  <TABLE WIDTH="500"> 
                    <TR> 
                      <TD> <STRONG>information sent:</STRONG><BR>
<!-- END OF HEADER -->
Footer:
Code:
<!-- BEGINNING OF FOOTER -->
</TD></TR></TABLE></TD>
</TR>
</TABLE></TD></TR></TABLE>

</CENTER><SCRIPT LANGUAGE="JavaScript">copyRight();</SCRIPT>

</BODY></HTML>
The header can be seen at http://www.rosevilleplace.com/all_forms/header_info.php

The footer is at http://www.rosevilleplace.com/all_forms/footer_all.php You will see a blank page. If you do a 'view source' you will see the footer html as above. The copyright info is not displayed because the link to the script file is on the header file.

I hope this helps.
hark is offline   Reply With Quote
Old June 23rd, 2005, 14:40   #38
miseria
 
Join Date: Jun 2005
Posts: 8
miseria is on a distinguished road
Default

Thanks for the walkthrough Guilliam and thanks for the scripts Hark. I seem to be having problems but I'm unsure if other people have already asked this. When I fill out the form, it isn't emailed to me. thanks for any help in advanced
miseria is offline   Reply With Quote
Old June 23rd, 2005, 16:35   #39
kenmcd
 
kenmcd's Avatar
 
Join Date: Apr 2005
Location: California
Posts: 726
kenmcd is on a distinguished road
Default

Quote:
Originally Posted by guilliam
@eyezberg --> thank you! hope kenmcd does
Guilliam, Eyezberg - please PM me when you create or find goodies like this.
I stumbled across this thread today by accident.
Added the tutorials to the Mambo Documentation Resources.
Very useful for everyone.
Great job Guilliam!

KM
kenmcd is offline   Reply With Quote
Old June 23rd, 2005, 16:42   #40
mamboguy.com
 
Join Date: Nov 2003
Location: Australia
Posts: 2,931
mamboguy.com will become famous soon enough
Default

Does anyone want this thread moved to Tip & Tricks?

If so please use the report post button and a moderator will take care of it...
__________________
Brad Baker
www.rochen.com - Multiple Domain, Reseller and Dedicated Hosting Solutions.
www.joomlatutorials.com - Joomla Tutorials to get you started.
mamboguy.com is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 07:43.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.