Previous Thread
Next Thread
Print Thread
Rate Thread
#231735 01/04/2003 4:44 PM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
[:"red"]
Mod Name / Version: TopNews Hack 1.0.1

Description: An easy way to place a short urgent new on top of the board.

Author(s): Carl Erling (caymuc)

Originally By:

Date: 4/Jan/03

Updates: 5/Jan/03,

Working under: UBB.threads 6.2

Any pre-requisites: none.

Files Altered: ubbt.inc.php, /admin/menu.php

Database Altered: No.

New Files: one empty file for the included-folder

Special Notes: Quick and dirty hack to display an urgent warning or news on top of the board. Something everybody will notice right away. Ment only for news with one short text-string. Text can be put in from the ADMIN menu just like the header include. - Yes also good for "Happy new Year!" displays <img src="/threads/php/images/graemlins/smile.gif" alt="" />

Is there a better place for the news?
Maybe where the birthdaygreeting goes?

[/]

----------------------------------------------------
Here's the HACK:


1.
In ADMIN / MENU.PHP, look for

<b>Includes</b>
</td></tr>
<tr><td valign=top class=lighttable>

and add right underneath:

<!-- TopNews Hack 1.0 -->
<a href="{$config['phpurl']}/admin/editincludes.php?Cat=$Cat&include=topnews" target="mainFrame">
Edit Topnews-Line
</a>
<br>
<!-- TopNews Hack end -->



2.
Put a new empty file in your includes folder.
Name it:
"topnews.php"




In UBBT.INC.PHP, find

// ----------------------------------------------------
// If they have private messages we give the PM flasher
// as long as they didn't just log out


and add ABOVE it:

// TopNews-Hack 1.0 by Carl Erling (caymuc)
// ----------------------------
// require the topnews.php include file
if (!$debug) {
echo "<div align="center"><table width="90%" border="0" cellspacing="0" cellpadding="2"><tr><td align="center" valign="middle">";
@include "$thispath/includes/topnews.php";
echo "</td></tr></table></div>";
}
// TopNews-Hack end


That's it. Hope you like it.

Last edited by JoshPet; 07/23/2003 10:22 PM.
Sponsored Links
Entire Thread
Subject Posted By Posted
TopNews Hack 1.0 caymuc 01/04/2003 11:44 PM
Re: TopNews Hack 1.0 Mudpuppy 02/17/2003 12:41 AM
Re: TopNews Hack 1.0 jluerken 02/17/2003 1:11 AM
Re: TopNews Hack 1.0 Mudpuppy 02/17/2003 1:49 AM
Re: TopNews Hack 1.0 AllenAyres 02/17/2003 5:38 AM
Re: TopNews Hack 1.0 Mudpuppy 02/17/2003 5:46 AM
Re: TopNews Hack 1.0 AllenAyres 02/17/2003 6:52 AM
Re: TopNews Hack 1.0 caymuc 02/19/2003 2:35 AM
Re: TopNews Hack 1.0 JoshPet 02/25/2003 9:44 AM

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4219
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 27
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)