Author |
Message |
crabdance
Regular


Joined: Oct 20, 2006
Posts: 56
|
Posted:
Thu Nov 30, 2006 7:38 am |
|
Hello all,
I've been searching RavenNuke for a couple of days now and can't find what I need so I'm going to post the question here.
I'm looking for a classifieds module/block that would (hopefully) be able to run as the center block of my home page. Also looking for one that is free if possible.
I've searched the net for NukeC and most of the pages no longer handled the product. I WAS able to come up with NukeC 3.0 but I believe that it's supposed to be an upgrade because some of the files are missing (per the install instructions).
NukeC may be what I am looking for but won't know until I can find an older version that is complete for install.
Anyway, any suggestions would be appreciated.
thanks in advance for any help;
I'm using RavenNuke 7.6 v2.2.2 |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Thu Nov 30, 2006 9:19 am |
|
|
|
 |
crabdance

|
Posted:
Thu Nov 30, 2006 10:45 pm |
|
Thank you for the suggestion, hitwalker. I like NukeC a lot. It was "sorta" easy to install (for me) and things went pretty smooth.
I'm still getting used to it and hopefully will have things going well pretty soon.
thanks for the help! I DO appreciate it! |
|
|
|
 |
hitwalker

|
Posted:
Fri Dec 01, 2006 5:08 am |
|
ok this is weird....
as i received the reply on this,the text in the mail is different.
you asked also......
Quote: | Is there a way to make
\"http://www.mysite.com/modules.php?name=NukeC30\"
my home page? That would be great if that''s possible. |
answer, yes you can...
if you go to modules admin and then set the nukeC in HOME ,instead news (whitch is now) |
|
|
|
 |
crabdance

|
Posted:
Fri Dec 01, 2006 8:30 am |
|
hitwalker wrote: | ok this is weird....
as i received the reply on this,the text in the mail is different.
you asked also......
Quote: | Is there a way to make
\"http://www.mysite.com/modules.php?name=NukeC30\"
my home page? That would be great if that''s possible. |
answer, yes you can...
if you go to modules admin and then set the nukeC in HOME ,instead news (whitch is now) |
Hi hitwalker,
Yes, I did ask the question about the homepage but thought that it might be a "dumb" question so I edited that part of my response. I'm happy that you got the mail because now I know that I can change it to my home page.
You're a great help! Thank you very much! |
|
|
|
 |
crabdance

|
Posted:
Fri Dec 01, 2006 8:36 am |
|
Quick Reply... After I set "NukeC" in HOME, I get the following error message when going to the home page.
You can't access this file directly...
Any ideas? |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Fri Dec 01, 2006 10:59 pm |
|
That usually happens when the module index.php file has logic to check for something that doesn't exist - in this case, maybe a module definition variable from modules.php that isn't in the root index.php file. You might need to modify the NukeC module index.php to check for either the module or the index definition, so it can work with as the home module. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
crabdance

|
Posted:
Sat Dec 02, 2006 5:34 am |
|
Hi kguske,
Thank you for your reply. I'm new at phpnuke so I need further explaination about what to do with the code. I'm an x-software developer but I don't know php. Here is the line that causes the error:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
You said that I could check for either the module or the "index" definition... how do I modify the above code to check for the index definition?
Help from anyone is welcome. If I can get past this little roadblock I believe that my web site will be complete (from a design standpoint)  |
|
|
|
 |
crabdance

|
Posted:
Sat Dec 02, 2006 5:55 am |
|
Hi again,
I found that when I commeted out the "if" statement, it showed the page fine. Is there a down side to commenting out the "if" statement? It seems to be working fine but I'm just worried that there might be a "gotcha" there somewhere.
Thanks |
|
|
|
 |
kguske

|
Posted:
Sat Dec 02, 2006 8:17 am |
|
The problem with commenting out the if statement is that it disables a form of security.
If your patch version is greater than 2.9, you can change it to:
Code:if(!defined('MODULE_FILE')) { header("Location: ../../index.php"); die(); }
|
|
|
|
|
 |
crabdance

|
Posted:
Sat Dec 02, 2006 8:24 am |
|
I used your code snippet and everything is still working fine. Thanks for the information and help with the code. I believe that the problem is now solved.
thanks  |
|
|
|
 |
|