Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
And no help for Gizmo for the late night "how does this sound" conversations :x


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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 thumbsup


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
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]


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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");

Sponsored Links
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
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: laugh


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: May 2001
Posts: 684
Thank you Ian, but I can not post an anouncement?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: May 2001
Posts: 684
I have made all steps in cp2_lib.cgi but there is no new point at the cp...


Webmaster of d-talk & Kabel-Forum.com
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
fixed.

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Thanks!!! thumbsup


Webmaster of d-talk & Kabel-Forum.com
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Ian look here:

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

Whats now wrong? confused


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: May 2001
Posts: 684
You have installed the hit-hack as well, can you tell me what I have to change?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
upload cp2_announcements.pl

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Yes I have uploaded cp2_announcements.pl, everything works fine now, but only the colspan is not correct...


Webmaster of d-talk & Kabel-Forum.com
Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
What can I do with the colspan? help


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: May 2001
Posts: 684
Ian, can you do that for me.... :rolleyes:


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: May 2001
Posts: 684
Yes I remember, but do you remember what I answered him? wink

Ok, than I can not use that hack.... sleep


Webmaster of d-talk & Kabel-Forum.com
Joined: Aug 2000
Posts: 178
Member
Member
Offline
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 smile

Thanks!

hehe

But, when I create a announcement its generating a Blank one as well?
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Nevermind i figured that out .. I had copied the last returner .= and included the
Joined: Aug 2000
Posts: 178
Member
Member
Offline
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 smile

Joined: Aug 2000
Posts: 178
Member
Member
Offline
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
Offline
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
Offline
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
Offline
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...


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
updated

Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
thumbsup 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
Offline
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
Offline
Joined: Oct 2001
Posts: 15
Thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)