Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: adding address, tel. number, and so on above contact form - possible?  (Read 2017 times)

grinpin

  • Newbie
  • *
  • Karma: 0
  • Posts: 19

ok, after hours of bloody fight with sNews and my tine knowledge about php I gave up.
What I found after searching forums is idea of hardcode needed info between:

// CONTACT FORM
function contact() {
   if (!isset($_POST['contactform'])) {
      echo '

'.l('contact').'

';
here put some more echo's ;)
      echo '

'.l('required').'

';

well, that's not fit me at all, so HELP ME :)

I got a cunny plan:

1) creating hidden article - e.g. "contact1" with all info about street, postal code, phones etc. I'm looking for it ID in database
2) put inside the code above, php command (with use of ID of article) which will displays content of "contact1" just above contact form
and...

I'm failing at #2. You guys please aid me with you knowledge and tell  what is a solution ? Probably some nice db query... or something else.  

Thanks in advance
Logged

mike1

  • Full Member
  • ***
  • Karma: 6
  • Posts: 199
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Logged
"It's only dead fish that goes with the flow... "
Updated

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
adding address, tel. number, and so on above contact form - possible?
« Reply #3 on: July 27, 2007, 06:57:44 am »

philmoz I dare say that is a spam post.  Please remove Moderators.
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
adding address, tel. number, and so on above contact form - possible?
« Reply #4 on: July 27, 2007, 09:50:32 am »

Post to which philmoz and pix referrs to is deleted.
Logged
"It's only dead fish that goes with the flow... "
Updated