vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Simple Forumhome/standalone news hack. (https://vborg.vbsupport.ru/showthread.php?t=70648)

d3f 10-15-2004 10:00 PM

Simple Forumhome/standalone news hack.
 
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.

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 10-16-2004 12:26 PM

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 10-16-2004 03:32 PM

So how would it look like on a normal board?

d3f 10-16-2004 08:56 PM

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 10-17-2004 11:24 AM

need BB code active...its showing my bb code

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

works good though


http://dfmafia.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 10-17-2004 11:57 AM

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
PHP Code:

</tr><tr

before each
PHP Code:

<!-- item * --> 

* 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 10-18-2004 02:44 PM

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 10-19-2004 01:21 AM

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 10-19-2004 10:03 PM

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 11-04-2004 10:17 PM

Ive dnoe everything correctly (atleast I think) but my page shows up blank. Im doing the FORUMHOME version.


All times are GMT. The time now is 12:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01209 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete