View Full Version : [Module] Announcements
Tom M
12-07-2005, 04:46 PM
Here's a module that's based on the version that goes back to CMPS 1.0 and vb 3.0.x.
To make things simple all of the configuration settings are now controlled via the module ACP (see the screen shot).
Configuration
Announcements from 1 or more specific forums may be selected as well as whether or not global announcements should be included. To display only global announcement do not select any forums.
It is also possible to control the number of announcements that should be included as well as how much of the announcement is shown prior to being truncated and '...' is displayed.
Revisions
1/4/2006
Updated template to work properly in the left/center/right columns by moving the date accordingly.
PS - If you like this module and would like to make a donation you can do so via PayPal on my site (http://www.babblers.org/index.php?pg=sponsors).
Sooner95
12-08-2005, 10:24 PM
ok, i'm lost here.
I uploaded this, at first I got this indetifier error. Not sure why..
I put in a 1, and hit save, said it installed. But now i have nothing in the admincp like your screenshot and it doesn tshow up at all on my cmps.
Any ideas?
Tom M
12-08-2005, 10:30 PM
Which version of CMPS and vb are you on?
Even though you don't have the options listed did it create the CMPS Announcements module?
Sooner95
12-08-2005, 10:34 PM
Ok, i found the annoucement options, in the default settings. have to show mods. (i'm still new to this)
I editted it and put in a test accouncement, but still not showing up on my cmps.
Sooner95
12-08-2005, 10:36 PM
Yes, it did create the module for it. and the template.
Just checked my page to make sure it was enabled. Still not showing up
Sooner95
12-08-2005, 10:45 PM
oh, cmps 2.0 vb 3.5
Tom M
12-08-2005, 10:46 PM
If it created the module then try to edit it and see if the options are listed at the bottom of the page. If not, you might delete things and try again.
Do you have any announcements to display (i.e do they show up when viewing the forums?)?
Do you have anything else installed?
Do you know what the error message was exactly?
Sooner95
12-08-2005, 10:54 PM
i'll do that, and get back to you.
Sooner95
12-08-2005, 11:08 PM
ok well, I feel like a dumbass.
All it was, my test annoucement i had set was dated Dec 9th. well here on the east coast its still the 8th..I feel like such an ass, sorry to waste your time.
it works just fine, thx for the cool mod.
Tom M
12-08-2005, 11:45 PM
No problem. I've banged my head against a few walls in the past while trying to get stuff working and will probably do so in the future. :eek:
Glad it's working for you now.
crash resistant
12-10-2005, 12:16 PM
GAH!
Bloody *insert many cuss words here*
I reinstalled for the 50th time and it WORKS FOR NO REASON.
it works now. but Im so unsatisfied.
djnth
12-21-2005, 05:56 AM
does this do something you can't already do with CMPS 2.0? I don't really understand what this does.
Tom M
12-21-2005, 11:52 AM
does this do something you can't already do with CMPS 2.0? I don't really understand what this does.Not quite sure what you're asking here. It adds a module that will display vb announcements on your CMPS page.
echarcha
12-27-2005, 09:32 PM
I have tried everything... I have vba2.0 and vbulletin 3.5.2 and this does not work!! Does not show up on my main page www.echarcha.com
Tom M
12-27-2005, 10:45 PM
I have tried everything... I have vba2.0 and vbulletin 3.5.2 and this does not work!! Does not show up on my main page www.echarcha.comAre you saying that you do see announcements on your forum pages but not on the CMPS page? I just visited your site and didn't see anything on the forums. Is it necessary to be registered or should a guest be able to see announcements too?
GrrrlRomeo
12-31-2005, 08:00 PM
Just a heads up, when I tried to install this module, it appears that the module identifier is blank. The error was Duplicate Module Identifier and said something along the lines of an "identifier '' already exists". I just put anything in and it worked though I wasn't sure what I was supposed to put in. I thought identifiers were for pages?
And...it is a bit messed up looking in Firefox...the title is smack dab on top of the date...like they overlap.
Tom M
12-31-2005, 08:53 PM
Just a heads up, when I tried to install this module, it appears that the module identifier is blank. The error was Duplicate Module Identifier and said something along the lines of an "identifier '' already exists". I just put anything in and it worked though I wasn't sure what I was supposed to put in. I thought identifiers were for pages?I'm not sure how that happened as it needed an identifier to create the module initially. I did notice that though when I imported it to my live db as well.
And...it is a bit messed up looking in Firefox...the title is smack dab on top of the date...like they overlap.Hmmm, I tested with both FF 1.0.7 and IE and it seemed OK. If you have a link I'd like to check it out.
GrrrlRomeo
01-01-2006, 03:18 AM
Tom: Regarding Firefox, it was kinda my bad. :) I see now this was intended to be a center column module, and I had put it in the right column. There wasn't enough room for the title and date to float without overlapping in the right column. I just customized the template to make it work for the right column.
Tom M
01-05-2006, 01:55 AM
A new version has been uploaded to the first post with a revised template that automatically adjusts depending on whether or not it's in the center column or one of the side columns.
gatorsfootball
01-05-2006, 06:39 PM
I installed ...no problem, but the link shows "Invalid Forum specified. If you followed a valid link, please notify the administrator"
http://www.the-armory.net/
Tom M
01-05-2006, 07:19 PM
I installed ...no problem, but the link shows "Invalid Forum specified. If you followed a valid link, please notify the administrator"
http://www.the-armory.net/Oops. Change the adv_portal_announcement template to point to a forumid that you actually have as it's presently hardcoded to 'f=1'. That should take care of it for you until I fix it in a future release.
Im missing something? What do you do exactly to install this?
Tom M
01-06-2006, 01:02 AM
Im missing something? What do you do exactly to install this?To install this download the module in the first post and then go to ACP -> vBa CMPS -> Download / Upload Module and point it to the file you just downloaded.
Thank you very much Tom :).
Ill jsut poke around ACP when i get the chance to see how to work it, if i fail you shall see me again for assistance, or just good feedback :D.
Cant seem to get it to work. I chose show only global announcements, I made a test global announcement, and nothing shows on the front page.
Tom M
01-07-2006, 02:47 PM
Cant seem to get it to work. I chose show only global announcements, I made a test global announcement, and nothing shows on the front page.Does it show in the forum? One of the biggest complaints I have on how announcements work is that the dates tend to be 'off' depending on the TZ you're in. Make sure the date range overlaps the current date by at least 1 or 2 days.
I tried every setting possible. It shows on the forum but not on the main page.
Tom M
01-07-2006, 05:48 PM
I tried every setting possible. It shows on the forum but not on the main page.I know it's obvious but did you make sure the module was set to 'Active'? Do you have a link?
haha Yes sir i made sure the module was active. Still cant get anything to work.
A link to my forums/website?
I was also looking at something. It says to include the file "announcements.php" - On my FTP I dont have any announcements.php but I do have Announcement.php - could that make a difference? This "Announcement.php" file is the file that comes with vBulletin Im assuming to handle the announcements that are posted and etc. Should I deselect "Include file < filename > "?
Tom M
01-07-2006, 08:18 PM
When you installed the module the file announcements.php should have automatically been placed in your CMPS modules directory. That filename should appear in the "File to Include" dropdown located in the PHP File Module Options section of the module definition.
Mikecp421
01-10-2006, 04:08 PM
I have the same issue, I installed it and made a global announcement and it does not show, Everrything shows in the customizable area but I cant make it show up, there is something missing here.
Tom M
01-10-2006, 05:28 PM
I have the same issue, I installed it and made a global announcement and it does not show, Everrything shows in the customizable area but I cant make it show up, there is something missing here.If it doesn't show up and the announcement does show up on FORUMHOME then something needs to be set up. One of several things could be wrong, including;
1. The module isn't marked as 'Active'.
2. It hasn't been selected to show on the page.
3. The date on the announcement isn't 'current'.
4. It hasn't been set to display Global announcements.
5. The forum the announcement is tied to hasn't been selected.
If you provide a link I'll be happy to take a look. Please provide any registration info that may be required to see the forums.
Mikecp421
01-10-2006, 05:38 PM
I have it marked as active
I selected it to show on the page
The date is set for 2 days prior and one month after today
the global announcement is checked yes
I dont know what you mean by the last one, it is a global announcement
My site I refer to is www.hitechell.com and use;
UN: test
PW: test01
Tom M
01-10-2006, 05:53 PM
I logged in but don't see an announcement on the FORUMHOME page either.
The first thing to do is to make sure the announcement shows up there and then proceed with getting it to work in vBa.
Mikecp421
01-10-2006, 05:59 PM
hmmm, I must be missing a setting, I have done this before and it worked, not your particular mod but another.
EDIT--FYI I just added a top posters module to the left side with no problems, something is missing from the settings.
echarcha
01-26-2006, 06:29 PM
I have tried everything... I have vba2.0 and vbulletin 3.5.2 and this does not work!! Does not show up on my main page www.echarcha.com
This time it worked like a charm :up:
Thanks for a good module. I guess with vb3.5.3 and vb2.0 and your updated file, all worked out well :)
Mikecp421
01-28-2006, 10:19 AM
this announcement causes my portal to not work.
Tom M
01-28-2006, 10:42 AM
this announcement causes my portal to not work.In what way? Addditional detail beyond a minimal description of "it breaks things" would be most helpful :rolleyes:
Mikecp421
01-28-2006, 04:38 PM
numerous error messages, I didn't record them but they were script errors pertaining to other php files, until I removed this php file, then everything was fine. relax :D
Tom M
01-28-2006, 05:52 PM
numerous error messages, I didn't record them but they were script errors pertaining to other php files, until I removed this php file, then everything was fine. relax :DI'm plenty relaxed. Just curious as to why you're getting the errors when others don't seem to be having any significant problems. My offer of assistance still stands, but if you're going in another direction that's fine too.
Mikecp421
01-28-2006, 06:32 PM
well I would like it to work but I can't tell you anymore, would you like me to reinstall it and paste the errors here?
Tom M
01-28-2006, 06:37 PM
well I would like it to work but I can't tell you anymore, would you like me to reinstall it and paste the errors here?Sure thing. Either post the errors here or PM me with the info.
Mikecp421
01-28-2006, 06:37 PM
ok I reinstalled it and these are the errors
Warning: main(./modules/announcements.module): failed to open stream: No such file or directory in /includes/vba_cmps_include_bottom.php on line 358
Warning: main(./modules/announcements.module): failed to open stream: No such file or directory in /includes/vba_cmps_include_bottom.php on line 358
Fatal error: main(): Failed opening required './modules/announcements.module' (include_path='.:/usr/local/php4') in /www/m/meogeecom/htdocs/includes/vba_cmps_include_bottom.php on line 358
Am I supposed to rename the file to .php from .module? I assumed so
Mikecp421
01-28-2006, 06:39 PM
wyhen I dont change the extension, I get nothing just a blank page for the portal
Tom M
01-28-2006, 06:48 PM
Am I supposed to rename the file to .php from .module? I assumed soDo you get these errors after installing the module using the CMPS Upload Module and configuring the setiings?
The file should be left as a .php file. If it doesn't display anything it means that there aren't any announcments that meet the display criteria. Does an announcment display in the Forumhome page?
If you create a new annoncement using the default dates it won't display because the start date will be 'wrong' by default so make sure the date overlaps the current date.
Mikecp421
01-28-2006, 07:06 PM
oh I didnt upload it that way, I dropped the announcement file in my ftp and made the module, lemme try it that way
Mikecp421
01-28-2006, 07:10 PM
ok it works, that was the problem I didn't upload it through the program. Thanks man!
Tom M
01-28-2006, 07:11 PM
ok it works, that was the problem I didn't upload it through the program. Thanks man!Sometimes it's the simple things :D
Mikecp421
01-28-2006, 07:25 PM
dude seriously, I didn't even realize you could upload this stuff like that. I haven't had one module like that
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.