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

TECK 09-18-2002 07:32 PM

HarryButt, is done. i added a variable there.
just redownload the file and make sure in the readmefirst.txt file it says at the top version 3.0.

Emma, in the new index.php file find:
Code:

  if ($thread['forumid'] != $newsforum) {
    eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");

  } elseif ($thread['forumid'] == $newsforum) {
    eval("\$headlinebits .= \"".gettemplate('home_threadbits')."\";");

  } else {
    $threadbits = '';
    $headlinebits = '';
  }

replace it with:
Code:

  $threadbits = '';
  if ($thread['forumid'] == xx) {
    eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
  }

replace the xx value with your designated forum.

emma, please dont remove the copyright text mentioned in the hack.
first of all, it's using vBulletin functions so it is part of it. in other words, is illegal to remove the copyright.
second, it's my hack. i worked some time on it so everyone could use a reliable code and all i ask is a link to my website. thanks.

also, i want you all the let me know what do you think about the new version. thank you. :)

bouncer18 09-19-2002 01:51 AM

Ok i got a question...

Whats the syntax to show the user on the panel what the forum name is where the latest post resides..

like..
Blah Blah post Name Here
09-18-2002 04:51 PM by Whoever
Views: 48 Replies: 1 testing
Forum Name: NAME HERE

is it as easy as making a $forum[whatver]

or is there more to it..

TECK 09-19-2002 02:21 AM

is complicated if you dont want to add queries, you have to create new field in table thread and index it, then you run a extra query every time you post a new thread. the other way is to add a query every time you perfom the $thread mysql query. that will make you endup in a loop with 50-100queries performed on vbHome page.

