The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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> </center> <blockquote></a>$cookedthread</blockquote><center><a href="$forumspath/showthread.php?s=&threadid=$newsarray[threadid]"><b>$newsarray[replycount]</b> $commenttext</a> Last comment was by <b>$newsarray[lastposter]</b></a></center> <hr noshade height="1" width="60%"> shownews: Code:
Your Header Code Here $newsbits Your Footercode 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> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Thank you! This is perfect. Installs in 1 minute and works well. Exactly what I needed.
|
|
#3
|
||||
|
||||
|
Can we see a demo site?
|
|
#4
|
|||
|
|||
|
very nice hack, it works perfectly
|
|
#5
|
|||
|
|||
|
Excuse the content of the actual posts..
(Nothing bad, but nothing thats really useful ![]() http://www.opticpower.net/forum/news.php |
|
#6
|
||||
|
||||
|
OK, how can I make it so the newest thread is at the top, rather than the bottom?
|
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
|||
|
|||
|
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.*"; $newsquery .= " FROM thread,post"; $newsquery .= " WHERE post.threadid=thread.threadid"; $newsquery .= " AND thread.forumid=107"; $newsquery .= " GROUP BY thread.threadid"; Code:
$newsquery = "SELECT thread.*, post.*"; $newsquery .= " FROM thread,post"; $newsquery .= " WHERE post.threadid=thread.threadid"; $newsquery .= " AND thread.forumid=107"; $newsquery .= " GROUP BY thread.threadid"; $newsquery .= " ORDER BY thread.dateline DESC"; |
|
#9
|
|||
|
|||
|
Quote:
Add BEFORE (about line 41) PHP Code:
PHP Code:
Btw, i havent tested this, but it should work in theory |
|
#10
|
|||
|
|||
|
thanks, worked great.
|
![]() |
|
|