| Author |
Message |
tonyriot
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34
Location: Puerto Rico
|
Posted:
Mon Feb 03, 2003 12:41 pm |
  |
can I add php to the contents and/or to the custom blocks? |
|
|
      |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 03, 2003 12:44 pm |
  |
blocks are written in php by default. All you have to remember is to use instead of echo
only the "Custom Blocks" that are entered as HTML in the blocks administration manually.
Artificialintel |
|
|
   |
 |
tonyriot
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34
Location: Puerto Rico
|
Posted:
Mon Feb 03, 2003 1:18 pm |
  |
so I can add my own shopping cart on a Content page? |
|
|
      |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 03, 2003 2:16 pm |
  |
for content, it'd be easier to write a module, as u can't add php to the content section I don't htink.
There is a good cart system called NSN Cart available from http://www.nukescripts.net if you would rather use that
Artificialintel |
|
|
   |
 |
tonyriot
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34
Location: Puerto Rico
|
Posted:
Mon Feb 03, 2003 2:53 pm |
  |
thanks
I'll check that cart out
but just for learning purposes, is there any guide to create a module? |
|
|
      |
 |
tonyriot
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34
Location: Puerto Rico
|
Posted:
Mon Feb 03, 2003 3:43 pm |
  |
oh wait
you have to pay for the NSN Cart :-\ |
|
|
      |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 03, 2003 4:07 pm |
  |
my Complete Idiots Guide to php-nuke gives you the basics.
most of programming a module is knowledge of how to program in php. All you need to remember is when you define a new page, you need to include header.php and footer.php at the end of each page. Also, if you're going to use SQL database, u need to call global $prefix and $dbi ($db instead of $dbi if nuke 6.5) at the start of each page / function that uses it.
Artificialintel |
|
|
   |
 |
|
|