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
  #1  
Old 09-19-2004, 06:13 PM
Shon Shon is offline
Senior Member
 
Join Date: Mar 2004
Posts: 135
Default Forum Announcement(s) on CMPS

This adds the latest announcement(s) to vBadvanced CMPS from a specific or multiple forums.

You will need to edit $sqltext within announcements.php depending on how you want to use it. Read note inside of file for more information.

BB Code, Smilies, and HTML are parsed per announcement settings.

Follow instructions in text file
Attached Images
File Type: jpg announcement.jpg (9.7 KB, 1160 views)
Attached Files
File Type: php announements.php (3.2 KB, 405 views)
File Type: txt announce_instructions.txt (2.8 KB, 456 views)
  #2  
Old 09-19-2004, 10:07 PM
pdatotaal pdatotaal is offline
Rollercoaster junkie
 
Join Date: Jan 2004
Location: Holland (temp Canada)
Posts: 78
Default Re: Forum Announcement(s) on CMPS

Super big thanks Shon !! You are my hero now! So far it works but have something that you maby can help.
If I go to ..adv_index.php?page=psion the $forumid must be = 63
If I go to adv_index.php?page=Pocketpc the $forumid must be = 70
and more.. How can I make that in the announements.php?
  #3  
Old 09-19-2004, 10:32 PM
Shon Shon is offline
Senior Member
 
Join Date: Mar 2004
Posts: 135
Default Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by pdatotaal
Super big thanks Shon !! You are my hero now! So far it works but have something that you maby can help.
If I go to ..adv_index.php?page=psion the $forumid must be = 63
If I go to adv_index.php?page=Pocketpc the $forumid must be = 70
and more.. How can I make that in the announements.php?
Right off hand, I'm not sure about each page... if it's not added in the next version or if there is a big demand for it, I may try to add it on to the admin cp options... but I think you said one time that each usergroup would see a different announcement or something. So if that is the case, you could do the following:

In announcements.php find the line that begins:
Code:
$forumid =
and replace with:
Code:
if ($bbuserinfo[usergroupid]==XX)
{
		$forumid = "XX";
}
elseif ($bbuserinfo[usergroupid]==XX)
{
		$forumid = XX;
}
Repeat this directly after for as many usergroups as you would like.
Code:
elseif ($bbuserinfo[usergroupid]==XX)
{
		$forumid = XX;
}
But other than that right now... I'm not really sure about. I'm only showing announcements on one page with announcements per usergroup. So I didn't really get deep in it ;x
  #4  
Old 09-19-2004, 10:41 PM
pdatotaal pdatotaal is offline
Rollercoaster junkie
 
Join Date: Jan 2004
Location: Holland (temp Canada)
Posts: 78
Default Re: Forum Announcement(s) on CMPS

Ok I understand, I will try something. I just wonder how you can look wat ?page= is. Maybe Brian knows;-)
Thanks for the help so far.. I am really happy. Now I can do something.. Only one thing I must find out and that is if there is a way to use the WYSIWYG editor with Announcement(s)..
  #5  
Old 09-24-2004, 08:38 PM
pdatotaal pdatotaal is offline
Rollercoaster junkie
 
Join Date: Jan 2004
Location: Holland (temp Canada)
Posts: 78
Talking Re: Forum Announcement(s) on CMPS

