vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2006, 09:35 PM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Integrating Other vB Pages & Hacks w/Plugin?

Is it possible to integrate vBa modules into a forum using this technique: http://www.vbadvanced.com/membersare...tid=4&pageid=6 but doing it through vB's plugin system instead of editing the files?
Reply With Quote
  #2  
Old 01-22-2006, 09:37 PM
pennylessz28's Avatar
pennylessz28 pennylessz28 is offline
Web Developer
 
Join Date: Mar 2004
Location: Virginia Beach, VA, USA
Posts: 222
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

nope
__________________
Mike Key - Lost and Confused
Reply With Quote
  #3  
Old 01-23-2006, 01:32 AM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

I can see that the integration into functions.php wouldn't work as there is no hook in that location.

If I was looking to add a column to every page on my forum, could I do this using a single hook that hits every page? Alternatively, is there a single file I could add this code to:

Code:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
that would put the code on every page of the forum?
Reply With Quote
  #4  
Old 01-23-2006, 01:37 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

You could add that near the top of your global.php file. You would probably want to change it to something like this though so it won't affect the cmps_index.php file.
PHP Code:
if (!defined('VBA_PORTAL'))
{
define('VBA_PORTAL'true);
define('VBA_PAGE''include');

Reply With Quote
  #5  
Old 01-25-2006, 01:37 AM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

And if I only want it to show up on specific forumdisplay pages? I tried this in global.php:

Code:
if (!defined('VBA_PORTAL'))
{
	if ($forumid=1088)
	{
	define('VBA_PORTAL', true);
	define('VBA_PAGE', 'forumpage');
	}
}

but had no luck. I also tried with just $f.
Reply With Quote
  #6  
Old 01-25-2006, 02:39 AM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

Tried dropping this code into the top of forumdisplay.php. You can't put it in the top as there are no forumid variable defined at that point. You can put it in the first hook location, however, you then get an error that print_portal_output is undefined in functions.php.

Seems like everyone has problems with this at first and then eventually gets it. Doesn't seem like the instructions as written here: http://www.vbadvanced.com/membersare...tid=4&pageid=6 work perfectly or am I just being dumb?
Reply With Quote
  #7  
Old 01-25-2006, 01:37 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

The instructions in the users manual will work perfectly if you follow them and add the exact code.

If you want to integrate the CMPS with one forum then try adding this to your forumdisplay.php file:
PHP Code:
if ($_REQUEST['f'] == 1088 OR $_REQUEST['forumid'] == 1088)
{
    
define('VBA_PORTAL'true);
    
define('VBA_PAGE''forumpage');

Reply With Quote
  #8  
Old 01-26-2006, 02:11 AM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

I just started from scratch and did all changes on the instructions page and in this email. I am getting this error:


Fatal error: Call to undefined function: print_portal_output() in /domain.com/forum/includes/functions.php on line 2569


BTW, I know you say the instructions are perfect, however, they changed since yesterday. It didn't effect us as we had already included that line in global.php but you can see how folks would have problems.

Thanks.
Reply With Quote
  #9  
Old 01-26-2006, 03:13 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

Where exactly did you add the define('VBA_PORTAL', true); code at?

Quote:
BTW, I know you say the instructions are perfect, however, they changed since yesterday. It didn't effect us as we had already included that line in global.php but you can see how folks would have problems.
They changed yesterday because of the release of 2.1.0. The file change mentioned there was required in previous CMPS versions, but not in 2.1.0. That's why it has the note about the code possibly already being there.
Reply With Quote
  #10  
Old 01-26-2006, 08:14 PM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

just as you suggested in the above post:

if ($_REQUEST['f'] == 1088 OR $_REQUEST['forumid'] == 1088)
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'forumpage');
}
Reply With Quote
  #11  
Old 01-28-2006, 03:02 PM
jonnyquest jonnyquest is offline
Junior Member
 
Join Date: Jan 2006
Posts: 17
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

can you tell me the correct place to add this code?
Reply With Quote
  #12  
Old 01-29-2006, 02:34 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

Just below the <?php mark at the top of the file.
Reply With Quote
  #13  
Old 02-14-2007, 04:17 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

Allright, I have been working with this edit to integrate a right colum to all my vbulletin php by editng global.php.

However i have been having this bug :

the attachment.php would show the header and the column too.

my cmps shoutcast players script would also load in a FULL PAGE instead of just a little popup ...

basically this method ends up screwing up a lot of things ....


Is there something i am missing ? or should i just go on and edit the php pages one by one instead of the global.php ?

Thanks Brian

Last edited by easyskillz; 02-14-2007 at 06:06 AM.
Reply With Quote
  #14  
Old 02-14-2007, 10:35 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

Open your shoutcast player page and see what THIS_SCRIPT is defined as at the top. Then change your CMPS integration code to something like this:

PHP Code:
if (THIS_SCRIPT != 'attachment' AND THIS_SCRIPT != 'whatever')
{

define('VBA_CMPS'true);
define('VBA_PAGE''include');


Reply With Quote
  #15  
Old 02-14-2007, 11:02 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

it's a cmps module...


so where do i look ? There is no such code in shoutcast_lite.php nor in it's templates.

and the players are like using this kind of templates "for mp for example"
Quote:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$scdef MediaPlayer</title>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_radio')"><img id="collapseimg_forumhome_radio" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
<div align='center'>$scdef: $servertitle</div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_radio" style="{$vbcollapse['collapseobj_forumhome_radio']}">
<tr>
<td class='page' align='center' id='radio'>
<OBJECT
ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width=320 height=50
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="$listenlnk">
<PARAM NAME="TransparentAtStart" Value="true">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="false">
<PARAM NAME="ShowStatusBar" Value="true">
<PARAM NAME="ShowControls" Value="true">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="0">
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
src="$listenlnk"
Name=MediaPlayer
AutoStart=1
Width=320
Height=50
transparentAtStart=0
autostart=1
animationAtStart=0
ShowStatusBar=1
ShowControls=1
autoSize=0
displaySize=0></embed>
</OBJECT>
</td>
</tr>
</table>
</body>
</html>

Last edited by easyskillz; 02-14-2007 at 11:05 AM.
Reply With Quote
  #16  
Old 02-14-2007, 11:09 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks w/Plugin?

something even more simple for you i guess is this attachment bug.

My header shows in the attachment page along with the right column. is that normal ?
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
integrating vb pages into vba cmps scruby "How Do I..." Questions 4 11-21-2005 12:53 AM
Integrating Other vB Pages & Hacks badblu Troubleshooting & Problems 4 10-07-2005 01:11 PM
Integrating Other vB pages ncwoodworker "How Do I..." Questions 2 09-01-2005 04:27 PM
integrating with other pages Lionel Troubleshooting / "How do I..." Questions 5 03-29-2005 06:21 PM


All times are GMT -4. The time now is 10:53 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.