vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 07-29-2004, 05:05 PM
Fibe Fibe is offline
Junior Member
 
Join Date: Apr 2004
Posts: 7
Default Adding Dynamic Forum Announcements to VBa CMPS

I know there is a thread about it located here:
http://www.vbadvanced.com/forum/show...t=announcement

But i tried and failed. The template i changed without a problem but i am at a loss to what i need to add to the php files and where.

The thread for the hack is located here:

http://www.vbulletin.org/forum/showthread.php?t=64189

Thanks !
  #2  
Old 08-15-2004, 03:43 AM
kall's Avatar
kall kall is offline
Member
 
Join Date: Apr 2004
Posts: 98
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Quote:
Originally Posted by Fibe
I know there is a thread about it located here:
http://www.vbadvanced.com/forum/show...t=announcement

But i tried and failed. The template i changed without a problem but i am at a loss to what i need to add to the php files and where.

The thread for the hack is located here:

http://www.vbulletin.org/forum/showthread.php?t=64189

Thanks !
Doesn't it suck when you see that someone has solved a problem and they don't give you step-by-step instructions?

I'm re-doing it for my site, so here we go..

In /includes/vba_cmps_include_bottom.php:
Find
PHP Code:
global $pages$stylevar$headinclude$header$footer$vboptions$vba_options$navbar
After, add:
PHP Code:
$bbuserinfo
Then, find:
PHP Code:
    if ($vba_options['portal_shownavbar'] AND empty($navbar)) 
Above, add:
PHP Code:
// Logician Hack: Dynamic Forum Announcements Hack
if ($vboptions['dynamic_fha'] OR $vboptions['dynamic_popup']) {require_once('./includes/functions_bbcodeparse.php');}

if (
$vboptions['dynamic_fha'])
{
eval(
'$dynamic_fha = "' addslashes($vboptions['dynamic_fha']) . '";'); 
$dynamic_fha=str_replace("\\'""'"$dynamic_fha);
$dfh_announcement_announcementtopaste dynamic_a($dynamic_fha);
if (
trim($dfh_announcement_announcementtopaste)) {eval('$dfh_announcement = "' fetch_template('dfh_announcement') . '";');}
}

if (
$vboptions['dynamic_popup'])
{
eval(
'$dynamic_popup = "' addslashes($vboptions['dynamic_popup']) . '";'); 
$dynamic_popup=str_replace("\\'""'"$dynamic_popup);
$dfh_announcement_popuptopaste dynamic_a($dynamic_popup);
if (
trim($dfh_announcement_popuptopaste)) 
    {
    eval(
'$dfh_announcement_headercode = "' fetch_template('dfh_announcement_headercode') . '";');
    eval(
'$dfh_announcement_popup = "' fetch_template('dfh_announcement_popup') . '";');
    }
}

// Logician Hack: Dynamic Forum Announcements Hack 
Then do the template mod as per the original hack, to your adv_portal template.

Add dfh_announcement, dfh_announcement_popup and dfh_announcement_headercode as templates being called in one of your modules. (Don't know if this is the best way to go about this, but it works for me.)
__________________
Me at Zoints!
NZB - Online Kiwi Community | vBulletin Styles and Services (Steel Blue 3.6.2 now available!) | vBulletin SEO | Community Hosting
  #3  
Old 08-15-2004, 10:36 AM
the wiz the wiz is offline
www.dsites.net
 
Join Date: Aug 2004
Posts: 4
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Awesome, works like a dream. But you really don't have to have one of the modules call the annoucement templates. I didn't and it works fine.
__________________
www.dsites.net
  #4  
Old 08-15-2004, 05:36 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Quote:
Originally Posted by kall
(Don't know if this is the best way to go about this, but it works for me.)
That looks nice and clean.

I did the same thing only I made it a module so as to not add to much to the /includes/vba_cmps_include_bottom.php,

That way when an update from Brian comes around I will have 1 less thing to worry about needing to re-add to my site.

I will share it if you want to look at it.
  #5  
Old 04-16-2005, 04:54 PM
bloodydecks bloodydecks is offline
Member
 
Join Date: Dec 2004
Location: Oceanside CA
Posts: 30
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Still can't seem to get this working right. I've used the code as instructed by kall, but nothing is showing up. I've got the box in the forums but still not showing on CMPS.
  #6  
Old 04-19-2005, 01:29 AM
sunnycher sunnycher is offline
EEEK! I broke it again!
 
Join Date: Feb 2005
Location: AL
Posts: 183
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Quote:
Originally Posted by kall
Doesn't it suck when you see that someone has solved a problem and they don't give you step-by-step instructions?
Yes, it does! I have found many many posts on these forums asking for help and then saying nevermind I fixed it and never telling how LOL!

Thanks for sharing your fix!!!
__________________
Cher
  #7  
Old 04-21-2005, 12:50 PM
femsawyer femsawyer is offline
Junior Member
 
Join Date: Mar 2005
Posts: 14
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

Ok...I installed the Dynamic Forum Annoucements Hack and then when trying to access my index page, I get the following error:

Fatal error: Call to undefined function: strip_bbcode() in /MySitePath/forum/includes/functions_forumdisplay.php on line 121

Every other page of my site shows up just fine...including other cmps pages.

I turned the news, news archive, and latest posts to Not Active and then I got a similar error but it concerned the mini calendar, so I turned that off and the page showed up fine.

My problem is, I want to turn that other stuff back on but can't or I get the errors.

Any help would be appreciated.
  #8  
Old 08-15-2005, 10:54 PM
fLoW fLoW is offline
Member
 
Join Date: Apr 2005
Location: Brooklyn,NY
Posts: 75
Default Re: Adding Dynamic Forum Announcements to VBa CMPS

how can I have this for the lastest version of CMPS 2.X?
 


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
Hacks from vBadvanced > CMPS Intex Troubleshooting / "How do I..." Questions 6 02-16-2006 11:16 AM
implamenting cmps on forum tpr Troubleshooting / "How do I..." Questions 10 11-18-2004 12:51 AM
Problems with Dynamic Forum Announcements kall Troubleshooting / "How do I..." Questions 11 07-08-2004 09:48 AM
Seperate CMPS turn off from forum? dbassett74 Troubleshooting / "How do I..." Questions 1 06-29-2004 11:49 AM


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