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 -> PHP-Nuke Patched Series By Chatserv
Author Message
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Sat Jun 17, 2006 5:24 pm Reply with quote

I have tried to get my theme to show the right side blocks, I edited the file as instructed.

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

However the right hand blocks will not show up. Also this bit of instruction confuses me:

Important notes relating to Nuke Patched 3.1:

1- If you want right side blocks to appear in third party add-ons change:
In Modules:
index = 1;
to:
define('INDEX_FILE', true);

Where at in the Modules folder is this supposed to be made, there are no individual files there?

Same for these instructions:
2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {

if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {

if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {

if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {


Which file should these be made to?

Oh, i forgot, nuke 7.6 patched 3.1 by chatserv.

_________________
Kevin Kappes 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Jun 17, 2006 6:14 pm Reply with quote

Quote:
1- If you want right side blocks to appear in third party add-ons change:
In Modules:
index = 1;
to:
define('INDEX_FILE', true);

That will be in /modules/MODULE_NAME/index.php
Where 'MODULE_NAME' is the name of the module, for eample, News, Feedback etc - though this file code change would only be needed to third party modules, that is to say modules that did not come with the phpnuke distribution.

The first thing to check is if right blocks appear when you use any of the modules - do none of the modules have right blocks?
If that is the case, the problem is with the theme itself.
If you can post a link to the download for the them I may be able to take a look over the next day or so.
 
View user's profile Send private message Send e-mail
kevinkap







PostPosted: Sat Jun 17, 2006 6:27 pm Reply with quote

The theme is the Chronicles theme pack from nukemods.com. Yes the them used to work fine until I updated the site to patched 3.1. I still have right hand blocks with the "shout_box" module and that is it for some reason.
 
Guardian2003







PostPosted: Sat Jun 17, 2006 7:25 pm Reply with quote

Hmm, I just noticed your code above was for only one function.
In the themes/Chronicles/theme.php can you search for 'index = 1' to see if there are any more instances of that?
I am not at my normal PC so am not able to download the files and check them myself.
 
kevinkap







PostPosted: Sat Jun 17, 2006 9:28 pm Reply with quote

there are no more instances of it

I tried to post the files code but was not allowed to.
 
Guardian2003







PostPosted: Sat Jun 17, 2006 11:21 pm Reply with quote

I have just downloaded that theme and made the code change you have
Code:
function themefooter() {

    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
 //   if ($index == 1) {
   if (defined('INDEX_FILE')) {
 $tmpl_file = "themes/Chronicles/center_right.html";

This works fine for me so I am unable to reproduce your problem.
 
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sun Jun 18, 2006 7:05 am Reply with quote

please simply do this.

use the code tags to post your theme.php file that you think that you edited correctly.

There shouldnt really be anything in there that would not post... or post a link to download the file, meaning, zip it up and put it somewhere on your servr and give us the link to download it. I prefer if you can post the code you have here though. Make sure it is exactly the one you have up now. There must be an issue with it. This is the best way to solve it. It would also help to have a link to your site with the broken theme as your default so that we can see it. Thanks

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
kevinkap







PostPosted: Sun Jun 18, 2006 5:53 pm Reply with quote

I have tried using the "code" keys as well as splitting up the various tags as mentioned in the blocked page but to no avail. You can download it here

Maybe you can get it to post.
A link to the site is here
 
Guardian2003







PostPosted: Sun Jun 18, 2006 11:30 pm Reply with quote

Your zipped file works fine for me.
According to the changes you have made to the theme.php you are using Nuke Platinum?
If that is the case, you need some one to test this on a nuke platinum site as something is obviously not compatible.
 
kevinkap







PostPosted: Mon Jun 19, 2006 12:47 am Reply with quote

no, it is not platinum, it is 7.6 pathced 3.1 by chatserv. That change came directly out of theinstructions by him.

/************************************************************************/
/* PHP-Nuke Patched -- 2005 chatserv */
/* Nuke Patched DEV Team -- Evaders99 & Quake */
/* [ Only registered users can see links on this board! Get registered or login! ] -- [ Only registered users can see links on this board! Get registered or login! ] */
/************************************************************************/

Important notes relating to Nuke Patched 3.1:

1- If you want right side blocks to appear in third party add-ons change:
In Modules:
index = 1;
to:
define('INDEX_FILE', true);
In Themes:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {

2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {

if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {

if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {

if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {
 
Guardian2003







PostPosted: Mon Jun 19, 2006 5:53 am Reply with quote

OK I just wondered because you have this in the file
Code:
 echo "<br><font class=\"small\">Chronicles theme converted to PHPNuke Platinum by <a href=\"http://www.seanpirie.co.uk\">Sean Pirie</a><br>:: Chronicles phpbb2 style by <a href=\"http://www.jakob-persson.com/\">Jakob Persson</a> :: PHP-Nuke theme by <a href=\"http://www.nukemods.com\">www.nukemods.com</a> ::</font></td></table></center>";

And this was not in the file i downloaded.
 
kevinkap







PostPosted: Mon Jun 19, 2006 12:42 pm Reply with quote

really, i will check it out,
 
kevinkap







PostPosted: Mon Jun 19, 2006 3:01 pm Reply with quote

That is odd, that must have been an old them I was using. However, I downloaded the most recent chronicles theme pack and when Iupload it all I get is a white screen. I have tried the other themes and they seem to work fine, showing right blocks even with my gallery mod.
 
Guardian2003







PostPosted: Mon Jun 19, 2006 8:05 pm Reply with quote

Unfortunately, I do not see anything in that theme which would give you a white screen unless some file got corrupted during the ftp transfer or the center forum block is in conflict with something.

Please PM me an working ftp log in
 
kevinkap







PostPosted: Mon Jun 19, 2006 10:43 pm Reply with quote

Well, after uploading the theme several more times, it finally works, I guess it was getting corrupted as you said during [ Only registered users can see links on this board! Get registered or login! ] I really appreciate your efforts in helping me!!
 
Guardian2003







PostPosted: Mon Jun 19, 2006 11:18 pm Reply with quote

Not a problem, glad you are now working.
 
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 -> PHP-Nuke Patched Series By Chatserv

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 ©