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

Reply
 
Thread Tools Display Modes
  #61  
Old 02-16-2009, 07:30 PM
mrmichigan mrmichigan is offline
Junior Member
 
Join Date: May 2008
Location: Michigan
Posts: 27
Default Wrong wording

Yep, you are right about what you said. I already new that, I just worded it wrong on here. I said page name, I really meant "Page ID". I new that I had to put the page id in.

Lets touch up on the intergration section. I put together TWO cmps pages. One cmps page is intergraded with the forumdisply.php and showthread.php. I called this page "Forum Modules" page id "ForumModules". This page will wrap around most of my forums with the modules I enable.

Second page is Page ID "ProLeague2". This page has nothing intergrade to it. Should it have something? On this page I have one module and the custom page content enable in the center to show up above my forumdisply.php?f=1 page.

Now in my "Plugin Manager" I edited this section called "vba_cmps_include_getpage" and put in the code below in this section.

Quote:
if (isset($_REQUEST['f']))
{
$_REQUEST['Forumid'] = intval($_REQUEST['f']);
}

switch($_REQUEST['forumid'])
{

case 1:
$getpage = 'ProLeague2';
break;
I am looking at this code this way. The "case 1:" is the f=1 in the forumdisply.php?f=1. The "$getpage =" is where I need to put the PAGE ID NAME after it. I called it "ProLeague2". This is the page I want to show up on my forumdisply.php?f=1.

Now when I made my ProLeague2 page, I made it as a module page and not a template page. Because template page is not setup where you can enable modules to your page. So I feel I setup the right one for this page. This goes for my other page id called "ForumModules". But this page I intergraded it to the forumdisply.php and showthread.php.

Where am I going wrong?
Reply With Quote
  #62  
Old 02-16-2009, 07:49 PM
mrmichigan mrmichigan is offline
Junior Member
 
Join Date: May 2008
Location: Michigan
Posts: 27
Default What about this

Here is something you guys might need to know. Try to follow me here.

Right now, my MAIN forum is on Lobby.php and not "Index.php". Now I put together a cmps page id called "Lobby". I intergraded this Lobby page to my "Lobby.php", so that I can add modules around my main forum. This is working just fine.

Now here is what you need to know. This all works fine when you goto my main domain with "www.mydomainname.com/Lobby.php". But when you go to the cmps page that looks like this "www.mydomainname.com/index.php?pageid=Lobby" it only shows my modules and not the custom content "Forum". Is this normal? Because it does the same thing with the "ProLeague2" page too. It only shows the one module I enabled in the center.

MrMichigan
Reply With Quote
  #63  
Old 02-17-2009, 08:41 AM
Magick Magick is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

Quote:
Originally Posted by Magick View Post
before i continue with this topic or start a new one, will the info in this thread allow me to:

Have several vBa pages which i have already created with unique Page Identifiers point to a specific forum category in my forums? (or am I misunderstanding whats described here?)

Thanks!

ok, i read the thread more carefully and it seems that what i asked above is not what this thread is describing. if i'm wrong please let me know (and maybe point me in the right direction) thanks!

(EDIT) ok i'm a vBa n00b. found what i needed to do by changing the category the forum link points to in the specific Page settings

Last edited by Magick; 02-17-2009 at 11:08 AM.
Reply With Quote
  #64  
Old 02-17-2009, 09:38 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Quote:
Originally Posted by mrmichigan View Post
Now here is what you need to know. This all works fine when you goto my main domain with "www.mydomainname.com/Lobby.php". But when you go to the cmps page that looks like this "www.mydomainname.com/index.php?pageid=Lobby" it only shows my modules and not the custom content "Forum". Is this normal? Because it does the same thing with the "ProLeague2" page too. It only shows the one module I enabled in the center.

MrMichigan
Yes, that is how it's supposed to work. The new page you create is there to act like a shell for any pages you wrap it around. There's no way for the page to pull anything more than the modules that are active on it when you access the page directly.
Can you link me to the site where you're trying to install this so I can have a look at things?
Reply With Quote
  #65  
Old 02-17-2009, 06:07 PM
mrmichigan mrmichigan is offline
Junior Member
 
Join Date: May 2008
Location: Michigan
Posts: 27
Default Got it!!

I found the problem. Look at my code again up top. There is a tiny little thing missing. That tiny little thing is this "}" at the VERY bottom.

When I highlighted the code from this forum, I must have missed highlighting this "}" at the very bottom of the code. My bad!! I feel like a ass.

Thanks again guys for taking the time to look at my problem. Computers are crazy on how a little thing like that can stop something from working.

Thank you,
MrMichigan

Last edited by mrmichigan; 02-17-2009 at 07:33 PM.
Reply With Quote
  #66  
Old 02-19-2009, 12:08 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Ahhh, I figured you just didn't copy that line when you posted it here. It should have shown an error at the top of the page if it was missing... Glad you got it figured out either way though.
Reply With Quote
  #67  
Old 02-23-2009, 08:16 PM
ButtKrust ButtKrust is offline
Junior Member
 
Join Date: Feb 2009
Posts: 11
Default

I'm loving the way this works so far! I was wondering, is there a way to have it command some modules in certain columns to be "minimized" automatically upon the page being opened? I would like it so that certain modules are "expanded" on the main page where the forum topics are, but when people go in to read the thread certain modules will become "minimized." Is there a way to add some code int there to check if it is viewing the thread, and command modules in a certain column to be minimized?

I know this is could be getting into a lot of stuff, so if it's extremely difficult just say so and i'll forget about it. But if i'd like it to work if it could.
Reply With Quote
  #68  
Old 03-10-2009, 04:41 AM
volvoholic volvoholic is offline
Junior Member
 
Join Date: Feb 2007
Posts: 25
Default

In response to Neutral Singh's ThreadID plug-in suggestion,

I tried creating a new plugin based on threadid's but nothing new happens when I click on the specific thread. It does not redirect to the "EPI" page.

What I am trying to do is to redirect a specific thread to a page I created rather than displaying just the thread.

Quote:
if (isset($_REQUEST['t']))
{
$_REQUEST['threadid'] = intval($_REQUEST['t']);
}

switch($_REQUEST['threadid'])
{
// Quick example for just one threadid

case 3799:
$getpage = 'epi';
break;

}
Peace to all,
V
Reply With Quote
  #69  
Old 05-07-2009, 07:22 PM
mackin74 mackin74 is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Default

I "think" this is something I have been looking for (but correct me if I am wrong)...

Does anyone have any examples of where they have this implemented?

Here is what I am trying to accomplish:

I have a website (mysite.com for example).

My forums are located at mysite.com/forums.

I would like to display just one specific category of those forums on the mysite.com homepage (as well as in the regular forums section if possible).

Please let me know if that's what this thread is covering (and if anyone has some examples that would be very much appreciated)!

Thanks!
Reply With Quote
  #70  
Old 07-23-2009, 02:41 PM
Globalbuzz's Avatar
Globalbuzz Globalbuzz is offline
Member
 
Join Date: Nov 2004
Posts: 92
Default examples

and this is all thanks to following Brian's instructions

Food & Entertainment

http://www.globalbuzz-sa.com/forums/...splay.php?f=32

Health & Fitness

http://www.globalbuzz-sa.com/forums/...splay.php?f=37

Business & Finance

http://www.globalbuzz-sa.com/forums/...splay.php?f=37


these are simple examples for different content according to forum topic or category


ps.. Thanks Brian
__________________
Travel Information

Last edited by Globalbuzz; 02-18-2010 at 12:10 PM.
Reply With Quote
  #71  
Old 08-21-2009, 04:35 AM
Naoba Naoba is offline
Junior Member
 
Join Date: Aug 2009
Posts: 27
Default

Quote:
Originally Posted by mrmichigan View Post
Right now, my MAIN forum is on Lobby.php and not "Index.php". Now I put together a cmps page id called "Lobby". I intergraded this Lobby page to my "Lobby.php", so that I can add modules around my main forum. This is working just fine.

Now here is what you need to know. This all works fine when you goto my main domain with "www.mydomainname.com/Lobby.php". But when you go to the cmps page that looks like this "www.mydomainname.com/index.php?pageid=Lobby" it only shows my modules and not the custom content "Forum".

MrMichigan

Hi Brian,

I am experiencing the same problem but in my case it doesnt get resolved even if i put in the whole codes including the notorious }.

