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 -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
ArgonX
New Member
New Member


Joined: Dec 10, 2005
Posts: 23

PostPosted: Tue Aug 08, 2006 8:55 pm Reply with quote

Hello, i installed raven nuke and if i use original themes that came with raven nuke everything is fine but with my custom phpnuke theme there is big issues..

one is that on my cystom theme left and right blocks are on right site and now it doesnt show it all..


other thing is when i use this custom theme and klik on modules it says:

Sorry, that module file was not found.


url for :

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


can someone help please ?
 
View user's profile Send private message
ArgonX
PostPosted: Tue Aug 08, 2006 9:06 pm Reply with quote

theme.php

--------------------------------------------------------------------------------------

<?php

global $all_vars, $index;
global $language, $currentlang, $module_name, $anonymous, $admin, $sid, $slogan, $sitename;

$autotheme_theme = true;
$thename = basename(dirname(__FILE__));

//Include theme specific files for config, command definition, parsing and functions
include(dirname(__FILE__)."/theme.cfg");

//Load theme language file
if(file_exists("themes/$thename/language/lang-$currentlang.php")) {
include("themes/$thename/language/lang-$currentlang.php");
}
elseif(file_exists("themes/$thename/language/lang-$language.php")) {
include("themes/$thename/language/lang-$language.php");
}
include(dirname(__FILE__)."/includes/commands.inc.php");
include(dirname(__FILE__)."/includes/autotheme.inc.php");

//Tables that modules and others call so as to keep consistent with the theme
function OpenTable()
{
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable()
{
echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2()
{
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2()
{
echo "</td></tr></table></td></tr></table>\n";
}

//This is the theme header - the layout that is rendered before the modules
function themeheader()
{
global $all_vars;
extract($all_vars);
display_parts($output['header'], $commands['header']);
}

//This is the theme footer - the layout that is rendered after the modules
function themefooter()
{
global $all_vars;
extract($all_vars);
display_parts($output['footer'], $commands['footer']);
}

//This displays the article summary on the main page
function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $bodytext, $notes, $morelink, $topicname, $topicimage, $topictext)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
//$all_vars = get_defined_vars();

$summary_count ++;

if($alternate_summary) {
if($summary_count % 2 == 0) {
$sparts = $output['summary1'];
$scommands = $commands['summary1'];
} else {
$sparts = $output['summary2'];
$scommands = $commands['summary2'];
}
} else {
$sparts = $output['summary'];
$scommands = $commands['summary'];
}

$all_vars = get_defined_vars();
display_parts($sparts, $scommands);
//display_parts($output['summary'], $commands['summary']);
}

//This displays the full article when read more... is clicked in the article summary
function themearticle ($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);
$all_vars = get_defined_vars();
display_parts($output['article'], $commands['article']);
}

//These are the side blocks
function themesidebox($title, $content)
{
global $all_vars;
extract($all_vars, EXTR_SKIP);

$bparts = $output['block'];
$bcommands = $commands['block'];

//Define custom block templates
$title = trim(strip_tags($title, ""));

if($custom_block) {
foreach($custom_block as $name => $file) {
if($name == $title && file_exists($themepath.$file)) {
$HTML = atTemplateLoad($themepath.$file);
list ($bparts, $bcommands) = find_commands($HTML, $command);
}
}
}
//Check for block title image
$imgname = strtolower(preg_replace("^\W|_^", "", $title));

if (file_exists("$imgpath"."$imgname.gif")) {
$title = "<img src=\"$imgpath"."$imgname.gif\" alt=\"$title\">";
}

//Echo parts and execute commands
if($bparts) {
$all_vars = get_defined_vars();
display_parts($bparts, $bcommands);
}
}

?>
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Wed Aug 09, 2006 8:06 am Reply with quote

It sounds like the problem is more related to the Nuke patch, which may require some changes to your theme.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
ArgonX
PostPosted: Wed Aug 09, 2006 9:02 am Reply with quote

but what to change heheh
 
kguske
PostPosted: Wed Aug 09, 2006 10:07 am Reply with quote

You'd have to compare what you have to a standard module in RN. Probably around the first 10 or 20 lines, you'll see some security checks. If you weren't using a patched version before, you'll probably need to change the modules to use the same technique for verify proper access that the standard modules use.
 
ArgonX
PostPosted: Wed Aug 09, 2006 10:13 am Reply with quote

ill make donations for 3rd time already if someone can help me with this Sad
 
kguske
PostPosted: Wed Aug 09, 2006 1:25 pm Reply with quote

I just noticed that this uses autothemes. Are there changes required to support autothemes?
 
kguske
PostPosted: Wed Aug 09, 2006 3:18 pm Reply with quote

You might also wish to see this post:
Only registered users can see links on this board! Get registered or login!
 
ArgonX
PostPosted: Wed Aug 09, 2006 4:36 pm Reply with quote

pm regular phpnuke it works perfect.. then i install raven nuke cuz is secure and then i have issue Sad

i send u email kevin
 
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 -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©