|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
And no help for Gizmo for the late night "how does this sound" conversations :x
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Great work Ian 
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hello, is there anything I have to change look at my cp, there is no Forum I can choose from... ![[Linked Image]](http://www.d-talk.tv/cp1.jpg)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Make sure you did this step. -------------- In cp2_lib.cgi -------------- Find: -------
$def->{options} = @selectlist;
------- Replace with: -------
$def->{options} = @selectlist if("$file-_-$name" ne "vars_misc-_-default_announcement_forum");
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
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: 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Looked at the file, you hadn't done that step. I did that step, and it works.
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Thank you Ian, but I can not post an anouncement?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Do all the steps in cp2_lib.cgi
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
I have made all steps in cp2_lib.cgi but there is no new point at the cp...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Thanks!!! 
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Ian look here: http://www.d-talk.tv/cgi-bin/ultimatebb.cgi?ubb=forum;f=46 Whats now wrong? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
The colspan is now off due to you having the hit hack installed. that's what's wrong
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
You have installed the hit-hack as well, can you tell me what I have to change?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
upload cp2_announcements.pl
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Yes I have uploaded cp2_announcements.pl, everything works fine now, but only the colspan is not correct...
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
What can I do with the colspan? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
add a column in MakeThatAnnouncementStrip where the hits cell would be, and put in N/A
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Ian, can you do that for me.... :rolleyes:
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
no, and do you remember what Charles said about that smiley?
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Yes I remember, but do you remember what I answered him? Ok, than I can not use that hack.... 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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 Thanks!
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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?
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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 ?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
also added some code so you can hide announcements in the announcement forum
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
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...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
 Thanks Ian! Can you list the files needed to be updated? Or is it listed in the new download? Thanks!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ubb_forum.cgi and public_forum_page.pl
|
|
|
|
Joined: Oct 2001
Posts: 15
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 15 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|