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, 54 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 - [Help] 2 homepages, how? [ ]
 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
Divvy
Lieutenant
Lieutenant


Joined: Jul 25, 2004
Posts: 213


PostPosted: Sun Dec 23, 2007 8:45 am Reply with quoteBack to top

Hi mates,
Can someone help me on this?

I want to show a homepage (module in index) to all guests and registed members and show another different homepage (module in index) only for subscribers members.

For example:
News module for all guests and members
Downloads module only for subscribers

What I need to edit in the index of the module that I have as homepage?
Heres my module index file in txt format:
http://www.celebridadesdespidas.com/index%20module.txt

I think that I need to use this code:
Code:
if(paid()){


Please help Smile
Find all posts by DivvyView user's profileSend private message
Divvy
Lieutenant
Lieutenant


Joined: Jul 25, 2004
Posts: 213


PostPosted: Sun Dec 23, 2007 8:46 am Reply with quoteBack to top

Hummm maybe is another easy way to make that!

One time, was a guy that make a modification for me.
It was almost like this one. The modification was allow to create 2 homepages in my PHPNuke. One for Guests and one for Members. And It works!

This was the modification:
Code:
OPEN: modules/News/index.php

FIND:

if(!is_user($user)){
   include("header.php");
   OpenTable();



REPLACE:

if(!is_user($user)){
   //include("header.php");
   //OpenTable();
   include("modules/Registo/index.php");
   /*



FIND:

CloseTable();
   //OpenTable();
   ?>



REPLACE:

*/
   //CloseTable();
   OpenTable();
   ?>



FIND:

<?php
   //CloseTable();
   include("footer.php");



REPLACE:

<?php
   CloseTable();
   //include("footer.php");




But now, insteat of making 2 homepages, one for guests and other for members, and want to create one for guests/members and other for subscribers.

For example:
Downloads module for all guests and members
News module only for subscribers

My idea is to use News module as homepage, and somehow, redirect all guests and members to the Downloads module. I think that is more easy to do It. What do you guys think?

Any suggestions how to do that? Smile
This is the subscription function:
Code:
if(paid()){

_________________
Sexo - Thongs - Legendas Divx
Find all posts by DivvyView user's profileSend private message
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.180 Seconds - 350 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::