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

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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: 25516
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 Online   shocked

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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

Wizard

Registered: 01/10/00
Posts: 5176
Loc: Portland, OR, USA
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

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

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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: 25516
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 Online   shocked

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

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 Online   shocked

Wizard

Registered: 01/10/00
Posts: 5176
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 Owner

Top


Moderator:  sirdude 
Who's Online
1 registered (StanCA), 22 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
[7.x] UBB Sitemaps
by Gizmo
06/30/09 03:38 PM
Forced User Group Image tags
by Ruben Rocha
06/15/09 03:41 PM
Ads Between Forums/Categories
by bradmagic
06/10/09 12:31 PM
[7.2.2] DokuWiki authenticating against UBB.t
by Myke
06/08/09 08:57 AM
Possible _topics.TOPIC_STATUS codes?
by tpro
06/04/09 10:25 AM
promoting
by DLWebmaestro
06/02/09 05:36 PM
New Mods
[7.2.2] DokuWiki authenticating against UBB.t
by Myke
09/13/07 05:47 AM
[7.x] UBB Sitemaps
by
02/10/07 11:38 PM
Newest Members
Abe Froman, fefalas, BlOoDRaIn, Aboud, F3ithl3sS
13427 Registered Users
Top Posters
AllenAyres 25516
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438
(Views)Popular Topics
Known public proxy servers 756555
Finished-[6.5.2] Games Arcade Deluxe v1.9 223157
Integrated Index Page (IIP) 5.3.1 182623
TLD Bv2.1 Released - Threads Links Directory 181967
Integrated Index Page (IIP) 5.1.1 178986
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 142265
[6.0x] Who's Online 4.0.0 [Finished] 135991
FlashChat & UBB.threads 134220
[6.3.x] [beta] Hit Hack 2.0 120092
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 100068
Forum Stats
13427 Members
59 Forums
37053 Topics
289887 Posts

Max Online: 686 @ 06/28/07 07:04 AM
Featured Member
Registered: 07/01/07
Posts: 5

 

 

 
fusionbb message board php hacks