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)

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.


All times are GMT. The time now is 05:46 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.11573 seconds
  • Memory Usage 1,751KB
  • 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_code_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