PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Fri Nov 25, 2005 1:48 pm Reply with quote Back to top

I have everything setup except i notice that no matter what theme i use, i have no right hand blocks. If i use the "traditional" theme, the blocks show on thr right and not left
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
ByTeDeViL
New Member
New Member


Joined: Nov 25, 2005
Posts: 2

PostPosted: Fri Nov 25, 2005 3:22 pm Reply with quote Back to top

Hi, i have the same problem, no right blocks work.
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Fri Nov 25, 2005 3:33 pm Reply with quote Back to top

Guys...are you using the themes that comes with the nuke distribution ?
The not showing right blocks has been discussed a lot of times by now.

This is usually the result of your theme not using the latest security feature(s)in the latest patches.

In your theme.php find:

if ($index == 1) {

and change to:

if (defined('INDEX_FILE')) {
View user's profile Send private message
ByTeDeViL
New Member
New Member


Joined: Nov 25, 2005
Posts: 2

PostPosted: Fri Nov 25, 2005 4:36 pm Reply with quote Back to top

Thanks, my bad Embarassed
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Fri Nov 25, 2005 4:38 pm Reply with quote Back to top

Smile
View user's profile Send private message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Fri Nov 25, 2005 5:05 pm Reply with quote Back to top

works fine now. i am using the Cobalt theme and i have edited the theme.php and all is fine now. Thanks everyone

Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
arames
New Member
New Member


Joined: Apr 30, 2006
Posts: 13

PostPosted: Tue May 02, 2006 10:31 am Reply with quote Back to top

I have UNFORTUNATELY Nuke 7.8 Shocked , and installed a Theme.

But the right block dont show.

Here is the footer of theme.php

Quote:

function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright;
if (defined('INDEX_FILE')) {
$tmpl_file = "themes/SMN_MAMBO/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}



Could the error be here???

Thank you in advance for your support Embarassed
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5826

PostPosted: Tue May 02, 2006 11:50 am Reply with quote Back to top

Yes it could, but that depends on whether you have the latest security 'patches' installed.
You say you are using nuke 7.8 but have posted in the Raven Nuke 7.6 forum - if you could clarify which version of nuke you are using that would help.
View user's profile Send private message Send e-mail Visit poster's website
arames
New Member
New Member


Joined: Apr 30, 2006
Posts: 13

PostPosted: Tue May 02, 2006 4:35 pm Reply with quote Back to top

Hello Guardian,

thank you for your reply.

YES I have installed the latest security patch from phpnuke.org, and as said I am running a Nuke 7.8

I posted in this forum since when i was searcing for an answer for the right block, i found this the closest post...

Thank you again for your help
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5826

PostPosted: Tue May 02, 2006 5:20 pm Reply with quote Back to top

Now I am confused as phpnuke.prg has never released any security patches.

So you are using a theme called SMN_MAMBO from what I see and it looks like it is made for the Chatserv Security Patches. Although this is an assumption of mine,
Have you tried changing
Code:
if (defined('INDEX_FILE')) {

to
Code:
if ($index == 1) {


This is the opposite advice given by hitwalker for the simple reason that I am not sure you have the latest 'patches'
You can check yourself by looking at the theme.php for a theme that works.
Also remember that not all themes even use right blocks!
View user's profile Send private message Send e-mail Visit poster's website
arames
New Member
New Member


Joined: Apr 30, 2006
Posts: 13

PostPosted: Tue May 02, 2006 6:10 pm Reply with quote Back to top

Thank you!

Chanching this bit worked!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5826

PostPosted: Tue May 02, 2006 6:14 pm Reply with quote Back to top

Thats great news!!
View user's profile Send private message Send e-mail Visit poster's website
rovshan
New Member
New Member


Joined: Nov 26, 2005
Posts: 8

PostPosted: Tue May 23, 2006 9:51 am Reply with quote Back to top

Just insert in all index.php pages of all modules this line

define('INDEX_FILE', true);

for activate right blocks....
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 8625
Location: Arizona

PostPosted: Wed May 24, 2006 6:06 am Reply with quote Back to top

Just a note for all other readers, that what the previous poster posted will only work with nuke patches 3.1 or greater.

Regards, montego
View user's profile Send private message Visit poster's website
ccac
Hangin' Around


Joined: May 23, 2006
Posts: 40

PostPosted: Tue Aug 22, 2006 8:57 pm Reply with quote Back to top

I have the correct statements in my theme -
Code:

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
    if (defined('INDEX_FILE')) {
   $tmpl_file = "themes/fisubsilversh/center_right.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;                                         
    blocks("right");
    }   


and have the define('INDEX_FILE', true); stated in my TOPICS index, yet I still have no right blocks -

What am i doing wrong?

I have searched the forums for hours... and still have nothing.

please help.


Thanks!
View user's profile Send private message
ccac
Hangin' Around


Joined: May 23, 2006
Posts: 40

PostPosted: Tue Aug 22, 2006 9:27 pm Reply with quote Back to top

Ahh I have to update - The Right block IS there.. it is just UNDER the topic page.. and to the left.. Sad

Any ideas why?

I am using the newest raven_nuke with the patch.

Thanks
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5826

PostPosted: Wed Aug 23, 2006 2:29 am Reply with quote Back to top

If you are using Raven Nuke then you must be using a custom theme not supplied with Raven Nuke.
Check your theme.php file again for instances of
Code:
$index="1"
and replace it with
Code:
define('INDEX',True);


If you are using any none standard Raven Nuke modules these might be old file and you fill have to search the modules index.php file for the same thing.
View user's profile Send private message Send e-mail Visit poster's website
ccac
Hangin' Around


Joined: May 23, 2006
Posts: 40

PostPosted: Wed Aug 23, 2006 9:11 pm Reply with quote Back to top

Thank You for your comments. I have done all of that, and the right block does work in other modules. However in the Topics module, it shows BELOW the topics module. It is all ravins work...

Please throw any ideas Wink

Thanks!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5826

PostPosted: Thu Aug 24, 2006 3:12 am Reply with quote Back to top

If you are using the latest Raven Nuke then you shouldn't be having this problem unless you are using a different Topics module OR you have edited the themes theme.php, mainfile.php or the Topic module index.php for some reason and made a typo.

Have you made any changes to the default installation at all?
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2010 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum