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)

NTLDR 09-27-2002 01:22 PM

Running the upgradeXX.php or install.php will wipe any vBindex templates that haven't been modified.

LightBringer 09-27-2002 01:38 PM

Quote:

Originally posted by NTLDR
Running the upgradeXX.php or install.php will wipe any vBindex templates that haven't been modified.
Actually, for some reason when I ran the upgrade20.php, it didn't clear them. What it DID do however for me, was instead of all the home_XXX templates being under the category vbIndex, they were moved to the root/created section :)

A simple run of the vbindex template installer was enough to put them BACK under the proper category.

Then I simply imported my custom home_XXX templates. :)

Speaking of upgrades and installs...how's the newest version of VBIndex coming along?

Buddha 09-27-2002 02:42 PM

how would i go about displaying the total posts of a specific category, or selected forums.
i have a category that includes many forums for various genres of movies, and within each are the reviews.
on my vbindex, i'd like to be able to say;
"Total reviews: XX"
where XX is the total of all of the forums within that category.

thanks in advance guys.

NTLDR 09-27-2002 04:51 PM

Quote:

Originally posted by LightBringer
Speaking of upgrades and installs...how's the newest version of VBIndex coming along?
Most of it has been done, the new version is all controled via the ACP, so you only ever need to do 1-2 edits to the file :) I've been delayed in releasing this though due to lack of time and other commitments. I would like to reduce the queries before the next version is out that way it will allways be under 30, with everything switched on :)

LightBringer 09-27-2002 04:54 PM

BTW, this appears to work on 2.2.8 as well. Just got done upgrading. :)

NTLDR 09-27-2002 04:54 PM

Quote:

Originally posted by Buddha
"Total reviews: XX"
where XX is the total of all of the forums within that category.

Add near the top where the posts info is:

PHP Code:

$reviews $DB_site->query_first("SELECT COUNT(*) AS totalreviews FROM thread WHERE forumid=X"); 

and add $reviews[totalreviews] in your template where you want it to appear, remember to chane X to the forumid that the reviews are in. If they are in multiple forums add AND forumid=X to the end for each extra forum.

Buddha 09-27-2002 06:46 PM

excellent.
thank you man!
will try it out asap.
btw, does it slow it down, if i'm putting about twenty AND forumid=x to include all of the forums?

Buddha 09-27-2002 07:01 PM

umm... sorry.
don't know exactly where to put it.
tried a few spots, and i just get
Total Reviews: Array.

where do you mean "near the top in post info?"

ps. i changed the forumid to the category's id... would that make a difference... i just figured it would encompass all of the forumid's within it.

NTLDR 09-27-2002 07:34 PM

Sorry, my mistake, put $reviews[totalreviews] in the template. This will add 1 extra query to the page, but shouldn't really slow the page down to much. If you have many forums use parentid=X and but the id of the catagory forum in instead to save having 20+ AND forumid=X in the query, this will probably speed things up a little.

MultiSync 09-27-2002 09:17 PM

NTLDR

I am currently using your vBindex(Great Hack) and I have checked out your site, it is great:)

Just got a few questions, how do make a link to homepage and forum?(like the ones you have on your site, root and home) also can you tell me where I can customize my site? like the one you have. I wanna take out the vbulletin pic at the homepage and in the forum.Thanks!

(btw can u tell me the steps how to do it, because I am pretty new to forum stuff :p )


All times are GMT. The time now is 04:51 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.01834 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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