DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> General Discussion >> PHPNuke question
Pages:  
Showing posts 1 - 10 of 10, (reverse)
AuthorThread
05/18/2004 11:37:58 PM · #1
Can someone tell me what file and what code to change to activate the right side blocks on my website? Maybe show a clip of the code line I am not a big PHP expert :)

I read something about the theme.php file but I can not find it again.


05/19/2004 12:18:28 AM · #2
You activate blocks in the blocks section of nuke. You can activate, deactivate, edit, delete, set left, right, or middle, and also which order they show.
05/19/2004 12:43:48 AM · #3
Sorry :) I should have given more detail.

It appears that the right blocks have been disabled in the theme.
I activate them for right side and nothing shows.

I read in the docs that they can be disabled I think it was in the theme.php file or etc but I do not know what to look for. The example I saw was not detailed enough for me to pick the code out.

Originally posted by moodville:

You activate blocks in the blocks section of nuke. You can activate, deactivate, edit, delete, set left, right, or middle, and also which order they show.

05/19/2004 11:51:33 AM · #4
Unless you've changed theme.php then likely it's not a theme problem unless the person who created the theme never included the function to call the block on the right.

You need to add:

blocks(right);

to the following function at the end but before the last }

function themefooter()

Obviously it doesnt need to be in bold.
05/19/2004 03:12:14 PM · #5
Yes I think the girl I paid to create the theme left the right blocks disabled for some reason.

I will check and see what I can find.

I'm hot and tired I just got back from having to review my 128 proofs :)
Now production can begin!

Thanks so much Moodville if I need any other info I will post it here.

Originally posted by moodville:

Unless you've changed theme.php then likely it's not a theme problem unless the person who created the theme never included the function to call the block on the right.

You need to add:

blocks(right);

to the following function at the end but before the last }

function themefooter()

Obviously it doesnt need to be in bold.

05/19/2004 10:08:14 PM · #6
I have checked all the codes like you say and they all seem to be set right?

function themefooter() {
global $index;
if ($index == 1) {
echo "
\"\"\n";
blocks(right);

I ran a check on the nuke_blocks and all nuke tables and they check ok.

Not exactly sure why the right sided blocks will not show up?

Is it possible to set the width of a page so narrow that there is no room for the block too show? I'm not sure how this works.

05/20/2004 10:58:36 AM · #7
-Bump-
05/20/2004 11:34:06 AM · #8
Normally if it's too wide then it just spills over and you have a bottom scroll bar. It could be that the person who designed it set it up as a single left block design. You would have to talk to her about it or else change the width of the entire layout, which is basically redesigning the design.
05/20/2004 12:00:30 PM · #9
Slightly off-topic, but you should really consider switching from PHP Nuke to a more secure fork (adaptation of the original PHP Nuke software). PHP Nuke is a security nightmare. Even if you patch your server regularly, you're still bound to get hacked, as my PHP Nuke installation did a few days ago. Postnuke and myPHPNuke are both security-enhanced forks of PHP Nuke worth considering. Unfortunately, your themes will require modification.
05/21/2004 01:59:49 PM · #10
Ok good news, I found out why the right side blocks were not showing!

My son set up a second PHPNuke directory for me to tinker with on the server.

The right side blocks worked fine on the second setup so I started comparing the two. What I found was the following:

1. I had "content" module active and show in home.
2. The mirror setup had the "news" module active and show in home.
3. I changed my settings to match and the right sided blocks showed up at the bottom left side.
4. I disabled the "message" block on the main site and the ride side blocks showed up fine.

I guess I need to make the messages a table and limit the width of the info. To allow for the right side blocks to show :)

Are we having fun yet!

ROFLMAO


Pages:  
Current Server Time: 11/12/2025 10:34:17 AM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 11/12/2025 10:34:17 AM EST.