Joined: Oct 12, 2006 Posts: 180 Location: Jacksonville, Florida
Posted:
Tue Nov 11, 2008 10:08 am
Howdy good people. I just discovered thememonster.com and I am curious what experiences folks have had with their phpNuke themes. Is there any difficulty integrating with RavenNukes(tm) version? My thanks for your responses.
Joined: Aug 30, 2005 Posts: 3136 Location: near Albany NY
Posted:
Tue Nov 11, 2008 2:17 pm
Ravennukes themes are not THAT different from PHPnuke themes. It all depends on how they are written, just give it a try. One thing I would do first with any new theme is run a w3c validation on the output.
Only registered users can see links on this board! Get registered or login to the forums!
If they have a themes demo page, do a view source on the result page, copy the source to the validator and run it. If there's a lot of errors I'd run from the theme like it was the plague.
Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
Posted:
Thu Jan 15, 2009 1:26 am
I think you are also receiving an error with the SQL query which is likely to be related to the $dbi issue that has been discussed here in the forums. I believe there is now a sticky addressing this issue.
Evanders99, in the file theme.php, I tried changing the one instance of 'banners.php' as you described, but this did not work. Additionally, the one instance is actually coded as 'include("banners.php");' so I was not sure if I should make that...
include("echo ads(0);");
or
include echo ads(0);
I have tried both of the examples above, but still receive errors.
I have included the full theme.php code below and would much appreciate any further help with this.
Thanks in advance.
Code:
<?php
/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS! */
/* */
/* When you start coding your theme, if you want to */
/* distribute it, please double check it to fit the HTML */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org */
/* If you don't know where to start with your theme, just */
/* start modifying this theme, it's validate and is cool ;) */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
Now, while this worked, there is a suggestion it is not best to do this. Moreover instead of uncommenting this old code, it is suggested we should instead 'upgrade the old code'. Please can someone tell me how I would do this, moreover if this is really necessary?
Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
Posted:
Thu Jan 15, 2009 6:42 am
With regards you questions, is it necessary? We would advise that in future releases the code required to run the old database layer may be removed and therefore you may as well update the code now to avoid any headaches in the future.
Now, here is what I have done so far, before you posted your last reply.
Working logically, I said to myself that all I am doing here is adding a new theme to the Raven Nuke 2.3 package. I like to think of this new theme as a new 'skin', so in other words it is only the facade and changes to this do not actually affect any running of the site structure, database or fundamental php code/'engine'.
So for this reason, logic suggested/s to me that if the supplied themes already work with the Raven Nuke 2.3 package, then the problem I have been having, is SOLELY with code within the new theme, (as we know).
So, before you sent your last reply confirming the 'sicky URL', what I simply did, was to check the code in all files in the new themes directory, searching for the string $dbi and replaced all instances of this with $db
There was only 1 instance of this and it was located in the themes.php file.
I then opened the file mainfile.php file and made sure the following lines of code were commented out again, (as they originally were):
Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
Posted:
Fri Jan 16, 2009 1:31 am
OK all sounds good. I would recommmend turning on error reporting and database logging just to make sure everything is working fine, but fingers crossed that has fixed it.
The reason I was able to be as detailed at the start of this thread, with the errors being received, is simply because when I selected the theme and it did not work, (just giving a blank page), I immediately switched on the error reporting option in the config.php file.
Thanks for all your help with this thread and assisting to resolve the matter.
Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
Posted:
Fri Jan 16, 2009 6:38 am
Error reporting in the config.php file may not show all SQL errors. You can also turn on database error logging in the rnconfig.php file. Remember to make the dblog file in the rnlogs directory writeable.
...but having said this I am sure everything is probably working well, because otherwise you would be seeing some oddities.
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