Previous Thread
Next Thread
Print Thread
Rate Thread
#311665 10/11/2006 3:43 AM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
Well, I've noticed a few people holding off upgrading to UBB.T7 due to a couple of mod's not being out, so I decided to tackle one myself...

Please note that I am no way saying that I know MySQL remotely well, and I'm not a PHP expert either... This script has 0 caching, and could verywell b0g your server, but hey, thats not why we're here now is it wink...

Name: UBB.News
Version: 0.1
Release Date: 10.11.2006
Install Instructions:
Extract the zip and edit the inc.ubb_news.php file to reflect your settings. I've gone ahead and added the ability to specify the ammount of news stories you want to see as well as the forum you're relaying from via the URL you're loading the file from.

I recommend using a php include (well any type of include) to call the file from the web, I do not recommend calling it from your scripts via the file directly.

This file can have a potential for abuse, one thing I know can be done is it accessing private forums, so I wouldn't recommend allowing public access to it.

I don't doubt that the script can be streamlined and I will no doubt get flogged by Dave and Rick due to several db hits and no caching, but hey, I did do this for fun afterall wink...

Using: Simply call the script from your browser as http://www.yoursite.tld/inc.news.php?f=targetforum&s=ammounttodisplay
Attachments
2274-inc.news.zip (1.59 KB, 84 downloads)


UBBDev - 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
Sponsored Links
Gizmo #311680 10/11/2006 11:15 PM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
With some pointers from a friend I will be compressing the query down to one query vs the 3 (topic, user, and post); I'll be working on this later tonight and should have it done by the weekend...

I've already made several updates to the script, but all in all I'm satisfied with it for my v0.1 lol...

Also, I neglected to mention that you can just access the script through http://www.yoursite.tld/inc.news.php so long as you have set a default forum and a default value for max entries. You can also set it so people cannot specify a forum or the max ammount of stories...

A future version may allow for specifying a check for the max stories should it be of interest... It'd be a pain to have a user pull 5k posts afterall...


UBBDev - 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
Gizmo #311702 10/12/2006 6:49 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Cool, are you running this anywhere gizzy for an example?


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
no real example


UBBDev - 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
Gizmo #311704 10/12/2006 9:17 PM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20


UBBDev - 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
Sponsored Links
Gizmo #311706 10/12/2006 10:05 PM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
The dev version will be one db hit vs 3, but I'm having some issues dealing with it right now, like I said it'll probably be the weekend before I get that far lol


UBBDev - 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
Gizmo #312044 11/18/2006 4:30 AM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Does this work with caching?


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
Absolutely 0 caching is done through this, as i haven't decided the best way to go about it; the data is pulled from the db on page load (as you can see from the code).


UBBDev - 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
Gizmo #312064 11/21/2006 6:18 PM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
For note, Ian's working on a modification (versus my addon) which will support both user permissions and utilizes the cache; it looks very promising (ofcoarse i'd say that since it's using my html lol)...

It'll work much the same way as my addon for calling the news; only i've asked him to set it up to do headlines as well (so installing it twice to achieve a headline and a story in the same place won't be needed).


UBBDev - 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
Gizmo #312277 12/16/2006 5:25 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Heya Gizzy~

What's your progress on this? It was one of my favorite mods for Classic. thumbsup

Sue
adwoff.com

Sponsored Links
ADWOFF #312281 12/17/2006 12:07 AM
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
umm, it works? lol... I stopped development on it with the copy i'm runnign on my site; Ian's coming up wiht a better version that follows permissions and the like.


UBBDev - 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

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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 536
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
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)
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 20260108)