PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
kitomer
New Member
New Member


Joined: Jun 20, 2007
Posts: 5

PostPosted: Wed Jun 20, 2007 8:27 pm Reply with quote Back to top

hi all im learning this rn from scratch so bare with me..

ive installed the latest version 2.10.01 on my site
Only registered users can see links on this board!
Get registered or login to the forums!
but if i upload a new theme the right blocks dont show up. ive looked in the theme.php files to see if that was the problem but it had the right wording but its like the stuff gets pushed off screen but i dont have a scroll bar to see it ..

ive tried around 10 dif. themes and its a no go for the right side the only themes that work right are the stock ones and that just wont do.
also my back up db doesnt do anything i click it and it just loads a ie connection problem page.
thanks for the help.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Jun 20, 2007 9:03 pm Reply with quote Back to top

Some of the older themes out there need to be recoded to enable right blocks.

Typically, the problem is in the themefooter() function inside the theme.php file.

The code needs to look like this:

Code:

   if (defined('INDEX_FILE'))
   {
      // some stuff goes here usually...(not shown)

      blocks('right');
   }


The crucial thing is that "if (defined('INDEX_FILE'))". If instead it says something like "if (index == xxx)" or something like that change it to "if (defined('INDEX_FILE'))".
View user's profile Send private message
kitomer
New Member
New Member


Joined: Jun 20, 2007
Posts: 5

PostPosted: Wed Jun 20, 2007 9:27 pm Reply with quote Back to top

thanks for the help but what if the "if (defined('INDEX_FILE'))". is there but it still dont work another option?
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Wed Jun 20, 2007 9:59 pm Reply with quote Back to top

What theme are you trying to use?
View user's profile Send private message
kitomer
New Member
New Member


Joined: Jun 20, 2007
Posts: 5

PostPosted: Thu Jun 21, 2007 2:19 am Reply with quote Back to top

s_graw and maybe reborn , ive looked in there theme.php but no luck on finding the "if (index == xxx)" or "if (defined('INDEX_FILE'))". not sure how i might go about fixing them heres the link to s_graw dl
Only registered users can see links on this board!
Get registered or login to the forums!


heres the link to reborn dl
Only registered users can see links on this board!
Get registered or login to the forums!


thanks for the help
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Thu Jun 21, 2007 3:50 am Reply with quote Back to top

You need to use a good text editor and search for the suggested code.

From S-Graw theme.php: look down the file within the
Quote:
/************************************************************/
/* Function themefooter() */
/************************************************************/


I found this:

Code:
   if ($index == 1) {
   $tmpl_file = "themes/S-GRaw/left_center.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);


Same thing for Reborn theme.php

I found this:
Code:

   if ($index == 1) {
      echo "</td>"
      ."<td width=\"5\" valign=\"top\"><img src=\"themes/Reborn/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>"
      ."<td width=\181\" valign=\"top\">";
      blocks(right);
   }


Just change
Code:
if ($index == 1) {
to
Code:
if (defined('INDEX_FILE')) {


upload the files and it will work. I have test both these themes with the above code changes.
View user's profile Send private message
montego
Site Admin


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

PostPosted: Thu Jun 21, 2007 6:27 am Reply with quote Back to top

kitomer, just a quick "history note". What you have experienced in an issue where the themes are quite old and not up to the latest Chatserv PHP-Nuke patch levels. It was either 3.0 or 3.1 that changed over many IF statements to checking for constants rather than inspecting variables as this was a much more secure option.
View user's profile Send private message Visit poster's website
kitomer
New Member
New Member


Joined: Jun 20, 2007
Posts: 5

PostPosted: Thu Jun 21, 2007 7:07 am Reply with quote Back to top

thanks guys for the help for some reason i didnt see what i needed to see lol
thanks again... also is there maybe a good free site to dl themes from that are compliant, if not i guess i could just keep changing the footer info


thanks again...
View user's profile Send private message
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Thu Jun 21, 2007 1:55 pm Reply with quote Back to top

It is doubtful that you will find any themes outside of the RN2.10 distribution that are truly "compliant" if by that you mean html 4.01 compliant. We didn't even get a chance to make all the themes in the distribution compliant before release. See this post for status as of RN2.10 release:

Only registered users can see links on this board!
Get registered or login to the forums!


Generally, the process by which themes are developed in the Nuke world is a total mess. At least that's the way it seems to me. But then again to me having an attribute value properly enclosed in quotes or an input or image tag properly closed is more important than having another wacky color scheme or bizarre images in the background. Choose your own poison.
View user's profile Send private message Visit poster's website
kitomer
New Member
New Member


Joined: Jun 20, 2007
Posts: 5

PostPosted: Fri Jun 22, 2007 7:51 am Reply with quote Back to top

i have found a site that he states "I support Raven Nuke 7.6 (tm) with themes. For the most up-to-date versions come here."

heres the link
Only registered users can see links on this board!
Get registered or login to the forums!


just thought i would let you all know this.. sorry if this needs to be placed in a new post tell me if theres some place to put it thanks again for all the help
View user's profile Send private message
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-2011 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