my site

Post links to sites running CMS in all its glory.
Post Reply
Bewbs

my site

Post by Bewbs »

I have installed the newest version of cms made simple multi language. I have just found the advertising iframe before website content.  It is like this:where post_id = 112388;
";
Last edited by Bewbs on Wed Oct 20, 2004 2:43 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: my site

Post by Ted »

I have installed the newest version of cms made simple multi language. I have just found the advertising iframe before website content.  It is like this:where post_id = 112388;
";
Bewbs

my site

Post by Bewbs »

possible new look for my site, http://www.bewbs.com/V2/test/index.php?page=home

im still debating on wether or not to use it

if you get errors while viewing this site please let me know
brownrl
Forum Members
Forum Members
Posts: 74
Joined: Thu Sep 23, 2004 11:06 am

How do you handle post vars

Post by brownrl »

I see on your site that you have a contact form.

So far I am trying to handle $_POST vars within {php}{/php}

It seems that forms do not 'post' correct to pages.

or the $_POST gets lost somehere in the compiling of pages.

What's your secret?

Rob
Bewbs

my site

Post by Bewbs »

its no secret buster777 wrote a contact form for cms to use it simply use {contact_form email="Youremailaddress"}
Thijs

my site

Post by Thijs »

Bewbs: I love the new (V2) look. It is really clean and stylish!
However if you're not going to use it, it would also be perfect as a CMS demo site :wink:
trixter

Re: How do you handle post vars

Post by trixter »

brownrl wrote:I see on your site that you have a contact form.

So far I am trying to handle $_POST vars within {php}{/php}

It seems that forms do not 'post' correct to pages.

or the $_POST gets lost somehere in the compiling of pages.

What's your secret?

Rob
I havent looked in the code, but my guess is that smarty (or whatever is doing the {php} tags) is doing a call to eval(). Basicaly the php engine will trat eval() code as a wohle new page, not just an included one. This is the only way (that I know of) that php can dynamically load content and execute php portions of it (say from a database)...

My guess is that the limitation on that is that eval() doesnt get the full environment passed to it. Unless you found some other error (harder for me since there isnt code :) ) and solved this problem already.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

my site

Post by Ted »

Well, the real issue is that I'm parsing out the {php} tags, mostly for security sake. Anything that can be done in {php} tags should be able to be done with a user defined plugin, which can more strictly checked and controlled.
chrisinoz
Forum Members
Forum Members
Posts: 67
Joined: Tue Nov 16, 2004 4:17 am
Location: Adelaide, Australia

form

Post by chrisinoz »

Firstly bewbs congrats on a very neat, clean looking site. It certainly works wel for me.

Re contact form the plug in one is fairly basic and I didn't like the need to have the need for a user to add a subject in there all the time. I prefer to have a set subject eg Enquiry Form to show as a Subject so I amended the plugin to change that and also added some check boxes and that works fine.

http://www.esimplified.net/cms/madesimp ... ge=Contact

If interested this is the complete file I used (function.contact_form.php)


==========================================

A email address to send to must be specified in order to use this plugin.';
exit;
}else{
$to = $params['email'];
}



$style = true;
if (!empty($params['style']))$style = $params['style'];
$name = '';
if (!empty($_POST['name'])) $name = trim($_POST['name']);
$email = '';
if (!empty($_POST['email'])) $email = trim($_POST['email']);
$phone = '';
if (!empty($_POST['phone'])) $phone = trim($_POST['phone']);
$circle = '';
if (!empty($_POST['circle'])) $circle = trim($_POST['circle']);
$pentagon = '';
if (!empty($_POST['pentagon'])) $pentagon = trim($_POST['pentagon']);
$hexagon = '';
if (!empty($_POST['hexagon'])) $hexagon = trim($_POST['hexagon']);
$cross = '';
if (!empty($_POST['cross'])) $cross = trim($_POST['cross']);
$message = '';
if (!empty($_POST['message'])) $message = trim($_POST['message']);


if($_SERVER['REQUEST_METHOD']=='POST'){
$extra = "Subject: Enquiry Form\r\nFrom: \"$name\r\nReply-To: $email\r\n";
echo '';

if (empty($name)) {
echo 'Please Enter Your Name.';
}elseif (empty($email)) {
echo 'Please Enter Your Email Address.';
}elseif (empty($message)) {
echo 'Please Enter a Message.';
}elseif (!validEmail($email)) {
echo 'Your Email Address is Not Valid.';
}elseif (@mail($to, $subject, "
$name\n
$email\n
$phone\n
My interest is in\n
$circle - $pentagon - $hexagon - $cross\n\n
$message\n", $extra)){
echo "Your message was successfully sent.";
return;
}else{
echo 'Sorry, the message was not sent. The server may be down!';
return;
}

echo '';
}
?>

" method="post" name="contactForm">
Your Name:" size="50">
Your Email Address:" size="50">
Phone:" size="50">

Widget enquiry: Circle
Pentagon
Hexagon
Cross

Message:>




What does this do?
Display's a contact form. This can be used to allow others to send an email message to the address specified.
How do I use it?
Just insert the tag into your template/page like: {contact_form email="yourname@yourdomain.com"}

If you would like to send an email to multiple adresses, seperate each address with a comma.
What parameters does it take?

email - The email address that the message will be sent to.
(optional)style - true/false, use the predefined styles. Default is true.



Author: Brett Batie<brett-cms@provisiontech.net>
Version: 1.0

Change History:
None



================================

Cheers

Chris
Humble web designer
Adelaide, South Australia
iNSiPiD

my site

Post by iNSiPiD »

I'm totally confused. Looking at the source for this site - http://www.bewbs.com/V2/ - it doesn't appear to use phplayers or any automated menu system? How does it work? Does it really run from CMS? Very pretty.
Last edited by iNSiPiD on Tue Jan 11, 2005 2:06 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

my site

Post by Ted »

It runs on CMSMS, he just chose to do his own menus instead of one of the automated ones.
Post Reply

Return to “CMS Show Off”