PDA

View Full Version : Simple Forumhome/standalone news hack.


d3f
16 Oct 2004, 01:30
Here is my really simple/rough news hack, there is no caching no acp administration, just a really simple news hack, there is probally some error as I have only tested this on my live board and it was writen within a period of serveral minutes.

An exsample can be found here under the welcome box. (http://www.methlabs.org/forums/)

Anyways all try and improve it in the future Anyone and everyone is free to modify this hack to his hearts content, no props are needed (or wanted).

Lionel
16 Oct 2004, 14:26
Nice and simple. However you might want to fix the templates, the two tables below are not aligned. I think that is currently determined by news length. At your site it is the first 2 tables.

GamerJunk.net
16 Oct 2004, 17:32
So how would it look like on a normal board?

d3f
16 Oct 2004, 22:56
yes the length of the box is detirmined by the character post, all put of a screenshot in a few minutes, using the default skin.

dfmafia
17 Oct 2004, 13:24
need BB code active...its showing my bb code

(ie. [b],
[list], [i]...)

works good though


http://df+++++.net/forums/news1.php what im talking about



also im going to edit this script just a bit to fit my needs...im going to make it in 1 collum instead of the 2 you have currently...if any1 wants me to ill post it when i finish it

dfmafia
17 Oct 2004, 13:57
edited to make 1 collum

edited for longer preview text

BB Code works but some of the html ive added in my news whacks out


other than that it works great

to make a collum just edit the "news" template and put

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

before each

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



* being the number of the arcticle

mine is set up for 10 arcticles

to set that up its in the directions provided in the "simplenews.txt"

also i set up my collums to be 30% width and not 100%

dfmafia
18 Oct 2004, 16:44
also im trying to get this to work on a non-vB page but running into problems

when i insert the code i loose the content on my site on the right side and footer...basically everything after the script...

looks like i have an open table script but i cant find it...

draculanowaday
19 Oct 2004, 03:21
Hix. I want to take news from many forum (not only one). And each forum only take the newest thread. Can you help me? :-S

d3f
20 Oct 2004, 00:03
change thread.forumid=4 to

thread.forumid IN (1,2,3,4)

to draw from more then one forum.

Not as easy to do newest thread from each forum.

tilight
05 Nov 2004, 00:17
Ive dnoe everything correctly (atleast I think) but my page shows up blank. Im doing the FORUMHOME version.

HiDeo
05 Nov 2004, 05:34
Nice, I'll look at this !

tilight
11 Nov 2004, 02:04
Found my problem!!! I needed

require_once('./includes/functions_bbcodeparse.php');

In index.php

Enjoy everyone!

Xtrm2Matt
01 Dec 2004, 18:33
Hi,

Could anyone help me with this? I've done everything it's told me to (using the "Standalone method") but, when I goto news.php, alls it does is show me the 4 boxes with "posted by" and "comments"?

Thanks
Matt