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)

Buddha 09-23-2002 12:37 PM

btw, for those interested in breaking up the news items, it's not quite as easy as simply inserting a <br> or a table as listed above. you can add the table tags at the end of the home_newsbit template, but then you end up with a border around it.
if you don't mind that, then no problem... but if you'd rather not have that border, you have to go into the home_news template and remove the table that includes the cellpading and cell spacing. then paste that into the home_newsbit surrounding the whole thing. then add a new <table> tag that does not have a border, at the very end.

i can post my news and newsbit for those that are actually interested. not much to do, but for us that are just getting used to templates and such, it might be handy.

-=dm=- 09-24-2002 07:21 PM

NTLDR does this work with 2.2.4?

looks great man :)

NTLDR 09-24-2002 09:43 PM

Quote:

Originally posted by -=dm=-
NTLDR does this work with 2.2.4?

looks great man :)

Yes it will Indeed ;)

It has been tested on 2.2.4, 2.2.6 and 2.2.7 but should work on all 2.2.x :)

-=dm=- 09-25-2002 08:48 PM

cool thanx :)

is it possible to move the "latest thread" in the center instead of havin em in the right block? (like the old design)

laterz

NTLDR 09-25-2002 08:50 PM

Just use the v1.3 home_thread and home_threadbit templates and move $threads in the home template, it will then look like it did in 1.3 :)

-=dm=- 09-26-2002 11:22 AM

Thanx NTLDR :)
I also coiped my old home_template over to the new one and it seem to work perfect :)

clangrounds.com 09-26-2002 10:24 PM

Hey I tried to upgrade my vbindex from 2.2.6 to 2.2.7 and it messed up last time. I ended up having my host company reinstall the backup I made before I tried to upgrade. Thank goodness because it didn't work right when I used the upgrade20.php file.

Anyways...

I want to upgrade to 2.2.8 this time from 2.2.6, are there suggestions you have so I do not mess my forum up like I did last time? I am using vbindex as index.php for my site, and it is pretty modified. Basically all I want to do is fix the permissions bug from 2.2.6 if anyone knows a simple way how...

Thanks,

LightBringer 09-27-2002 01:28 AM

clangrounds.com, I don't know if this is the same thing as what you experienced, but I did noticed that when I went to upgrade to 2.2.7, it screwed up my templates within the admin cp. If you notice, the templates are still there they just ARENT under the vbindex template category anymore.

Here's a quick tip: Back em up as html.
Run the vbindex template installation ONLY.
Then reimport your vbindex backed up templates. :)

It worked like a charm for me.

clangrounds.com 09-27-2002 12:42 PM

Thanks, that worked for me just fine. :happydance: :)

LightBringer 09-27-2002 01:02 PM

Quote:

Originally posted by clangrounds.com
Thanks, that worked for me just fine. :happydance: :)
Great!

Nice site btw...

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 )

Buddha 09-27-2002 09:18 PM

Quote:

Invalid SQL: SELECT COUNT(*) AS totalreviews FROM thread WHERE parentid=26
mysql error: Unknown column 'parentid' in 'where clause'

mysql error number: 1054
this is what i got.
any thoughts ntldr?

Buddha 09-27-2002 09:27 PM

Quote:

Originally posted by MultiSync
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 )

link forum to index.php
Quote:

<a href="index.php?s=$session[sessionhash]">forum</a>
and link homepage to vbindex.php
Quote:

<a href="vbindex.php?s=$session[sessionhash]">home</a>
and your logo can be changed from the styles menu in the cp. or just change it in the templates (header and vbindex/home_header).
hope that helps.

MultiSync 09-27-2002 11:10 PM

Thanks Buddha, I will try and see if I can figure it out. Thanks for the info:)

Buddha 09-27-2002 11:32 PM

no problem multisync.

is there anyone that could help me with my querry problem by any chance?
thanks.

MultiSync 09-28-2002 05:27 AM

Hey Budda need your help again :nervous:

Where do I place all those lines you mention above? And do i need to make a icon for those?

Buddha 09-28-2002 12:37 PM

depends on how you want it to look multisync.
if you want it to be like the top navagation buttons, open up header and home_header (in the vbindex template group). look at the link for home. copy and paste it, changing only the url as i stated up (adding vb to index), and then change the name of the img src as well. create another button like the home, name it whatever you want. upload to your image directory, and you're laughing.

hope that helps.

MultiSync 09-28-2002 12:43 PM

Thanks I think I knowwhat you mean now. :classic:

xevious 09-28-2002 01:21 PM

How do i get the poll to show up for a guest without having to vote to get it to show up? And for the latest threads, how do i get it to also show the number of replies to each latest thread? It just shows the title and who posted it. Any help will be greatly appreciated. Great hack by the way. I am usin it on a new site I am building right now. :) One more thing, how do i get some space between news posts?

Buddha 09-28-2002 02:21 PM

Quote:

Originally posted by MultiSync
Thanks I think I knowwhat you mean now. :classic:
no problem MS.
glad i could help.

NTLDR 09-28-2002 05:32 PM

Quote:

Originally posted by Buddha
this is what i got.
any thoughts ntldr?

As the parentid isn't in the thread table you would have to do a LEFT JOIN I think which I haven't been able to work and I expect would add a greater load then adding each forumid via the AND forumid= statement.

NTLDR 09-28-2002 05:36 PM

Quote:

Originally posted by xevious
How do i get the poll to show up for a guest without having to vote to get it to show up?
One more thing, how do i get some space between news posts?

These have already been covered in the thread.

Quote:

And for the latest threads, how do i get it to also show the number of replies to each latest thread?
Add: $numreplies in the home_threadbit template where you want the reply count to appear.

TheSaint-AeD 09-28-2002 08:11 PM

This Hack doesn't seem to work on 2.2.8

I took a totally unmodified 2.2.8 to test it before applying it on my home-Forums.

Step6: Used vBHacker, no Problems in admin/usergroup.php, changes to admin/template.php failed because the reqested string was not found.

The String should be:
PHP Code:

$only[\'showgroup\'] = \'Show Groups\'; 

found a string
PHP Code:

$only['showgroup'] = 'Show Groups'

edited it to
PHP Code:

$only['home'] = 'vBindex'

(if else, i got errors in that line)

If i call up my domain, i'm redirected to index.php which has no changes to it, same if i click on home. If I open vbindex.php, I see the following (screen attached). The Test-Pool is not displayed on the left, and from the Index I don't have any Chance to get to the forums from there.

Don't really know what to do with this, any help?

[EDIT]

The Test-Poll is displayed for Ones who voted in it using the Poll-Forum.

NTLDR 09-28-2002 09:54 PM

Quote:

Originally posted by TheSaint-AeD
If i call up my domain, i'm redirected to index.php which has no changes to it, same if i click on home.
This is whats supposed to happen, you need to change a number of things if you want it to work differently to this, eg change the header links, change it to index.php and index.php to forums.php for example.

Quote:

If I open vbindex.php, I see the following (screen attached). The Test-Pool is not displayed on the left, and from the Index I don't have any Chance to get to the forums from there
As has been said plently of time before you need to update the home_poll template for it to display correctly.

Buddha 09-28-2002 10:49 PM

thanks for the help regardless ntldr.
i figured a way around it anyway, that's more productive.
your method works perfectly (forumid) now that i've switched things around.
thanks a bunch.

MultiSync 09-28-2002 11:03 PM

NTLDR

Got a little problem (a minor one), how come the online buddy list on vBindex doesn't work, but in the forum it works? Thanks!

Just a note I got the forum addon:)

groovesalad 09-29-2002 02:46 AM

How do I get my Latest Threads to look like the ones on this site? http://www.trojanforge.net/

erdem 09-29-2002 05:35 AM

Quote:

Originally posted by groovesalad
How do I get my Latest Threads to look like the ones on this site? http://www.trojanforge.net/
allright i can help you ..
that site is mine ..

what u mean by : "How do I get my Latest Threads to look like the ones on this site?"

template? style?
also that one is vbindex 1.3 ..
im gonna update to latest ..

greetz

TheSaint-AeD 09-29-2002 02:26 PM

I forgot something very important in my first Post: Thx 4 this great Hack ;)

But know to my Questions:

I want vBIndex to be the default-load when visiting my domain, so rename vbindex.php to index.php and index.php to forums.php? How Du I add a Forum Button in the upper Row like on vB.org?

My next Question is: I run a big Clanboard, so my Page is visited by "Members" (who may vote on the poll and see the news) and "Outsiders" (they may not see the vote and if possible see there own news, which morely will be some infos on the clan). How can I achive this, or should I better use vB Portal?

Buddha 09-29-2002 03:31 PM

Quote:

Originally posted by TheSaint-AeD
I want vBIndex to be the default-load when visiting my domain, so rename vbindex.php to index.php and index.php to forums.php? How Du I add a Forum Button in the upper Row like on vB.org?

i can help you with that one.
edit your .htaccess and make it look like this...

Quote:

DirectoryIndex vbindex.php index.php
that way, it looks to open vbindex first, and if that isn't there, it'll open index.php

NTLDR 09-29-2002 04:41 PM

Quote:

Originally posted by groovesalad
How do I get my Latest Threads to look like the ones on this site? http://www.trojanforge.net/
Use the thread templates from vBindex 1.3, like I have already said.


All times are GMT. The time now is 09:15 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.02424 seconds
  • Memory Usage 1,841KB
  • 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_php_printable
  • (19)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