Support Forums

SMS form

This is a discussion on SMS form within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, i am creating an sms (text messaging) contact form. But this is only visible when the visitor is logged ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 06-13-2009, 09:50 AM   #1
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default SMS form

Hi,

i am creating an sms (text messaging) contact form.
But this is only visible when the visitor is logged in.

But i want both phonenumbers (of the seller and the viewer) to be entered automatically.

But the command for phone is just {$phone}, are there commands for
- sellers phone
- viewer (logged in) phone

?

Hoping to hear from you,
Dominick

Quote:
<h3>Sender</h3>
<input type="text" name="afzender" id="afzender" maxlength="14" size="14" value="{$sender_phone}/> <div class="sub">Anoniem: <input type="checkbox" name="anoniem" value="anon" onclick="setAnoniem(this);" /></div>
<h3>Seller/receiver</h3>
<input type="text" name="ontvanger" onkeypress="return isNumeriekeToets(event);" maxlength="11" size="11"value="{$seller_phone}/><br />
damiun is offline   Reply With Quote
Old 06-13-2009, 10:13 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

If you use the smarty debug console by putting {debug} at the top of your layout.tpl file you can see the variables that are available on each page. If the variable you want to use is not on the debug popup then you will have to alter the php code to query the database to get it and send it to the template so its available.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-13-2009, 11:21 AM   #3
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Thanks larry,

How does this work exactly, because i put {debug} at the top of the default layout.
But nothing really...

Quote:
{debug}
{*$Revision: 249 $*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="author" content="Luka Cvrk (www.solucija.com)" />
<title>{$sitetitle}</title>
<meta name="Keywords" content="{$sitekeywords}" />
damiun is offline   Reply With Quote
Old 06-13-2009, 11:23 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

its supposed to pop open a new window with all the variables in it. Have you disabled a popup blocker for your site?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-13-2009, 01:53 PM   #5
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Hi,

Yeah that was the problem.
No popup appeared so i went to the source and copied the code from the popup into a new html, exported this and opened it.

But its just one phone, only that of the seller, and not of the member.

Quote:
you will have to alter the php code to query the database to get it and send it to the template so its available.
Is this well... easy or is this expert level, because i am quite new to this so it its to hard i dont even start.

Dominick
damiun is offline   Reply With Quote
Old 07-21-2009, 03:19 PM   #6
Customer
 
Join Date: Jul 2009
Posts: 28
Rep Power: 9
chillyware is on a distinguished road
Default

Dos it works now ???
__________________
v4.1.10 Developer
chillyware is offline   Reply With Quote
Old 07-21-2009, 03:38 PM   #7
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Hi,

i hired an expert, to get it working,
It work but but it doesnt fill in the email of the loggedin member, but that doesnt really mind,

why, are you interested?
Dominick
damiun is offline   Reply With Quote
Old 07-21-2009, 03:46 PM   #8
Customer
 
Join Date: Jul 2009
Posts: 28
Rep Power: 9
chillyware is on a distinguished road
Default

Lator on i want to use a SMS/ telelefoon function
__________________
v4.1.10 Developer
chillyware is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 11:51 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0