vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #21  
Old 01-28-2005, 11:08 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

Can you show what you have between ..
Code:
//------------------------------------------------------------------------
// begin configuration
//------------------------------------------------------------------------
and
Code:
//------------------------------------------------------------------------
// end configuration - no other changes necessary
//------------------------------------------------------------------------
Within your announements.php file ..
  #22  
Old 01-28-2005, 11:34 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

Oh .. I've sort of fixed my problem .. (dleblanc take note) ..

Within "adv_portal_announcementbit"

Find both instances of:

Code:
$announcement[forumid]
and replace both with correct forum number .. ie 1

This will work if all you want to show are announcements which are forum wide .. ie you've ticked "All Forums" when creating the announcment ..
  #23  
Old 01-28-2005, 12:42 PM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

Slave,

That work and also I noted that if you create an announcements and put it in a single forum and not All Forums it still will display Latest Announcements by overiding the All forums as the lastest announcements enter. Cool.....

What if you want to keep let say the last 3 announcements displayed is that possible?
  #24  
Old 01-28-2005, 12:54 PM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

just edit your announcement.php file within your modules folder .. change ..
Code:
//How many announcements to display
$maxannouce = 1;
To whatever number of announcements you want to show ..

Remember that you have to have that many current announcements else you'll only get the number of current announcements showing .. (if that makes sense!) ..
  #25  
Old 01-28-2005, 12:55 PM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

say ..
Code:
//How many announcements to display
$maxannouce = 3;
  #26  
Old 01-28-2005, 05:32 PM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

Thanks I miss that one..guess that my Alzheimer’s kicking in again.

$maxannouce = 3;
  #27  
Old 02-09-2005, 01:38 AM
trulylowcarb trulylowcarb is offline
Member
 
Join Date: Feb 2005
Posts: 44
Default Re: Forum Announcement(s) on CMPS

THANKS! Easy to install and use. Working great w/ vb 3.06 and CMPS1.01
  #28  
Old 02-12-2005, 11:06 AM
TeamGoFast TeamGoFast is offline
few steps from dangerous
 
Join Date: Nov 2004
Location: Illinois, IL
Posts: 18
Default Re: Forum Announcement(s) on CMPS

nice add on!! thanks for sharing!
  #29  
Old 02-17-2005, 04:23 AM
ricoche ricoche is offline
J-Gals Japan
 
Join Date: Jul 2004
Location: Nagano, Japan
Posts: 17
Default Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by trulylowcarb
THANKS! Easy to install and use. Working great w/ vb 3.06 and CMPS1.01
Wow, I have the same deal and followed the directions above, but the no announcements are pulled from the forums.

Code:
//Forum(s) to pull announcements from
$forumid = 92;

//How many announcements to display
$maxannouce = 1;

//How many characters to display per announcement
$maxchrs = 2000;

//Only change this by reference above
$sqltext = "forumid = $forumid";
Module has been added and the templates too. Everything has been configured, but still no go.

Thanks
  #30  
Old 02-17-2005, 11:46 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: Forum Announcement(s) on CMPS

One change I made was to modify the behaviour for when there are no announcements. The initial design still showed the banner of "Latest Announcement". With this change the block disappears completely if there aren't any current announcements.

At the end of announcements.php change
Code:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_announcements') . '";');
To
Code:
if ($announcebits != '')
{
        eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_announcements') . '";');
}
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
  #31  
Old 02-20-2005, 03:21 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Thumbs up Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by Tom M
One change I made was to modify the behaviour for when there are no announcements. The initial design still showed the banner of "Latest Announcement". With this change the block disappears completely if there aren't any current announcements.
Ah ha! .. the last piece of the puzzle ..

Thanks Tom ..
  #32  
Old 05-07-2005, 10:46 AM
Elleth Faewen Elleth Faewen is offline
Junior Member
 
Join Date: Mar 2005
Posts: 6
Default Re: Forum Announcement(s) on CMPS

I am about to try this. It looks like just what I need.

