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: Php in sNews editor  (Read 3513 times)

Bayerberg

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Php in sNews editor
« on: May 17, 2007, 05:13:53 pm »

What do i have to change to allow php commands in snews editor?


btw. Hi all, Im new here, just  starting my snews adventure ;]
Logged
speak clearly, I'm a designer.. ;]

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Php in sNews editor
« Reply #1 on: May 17, 2007, 06:13:35 pm »

um, what do you want to do that for?
Or do you just want to display php code in the article?
Logged
Of all the things I have lost, it is my mind that I miss the most.

Bayerberg

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Php in sNews editor
« Reply #2 on: May 17, 2007, 07:54:07 pm »

@bakercad
thanks, i knew that was a easy one ;] easiest solutions usually are hardest to find ;]

@philmoz
Im fiddling with cms,I wanted to create a page with extra content containing , and ... a blog page on a static site so to speak.
Logged
speak clearly, I'm a designer.. ;]

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Php in sNews editor
« Reply #3 on: May 18, 2007, 01:26:03 am »

ah... so just to use functions... check the 1.5 forum... ah buggrit, look here..
http://www.solucija.com/forum/viewtopic.php?pid=29714#p29714

note the js code is a tad not the same as 1.6, but that shouldn't be too difficult to figure out...

I have not looked at that and tested with 1.6 yet.
Logged
Of all the things I have lost, it is my mind that I miss the most.

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Php in sNews editor
« Reply #4 on: May 18, 2007, 03:21:54 am »

ok, tested... and seems to work...  :P
http://www.solucija.com/forum/viewtopic.php?id=4583
Logged
Of all the things I have lost, it is my mind that I miss the most.

Bayerberg

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Php in sNews editor
« Reply #5 on: May 18, 2007, 12:51:46 pm »

that's it! You made my life a lot easier ;]
Cheers!
Logged
speak clearly, I'm a designer.. ;]

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Php in sNews editor
« Reply #6 on: May 18, 2007, 07:59:13 pm »

no probs...
Logged
Of all the things I have lost, it is my mind that I miss the most.