UBB.Dev
Posted By: Ian Spence [6.7] [beta] UBB.Announcements - 06/06/2004 4:53 AM
Modification Name: UBB.Announcements

Author(s): Ian Spence

Description: Allows you to add announcements, which are similar to sticky threads, but appear in all forums

Demo: http://www.alforadmin.com

Requirements: UBB.classic 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00020028/Announcements6.7.zip

Credits: Burak, CTM, LK, Charles Capps, and Allen for help with code and makeup

upload all images to noncgi directory, upload ubb_announcements.cgi to the cgi dir, and CHMOD to 755.

Upload cp2_announcements.pl to the templates folder
Posted By: Gizmo Re: [6.7] [beta] UBB.Announcements - 06/06/2004 9:05 AM
And no help for Gizmo for the late night "how does this sound" conversations :x
Posted By: AllenAyres Re: [6.7] [beta] UBB.Announcements - 06/06/2004 9:17 AM
Great work Ian thumbsup
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 1:17 PM
Hello,

is there anything I have to change look at my cp, there is no Forum I can choose from...

[Linked Image]
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 2:31 PM
Make sure you did this step.

Code
--------------
In cp2_lib.cgi
--------------
Find:
-------

$def->{options} = @selectlist;

-------
Replace with:
-------

$def->{options} = @selectlist if("$file-_-$name" ne "vars_misc-_-default_announcement_forum");
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 3:45 PM
Hi Ian,

I have it done, but nothing have changed, can you have a look at my files you have the ftp datas from the last hack problem... :rolleyes: laugh
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 3:59 PM
Looked at the file, you hadn't done that step. I did that step, and it works.
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 4:10 PM
Thank you Ian, but I can not post an anouncement?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 4:12 PM
Do all the steps in cp2_lib.cgi
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 4:51 PM
I have made all steps in cp2_lib.cgi but there is no new point at the cp...
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 5:56 PM
fixed.
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:17 PM
Thanks!!! thumbsup
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:29 PM
Ian look here:

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi?ubb=forum;f=46

Whats now wrong? confused
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:39 PM
The colspan is now off due to you having the hit hack installed. that's what's wrong
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:43 PM
You have installed the hit-hack as well, can you tell me what I have to change?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:46 PM
upload cp2_announcements.pl
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 6:57 PM
Yes I have uploaded cp2_announcements.pl, everything works fine now, but only the colspan is not correct...
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 10:14 PM
What can I do with the colspan? help
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/06/2004 11:23 PM
add a column in MakeThatAnnouncementStrip where the hits cell would be, and put in N/A
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/06/2004 11:45 PM
Ian, can you do that for me.... :rolleyes:
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/07/2004 12:29 AM
no, and do you remember what Charles said about that smiley?
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/07/2004 9:22 AM
Yes I remember, but do you remember what I answered him? wink

Ok, than I can not use that hack.... sleep
Posted By: Painfool Re: [6.7] [beta] UBB.Announcements - 06/08/2004 6:16 PM
I'm kinda confused and with the same problem Ian. Can I just add straight HTML code for the additional column or do I gotta do a qq~ thing ?

Tried adding another copy of a returner .= line with just -- in the cell and it broke into lil pieces smile

Thanks!
Posted By: Painfool Re: [6.7] [beta] UBB.Announcements - 06/08/2004 6:27 PM
Nevermind i figured that out .. I had copied the last returner .= and included the hehe

But, when I create a announcement its generating a Blank one as well?
Posted By: Painfool Re: [6.7] [beta] UBB.Announcements - 06/08/2004 6:30 PM
Ok .. one more thing ... how about a way for it to NOT show the announcement in the actual Announcement Forum ? Looks odd .. at least with only one announcement smile
Posted By: Painfool Re: [6.7] [beta] UBB.Announcements - 06/08/2004 6:33 PM
Ok .. just ONE more thing. When I click on the actual Title/Subject of the Announcment it seems to ignore the Style I selected. Its ok in the Actual Announcement Forum and when I click the Discuss HERE .. but not when clicking the title itself ?
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/09/2004 10:26 PM
Updated with the following enhancements/bugfixes.

If you refer to line 17 of ubb_announcements.cgi, you can have the announcements page use the same colorscheme as the announcements forum.

When adding your first announcement, you should no longer get a blank announcement in addition to yours. You can safely delete the blank announcement.

Added code in public_forum_page.pl to allow for a fix to the colspan issue created by the hit hack.
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/09/2004 10:30 PM
also added some code so you can hide announcements in the announcement forum
Posted By: d-talk Re: [6.7] [beta] UBB.Announcements - 06/09/2004 11:19 PM
Hi Ian,

Thanks for helping us who use the hit-hack, but look here:

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi?ubb=forum;f=46

Now the Headers of the columns are not correct...
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/09/2004 11:41 PM
updated
Posted By: Painfool Re: [6.7] [beta] UBB.Announcements - 06/10/2004 12:16 AM
thumbsup Thanks Ian!

Can you list the files needed to be updated? Or is it listed in the new download?

Thanks!
Posted By: Ian Spence Re: [6.7] [beta] UBB.Announcements - 06/10/2004 1:12 AM
ubb_forum.cgi and public_forum_page.pl
Posted By: shamshoom Re: [6.7] [beta] UBB.Announcements - 08/01/2004 6:39 AM
Thanks!
© UBB.Developers