Quote:
Originally Posted by Viks
Parse error: parse error, unexpected ',' in /hsphere/local/home/vikram/thalforum.com/forums/modules/announements.php on line 23

HHHHHHHHEEEEEEEEELLLLLLLLLP
Viks, Did you ever get the problem fixed? Looking at your code above, it looks like a typo on the filename. There is no letter 'C' in your announcements.php.
__________________
~ Elleth

Baby Talk Zone
Tech Tips TV
  #33  
Old 05-21-2005, 03:47 AM
tarang tarang is offline
GI Team
 
Join Date: Apr 2005
Posts: 19
Default Re: Forum Announcement(s) on CMPS

What about Global Annoucements?
I mean.. what should i put in the forum id to pull from configuration for Global Annoucements?
__________________
Game Downloads
  #34  
Old 08-03-2005, 07:22 AM
gothic1213's Avatar
gothic1213 gothic1213 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: Forum Announcement(s) on CMPS

Quote:
Only one thing I must find out and that is if there is a way to use the WYSIWYG editor with Announcement(s)..
Anything new on this, like this idea.
__________________

Patience is something I learned the hard way!
I drove National Express coaches for 6 years....
  #35  
Old 09-21-2005, 12:18 AM
Mikecp421 Mikecp421 is offline
Member
 
Join Date: Sep 2005
Posts: 44
Default Re: Forum Announcement(s) on CMPS

I installed this, very easy and works great! Thanks it was exactly what I was looking for!
  #36  
Old 10-04-2005, 06:26 PM
klaush klaush is offline
Junior Member
 
Join Date: Oct 2005
Posts: 18
Question Re: Forum Announcement(s) on CMPS

Hello from Germany,

sorry, but i couldn´t get this hack to work with CMPS!

May be i don´t understand how to create modules and/or templates.

So if any of you could specify a detailed information to build this hack i would be glad to see and thanks for your help.

Greetings

Klaus
  #37  
Old 10-08-2005, 09:32 AM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

Has anyone actually gotten this module working in vBadvanced 2.0 and vBulletin 3.5. If so can you either download your module and give instructions on how to install or just use the vBa CMPS download/Upoad feature.
  #38  
Old 10-08-2005, 09:35 AM
Mikecp421 Mikecp421 is offline
Member
 
Join Date: Sep 2005
Posts: 44
Default Re: Forum Announcement(s) on CMPS

if anyone needs help AIM me at mikecp421, I'll do what I can as it was easy for me to install on my forum


edit: FYI I am running this on 3.0.8 and 3.0.9 not 3.5

Last edited by Mikecp421; 10-08-2005 at 01:45 PM.
  #39  
Old 10-09-2005, 04:00 PM
2ams 2ams is offline
Junior Member
 
Join Date: Sep 2005
Posts: 1
Default Re: Forum Announcement(s) on CMPS

Hi I'm a noob to vBulletin, I wanna display this on my front page, Could someone give me a step by step plan on what im doing, I've attempted twice and I've gotten

adv_portal_announcements
adv_portal_announcementbit
adv_portal_announcements
adv_portal_announcementbit

sitting at the top of my page,

vBulletin Version 3.0.7
CMPS v2.0.0 (vB 3.5)
  #40  
Old 04-18-2006, 06:27 AM
sinjix_media sinjix_media is offline
Junior Member
 
Join Date: Apr 2006
Posts: 28
Default Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by Elleth Faewen
I am about to try this. It looks like just what I need.



Viks, Did you ever get the problem fixed? Looking at your code above, it looks like a typo on the filename. There is no letter 'C' in your announcements.php.
I get the same error
What do we fill in here?
// get announcements
$announcebits = '';
$announcements = $DB_site->query("
SELECT
 


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
Adding Dynamic Forum Announcements to VBa CMPS Fibe Troubleshooting / "How do I..." Questions 7 08-15-2005 10:54 PM
CMPS Can't show Forum and Latest Topics on the same page george bray Bugs & Other Issues 3 09-12-2004 02:45 PM
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 12:45 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.