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)

CarlosC 08-25-2002 10:16 PM

What to do if i want to display the number of members registered in my board in the vbindex page as use to be with the original index from vbulletin?
also is there any way to show the number of new PM (private message) if you get one?

Thanks..

NTLDR 08-25-2002 10:22 PM

Add in the stats section:

PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers"); 

And place $newpm and $numbermembers in your templates where you want the numbers to appear.

CarlosC 08-25-2002 10:29 PM

thanks NTLDR...

I am also having a little problem with the windows that show the Latest Threads. They are not being actualized when there is a new thread..

NTLDR 08-25-2002 10:37 PM

Quote:

Originally posted by CarlosC
They are not being actualized when there is a new thread..
You mean they are not appearing? Note the polls and news forums are automatically excluded from this block.

CarlosC 08-25-2002 10:43 PM

I can see the poll and the latest threads windows.. The thing is that when there is a new thread the windows whith the latest threads don't show it.. it keeps the same threads that were alrady there. It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..

i don't see the stats section in the vbindex file.. :(

NTLDR 08-25-2002 10:52 PM

Quote:

Originally posted by CarlosC
It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..
Provided you havent changed the origional code in the latest threads section, they are forums which are visible for users and the home_threadsbit template is the origional it should work fine.

Quote:

i don't see the stats section in the vbindex file.. :(
Sorry I changed the comment in v2, put it just before:

PHP Code:

// posts info
// ------------------------- 


CarlosC 08-25-2002 11:01 PM

This is what i have in my latest thread section:

inetd 08-26-2002 10:18 AM

In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?

NTLDR 08-26-2002 05:22 PM

Quote:

Originally posted by inetd
In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?
Set the forum permissions so that only certain usergroups can post new threads.

inetd 08-26-2002 05:38 PM

NTLDR, no! I speak: im my forum of news all users can write. And i don't change permession.

drives fast 08-26-2002 09:43 PM

close the thread after your mods and admin post it then nobody can reply to it

inetd 08-26-2002 10:18 PM

drives fast. I speak about threads, not reply post...

MalaK_3araby 08-27-2002 12:16 AM

Oh god .. 17 pages already?

i really do not feel like reading all 17 pages :/

NTLDR .. thanks for this awsome hack.

i am using v1.3 and had followed up that thread closely to maintain a fixed version because bits and pieces were all over the place .. is this the case here? or is the 1st post updated always?

thanks again.

drives fast 08-27-2002 01:45 AM

then if you are speaking of threads then the other post was correct.

you want only admins and moderators to be the only ones able to post in your news forum

if that is so then you go to your forum permissions and set them so only admin and mods have permissions to post in that forum

actually....this line of questioning and answering belongs in the regular discussions area at vbulletin support forums and not in the hacks forum since this is not a feature of this hack...it is a regular feature in vbulletin

drives fast 08-27-2002 01:48 AM

MalaK_3araby,
The first post contains the good file but there is some good stuff throughout this vast thread you might want to read anyway.

dmwhynot 08-27-2002 01:58 PM

Greetings,

I recently installed vbindex but can't seem to figure something out. I have my forums one level below root called "forums" (original huh?). I made the following change to the index.php:

// relitive path to forums directory
// un-comment and set the path if vBindex is not run from the forums root directory
chdir('./forums');

Yet when I go to my home page, the links will not go into the /forums directory.

i.e. The path to new posts links to: http://www.cadchat.com/search.php?action=getnew when it should link to http://www.cadchat.com/forums/search.php?action=getnew

What am I missing?

Cheers!
David

NTLDR 08-27-2002 02:04 PM

Quote:

Originally posted by MalaK_3araby
.. is this the case here? or is the 1st post updated always?
The zip in the first post contains the latest official version with all the bug fixes currently avalible, there are however like drives fast said some mods in this thread that specific users have requested that arn't part of the official distribution.

NTLDR 08-27-2002 02:06 PM

Quote:

Originally posted by dmwhynot
What am I missing?
As none of the links are correct it means that you have $bburl set incorrectly, make sure you have the forums URL set in the vB Options correctly.

dmwhynot 08-27-2002 02:16 PM

NTLDR,

Amazing...I stare at the thing so long and I can't even see that the full path isn't correct in the basic vb setup (forgot to add the /forums). Duh....

Thanks for the heads up. Now onto the 2.2.7 patch.

Cheers!
David

inetd 08-27-2002 09:57 PM

Quote:

Originally posted by drives fast
then if you are speaking of threads then the other post was correct.

you want only admins and moderators to be the only ones able to post in your news forum

if that is so then you go to your forum permissions and set them so only admin and mods have permissions to post in that forum

actually....this line of questioning and answering belongs in the regular discussions area at vbulletin support forums and not in the hacks forum since this is not a feature of this hack...it is a regular feature in vbulletin

FCK :(
I want, that in a forum ALL users could write, but in news on vbIndex threads from admins, Mods, SMs were displayed only.
Do not answer, if not you understand about what speech!

Gohan 08-27-2002 09:59 PM

Super great hack, NTLDR!

Well possible rights table? (like as left table)

=============================================

I found little bug in vbindex.php

PHP Code:

// multi-paged vBindex page selector
if (!$page)
// no page specified
{
    eval(
"dooutput(\"".gettemplate('home')."\");");
} else 
    eval(
"dooutput(\"".gettemplate("home_$page")."\");"); 

change to

PHP Code:

// multi-paged vBindex page selector
if (!$page)
// no page specified
{
    eval(
"dooutput(\"".gettemplate('home')."\");");
} else {
    eval(
"dooutput(\"".gettemplate("home_$page")."\");");



NTLDR 08-27-2002 10:00 PM

@inetd: I'll try and take a look at this after my exam tomorrow, all I think it is will be a simple query change now I know exactly what you want :)

Right now time for sleep ;)

NTLDR 08-27-2002 10:02 PM

Quote:

Originally posted by Gohan
[B]Well possible rights table? (like as left table)
Not sure what you mean by this.

Quote:

I found little bug in vbindex.php
Both look the same to me. [edit] Now I see the difference *lol* thanks for pointing it out to me :)

Gohan 08-27-2002 10:16 PM

Quote:

Originally posted by NTLDR
Not sure what you mean by this.
nevermind cuz i'm blind from template list (home_right) :dead:

dmw 08-27-2002 10:39 PM

I just patched my vb to 2.2.7 and now vbindex draws a blank (nothing shows on the page). Any tricks available to get it to work again?

Cheers!
David

Gohan 08-27-2002 10:45 PM

You was before vbindex & 2.2.6 ?

if so.. i can helped cuz i was also problem and self solve.

step 1

ALTER TABLE 'usergroup' DROP 'canviewvbindex';

step 2

delete template home_header (from admincp)

step 3

again install vbindex (vbi_install.php)

step 4

you are done :speechless:

drives fast 08-27-2002 11:50 PM

inetd,

that wasn't very nice....your english is so broken that it took you 3 posts to convey what you meant and you tell me not to reply if I don't understand?

that wan't very nice.

people can be so rude

dmw 08-28-2002 12:09 AM

Gohan,

Thank you for the info. I tried this and all is well again.

Cheers!
David

Gohan 08-28-2002 09:30 AM

Quote:

Originally posted by dmw
Gohan,

Thank you for the info. I tried this and all is well again.

Cheers!
David

no problem, i'm glad i can helped :D

LightBringer 08-28-2002 10:39 AM

NTLDR, how would one go about making each left and right sections (poll, login, search, etc) setup so that they are in their own tables?

Giving them each a header image or graphic and their own "box" per se, similar to that of a typical vbportal setup?

clangrounds.com has a good example of this.

He has his site polls, site search, etc all in separate boxes. :)

Just a small example would be nice.

Gohan 08-28-2002 12:07 PM

You could modify a template home_left and or home_rigth :)

NTLDR 08-28-2002 04:07 PM

@ LightBringer: You need to modify a number of templates, for the left side: home_left, home_login, home_logout, home_poll and home_poll result, for the right side home_right, home_threads and home_threadbits

NTLDR 08-28-2002 04:09 PM

Quote:

Originally posted by dmw
I just patched my vb to 2.2.7 and now vbindex draws a blank (nothing shows on the page). Any tricks available to get it to work again?
I know you have done this now, but the quickest way is to run vbi_templates.php, this will re-add all the vBindex templates.

If there are any issues with 2.2.7 let me know, I have yet to test 2.2.7

Gohan 08-28-2002 04:15 PM

Quote:

Originally posted by NTLDR
If there are any issues with 2.2.7 let me know, I have yet to test 2.2.7
I use your vBindex with 2.2.7 without problem :banana:

check my test site server: Click here

NTLDR 08-28-2002 05:57 PM

Thanks Gohan, didn't think there would be any mayjor reason why it wouldn't work.

Nice customisation of the page too ;)

Gohan 08-28-2002 06:33 PM

Thank you :) i like colour as mitilary of WW2
Those site mean for Mohaa and Battlefield 1942 Clan

=============================================

I like modify:

"Latest Threads Table" under "Welcome Table"

That possible?

Gohan 08-28-2002 07:18 PM

vbimenu addon make trouble about profile and buddy.

See other topic from vbulletin.com
http://www.vbulletin.com/forum/showt...threadid=53628

cause:
PHP Code:

// parse css, header & footer ##################
include('./vbimenu.php');
eval(
"\$menu .= \"".gettemplate('home_menu')."\";"); 

Can you make solve?

P.s. i did remove above code and working fine. (not use vbimenu :()

NTLDR 08-28-2002 07:25 PM

Quote:

Originally posted by Gohan
vbimenu addon make trouble about profile and buddy.
Can you make solve?

I'll take a look at this and see if I can find out what is causing the problem.

Latest threads, change the templates to the to attached here and move $threads into the home template under the welcome table.

Gohan 08-28-2002 08:54 PM

Thank you alot, mate! I'm very glad :D
I hope just you can found bug about those profile and buddy

RenzukenX 08-28-2002 11:58 PM

This may sound like such a elementary question, and I'm aware I've taken up so much time but I must ask one more question.

I have a shoutbox installed on my forums and wish to incorporate it into the VBindex. So far I've created the table in home_right where I want it to be but when I place the $the_shoutbox into that table nothing at all shows up. I was wondering if anyone could help.


All times are GMT. The time now is 01:56 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.02588 seconds
  • Memory Usage 1,838KB
  • 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
  • (5)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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