Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
dirtwizard
New Member
New Member



Joined: Jan 10, 2006
Posts: 5
Location: Ohio

PostPosted: Mon Jan 09, 2006 11:19 pm Reply with quote

The supporters icon is not showing up in my admin panel. I activated a block for it and the Be A Supporter link and page work as well as the Supporters link and page, but the Supporter Admin link sends me to a blank page.
I followed the readme on it 3 times and all looks like it should work..

Anyone have an idea or a link so I can see if I done something wrong. Bang Head
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Jan 10, 2006 1:28 am Reply with quote

What did you downloaded/install ?
and on what version are you...
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Jan 10, 2006 6:45 am Reply with quote

hitwalker wrote:
What did you downloaded/install ?
and on what version are you...


dirtwizard, please include nuke patch level as well. thx.

_________________
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! 
View user's profile Send private message Visit poster's website
dirtwizard







PostPosted: Tue Jan 10, 2006 7:23 pm Reply with quote

I am running nuke 7.6 Patched version: 3.0.
I D/Led NSN scolling supporters 75-77 module and as per the readme file I placed : root = the root directory of the site.
Blocks in root/blocks
Image in root/images/admin
includes in root/includes
Edited the root/language/lang-english.php
Modules in root/modules/Supporters
nsnsp_installer folder in root/nsnsp_installer
and nsnsp.php in the root directory
I ran the nsnsp.php file and updated the DB and went into my admin panel and the supporters icon is not there, but the blocks show up when activated and the pages for you to submit ( http://www.dirtwizard.com/modules.php?name=Supporters&op=SPSubmit ) and show the supportes ( http://www.dirtwizard.com/modules.php?name=Supporters ) is there, just not the admin icon or page http://www.dirtwizard.com/admin.php?op=SPMain which shows blank.
Also not showing up in the Modules to activate either.
montego I hope I included the nuke patch level you asked for I am a rookie so you may have to smack me around alil bit to get the right answer..lol thx
 
montego







PostPosted: Tue Jan 10, 2006 8:33 pm Reply with quote

dirtwizard, can you post the contents of the following file: root/modules/Supporters/admin/links.php.

Thx.
 
dirtwizard







PostPosted: Tue Jan 10, 2006 9:27 pm Reply with quote

Code:
<?php


/********************************************************/
/* NSN Supporters                                       */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/

global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) {
    Header("Location: ../../".$admin_file.".php");
    die();
}
$modname = "Supporters";
get_lang($modname);
if($radminsuper==1) {
    adminmenu($admin_file.".php?op=SPMain", _SP_SUPPORTERS, "supporters.png");
}

?>
 
hitwalker







PostPosted: Wed Jan 11, 2006 2:39 am Reply with quote

well i installed it ..
it runs perfectly and also the admin part is okay.
the problem on your side is that your module doesnt show up ...
so you cannot even activate it..
 
Guardian2003
Site Admin



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

PostPosted: Wed Jan 11, 2006 5:53 am Reply with quote

I just installed this Supporters module as well on my test RN7.6-202 and I'm having the same problem.
Will try and look into it more as soon as I can but my initial impression is it may be related to the different defines used between patch level 2.9 and 3.1 as it is working on another site.
 
View user's profile Send private message Send e-mail
hitwalker







PostPosted: Wed Jan 11, 2006 5:59 am Reply with quote

well guardian...different defines or not,that shouldnt be a problem for the mod...it should show itself in the admin to be activated..
but he even doesnt see it..
 
Guardian2003







PostPosted: Wed Jan 11, 2006 6:19 am Reply with quote

No, it isnt displaying on my test site either and clicking the Admin link on the Supporters block brings up a blank page - very strange!

Hmm, it isnt showing in the nuke_modules table either so I think I'll have to work on this a bit.
 
Guardian2003







PostPosted: Wed Jan 11, 2006 6:27 am Reply with quote

Yes the reason the image doesn't appear in the admin menu is because the module list is not getting updated - I think this gets updated via admin/modules.php
 
Guardian2003







PostPosted: Wed Jan 11, 2006 6:58 am Reply with quote

dirtwizard - are you using NSN Groups or GT Next Gen at all?
If not, they you have some other mod which has altered the core nuke_modules table.

