PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Tue Jul 25, 2006 11:04 pm Reply with quote Back to top

Sorry I posted this in the wrong forum

Ok I found a blank phpnuke module that you are supposed to be able to add your php code in at a specified point and have it work as a module in phpnuke. Well when I try it without adding my code it works fine, it will display the text that's in the place where your code goes. when I apply my code in that spot all i get is a blank white page, no errors no nothing. I tried to post the two variations in the code in this post but was told by nuke it was a no no so I made them into text files and you can view them both at this link
Only registered users can see links on this board!
Get registered or login to the forums!
and this link
Only registered users can see links on this board!
Get registered or login to the forums!
Can somebody tell me what is wrong? I can get the code i wish to use in the module to work fine without putting it inside the module. But I want to use it as a module.
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Wed Jul 26, 2006 2:00 am Reply with quote Back to top

I have never seen a mod that will allow you to put code in and it work as a module, This is not without possibity, just not something I have seen myself, If you could post a link for someone to grab would be usefull.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 8:05 am Reply with quote Back to top

I posted two links
View user's profile Send private message Visit poster's website
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 8:06 am Reply with quote Back to top

I posted two links
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Wed Jul 26, 2006 8:51 am Reply with quote Back to top

I would use an exising nuke module to see which code isnt working, Look at the way the module is defined as a module file for starters Wink

I will help as it needs to be, but in the words of a smart man

Give a man a fish, feed him for a day. Teach him to fish, feed him for a lifetime.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 6:50 pm Reply with quote Back to top

does the database for this module need to have tables within the nuke database or is it permissable to execute it from a seperate db? I can't figure out why the script will work fine on it own but when placed inside nuke as a module it wont even produce an error.
View user's profile Send private message Visit poster's website
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 6:50 pm Reply with quote Back to top

does the database for this module need to have tables within the nuke database or is it permissable to execute it from a seperate db? I can't figure out why the script will work fine on it own but when placed inside nuke as a module it wont even produce an error.
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Wed Jul 26, 2006 6:56 pm Reply with quote Back to top

A lot of things need to be looked at to make it work like a module.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
montego
Site Admin


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

PostPosted: Wed Jul 26, 2006 8:01 pm Reply with quote Back to top

jtmcadams, something you are doing is making you double post. You might need to loosen up on the caffeine. Laughing

Blank pages often times means you have a parse error. Try setting display errors to true in config.php if you have not already done so.

In your first example, I quickly glanced at it and found that you have an invalid echo statement (see the bolded line below):

echo "<table width=\"100%\" border=\"0\" align=\"center\"><tr><td align=\"center\">";
echo"

There may be more, but this is what I saw right off the bat.
View user's profile Send private message Visit poster's website
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 11:08 pm Reply with quote Back to top

ok I'll take a look at what you've noted and see if that helps, as for the dobule post, i don't have a clue where that's coming from I just use the quick reply and only click one time. sure it's not an issue with quick reply on this forum?
View user's profile Send private message Visit poster's website
jtmcadams
New Member
New Member


Joined: Jun 21, 2003
Posts: 18
Location: Las Vegas, NV

PostPosted: Wed Jul 26, 2006 11:34 pm Reply with quote Back to top

Ok I made the fixes you suggested and changed config.php to display errors it seems all my errors have to do with the html sections within the php code. (I didn't write the script so I don't have a clue) I don't know diddly about php really but what I would like is to take this
Only registered users can see links on this board!
Get registered or login to the forums!
and make it into a nuke module. Can this be done relatively easy or am i out of luck?
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Thu Jul 27, 2006 8:13 am Reply with quote Back to top

Almost anything can made into a nuke module, but it takes a good working knowledge of PHP, HTML (possibly CSS too) and a good example nuke module to work from.

The issues with what you originally posted is that there is PHP and HTML code all intermingled without proper adherence to PHP's syntax requirements. There are 3 - 4 different ways to have PHP produce HTML back to the browser.

If you want to do this, I would suggest picking up a good book on PHP and mySQL and give it a try. Your example form does not look too complicated to incorporate with the right knowledge base.

Good luck and regards,
montego
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum