Author |
Message |
kevinkap
Involved


Joined: Apr 22, 2006
Posts: 356
|
Posted:
Sat Jun 17, 2006 5:24 pm |
|
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 |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Jun 17, 2006 6:14 pm |
|
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. |
|
|
|
 |
kevinkap

|
Posted:
Sat Jun 17, 2006 6:27 pm |
|
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

|
Posted:
Sat Jun 17, 2006 7:25 pm |
|
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

|
Posted:
Sat Jun 17, 2006 9:28 pm |
|
there are no more instances of it
I tried to post the files code but was not allowed to. |
|
|
|
 |
Guardian2003

|
Posted:
Sat Jun 17, 2006 11:21 pm |
|
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
|
Posted:
Sun Jun 18, 2006 7:05 am |
|
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
http://www.jaded-designs.com
Graphic Tees
http://www.cafepress.com/jadeddesigns
Paranormal Tees
http://www.cafepress.com/HauntedTees
Ghost Stories & More
http://www.hauntingtales.net |
|
|
 |
kevinkap

|
Posted:
Sun Jun 18, 2006 5:53 pm |
|
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 Only registered users can see links on this board! Get registered or login!
Maybe you can get it to post.
A link to the site is Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
Guardian2003

|
Posted:
Sun Jun 18, 2006 11:30 pm |
|
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

|
Posted:
Mon Jun 19, 2006 12:47 am |
|
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 */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
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

|
Posted:
Mon Jun 19, 2006 5:53 am |
|
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

|
Posted:
Mon Jun 19, 2006 12:42 pm |
|
really, i will check it out, |
|
|
|
 |
kevinkap

|
Posted:
Mon Jun 19, 2006 3:01 pm |
|
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

|
Posted:
Mon Jun 19, 2006 8:05 pm |
|
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

|
Posted:
Mon Jun 19, 2006 10:43 pm |
|
Well, after uploading the theme several more times, it finally works, I guess it was getting corrupted as you said during ftp. I really appreciate your efforts in helping me!! |
|
|
|
 |
Guardian2003

|
Posted:
Mon Jun 19, 2006 11:18 pm |
|
Not a problem, glad you are now working. |
|
|
|
 |
|