PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

there are no more instances of it

I tried to post the files code but was not allowed to.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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
View user's profile Send private message Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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 to the forums!


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 to the forums!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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 to the forums!
--
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/************************************************************************/

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')) {
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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.
View user's profile Send private message Send e-mail Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

really, i will check it out,
View user's profile Send private message
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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
View user's profile Send private message Send e-mail Visit poster's website
kevinkap
Involved
Involved


Joined: Apr 22, 2006
Posts: 352

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

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 to the forums!
I really appreciate your efforts in helping me!!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

Not a problem, glad you are now working.
View user's profile Send private message Send e-mail Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum