You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Struggling with modules [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Fri May 16, 2003 9:37 pm Reply with quoteBack to top

I think I understand the concept of modules, don't know enough php I'm afraid, but I'm learning daily.

I can't figure out though how to keep the blocks on the right, header footer adn left are there, but where is the code to display the right ones.

Ta

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun May 18, 2003 7:35 pm Reply with quoteBack to top

In your module, add this line somewhere near the top:

$index = 1;

That will display the right blocks Smile

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Fri May 23, 2003 2:47 am Reply with quoteBack to top

I'm afraid that doesn't seem to work:

This is my current code for my test module

Code:

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

$index = 1;
require_once("mainfile.php");
include("header.php");

echo ("<h2>This is basic HTML</h2>");
?>
 
<div align="center"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="72" height="690">&</td>
    <td width="100%" valign="top" bgcolor="#003399"><!--DWLayoutEmptyCell-->&</td>
    <td width="90">&</td>
  </tr><tr><td height="1"><img src="spacer.gif" alt="" width="72" height="1"></td><td></td><td><img src="spacer.gif" alt="" width="90" height="1"></td></tr>
</table>
</body>

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 2:59 am Reply with quoteBack to top

Try getting rid of the /body tag. The $index=1; is the only correct way to do what you want.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 3:08 am Reply with quoteBack to top

Also, wrap your code in an OpenTable(); and CloseTable(); wrapper, like this
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

$index = 1;
require_once("mainfile.php");
include("header.php");
OpenTable();
echo ("<h2>This is basic HTML</h2>");
?>

<div align="center"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="72" height="690">&nbsp;</td>
    <td width="100%" valign="top" bgcolor="#003399"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="90">&nbsp;</td>
  </tr><tr><td height="1"><img src="spacer.gif" alt="" width="72" height="1"></td><td></td><td><img src="spacer.gif" alt="" width="90" height="1"></td></tr>
</table>
<?CloseTable();?>

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff

Last edited by Raven on Fri May 23, 2003 7:07 pm; edited 2 times in total
Find all posts by RavenView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Fri May 23, 2003 5:52 pm Reply with quoteBack to top

Hmm, I get an error on line 24 which is

OpenTable():

I moved it underneath the
?>

Then it shows up as text
What is the purpose of opentable, is it a html or php?
I cant find it in the php function list. Embarassed

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 5:55 pm Reply with quoteBack to top

It has to stay where it is. What is the error message?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 5:58 pm Reply with quoteBack to top

Oops! Theres a typo in my code. OpenTable() has to have a ';' after it, not a ':'. Sorry! I corrected my post.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Fri May 23, 2003 6:02 pm Reply with quoteBack to top

Yeah that seems to have fixed that one, I get a plain square border around it now, but I still dont have my right hand blocks ?

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Fri May 23, 2003 6:09 pm Reply with quoteBack to top

Also

What are the ampersand symbols supposed to do, as they actually show up as text

&</td>

I removed them, do they serve a purpose?

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri May 23, 2003 7:06 pm Reply with quoteBack to top

They should be &nbsp; Put them back in.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Sat May 24, 2003 4:56 pm Reply with quoteBack to top

Thanks Raven

However, the blocks on the right still don't show up Question

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat May 24, 2003 5:17 pm Reply with quoteBack to top

Oops! Forgot a line. Make your last line
Code:
<?CloseTable();include("footer.php");?>

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Father
Lieutenant
Lieutenant


Joined: Apr 30, 2003
Posts: 165

Location: Australia

PostPosted: Sat May 24, 2003 6:19 pm Reply with quoteBack to top

Thanks Mate, glad you know what you're doing Very Happy That worked!

To make things even harder, how can I now add the graphics surrounding the blocks (top and bottom ones) to this centre one as well.

So instead of just having the square border around it it looks like a big block?

I'm starting to feel bad about all these questions I bombard upon you Embarassed

Cheers

_________________
www.TheOlderGamers.com
Find all posts by FatherView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat May 24, 2003 6:22 pm Reply with quoteBack to top

If it's just standard HTML, then just continue adding you HTML as you would normally.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.317 Seconds - 317 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::