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, 357 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - The 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
SideX
Nuke Soldier
Nuke Soldier


Joined: May 17, 2006
Posts: 23


PostPosted: Sat Jul 22, 2006 9:03 pm Reply with quoteBack to top

Ok, say i want to ditch the whole block system in phpnuke and replace it with 2 static files rt_box.php and lt_box.php those files would be the files that would fill up the left and right sides of phpnuke, replacing the phpnuke blocks....i managed to do this in the theme.php, but i like to make things more complicated so i want to do this in mainfile.php

id assume i have to edit the functions render_blocks() and blocks() but other then that im clueless any ideas? Laughing
Find all posts by SideXView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Sun Jul 23, 2006 6:36 am Reply with quoteBack to top

OK.... I am sure many will disagree, but I just got to say something....

The largest content of support issues, besides the unsecure original Nuke code, is when people try to make modifications to the source code to make Nuke something different than it was designed for. Sure, you can go change functions in mainfile.php, but then you will be on some support site somewhere asking what to do next, or that you have this new problem, or you cannot modify your newest theme you purchased, etc.

The reality is the nuke home index page is about the only page that contains the right blocks. Extremely few other modules want to display their content inside both left and right blocks. Displaying right blocks also slow down page generation times.

If you are looking to only display content in one long block, then redesign the already created block and leave the other code alone. If you need that block to be wider, then specify it as such in your theme. Heck, if you only wanted to show left blocks and module content, you do that by a slight theme modification. You could even take that a step further and have a nuke site with no blocks showing at all. And this can be done without modifying anything in the mainfile.php

....ok. Off the soapbox now.

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.033 Seconds - 115 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::