vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2007, 05:28 AM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
Reply With Quote
  #2  
Old 03-13-2007, 11:48 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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.
Reply With Quote
  #3  
Old 03-14-2007, 06:57 AM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
Reply With Quote
  #4  
Old 03-14-2007, 11:44 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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...
Reply With Quote
  #5  
Old 03-18-2007, 02:24 PM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
File Type: jpg temp_pages.jpg (60.0 KB, 22 views)
Reply With Quote
  #6  
Old 03-19-2007, 11:36 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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.
Reply With Quote
  #7  
Old 03-19-2007, 01:27 PM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
Reply With Quote
  #8  
Old 03-20-2007, 11:02 AM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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

Quote:
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.
Reply With Quote
  #9  
Old 03-20-2007, 11:28 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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.
Reply With Quote
  #10  
Old 03-20-2007, 02:21 PM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
Reply With Quote
  #11  
Old 03-21-2007, 10:57 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
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.
Reply With Quote
  #12  
Old 03-21-2007, 05:13 PM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
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
Reply With Quote
  #13  
Old 03-22-2007, 01:23 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Only show news on the homepage

Sorry, but we do not offer any type of custom work.
Reply With Quote
  #14  
Old 03-22-2007, 03:43 PM
John D John D is offline
Senior Member
 
Join Date: Mar 2006
Posts: 100
Default Re: Only show news on the homepage

Ok, stuck then
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
... Get thread prefixes to show on homepage under Recent Posts in CMPS? Protonus "How Do I..." Questions 3 03-10-2007 04:49 PM
How do I show link only on homepage? HUMMER "How Do I..." Questions 1 10-29-2006 11:48 AM
flash won't show in the header on homepage ~Net Dreamz~ Troubleshooting & Problems 1 09-27-2005 09:31 AM


All times are GMT -4. The time now is 02:43 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.