When and admin goes in to the modules menu via admin it should refresh/update the modules listed in the database. This is acheived via the file admin/modules/modules.php so it would seem to indicate the number of fields in the table and the data being inserted by the file is out of synch.
For example, if you look in that file from a virgin files set you will see this line
Code:
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1', '0', '')");

If you are using NSN Groups that line gets modified because it creates an extra filed in the table - so the line now reads
Code:
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '', '1', '0', '')");
 
montego







PostPosted: Wed Jan 11, 2006 7:10 am Reply with quote

Guardian2003, I believe you have hit the nail on the head! I wanted to rule out the easy stuff first with my request for his links.php. That looked good. I appreciate the help everyone has given! It most definitely has to be the module is not getting inserted...

dirtwizard, please use phpMyAdmin to look at your nuke_modules table and compare the number of position of each of the fields to the insert statement that Guardian has listed. You need to make sure they match. The insert is failing but you are not seeing the error message.

In the future, you can also try changing the $sql_debug variable to 1 in includes/sql_layer.php and you would probably would see the insert failure message. Just don't forget to set it back.
 
Guardian2003







PostPosted: Wed Jan 11, 2006 7:27 am Reply with quote

montegoYes, I was thinking the same thing as you, it wasn't until I installed it myself I realised why the module was not getting updated.
 
hitwalker







PostPosted: Wed Jan 11, 2006 7:50 am Reply with quote

That thing again?
lol...that was an idea cause he didnt saw his module..
Couldnt believe its this again...amazing..
 
dirtwizard







PostPosted: Wed Jan 11, 2006 9:01 pm Reply with quote

admin/modules/modules.phplooks like yours
Code:
$db->sql_query("insert into " . $prefix . "_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '', '1', '0', '')");


I ran the $sql_debug variable to 1 no errors showed
I checked my tables in phpMyAdmin and supporters is not listed just this::

INSERT INTO `nuke_modules` VALUES (1, 'AvantGo', 'AvantGo', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (2, 'Content', 'Content', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (3, 'Downloads', 'Downloads', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (4, 'Encyclopedia', 'Encyclopedia', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (5, 'FAQ', 'FAQ', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (6, 'Feedback', 'Feedback', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (7, 'Forums', 'Forums', 1, 1, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (8, 'Journal', 'Journal', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (9, 'Members_List', 'Members List', 1, 1, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (10, 'News', 'News', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (11, 'Private_Messages', 'Private Messages', 1, 1, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (12, 'Recommend_Us', 'Recommend Us', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (13, 'Reviews', 'Reviews', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (14, 'Search', 'Search', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (15, 'Statistics', 'Statistics', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (16, 'Stories_Archive', 'Stories Archive', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (17, 'Submit_News', 'Submit News', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (18, 'Surveys', 'Surveys', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (19, 'Top', 'Top 10', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (20, 'Topics', 'Topics', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (21, 'Web_Links', 'Web Links', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (22, 'Your_Account', 'Your Account', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (23, 'NukeSentinel', 'NukeSentinel', 1, 2, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (24, 'Donations', 'Donations', 1, 0, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (25, 'UserInfoAddons', 'UserInfoAddons', 1, 2, '', 1, 0, '');
INSERT INTO `nuke_modules` VALUES (26, 'Groups', 'Groups', 1, 2, '', 0, 0, '0');
 
montego







PostPosted: Wed Jan 11, 2006 9:10 pm Reply with quote

dirtwizard wrote:
looks like yours


Ok, just "looks like yours" (which is really just nuke76 w/3.1 patches and NSN Groups installed) or "is it the exact same as RavenNuke76"?

The only two things that I have seen to cause this I have already mentioned. The first, with the links.php file, causing the link to not show in the admin screen, and the second, with the module not being inserted because of a mis-match in the structure vs. data being inserted.

This all looks fine to me. I am out of ideas.
 
dirtwizard







PostPosted: Wed Jan 11, 2006 9:20 pm Reply with quote

Never mind..lol it is working now i was in myphpadmin and messing with the nuke_modules hit insert and looked at the setting on that screen then went back and hit browes and supporters showed up I then went back to my admin panel and it is there.

Thx for the help everyone you all have been great.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©