The problem is i have a forum page without any CMPS wraps which i am trying to do now. I have some doubts regarding the integration. When i integrate the pages with the forumdisplay.php it ask me whether i want to do it with either some page or THIS_SCRIPT. I dint put anything inside THIS_SCRIPT box so i am assuming i haven't used THIS_SCRIPT (according to your instruction).

Regarding the hook, I use _integrate_page to put in the codes you provided. If i want to wrap the whole forums instead of specific ones, what shud be the code and which hook should i use??

Thanks in advance.
Reply With Quote
  #72  
Old 08-23-2009, 11:45 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

I need some help on this as well.

I have my entire forums wrapped in vBadvanced to have the site navigation etc modules in a left column. What I just need is the threads (i.e. posts) that are contained in 2 forums to not display any modules as the threads in these 2 forums contain wide content for small screen resolutions.

I have a page called Forums with all the vb files integrated using the This Script method including ForumDisplay and ShowThread - I used this walk through:
http://www.vbadvanced.com/forum/show...ht=integration
to integrate all the vbulletin pages

I created a new page with a Page Identifier of test with no modules

The threads that I want to NOT show any modules are in forums 33 and 258

I added this plugin:
Code:
if (isset($_REQUEST['f']))  
{  
    $_REQUEST['forumid'] = intval($_REQUEST['f']);  
} 

