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
selectric
Regular
Regular


Joined: Aug 06, 2008
Posts: 65

PostPosted: Mon Mar 16, 2009 8:01 am Reply with quote

Hi!
Im trying to put this:

Code:


//--------------------
// add user buttons
       if (is_user($user)) {
          include_once('modules/Your_Account/navbar.php');
          echo 'test';
       }
//----------------------


Into the function AddLink() into the Web_Links module.
No matter where I put it, Im only getting the "test" not the navbar. Any ideas why? The navbar is included in the Private_Messages, Journal, etc...
Why not here?

Thanks for your time!
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Mon Mar 16, 2009 5:27 pm Reply with quote

Without actually testing it it looks like you need to actually instantiate it after you include the code. In other words, you have included the code but now you need to make a call to it to see it. Try this.

Code:


if (is_user($user)) {
    include_once("modules/Your_Account/navbar.php");
    OpenTable();
       nav();
    CloseTable();
    echo "<br />";
}
 
View user's profile Send private message
selectric
PostPosted: Tue Mar 17, 2009 8:39 am Reply with quote

Raven wrote:
Without actually testing it it looks like you need to actually instantiate it after you include the code. In other words, you have included the code but now you need to make a call to it to see it. Try this.

Code:


if (is_user($user)) {
    include_once("modules/Your_Account/navbar.php");
    OpenTable();
       nav();
    CloseTable();
    echo "<br />";
}



Worked great! I really appreciate your help man!
 
Raven
PostPosted: Wed Mar 18, 2009 12:25 am Reply with quote

RavensScripts


Only registered users can see links on this board! Get registered or login!
 
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 ©