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?
spottedhog Captain
Joined: Apr 30, 2004
Posts: 562
Posted:
Sun Jul 23, 2006 6:36 am
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
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