php forum
php mysql forum
php mysql smarty
 
Topic Options
#311665 - 10/11/06 03:43 AM [7.0] [Beta] UBB.News
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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 (83 downloads)

_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311680 - 10/11/06 11:15 PM Re: [7.0] UBB.News [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311702 - 10/12/06 06:49 PM Re: [7.0] UBB.News [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Cool, are you running this anywhere gizzy for an example?
_________________________
- Allen wavey
- What Drives You?

Top
#311703 - 10/12/06 09:14 PM Re: [7.0] UBB.News [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
no real example
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311704 - 10/12/06 09:17 PM Re: [7.0] UBB.News [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#311706 - 10/12/06 10:05 PM Re: [7.0] UBB.News [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312044 - 11/18/06 03:30 AM Re: [7.0] UBB.News [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Does this work with caching?
_________________________
- Allen wavey
- What Drives You?

Top
#312046 - 11/18/06 05:49 AM Re: [7.0] UBB.News [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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).
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312064 - 11/21/06 05:18 PM Re: [7.0] UBB.News [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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).
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312277 - 12/16/06 04:25 PM Re: [7.0] UBB.News [Re: Gizmo]
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Heya Gizzy~

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

Sue
adwoff.com

Top
#312281 - 12/16/06 11:07 PM Re: [7.0] UBB.News [Re: ADWOFF]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
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.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Moderator:  sirdude 
Latest Posts
Shout Box

(Views)Popular Topics
Known public proxy servers 1636135
Integrated Index Page (IIP) 5.3.1 528187
Finished-[6.5.2] Games Arcade Deluxe v1.9 486016
Integrated Index Page (IIP) 5.1.1 401388
TLD Bv2.1 Released - Threads Links Directory 382774
[6.0x] Who's Online 4.0.0 [Finished] 374847
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 318709
Q & A 264276
[6.3.x] [beta] Hit Hack 2.0 225221
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 202973
Forum Stats
13620 Members
59 Forums
37189 Topics
295701 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks