![]() |
Well, after finding 'PluhNews', i thought to myself, why not create something that uses templates, and the $DB_site class?
Well, after a bit of twiddling, i reduced the querys to just one, and Got it working, took a while tho D: First off, youll need to create 2 templates. newsbit: Code:
Posted By <a href="$forumspath/member.php?s=&action=getinfo&userid=$newsarray[postuserid]"><b>$newsarray[postusername]</b></a> at <i>$dateposted</i> shownews: Code:
Your Header Code Here PHP Code:
Im sure there are a few little errors in my coding, im a bit rusty with PHP :( Next i plan on making a 'column' system(ie http://fortress.challenge-au.com) And actually, its for that site :) <edit> Im not sure if this supports multiple forums. Some feedback maybe? Also- maybe there may be some point in using replacment variables in this, but hey, i couldnt be bothered ;) </edit> |
Thank you! This is perfect. Installs in 1 minute and works well. Exactly what I needed. :)
|
Can we see a demo site?
|
very nice hack, it works perfectly
|
Excuse the content of the actual posts..
(Nothing bad, but nothing thats really useful :) http://www.opticpower.net/forum/news.php |
OK, how can I make it so the newest thread is at the top, rather than the bottom?
|
Hey just wondering about one thing, i added the threads title to the newspage, but i'm wondering if its possible to make the title capital letters only, like some kind of line of code that replaces all letters in the title to capitals.
|
Quote:
However, i think i forgot to add a touch of code. To change it, you need to modify the code block: Code:
$newsquery = "SELECT thread.*, post.*"; Code:
$newsquery = "SELECT thread.*, post.*"; |
Quote:
Add BEFORE (about line 41) PHP Code:
PHP Code:
Btw, i havent tested this, but it should work in theory |
thanks, worked great.
|
All times are GMT. The time now is 01:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|