Get it working like this
PHP Code:
 if ($getpage==psion)
 {
    
$forumid 63;
 }
 elseif (
$getpage==pocket)
 {
        
$forumid 39;

But is there a way to put $forumid = # in a template?
  #6  
Old 09-25-2004, 10:14 AM
Shon Shon is offline
Senior Member
 
Join Date: Mar 2004
Posts: 135
Default Re: Forum Announcement(s) on CMPS

I don't think so

If there were more people interested in this, I would probably try to put it in with the CMPS settings per page... but it seems like you're the only one interested ;x
  #7  
Old 10-06-2004, 10:14 AM
Fargo Fargo is offline
Member
 
Join Date: Jul 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

Great job, Shon - this is the very thing I've been waiting for!
  #8  
Old 10-12-2004, 10:25 PM
Viks Viks is offline
Member
 
Join Date: Oct 2004
Posts: 54
Default Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by Shon
This adds the latest announcement(s) to vBadvanced CMPS from a specific or multiple forums.

You will need to edit $sqltext within announcements.php depending on how you want to use it. Read note inside of file for more information.
Hi there, cud someone kindly explain what exactly i need to configure in the
the following code. I have 3 parent forums with 2-3 sub forum for each parent.

thanks
======

//In order to display announcements from different forums
//You will need to change $sqltext to the following...

//Multiple Forums ($forumid = "1,2,3"
//$sqltext = "forumid IN($forumid)";

//Single Forum - not including parent forums ($forumid = 1
//$sqltext = "forumid = $forumid";

//Single Forum - including parent forums ($forumid = 1
//$sqltext = fetch_forum_clause_sql($forumid, 'forumid');

//------------------------------------------------------------------------
// begin configuration
//------------------------------------------------------------------------
  #9  
Old 10-17-2004, 01:09 AM
Viks Viks is offline
Member
 
Join Date: Oct 2004
Posts: 54
Default Re: Forum Announcement(s) on CMPS

anyone who cud help here...
  #10  
Old 11-07-2004, 11:16 PM
Viks Viks is offline
Member
 
Join Date: Oct 2004
Posts: 54
Default Re: Forum Announcement(s) on CMPS

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

HHHHHHHHEEEEEEEEELLLLLLLLLP
  #11  
Old 01-28-2005, 11:01 AM
Viks Viks is offline
Member
 
Join Date: Oct 2004
Posts: 54
Default Re: Forum Announcement(s) on CMPS

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
I am ... no help yet!
  #12  
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
  #13  
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
  #14  
Old 01-14-2005, 11:22 PM
Spydey Spydey is offline
Junior Member
 
Join Date: Mar 2004
Posts: 8
Default Re: Forum Announcement(s) on CMPS

Did you ever figure it out?

I just implemented the code - I really like - nice and simple...

It would be great if this was integrated more with AdminCP to make forum changes and choices - but that's way over my head...

BTW - the error is something in this line in the php file:
Code:
//Forum(s) to pull announcements from
$forumid = 1;
Post your php code down to:
Code:
//------------------------------------------------------------------------
// end configuration - no other changes necessary
//------------------------------------------------------------------------
I know this was 2 months ago - but you never know if you still need help...
  #15  
Old 01-15-2005, 04:00 PM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

Currently I have the Annoucement working on the CMPS page by setting up in the forums CP under Annoucements and placing under one forums catagory. My question is how can you put the annoucement in every forums catagory and still be able to refrence the CMPS annoucment to open up and view it completley if you so desire? Basicly if I just make it Global and not assign any one forum but choose to put in All Forums it will show up on the CMPS page but not refrence back to any one catagory or allow you to click on it without displaying a error. Does this make sense?

So how would I solve this issue.
  #16  
Old 01-17-2005, 04:05 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

Quote:
Originally Posted by dleblanc
Currently I have the Annoucement working on the CMPS page by setting up in the forums CP under Annoucements and placing under one forums catagory. My question is how can you put the annoucement in every forums catagory and still be able to refrence the CMPS annoucment to open up and view it completley if you so desire? Basicly if I just make it Global and not assign any one forum but choose to put in All Forums it will show up on the CMPS page but not refrence back to any one catagory or allow you to click on it without displaying a error. Does this make sense?

So how would I solve this issue.
Yeah .. I've just noticed this too

Any help to get this fixed would be great ..

I'm also after a way of getting different announcements on different pages btw .. so if someone comes up with a way of getting that to work please let us all know ..

Thanks
  #17  
Old 01-23-2005, 07:59 PM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

No one able to fix this problem with this module?
  #18  
Old 01-23-2005, 08:42 PM
dleblanc dleblanc is offline
CajunLe
 
Join Date: Dec 2004
Posts: 46
Default Re: Forum Announcement(s) on CMPS

I was waiting for a response but don't know if it can be fixed or not?
  #19  
Old 01-28-2005, 10:53 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

Still waiting .. I can't believe no one else is having this issue with this module ..
  #20  
Old 01-28-2005, 11:04 AM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: Forum Announcement(s) on CMPS

I'm afraid that's not the problem I'm having Viks ..

Looking at the error you're having I would go back and look at the code you inserted .. seems like there's an extra comma somewhere where it shouldn't be ..
 


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:03 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.