PDA

View Full Version : CMPS Install question


chrisbeau
04-07-2009, 01:29 PM
Couple of quickie questions.

I have our forum root installed directly on the server, no forum folder.

If I install vbadvanced do I need to move the forum root into a new folder. eg www.mysite.com/forum to get cmps_index.php to appear as the homepage ?

Secondly, I have a mod installed in appears on the navbar template that puts column of pics from vbpicgallery in, but when cmps calls $navbar that mod does not appear properly, this mod does work on the standard homepage.

Here is the code used:
<!-- start vBPicGallery plugin -->
<table class="tborder" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="5"><span class="smallfont"><b>$vbphrase[vbpicgallery_latest_uploads]<if condition="$bbuserinfo[userid]"> - <a href="$vboptions[bburl]/vbpgedit.php?$session[sessionurl]do=editgallery&amp;u=$bbuserinfo[userid]">$vbphrase[vbpicgallery_add_edit]</a></if></b></span></td>
</tr>
<tr>
$latestbits
</tr>
</table>

<!-- end vBPicGallery plugin -->

Can anyone help ?

We are using vBulletin® Version 3.7.2

Brian
04-07-2009, 02:05 PM
1). It can be run under either scenario.
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=1#goinglive ;)

2). Admin CP => vBa CMPS => Default Setttings => Portal Output Global Variables
Try adding 'latestbits' (without the quotes) to that setting.

Our Sponsors
 

chrisbeau
04-07-2009, 03:40 PM
1). It can be run under either scenario.
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=1#goinglive ;)

2). Admin CP => vBa CMPS => Default Setttings => Portal Output Global Variables
Try adding 'latestbits' (without the quotes) to that setting.

1.) thanks that sorted it. :cool:

2.) Ive already tried that and it didnt work.:(

see for yourself
www.torque-irl.com
www.torque-irl.com/forum.php

Brian
04-08-2009, 01:44 PM
Can you post the code from the plugin that's setting the $latestbits variable if that's custom code, or just a link to where you downloaded the plugin from otherwise?

Our Sponsors
 

chrisbeau
04-08-2009, 07:34 PM
Can you post the code from the plugin that's setting the $latestbits variable if that's custom code, or just a link to where you downloaded the plugin from otherwise?

I can't remember where I downloaded it from :( but IIRC it was only a matter of adding the above bit of code to the Navbar and it worked.

chrisbeau
04-08-2009, 09:36 PM
This is the code under plugins

vBPicGallery Latest on Forumhome Complete

if($vbulletin->options['vbpgenablelatest'])
{
$result_latest = $db->query_read("
SELECT vbpicgalleryid,id,u_date FROM " . TABLE_PREFIX . "vbpicgallery_images WHERE vbpicgalleryid > 0 ORDER BY rand() LIMIT 5");
$latestbits = '';
while ($latest = $db->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbpicgallery_latestbits') . '";');
}
$db->free_result($result_latest);
}

Brian
04-09-2009, 09:37 AM
Judging by the title of the plugin, I'd guess it's set to a hook location that is only called on the vBulletin homepage.

chrisbeau
04-09-2009, 10:24 AM
Judging by the title of the plugin, I'd guess it's set to a hook location that is only called on the vBulletin homepage.

:( ok is there any other method of getting the pics to appear on the CMPS ?

chrisbeau
04-11-2009, 04:03 PM
Bump, still looking for a solution.

Brian
04-13-2009, 12:39 PM
Try editing that plugin, change the hook location to 'global_setup_complete', and then change the first line in the PHP code for your plugin to this:
if($vbulletin->options['vbpgenablelatest'] AND (THIS_SCRIPT == 'adv_index' OR THIS_SCRIPT == 'index'))

chrisbeau
04-14-2009, 03:45 PM
Try editing that plugin, change the hook location to 'global_setup_complete', and then change the first line in the PHP code for your plugin to this:
if($vbulletin->options['vbpgenablelatest'] AND (THIS_SCRIPT == 'adv_index' OR THIS_SCRIPT == 'index'))

Thanks I tried that but theres no change.