switch($_REQUEST['forumid']) 
{ 
    // Quick example for just one forumid 
    case 33:
        $getpage = 'test'; 
    break; 

    case 258:
        $getpage = 'test'; 
    break; 

}
This works for the ForumDisplay but NOT ShowThread (the modules are still displayed).

I need it to still show the modules on ForumDisplay but NOT when viewing a thread in those 2 forums. This will then show the posts in the thread using the entire screen width. Also note that I use vbSEO if that has any impact

Any suggestions on resolving this are greatly appreciated.
Reply With Quote
  #73  
Old 08-24-2009, 11:34 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

The CMPS page is set before anytype of thread information is set, so there's not really going to be an easy way to change the CMPS page based on what forum a thread is in.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #74  
Old 12-06-2009, 12:57 PM
dklassen dklassen is offline
Member
 
Join Date: Nov 2006
Posts: 56
Default

I'm a little confused so I'll ask a new question. It there a way to display a specific module in a specific forum?

What I'm looking to do is rotate banners specific to a particular forum.
Reply With Quote
  #75  
Old 12-30-2009, 06:06 AM
rockon rockon is offline
Member
 
Join Date: Jul 2009
Posts: 33
Default

Quote:
Originally Posted by dklassen View Post
I'm a little confused so I'll ask a new question. It there a way to display a specific module in a specific forum?

What I'm looking to do is rotate banners specific to a particular forum.
Isn't there an ad management mod that can do this?
Reply With Quote
  #76  
Old 02-18-2010, 11:44 AM
Alfa1 Alfa1 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 144
Default

I would be extremely interested in adding this functionality to show content relevant to the (sub)forum in the sidebar on my showthread.php pages. I have almost 400 (sub)forums(of which I would like to do this for 200 different subforums) and wonder if this can be done without too many queries and affecting performance.

Having this function in vba CMPS by default would be awesome.
Reply With Quote
  #77  
Old 12-24-2010, 01:59 PM
Onehalfmoa Onehalfmoa is offline
Junior Member
 
Join Date: Jan 2008
Posts: 9
Default I have this...

I have this working on my site currently... and I'm using it to display different modules and a different header depending on what forum id they are in... however when they enter the thread it goes to the default display for a showthread in the forum is there anyway to make it so my threads in that forum ID display the same content I use for the forum ID they are located in...

Perhaps the answer was already stated above but could someone point out what I'm missing...

UPDATE: My apologies...
This was an issue I could have handled through the Forum Manager... I was using this mod to set my styles on the forum besides creating custom module layouts and neglected to actually use what Vbulletin already provided in the forum manager...

Admin CP > Forums & Moderators > Forum Manager > (select Forum) Edit Forum -> Style Options > Custom Style for this Forum & Override Users' Style Choice

By selecting the style over ride in the Forum Manager my styles now follow the forum id's and showthreads for the forums I used this mod on for my custom module layout for certain forumdisplay ID's...

Perfect mod Brian... Thanks for all the excellent support here...

Last edited by Onehalfmoa; 12-24-2010 at 02:29 PM.
Reply With Quote
  #78  
Old 12-25-2010, 11:33 PM
Neutral Singh Neutral Singh is offline
Member
 
Join Date: Sep 2004
Location: Punjab
Posts: 43
Default

is this mod working for anyone on vB4? Thanks
__________________


Sikh Philosophy Network | Sikh Links Directory | Sikh Business Network
Check My Profile for: SEO Tools :: Live Statistics Plugin
Reply With Quote
  #79  
Old 12-27-2010, 11:38 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

As far as I know the same code should work with vB4.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #80  
Old 02-01-2011, 06:44 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default

Brian is there a way to use $tags to achieve the content shown. I use an auto tagging hack so all new threads are tagged when created. I can even set up default tags for each forum.

So as an example lets say the title has the word "widgets" in it.

In the plugin (outlined above) the $tag "widgets" would display the module "widgets"

The reason I ask is because I have a niche site and I want to display content relative results in new threads (ie-showthread) but doing it manually for every new thread is unrealistic. Creating modules each with a set of tags seems more doable.

The only problem is that I have no ideal how to code it. Any ideals would be great... Thanks...
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
disable modules for specific style/theme wildo69 "How Do I..." Questions 9 04-15-2011 03:36 PM
Trying to add links to specific forums, in between nav items.. Emraith "How Do I..." Questions 1 03-21-2007 10:38 AM
left side modules - specific forums Rebecca "How Do I..." Questions 2 03-25-2006 07:13 AM
Modules for specific pages angelosms Troubleshooting & Problems 8 12-25-2005 01:08 AM
Modules only one a specific style e-steki "How Do I..." Questions 7 12-23-2005 01:19 PM


All times are GMT -4. The time now is 09:32 AM.

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.