Results 1 to 14 of 14

Thread: Only show news on the homepage

Hybrid View

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Only show news on the homepage

    Hey,

    I have my site setup so my forum is on another page, /forum.php

    I know how to disable the news module on all pages setup in vbcmps but I dont know how to disable it on my fourm.php page.

    Thanks
    John

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    Edit the CMPS page you've integrated with your forums through your Admin CP and un-check the box next to your news module in the "Modules Enabled" section.

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Hey Brian,

    The problem is I didnt add the page through the cmps, I just changed the index to forum.php and linked to it directly - Is there a different way I should have changed the index to forum.php?

    Thanks Brian

  4. #4
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    If the news is showing on your fourm's index then it has to be integrated or included as a page, otherwise there's no way you would have any modules on the page...

  5. #5
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Hey,

    Thanks for the reply.

    I have attached a screenshot of my pages - The forum.php isnt showing up but it is still showing the modules and acting as a vbadvanced page - Im not sure what I should edit so the news doesnt show up on the forum index, showthread etc.

    Thanks
    Attached Images Attached Images

  6. #6
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    Whenever you integrated your forums page, you had to add some code to the file that looks something like this:
    PHP Code:
    define('VBA_PORTAL'true);
    define('VBA_PAGE''include'); 
    In that example, 'include' would be the page identifier of the page you're including. You need to edit whatever page you are using to integrate your forums with and un-check the news module in the "Modules Enabled" section for that page.

  7. #7
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Thanks again Brian.

    My page is called home but when I uncheck it the news is also removed from my index page - I would like to keep it on my vbadvanced index.php page but not have it on the forum pages.

    Thanks Brian

  8. #8
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    I think I know why it might be doing it..

    Would it be because I have the code in my global.php file?

    Should I just put it in one file for the homepage?

    This is my code in the global.php

    if (THIS_SCRIPT != 'adv_index')
    {
    define('VBA_PORTAL', true);
    define('VBA_PAGE', 'home');
    }
    // identify where we are
    define('VB_AREA', 'Forum');
    if (defined('VBA_PORTAL'))
    {
    require_once('./includes/vba_cmps_include_template.php');
    }

    define('CWD', (($getcwd = getcwd()) ? $getcwd : '.'));
    This file is also giving me a problem with polls - When you try vote it says invalid poll - I think the code above could be giving me the problem.

  9. #9
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    Create a separate page to use for your forum integration, then change 'home' in the code above to whatever you use for the "Page Identifier" setting for that page. Then you will be able to control the modules and options on that page without changing things on your homepage.

  10. #10
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Hey Brian,

    I still must be doing something wrong...

    I set home to forum, created a new php page and set the php page as forum.php which is the forum itself.

    When I did it all pages had no design and the main page=forum page didnt have any modules on it at all, the other pages, forumdisplay, posts etc. worked like they should, the modules displayed and I was able to remove them just for the forum.

    Really appreciate all the help Brian

  11. #11
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    You don't need to include the forum, or anything else really. Just create a new Module Page and use that as the page to integrate your forums with.

  12. #12
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Hey Brian,

    I have done this on another forum without any problems but for some reason, I just can't get this

    Can I pay to you try fix it on my site please?

    Thanks very much Brian

  13. #13
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Only show news on the homepage

    Sorry, but we do not offer any type of custom work.

  14. #14
    Senior Member
    Join Date
    Mar 2006
    Posts
    107

    Default Re: Only show news on the homepage

    Ok, stuck then

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 03-10-2007, 05:49 PM
  2. How do I show link only on homepage?
    By HUMMER in forum "How Do I..." Questions
    Replies: 1
    Last Post: 10-29-2006, 12:48 PM
  3. flash won't show in the header on homepage
    By ~Net Dreamz~ in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 09-27-2005, 09:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •