vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

Zachariah 09-14-2002 02:26 PM

@ EnriqueHavoc and others

What I did with EnriqueHavoc's Info :)

This news forum in our case is visable and users can only reply to posts not make new ones.

Added:

Comments (number of replays )to each news post with a link back to the thread for people to post on it.

VBhome Index.php

Find:

forumid,postusername,postuserid,post2.pagetext as pagetext

Before add:

thread.threadid,replycount

-----------------------------------

Find:

while ($news=$DB_site->fetch_array($getnews)) {
$newstitle=$news[title];
$newstime=vbdate($timeformat,$news[dateline]);
$newsdate=vbdate($dateformat,$news[dateline]);
$newsusername=$news[postusername];

After add:

$threadurl=$news[threadid];
$replycount=$news[replycount];


save
--------------------------------------

Template: home_newsbits

Add (were you want the "(Comments: 0)"

(Comments: <a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$news[threadid]">$news[replycount]</a>)

save

-------------------------------------
:banana:

Emma 09-17-2002 11:28 AM

I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums.

Thanks!
Emma

Zachariah 09-17-2002 04:24 PM

Q: about the newsbit

The news post on our site can be 1000+ char. This puts the entire post on the page. (so the main page could be 4-5 pages long) Is there a way to limit the char to a # amount ... and if you want to read more goto the post or click a link "more" ..and be put in the forums to read it.

Like a headline paragraph

TECK 09-17-2002 05:34 PM

i'm gonna release an even cleaner version.. i started working on it right now.. testing the queries.. etc.
you will be able to fix the newsthread's lenght on it.

Emma 09-17-2002 05:45 PM

Teck! I don't think you saw my question!

I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums.

This is the last thing I need and the site will be up and running so please help me!

Thanks!
Emma

TECK 09-17-2002 05:46 PM

emma it will solve your to. patience. :)
i do a minor rewrite.. optimising the damn queries again.

TECK 09-18-2002 05:53 AM

minor rewrite??? guys get readdy... i did it!!! :)
i managed to get out of the queries loop!!!
from now on, vbHome will have only 14 queries, no matter how many threads or news articles you post.
yep, that's right, you can list 1000 threads or articles and still will perform only 14 queries.

i did a full code rewrite and released v3.0. :)
is probably the best code rewrite i ever made in all my hacks.
i also integrated the login and username panel (my own, no someone else's) and many other options, like article chars lenght, latest threads or(and) articles, etc. pretty much all the options others requested here and could not manage to get it inserted.

i'm still working on the html code a little... be prepared you will have to trash the old vbHome... :)
however the new vbhome it will take you about 5min to install it and maybe 2 or 1, if you already had it installed. the upgrade is not needed. only to swap the index.php file and replace all templates. :p

UPDATE
ok i will upload the new file in 2minutes and post here some screenies...
MAKE SURE YOU READ THE FIRST POST. i listed there all the new features.

if you installed this hack before, all you have to do is change the templates and upload the new index.php file.
just read the new readmefirst.txt file.

the guest look:

TECK 09-18-2002 08:35 AM

and the loggedin look:

Zachariah 09-18-2002 01:02 PM

Quote:

Originally posted by TECK
i'm gonna release an even cleaner version.. i started working on it right now.. testing the queries.. etc.
you will be able to fix the newsthread's lenght on it.

OMG !! :bunny: :banana: :banana:

Emma 09-18-2002 01:07 PM

Wow :) That really really cut down on the queries.... wow. lol :) Thank you so much :)

One thing tho :) I couldn't find how to only include one forum in the latest threads ;) lol :)

Emma :D


All times are GMT. The time now is 06:32 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.02660 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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