Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
kitomer
New Member
New Member



Joined: Jun 20, 2007
Posts: 5

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

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! ] 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

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'))".

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
kitomer







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

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



Joined: Jun 06, 2005
Posts: 732

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

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







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

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! ]

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

thanks for the help
 
Doulos







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

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.
 
montego
Site Admin



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

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

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
kitomer







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

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...
 
fkelly
Former Moderator in Good Standing



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

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

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:

http://www.ravenphpscripts.com/posts12883-highlight-themes+rn2+10.html

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







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

i have found a site that he states "I support Raven Nuke 7.6 ™ 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! ]

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
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©