Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Do not see right blcks not theme.php code
Do not see right blcks not theme.php code

5 Replies / 329 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


blastwood
Reputation: 6.1 Add RepSubtract Rep
Local time: 11:48 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Sep 13, 2010
Last Visit: 02 Mar 2012
Posts: 11
Points: 444 

Post Do not see right blcks not theme.php code Posted: Mon Oct 03, 2011 3:37 pm

Hello
I created a theme for my site and not see right blocks
From what can be? (I replaced $ index == with! defined (INDEX_FILE) and still nothing
My theme is relase by me whit a joomla theme
I think my theme is not validated W3

Can you help a little?

Tanks
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:48 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Re: Do not see right blcks not theme.php code Posted: Mon Oct 03, 2011 8:13 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Yeah lets see the theme.php code
 

 
View user's profileSend private messageSend e-mail Reply with quote

blastwood
Reputation: 6.1 Add RepSubtract Rep
Local time: 11:48 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Sep 13, 2010
Last Visit: 02 Mar 2012
Posts: 11
Points: 444 

Post Re: Do not see right blcks not theme.php code Posted: Tue Oct 04, 2011 9:39 am

Code:
/************************************************************/
/* Theme Colors Definition                                  */
/************************************************************/

$bgcolor1 = "#000000";
$bgcolor2 = "#000000";
$bgcolor3 = "#000000";
$bgcolor4 = "#000000";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/

function OpenTable() {
    ?><style type="text/css">
<!--
body {
   background-color: #FFFFFF;
}
body,td,th {
   color: #000000;
}
-->
</style>
    <br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#333333">
  <tr>
   <td> </td>
   <td width="100%" bgcolor="#F4F4F4"><img name="tm" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"></td>
   <td> </td>
  </tr>
  <tr>
    <td background="themes/Mp3BestV1/images/left.gif"><img name="left" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
     <td valign="top" bgcolor="#FFFFFF">
<?
}
function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}

function CloseTable() {
    ?> </td>
    <td background="themes/Mp3BestV1/images/right.gif"><img name="right" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr>
   <td> </td>
   
    <td bordercolor="#666666" background="themes/Mp3BestV1/images/btm.gif"><img name="btm" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
   <td> </td>
</tr></table>
<?
}

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

/************************************************************/
/* FormatStory                                              */
/************************************************************/

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
    } else {
        if($informant != "") {
            $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $boxstuff = "$anonymous ";
        }
        $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
        echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/
    function themeheader() {
    global $user, $cookie, $prefix, $name, $dbi, $db;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    $public_msg = public_message();
    echo "$public_msg";
   
$sql = "SELECT link1, link2, link3, link4, link5, link1url, link2url, link3url, link4url, link5url FROM ".$prefix."_themecp";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$link1 = $row[link1];
$link2 = $row[link2];
$link3 = $row[link3];
$link4 = $row[link4];
$link5 = $row[link5];
$link1url = $row[link1url];
$link2url = $row[link2url];
$link3url = $row[link3url];
$link4url = $row[link4url];
$link5url = $row[link5url];

   
   
echo "<body background=\"themes/Mp3BestV1/images/bg.gif\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
//copyright info. Out of respect, please do not remove thank you.   
echo "<!----- Copyright © 2003-2004 Mtechnik MDesign (http://www.mtechnik.net - webmaster@mtechnik.net) ----->\n";
echo "<!----- $sitename is using WebHost-V1, a free theme wth GPL/GNU license, for more information regarding $sitename please contact $email. ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
include("themes/Mp3BestV1/header.php");
echo "<table width=\"976\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/lt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
."<TD WIDTH=\"160\" HEIGHT=\"100%\" valign=top bgcolor=#ffffff>\n";
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) {
} else {
blocks(left);
}
echo "</td>\n"
."<TD WIDTH=\"100%\" valign=top bgcolor=#ffffff>\n";
}


/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
    global $index, $banners;

    if (defined('INDEX_FILE')) {
   echo "</td>\n"
       ."<td width=\"160\" valign=\"top\" bgcolor=#ffffff>\n";
   blocks(right);
    }
    echo "</td>\n"
        ."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/rt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
       ."</tr>\n"
       ."</table>\n";
     include("themes/Mp3BestV1/footer.php");
   echo "<table width=\"976\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
      ."<tr valign=\"top\">\n"
        ."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/lt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
       ."<TD WIDTH=\"100%\" valign=top align=center bgcolor=#000000><a href=\"mtechnik.net\" target=_blank><img src=\"themes/Mp3BestV2/images/md.gif\" border=0></a><br>\n";
       footmsg();
echo "</td>\n"
        ."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/rt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
       ."</tr>\n"
       ."</table>\n";
   
}

/************************************************************/
/* Function themeindex()                                    */
/* This function format the stories on the Homepage         */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    //Code Changed - just show posted by
    $posted1 = get_author($aid);
   $posted = " $time $timezone";
    //End Code Change
   
    $tmpl_file = "themes/Mp3BestV1/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/Mp3BestV1/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/Mp3BestV1/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>



Theme view http://77.36.60.6
and original theme is http://demo.gavick.com/joomla15/aug2009/ for joomla not for phpnuke
 

 
View user's profileSend private message Reply with quote


Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:48 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Re: Do not see right blcks not theme.php code Posted: Tue Oct 04, 2011 9:57 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Just try replacing the

Code:
if (defined('INDEX_FILE')) {


with

Code:
if (defined('INDEX_FILE') || ($index == 1)) {


Lets see what that does first

Also if you are starting a new site I see you are using Standard PHPNuke, this was last released in August 2007 !!!!! you should install and use Ravens Nuke >> http://ravenphpscripts.com/ which is constantly updated and maintained, unlike Standard PHPNuke

Let me know if that works Angel
 

 
View user's profileSend private messageSend e-mail Reply with quote

blastwood
Reputation: 6.1 Add RepSubtract Rep
Local time: 11:48 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Sep 13, 2010
Last Visit: 02 Mar 2012
Posts: 11
Points: 444 

Post Re: Do not see right blcks not theme.php code Posted: Tue Oct 04, 2011 11:12 am

amazing work
Thank you very very much


RavenPHPScripts can not use because it allows me change. I do all the security changes (admin file name database et al.) thanks anyway
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:48 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Re: Do not see right blcks not theme.php code Posted: Tue Oct 04, 2011 11:33 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

If you have a new site it is worth changing to Ravens Nuke, Standard PHPNuke has no security, and hundreds of bugs

I believe Ravens Nuke does come with upgrade instructions from Standard Nuke

Glad you got it working Nerd
 

 
View user's profileSend private messageSend e-mail Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Questions


 
5 Replies / 329 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum