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.

Pages: 1 [2]

Author Topic: [MOD] Codetwist's - Adding additional form to sNews (1.6)  (Read 9410 times)

Martin2007

  • Newbie
  • *
  • Karma: 0
  • Posts: 20
Re: [MOD] Codetwist's - Adding additional form to sNews (1.6)
« Reply #15 on: December 19, 2007, 03:39:08 pm »

Whoaaa ... my precious modie, thx Patric :D

Regarding usage in articles - If I recall right it should be possible to use it in article/page using default [include] tag without additional function call mod (it's not that I object to having function mod handy, too, philmoz).

Create file with following code:
Code: [Select]
<?php
applform
();
?>
Include it in text as usual - and have that form ready to go ;)

Thanks to all of your for this mod. I tried to call this mod in a new page by placing this code:  <?php
applform();
?>  with my text, but it does not show up. I will appreciate any help. Thanks

Martin
Logged

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
Re: [MOD] Codetwist's - Adding additional form to sNews (1.6)
« Reply #16 on: December 19, 2007, 05:04:40 pm »

That include meant following:
Put <?php applform(); ?> into separate file, like applform.inc.php. After that include that file into page text like this: [include]applform.inc.php[/include]
Logged

Staff

  • Guest
Re: [MOD] Codetwist's - Adding additional form to sNews (1.6)
« Reply #17 on: January 02, 2008, 10:04:49 pm »

I've used this mod to add a contact form to the sidebox on the page. Unfortunately when the form is entered either succesfully or unsucesfully I recieve the message in both the sidebar as well as in the center of the page.

How would I leave the form in the sidebar and if successfull, the current page would reload with the succesfull messagein place of the form box. And if unsuccesful the unsucesfull message would load in the side along with the form.
Thanks
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
Re: [MOD] Codetwist's - Adding additional form to sNews (1.6)
« Reply #18 on: September 06, 2009, 12:56:19 pm »

DAMN.... Thought this was going to work with 1.7, but nope... anyone willing to have a looksie at it?
Logged
"It's only dead fish that goes with the flow... "
Updated
Pages: 1 [2]