PDA

View Full Version : Showthread integration


rockon
01-21-2010, 12:23 PM
Afternoon everyone.

I'll cut to the chase... I created a new module through "add page" and called it "showthread_news". I integrated it with showthread.php and gave it the styling I use for the news section (different to the forum section).

How do I show the wrapper on only one part of the site on the showthread page?

I want the module I integrated to only show up on this page (as it does):

(news section)
http://www.rockonpublishing.co.uk/showthread.php?t=15

and not on any other part like these:

(general forum)
http://www.rockonpublishing.co.uk/showthread.php?t=2

(reviews section)
http://www.rockonpublishing.co.uk/showthread.php?t=12

Also, note that because I changed the styling to a custom one the places I don't want the integration are changing to that style. See attachment for what it should look like in the general forum.

To summarize, I only want the specific module integration on the news showthread pages, not any other sections.

Any ideas?

rockon
01-22-2010, 07:59 AM
Sorry to bump but does anyone have an idea?

Our Sponsors
 

Brian
01-22-2010, 12:42 PM
Unfortunately there's not an easy way to integrate just certain forums with the showthread.php file that I'm aware of.

rockon
01-22-2010, 02:11 PM
Do you think my easiest and best bet is to manually add them for certain pages that are hard to integrate?

Our Sponsors
 

Brian
01-23-2010, 12:11 PM
If you only have a few threads and don't mind manually updating the list when needed then you could add a new plugin to the 'vba_cmps_include_getpage' hook location with code that looks something like this:
switch($_REQUEST['t'])
{
// Quick example for just one forumid
case 1:
$getpage = 'threadpage1';
break;

// Quick example for multiple forumids that should use the same page
case 2:
case 3:
case 4:
$getpage = 'threadpage2';
break;
}


Change the numbers within the "case:" statements above to match your threadids, and then the "$getpage = 'X'" parts to add the "Page Identifier" for the page you want to integrate with those threads.