so forget about it. why is it so important for you to show that info? do you think the users care what forum is posted in? they read the thread title and if interesting they will visit it.
personally, i use only the thread title as link... but others requested the extra info that comes with it so i include it.
you can use vbIndex (it's code is partially mines, copied from previous vbHome (lite) versions, without permission) if you want to show the forum titles... and also if you want to crash your server.

vbIndex uses 50-150queries on it's regular page.
lol, i saw element having on his page 172queries. NTLDR came up with vbIndex 2 (and put a little note inside - code by TECK), but still it uses 47 queries when set to minimum.

there you have it, now it's up to you.

TECK 09-19-2002 01:15 PM

hmmm... i have an idea, vbHome'rs. :)
how but instead of the avatar's picture (that some of you still want it), i add some custom iconews pictures, aligned to the right?
it will look similary to phpnuke. this should be extremly easy to do, so let me know if you are interested. ofcourse the number of queries will be always the same...

take a look below...

bouncer18 09-19-2002 03:41 PM

i think it would be cool...

cant go wrong with eye candy

zachb 09-19-2002 07:06 PM

I get

Fatal error: Call to undefined function: gettemplate() in /usr/local/psa/home/vhosts/chuckpalahniuk.net/httpdocs/dev/index.php on line 34


http://www.chuckpalahniuk.net/dev/

TECK 09-19-2002 07:15 PM

check your code changes. you made a mistake.

zachb 09-19-2002 07:22 PM

alright.

could it be because i am using files that have code changes from installing vb portal? i've been experimenting with all the vb home page hacks.

TECK 09-19-2002 07:28 PM

as you know the hack was tested on a unhacked board.
however it should not interact with any of the pages since it does all the job by itself and pulls all the information from the database.

you made a code mistake. check it again.

bouncer18 09-19-2002 10:35 PM

I did find what could be called an error..

let me attempt to explain.

I make a post in the news section and its shown on the main page. Someone else goes in and reply's to my post. Its updated on the main page showing last comment posted by user X.

No problem.

I go back into news and make a new topic.
Again, its shown on the main page like it should.

The problem lies on the previous post.

Users X replied to my initial thread. His name is still there. Now, when you click Mr. X's name you dont see his profile anymore, rather you see the profile of the person making the new topic.

member.php?s=&action=getinfo&find=lastposter&forum id=22

Eventho your clicking Mr. X's name you are seeing my profile cause i am the one making a new post in the forum eventhough your clicking Mr. X's name.

Does what i am saying make any sense?

Its loading the profile of the last poster in the forum rather then the last poster for that specific topic.

TECK 09-19-2002 11:15 PM

you are correct. i'm gonna change it. i will not add more code to it just because this issue... it requires extra hacking in VB files, fields added to table thread... you get the picture.

find:
Code:

$article['comments'] = 'last comment by <a href="' . $bburl . '/member.php?s=' . $session[sessionhash] . '&action=getinfo&find=lastposter&forumid=' . $article[forumid] . '">' . $article[lastposter] . '</a>';
replace it with:
Code:

$article['comments'] = 'last <a href="' . $bburl . '/newreply.php?s=' . $session[sessionhash] . '&action=newreply&threadid=' . $article['threadid'] . '">comment</a> by ' . $article['lastposter'];

TECK 09-20-2002 11:14 PM

the vbHome copyright:
Do NOT remove it because you infringe the vBulletin license agreement. vbHome is based on vBulletin code and it uses some of it's functions.
Also, the code is created by me, so all I ask in return is to leave the links unaltered and intact. Is a small price for what you can do with this free and reliable piece of software interface.

glo 09-21-2002 02:55 AM

where can i find a demo board with this hack installed???

or anyones live site?

TECK 09-21-2002 02:56 AM

why do you need a demo? i posted some screenshots...
is better is you install it on your test board to see... if you dont have one, you could get one here:
https://vborg.vbsupport.ru/showthrea...threadid=39482

cheers.

glo 09-21-2002 03:21 AM

thanks TECK,

I think this hack is what i am after.

I am looking for the most suitable hack that will allow me to do the following:

1. place the login/password feature on the home (non vB) page.
2. place polls on non vB pages.
3. calculate the users online on the entire site, not just the vB forum pages.
4. have some member only pages (non vB), protected by the username and password access from vB!

I am using vB 2.2.7. (brand new forum!)

I have looked through most of this thread but thought it best to state it in full here.

TECK 09-21-2002 03:24 AM

you can add all this very easy...
1. is included
2. is a tut listed under addons
3. vbHome uses permissions.. actually i will write a little addon on how to define perms only for vbHome

keep in mind that vbHome it is a vBulletin page. it's part of it, so all restrictions related to it aply also..
just read the copyright on the first post. thanks.

glo 09-21-2002 09:40 AM

Quote:

Originally posted by TECK
you can add all this very easy...
1. is included
2. is a tut listed under addons
3. vbHome uses permissions.. actually i will write a little addon on how to define perms only for vbHome

keep in mind that vbHome it is a vBulletin page. it's part of it, so all restrictions related to it aply also..
just read the copyright on the first post. thanks.

Hi TECK,

I have downloaded your file, have just read thru the readmefirst file and although it says

" vbHome (lite) is fully customizable through vBulletin templates, so it's very easy to achieve any look or web design you want. "

but i am not sure if i can actually use it on my home page and not use the included vB template?
Can i cut and past the code? Will this work?

TECK 09-21-2002 11:34 AM

i have no idea what are you saying.

glo 09-21-2002 12:32 PM

TECK,
i will try to set up your hack and integrate it into my existing homepage.

www.glo-racing.com/v3

It is the registration and users online that i want to use on my homepage.

TECK 09-21-2002 12:38 PM

in /forum/index.php, copy and paste the online users code. follow one of my tutorials listed in the first post, under add-ons to understand the technique.

good luck.

Kiraly 09-22-2002 04:08 PM

teck when you release a full versione of vbhome with all functions ?

TECK 09-22-2002 06:37 PM

the full version is released already. is here.

Kiraly 09-22-2002 07:25 PM

100 $? :/

TECK 09-22-2002 07:26 PM

you asked for the full version. nobody is forcing you to buy it.
if you look at the list of options, you will understand that it have a very low price. and please do not discuss prices here, since i'm not allowed to advertise other products.

post your comments to the site if you have any. thanks.

bouncer18 09-23-2002 02:47 AM

Quote:

Originally posted by TECK
hmmm... i have an idea, vbHome'rs. :)
how but instead of the avatar's picture (that some of you still want it), i add some custom iconews pictures, aligned to the right?
it will look similary to phpnuke. this should be extremly easy to do, so let me know if you are interested. ofcourse the number of queries will be always the same...

take a look below...

any update if you plan on adding it?

TECK 09-23-2002 04:33 AM

yes. it will be added as an add-on, so if people like to have it it will be easy for them to install it. i code it in the same time i code my site... :)
i'm still thinking of a wise way, but rest assuered it will show up here soon. :)

glo 09-23-2002 10:47 AM

i have installed the hack , but i only get a blank page?

any help? pls

EnriqueHavoc 09-23-2002 01:13 PM

Quote:

Originally posted by PlurPlanet
Is anyone else having the problem with the "Most users ever online" part of the hack or know how to fix it??
yeah i have this problem too where it only remembers the max users for a short period of time. seems like its a linking issue. I tried changing the location to enable cookies for the entire site in the admincp-->general options and that might have worked but left me unable to log out so who knows, ill try to figure it out later.

bouncer18 09-23-2002 08:30 PM

thanks for the info.

This is a great addition to VB.

Thanks for all your time and effort

glo 09-24-2002 12:30 AM

Quote:

Originally posted by glo
i have installed the hack , but i only get a blank page?

any help? pls

ANYBODY???


All times are GMT. The time now is 08:34 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.03408 seconds
  • Memory Usage 1,834KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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