View Full Version : vBadvanced CMPS 1.0.1 Released
Brian
01-27-2005, 01:56 PM
vBa CMPS v1.0.1 is now available in the 'Programs / Scripts' section of the site. This version is mostly a maintenance release to fix all currently known bugs.
There are, however, a few new options. A new 'Global vBadvanced Settings' group has been added which contains three new settings - 'Header Replacements', 'Navbar Replacements', and 'Footer Replacements'. These options will allow you to enter a list of filenames that may be in your header, navbar, and footer that need to have your forum's URL added in front of the name. These new options should prove to be useful for those who have installed hacks and need to replace the filename for these, or for those who have installed a style in which the default navbar links have been moved to the header. These will also be global options for all future vBadvanced products and will affect vBa CMPS 1.0.1, vBa Links 1.0.1 (to be released shortly), and vBa Gallery RC3 (also to be released shortly).
The last new setting is the 'Portal Output Global Variables' option. This option will be useful for those who have added other hacks to vBulletin and need to add the variables from those hacks to the print_portal_output() function's global list. Now instead of having to edit any files, you may simply add the variable name in this setting.
For those who wish to upgrade, you will find upgrade instructions at the bottom of the readme file included in the new zip package.
TheNakedMan
01-27-2005, 02:00 PM
Awesome! Just upgraded!
Good Stuff Brian!
ConqSoft
01-27-2005, 02:08 PM
Yep. Seems to have been a seamless upgrade for me....
Blue Moose Aaron
01-27-2005, 02:15 PM
Thanks Brian. I can't wait to upgrade tonight
mholtum
01-27-2005, 04:14 PM
hmmm Upgraded.
Now getting this error.
Fatal error: Call to undefined function: getrowcolor() in /home/mholtum/public_html/forum/modules/cmps-articles.php on line 17
ConqSoft
01-27-2005, 04:22 PM
Did the cmps-articles module require any modifications to the CMPS files? If so, you'll need to re-apply those...
Brian
01-27-2005, 04:22 PM
The getrowcolor() function was removed in 1.0.1 as the exec_switch_bg() function in vB does the same thing. If you look in that file and just replace getrowcolor with exec_switch_bg then that will take care of the problem.
mholtum
01-27-2005, 04:28 PM
When I do that I get another error. ****
Brian
01-27-2005, 04:31 PM
Well... What's the error? :)
mholtum
01-27-2005, 04:33 PM
Same Error different page. Fixed
Ok
Works, but still says CMPS 1.0.0
Brian
01-27-2005, 04:36 PM
Did you run the upgrade part of the install file?
mholtum
01-27-2005, 04:38 PM
Fixed that as well..
Thanks
mholtum
01-27-2005, 04:38 PM
Did you run the upgrade part of the install file? Yes, I remembered that I deleted the phrase and just typed in the info.. What would be the phrase to use?
Brian
01-27-2005, 04:49 PM
powered_by_vbadvanced_cmps
Powered by <a href="http://vbadvanced.com" target="_blank">vBadvanced</a> CMPS v{1}
mholtum
01-27-2005, 04:55 PM
Worked like a charm.. Thanks bud!
KW802
01-27-2005, 05:45 PM
Very cool. :cool: Time for me to start playing with the new toys to see what I can do with them.
One minor thing.... in the install script $version is still hard-coded to be 1.0.0 so that's what displays on top of the first page. :)
dleblanc
01-27-2005, 06:39 PM
:cool: Installed without a problem.
dbabaev
01-27-2005, 08:57 PM
do i need to reapply the file modifications? or just replace the CMPS files and run the upgrade? Tx :)
ConqSoft
01-27-2005, 09:00 PM
do i need to reapply the file modifications? or just replace the CMPS files and run the upgrade? Tx :)
Just follow the Upgrade instructions at the bottom of the readme file.
KW802
01-27-2005, 09:02 PM
do i need to reapply the file modifications? or just replace the CMPS files and run the upgrade? Tx :)You won't have to re-apply all of the changes but you will have to make a slight change to your ../{forums}/global.php file. You'll also need to update the new cmps_index.php file with your path. At the bottom of the 'readme' file are the details for doing an upgrade.
dbabaev
01-27-2005, 09:09 PM
awesome!!! worked great. Tx, Kevin
http://msmba.net/
The last new setting is the 'Portal Output Global Variables' option.
Brian, can you post an example using this feature? I understand the concept but I'm not totally sure how can this be put to work.
Thanks =)
1996 328ti
01-27-2005, 10:44 PM
The getrowcolor() function was removed in 1.0.1 as the exec_switch_bg() function in vB does the same thing. If you look in that file and just replace getrowcolor with exec_switch_bg then that will take care of the problem.
I must be dense. I tried that and still the page would not load.
Only way the page would load is if I commented
// $getbgrow = getrowcolor();
btw Brian, in the readme file you state that cmps_index doesn't need to be replaced but the old one don't have this block.
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
mholtum
01-27-2005, 11:45 PM
I am using a second navbar mod to display a second navbar (obviously) and it still displays on every single page except the newly upgraded portal. I checked in my navbar template and the $navbar2 is where it should be. Still nothing.. Any ideas?
Here is my Navbar template:
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$pmnotifyhome
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<if condition="$bbuserinfo['userid']">
<td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else /> class="alt2"</if>>
<if condition="$bbuserinfo['pmunread']">
<script type="text/javascript">
<!--
<!-- blink navbar on new pms -->
document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()", 500);
x=1;
function Timer()
{
set=1;
if (x==0 && set==1)
{
document.getElementById('pmBox').bgColor='$stylevar[tcat_bgcolor]';
x=1;
set=0;
}
if (x==1 && set==1)
{
document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
x=0;
set=0;
}
}
-->
</script></if>
<div class="smallfont">
<!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="/forum">Forums<else />
</a> <a href="$vboptions[homeurl]$session[sessionurl]">Home</if></a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="$vboptions[bburl]/register.php?$session[sessionurl]">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="/gallery">Gallery</a></td>
<td class="vbmenu_control"><a href="$vboptions[bburl]/donationstotal.php?$session[sessionurl]">Donation Page</a></td>
<td class="vbmenu_control"><a href="$vboptions[bburl]/faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="$vboptions[bburl]/memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="$vboptions[bburl]/calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<if condition="$bbuserinfo['userid']">
<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
$navbar2
<br />
<br />
As you can see it is there. Do I need to move the $navbar2 to another template to get it to display on the portal?
Blue Moose Aaron
01-28-2005, 12:25 AM
Can I get a link to that hack so I can look at it?
mholtum
01-28-2005, 01:02 AM
http://www.vbulletin.org/forum/showthread.php?t=65198
It worked flawlessly before my 1.0.1 upgrade. Still works great on all my other pages...
Tom M
01-28-2005, 02:53 AM
I've got quite a few changes but done the upgrade w/o too many problems. However at this point there's a function that no longer exists that I was using in 1.0.0
Fatal error: Call to undefined function: construct_adv_navbar() in /home/babbler/public_html/forums/modules/recommend.php on line 637
I was creating my own breadcrumb links. What's the right way to recreate the breadcrumb using 1.0.1?
bing11
01-28-2005, 05:55 AM
great job
thanks Brian
sirstone
01-28-2005, 07:07 AM
Thx Brian,
i will upgrade tonight ;)
bbwlva
01-28-2005, 08:05 AM
I'm getting this parse error when I go to install;
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/b/b/w/bbwlva/html/forums/includes/functions.php on line 2013
Tom M
01-28-2005, 10:50 AM
OK - I got this working by using
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
instead of the old function call.
I also ran into a problem I encountered using 1.0.0 when using vb error reporting. The following code needed to be moved to before the active module processing was done so that the header gets processed.
$headinclude = str_replace(
array(
'"clientscript',
'url(images/',
'name="generator" content="'
),
array(
'"' . $vboptions['bburl'] . '/clientscript',
'url(' . $vboptions['bburl'] . '/images/',
'name="generator" content="vBadvanced, '
),
$headinclude
);
If there's no downside for having it in this order would it be possible to move it permanently?
Exernon
01-28-2005, 11:48 AM
Nice update, more power to the team!
Updated without an error... :)
It was so easy.. thanks Brian
skyhew
01-28-2005, 02:29 PM
Is it work fine with vbb 3.06?
KW802
01-28-2005, 02:31 PM
Is it work fine with vbb 3.06?Yes, it works fine with VB 3.0.6. :)
indie
01-28-2005, 03:52 PM
What if we've altered the module templates, how will the upgrade affect that?
I've altered my news template and a few others.
Thanks
KW802
01-28-2005, 03:59 PM
What if we've altered the module templates, how will the upgrade affect that?
I've altered my news template and a few others.
ThanksYour modified templates will be left untouched. If you've modified any of the CMPS PHP files then those edits will need to be redone. Just make sure you choose the upgrade option.
TheVirus
01-29-2005, 03:45 AM
"Footer Replacements
Here you may enter a list of filenames that may appear in your footer that should be prefixed with your Forum's URL."
My archive and sendmessage.php point to the wrong url. They are included in the replacments.
I think I have found the problem out. In the vbulletin options.....there is a "Forums URL" and a "Homepage url"
My homepage url is different from my forum url. If I enter the url of my homepage to point to my forums, then those two above links display correctly....any way around this?
Raitsa
01-29-2005, 07:47 AM
Upgraded my site smoothly & troublefree, thanks Brian & co!
Brian
01-29-2005, 10:21 AM
TheVirus - There shouldn't be any reason why your Home URL setting would affect anything with the replacements as they should all use the value set for your 'Forum URL' option. If you'd like to submit a support ticket though I'll be glad to take a look and see what the problem is.
nexia
01-29-2005, 01:06 PM
the only thing i want now is to be able to display a sidebar of the portal on the forum... just a left or right side of the portal, displayed on the forum, with defined sections displayed depending on the page (no "new threads" on the forumdisplay.php per example)...
is it possible, or easy to deal with ?!... i've seen some forums with this feature, but never found the hack.
Brian
01-29-2005, 01:16 PM
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
Lizard King
01-29-2005, 04:09 PM
I did my upgrade with no error but when I try to go the main page I am getting no permission error. Is there a way to fix this ? I tried to log out and clear all cache and temp but nothing changed...
Brian
01-29-2005, 04:11 PM
Do you have the permissions set properly on your 'Home / Default' page?
Lizard King
01-29-2005, 04:18 PM
Yep I get it working right now. I found the problem I misunderstood the edit in the upgrade section :)
Lizard King
01-29-2005, 04:24 PM
But the other problem I have is I had a custom page created and working fine. But when I tried the page I got a warning like :
Warning: main(./modules/): failed to open stream: Success in /includes/vba_cmps_include_bottom.php on line 230
Fatal error: main(): Failed opening required './modules/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/serenity/public_html/forum/includes/vba_cmps_include_bottom.php on line 230
Did I miss something ?
Brian
01-29-2005, 04:27 PM
Hmm... Would you mind submitting a support ticket so I can have a look at that one?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.