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)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

TECK 09-20-2002 11:42 PM

no.

glo 09-21-2002 02:39 AM

what is the difference between vBindex v2 and vBhome (lite) 3.0???

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 guess this is directed to NTLDR & TECK but anyone can assist!

otacon 09-21-2002 04:01 AM

<a href="http://www.fusionart.org/forum/vbindex.php" target="_blank">www.fusionart.org/forum/vbindex.php</a>

is there a way i can make the font not so small in the news posts

TECK 09-21-2002 09:08 AM

Quote:

Originally posted by glo
what is the difference between vBindex v2 and vBhome (lite) 3.0???

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 guess this is directed to NTLDR & TECK but anyone can assist!

vbIndex was "inspired" from my original vbHome 1.0, when element ripped my code, wajones's poll and other's and stick it togheter...
then NTLDR released a different version and credited a part of the code element stolled from me as:
"code by nakkid" (my previous nick at vb.org)

the diff between vbIndex and vbHome (lite) is the number of queries and the code stability. the queries are in a loop. so vbIndex could easily "boost" your page at 150queries if you go at ease with the options. that equals death to the server.
even set at default, with minimum options, if i understood corectly from NTLDR, there are still 47queries loaded, wich is huge for a simple page... the server could easily crash on a busy site with this number of queries.

vbHome (lite) 3 performs only 13queries (14 as loggedin) and also is optimised for extremly fast page loads (average 0.09seconds).
this was tested on 2 servers.
NTLDR can give you more precise info about it's code performance, since he code it. i posted my specs here just to have a better idea.

cheers.

MiF 09-21-2002 09:27 AM

Couple of problems I found:

1. I don't know if it's a problem with vbhacker generating the text file of changes or the hack is incorrect.

Code:

+-------------------------------------------------------------------------------------------------+
| In admin/template.php, replace this code:                                                      |
+-------------------------------------------------------------------------------------------------+
$only[\'showgroup\'] = \'Show Groups\';
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| With this code:                                                                                |
+-------------------------------------------------------------------------------------------------+
$only[\'home\'] = \'vBindex\';
+-------------------------------------------------------------------------------------------------+

Shouldn't this line be inserted after the code found instead of replaced?

Code:

+-------------------------------------------------------------------------------------------------+
| In admin/usergroup.php, replace this code:                                                      |
+-------------------------------------------------------------------------------------------------+
makeyesnocode("Can view board","canview",1);
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| With this code:                                                                                |
+-------------------------------------------------------------------------------------------------+
// vBindex Edit
makeyesnocode("Can view vBindex?","canviewvbindex,1");
// vBindex Edit
+-------------------------------------------------------------------------------------------------+

Same as above question plus the replacement text is bad. "canviewvbindex,1" should be "canviewvbindex",1

2. The poll query takes extreme amount of time to complete. I think it's not constructed properly but maybe it's a bug in my version of MySQL.

This code:

Code:

$pollinfo=$DB_site->query_first("SELECT *,thread.open FROM poll LEFT JOIN thread ON (thread.pollid = poll.pollid) WHERE thread.forumid='$pollsforum' ORDER BY poll.dateline DESC LIMIT 1");
Should be:

Code:

$pollinfo=$DB_site->query_first("SELECT poll.*,thread.open FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid='$pollsforum' ORDER BY poll.dateline DESC LIMIT 1");
And of course code appropriately changed to reflect query change.

MiF 09-21-2002 10:02 AM

Found another problem. When installing the templates using vbitemplate_install or vbi_install, the PHP variables in some templates are replaced during the insertion. They are not escaped properly.

glo 09-21-2002 09:22 PM

Quote:

Originally posted by glo
what is the difference between vBindex v2 and vBhome (lite) 3.0???

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 guess this is directed to NTLDR & TECK but anyone can assist!

NTLDR, your thoughts please.

NTLDR 09-21-2002 10:06 PM

Quote:

Originally posted by TECK
if i understood corectly from NTLDR, there are still 47queries loaded, wich is huge for a simple page... the server could easily crash on a busy site with this number of queries.
That number is about right if you have everything switched on and enabled, but of course varies on how many news/latest posts you have. I will be trying my own methods of getting the queries out of the loop for the next version ;) Lets hope I can do as good a job as TECK managed to do.

NTLDR 09-21-2002 10:09 PM

Quote:

Originally posted by MiF
Found another problem. When installing the templates using vbitemplate_install or vbi_install, the PHP variables in some templates are replaced during the insertion. They are not escaped properly.
The installer has been re-done for the next version, thanks for pointing out what the problem is with it ;) You are correct with the problems with the vBhacker file, there seem to be problems with vBhacker now :ermm:

NTLDR 09-21-2002 10:18 PM

Quote:

Originally posted by glo
1. place the login/password feature on the home (non vB) page.
Both vBindex and vBhome can do this, this is default with vBindex.
Quote:

2. place polls on non vB pages.
Again avalible for both, as default for vBindex there is a tutorial for vBhome.
Quote:

3. calculate the users online on the entire site, not just the vB forum pages.
vBindex displays the users online by default. Users on pages by both hacks will be counted as the number of members online.
Quote:

4. have some member only pages (non vB), protected by the username and password access from vB!
By deault you have the option of choosing which user groups can access the vBindex page, its also easy with both hacks to restrict to specific groups/userids. vBindex also has a multi-page option by default.
Quote:

I am using vB 2.2.7. (brand new forum!)
Both hacks should work fine with 2.2.7

To mention again what TECK said, the origional version of vBindex by el3m3nt was based on vBhome but was a more "compleate" option as it didn't require people to have to add code for other stuff into the page. vBhome was made in my understanding for users to modify more heavily to meet there specific needs, thats my understanding at least. After e3l3m3nt stoped providing major support to the hack I started to re-code parts of it and release a new version with his permission.


All times are GMT. The time now is 05:10 AM.

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.02520 seconds
  • Memory Usage 1,761KB
  • 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
  • (9)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