You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 54 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - can I add php to the contents and/or to the custom blocks? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
tonyriot
Nuke Soldier
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34

Location: Puerto Rico

PostPosted: Mon Feb 03, 2003 12:41 pm Reply with quoteBack to top

can I add php to the contents and/or to the custom blocks?
Find all posts by tonyriotView user's profileSend private messageVisit poster's websiteAIM AddressICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 03, 2003 12:44 pm Reply with quoteBack to top

blocks are written in php by default. All you have to remember is to use
Code:
$content .= "
instead of echo

only the "Custom Blocks" that are entered as HTML in the blocks administration manually.

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
tonyriot
Nuke Soldier
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34

Location: Puerto Rico

PostPosted: Mon Feb 03, 2003 1:18 pm Reply with quoteBack to top

so I can add my own shopping cart on a Content page?
Find all posts by tonyriotView user's profileSend private messageVisit poster's websiteAIM AddressICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 03, 2003 2:16 pm Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
tonyriot
Nuke Soldier
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34

Location: Puerto Rico

PostPosted: Mon Feb 03, 2003 2:53 pm Reply with quoteBack to top

thanks
I'll check that cart out

but just for learning purposes, is there any guide to create a module?
Find all posts by tonyriotView user's profileSend private messageVisit poster's websiteAIM AddressICQ Number
tonyriot
Nuke Soldier
Nuke Soldier


Joined: Feb 01, 2003
Posts: 34

Location: Puerto Rico

PostPosted: Mon Feb 03, 2003 3:43 pm Reply with quoteBack to top

oh wait
you have to pay for the NSN Cart :-\
Find all posts by tonyriotView user's profileSend private messageVisit poster's websiteAIM AddressICQ Number
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 03, 2003 4:07 pm Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.571 Seconds - 343 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::