![]() |
|
|
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
In announcements.php find the line that begins: Code:
$forumid = Code:
if ($bbuserinfo[usergroupid]==XX)
{
$forumid = "XX";
}
elseif ($bbuserinfo[usergroupid]==XX)
{
$forumid = XX;
}
Code:
elseif ($bbuserinfo[usergroupid]==XX)
{
$forumid = XX;
}
|
|
#4
|
|||
|
|||
|
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
|
|||
|
|||
|
Get it working like this
PHP Code:
|
|
#6
|
|||
|
|||
|
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
|
|||
|
|||
|
Great job, Shon - this is the very thing I've been waiting for!
|
|
#8
|
|||
|
|||
|
Quote:
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
|
|||
|
|||
|
anyone who cud help here...
|
|
#10
|
|||
|
|||
|
Parse error: parse error, unexpected ',' in /hsphere/local/home/vikram/thalforum.com/forums/modules/announements.php on line 23
HHHHHHHHEEEEEEEEELLLLLLLLLP |
|
#11
|
|||
|
|||
|
Quote:
|
|
#12
|
|||
|
|||
|
I am about to try this. It looks like just what I need.
Quote:
|
|
#13
|
|||
|
|||
|
Quote:
What do we fill in here? // get announcements $announcebits = ''; $announcements = $DB_site->query(" SELECT |
|
#14
|
|||
|
|||
|
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; Code:
//------------------------------------------------------------------------ // end configuration - no other changes necessary //------------------------------------------------------------------------ |
|
#15
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
![]() 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
|
|||
|
|||
|
No one able to fix this problem with this module?
|
|
#18
|
|||
|
|||
|
I was waiting for a response but don't know if it can be fixed or not?
|
|
#19
|
|||
|
|||
|
Still waiting .. I can't believe no one else is having this issue with this module ..
|
|
#20
|
|||
|
|||
|
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 | |
|
|
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 |