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

LearningMan 06-21-2002 08:47 PM

Thank you sir. Just overlooked it twice...

bandersen 06-21-2002 09:41 PM

Hi, I would like to look into this... I tried to download version 1.3 in post 1, but it seems to be empty.

CannonFodder 06-22-2002 01:07 AM

i got the blank screen fixed, but how in gods name do i submit news? it lets me do the polls, but i cant do the news!

CannonFodder 06-22-2002 02:49 AM

okay, i got everything working - only thing i want to know now is how can i get to nav bars (on on each side) instead of just the one on the left?

CannonFodder 06-22-2002 03:48 AM

i`m sorry, i`m such a n00b at this stuff, i dont know how to do anything... i put the right box on my vb index ($right) and it says
Quote:

Add here whatever you want :).
so, how do i add what ever i want there?

NTLDR 06-22-2002 08:38 PM

You need to edit the template home_right to replace that text and have something usefull there ;)

CannonFodder 06-22-2002 08:54 PM

yes i figured it our last night - thanks anyways!

Royal 06-23-2002 02:07 PM

great hack

but i found an ''bug'' (not sure)

when i go to who's online and a user is at the index i get :
location
Unknown Location: /forum/main.php?

how to fix this ?

NTLDR 06-23-2002 04:07 PM

Quote:

Originally posted by Royal
great hack

but i found an ''bug'' (not sure)

when i go to who's online and a user is at the index i get :
location
Unknown Location: /forum/main.php?

how to fix this ?

Thats exactly what ir should say.

Please read the thread for info on how to change this.

Vinney 06-23-2002 04:41 PM

mine dont work too good :(

any ideas ??

http://forum.peugeot-gti.net/home.php

SONOFSAM 06-25-2002 12:21 PM

a few problems im having:

i installed vbindex 1.3 but still getting the problem where my private forum titles are being shown. users are unable to view the thread, but still see title.

when the users vote it takes the to the actual post on the forum, is there a way to keep the on the home page?

also, when i try to select to see more thread it takes me to my forum. how do i keep when i hit "go" to stay on the home page?

Enjoy Marcus 07-05-2002 06:06 PM

how would i go about taking the latest threads part, and actually placing them on my forum home?

also is their a way of makign the polls random, selecting them from the polls postes in the poll forum? thanks, nice hack btw.

WoodiE 07-05-2002 07:57 PM

well i have it installed now, but how the heck do i goto the forum itself? www.rcnitrotalk.com is where i have installed it. I cant seem to get a view of the forum as if it wasnt installed. Can I still do that or does this mod take over completly.

If i use the pull down menu I can access the forums one by one but i cant seem to see all of them at once, why not?


WoodiE

MalaK_3araby 07-07-2002 09:11 PM

Hi there.

Great Hack i say ... me and my ppl are so happy with it.
Goof Job & Many Thanks.

I do not wnat to edit the template manually for update,
is there a way to have the right cell display contents of an external html file?

Kars10 07-11-2002 09:00 PM

Hello guys!!
Please help im in big Trouble!! I want to install this hack (V.1.2) and there major Problems i cant fix.
I doing all in the instruction file stands, but im getting a f*** parse error "Parse error: parse error in /homepages/15/d13391396/htdocs/forum/index2.php on line 348"
i named the new index "index2.php.
Please help me, i want this hack!!!! :confused:

Steph2k 07-15-2002 04:12 PM

Great Hack! But I do have a really teeny prob I cant figure out. In the news section, the icons aren't showing up for me.

Steph

NTLDR 07-15-2002 05:21 PM

Quote:

Originally posted by Steph2k
Great Hack! But I do have a really teeny prob I cant figure out. In the news section, the icons aren't showing up for me.
If you read through the thread you will find the fix for this.

Vinney 07-15-2002 08:59 PM

i've got my vbhome working !! looking rather good.

i have a slight problem, i wish to add $avatarimage to my home_logout template .... but it does not work when i do so.

But it does work if i place it in the left template .... why is this ?? Why will $avatarimage work in a one template and not another ?

http://forum.peugeot-gti.net/home.php

Vinney 07-15-2002 09:25 PM

btw, also my vbhome is running 56 queries .... is this high ... and if so, why ?

go to http://forum.peugeot-gti.net/home.php and look at the footer of the page for more info.

Cheers.

NTLDR 07-15-2002 09:59 PM

Quote:

Originally posted by Vinney
i've got my vbhome working !! looking rather good.

i have a slight problem, i wish to add $avatarimage to my home_logout template .... but it does not work when i do so.

But it does work if i place it in the left template .... why is this ?? Why will $avatarimage work in a one template and not another ?

http://forum.peugeot-gti.net/home.php

Is it vBhome or vBindex you have? If its vBhome then this is the wrong thread.

57 is a high number of queries, you want to try and keep it bellow 30 for optimal performance, if you don't have many conncurrent visitors though it doesn't matter to much.

Steph2k 07-16-2002 08:47 PM

Hmmm. I did this but it does not seem to be working for me. Any other ideas?

Steph

Quote:

Originally posted by NTLDR
OK, I have removed the folloing code from the file and at the moment it seems to be working correctly.

Either remove (or comment out each line with // ):
PHP Code:

// today online hack by Mystics - start
  
if ((int)$maxusers[0] <= $totalonline) {
    
$time time();
    
$maxloggedin "$totalonline " $time " " $maxusers[2] . " " $maxusers[3];
    
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
    
$maxusers[0] = $totalonline;
    
$maxusers[1] = $time;
  }

  
$todayloggedinusers "";
  
$numbertodayonline 0;
  
$numbertodayonlineinvisible 0;

  
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
                WHERE lastactivity > " 
mktime(0,0,0,date("m"),date("d"),date("Y")) . "
                ORDER BY username"
);
  while (
$todayuser=$DB_site->fetch_array($todayusers)) {
    
$numbertodayonline++;
    if (
$todayuser['invisible']==and $bbuserinfo['usergroupid']!=6) {
      
$numbertodayonlineinvisible++;
      continue;
    }
  }

  
$DB_site->free_result($todayusers);

  if (
$bbuserinfo[usergroupid] == 6) {
    
$todayonline $numbertodayonline;
  } else {
    
$todayonline $numbertodayonline $numbertodayonlineinvisible;
  }
//today online hack by Mystics - end 

The downside to this is that you can't display the number of registered users logged in today on the vBindex page, so you also need to remove (or comment out):

Code:

<a href="online.php?s=$session[sessionhash]">Online Today</a>: <b>$todayonline</b><br>
From the template home_left

Let me know if this works for you, it seems to for me at the moment :D


NTLDR 07-17-2002 12:00 PM

Quote:

Originally posted by Steph2k
Hmmm. I did this but it does not seem to be working for me. Any other ideas?
That should do the job, its worked perfectly for me since I made that modification to my forums. I would guess that its something else that is causing the problem.

Vinney 07-17-2002 12:43 PM

Quote:

Originally posted by NTLDR


Is it vBhome or vBindex you have? If its vBhome then this is the wrong thread.

57 is a high number of queries, you want to try and keep it bellow 30 for optimal performance, if you don't have many conncurrent visitors though it doesn't matter to much.


sorry i have vbindex ...... the one on this thread. why is my vbindex running so many queries ???

NTLDR 07-17-2002 01:03 PM

Quote:

Originally posted by Vinney
sorry i have vbindex ...... the one on this thread. why is my vbindex running so many queries ???
Because of all the stuff you have displayed on the page, the only way to reduce the number of queries is to remove sections of the code, like news, latest threads, polls etc.

Spingo 07-19-2002 09:38 AM

Great mod peoples. I have successfully got it running rather smoothly in the directory below my forums (the hack is installed in /, the forums under /forums). I just have one problem though... (of course I do, otherwise I wouldn't be writing this)

If I write a post in the news forum like:
Quote:

This is written on the first line.

This is written on the third line, and there is a blank line between this and the first line.
it shows on the vbindex page as:
Quote:

This is written on the first line. This is written on the third line, and there is a blank line between this and the first line.
ie., the line breaks appear in the post, but not on the vbindex page.

This is the only lil minor problem that I'm having at the moment. I've tried looking in the vbindex.php file, and from what I can see, the following three lines get the post from the database:
Quote:

$getnews=$DB_site->query_first("SELECT * FROM post WHERE threadid='$newsthreadid' ORDER BY postid ASC LIMIT 1");
$newstext=bbcodeparse($getnews[pagetext],$newsforum,1);
$newstext=str_replace("<br />","",$newstext);
Has anyone been able to get line breaks to appear in the vbindex page? If so, how did you do it?

Also, with the amount of codefixes and ammendments that have been made since the v1.3 release, are we likely to see v1.4 soon?

NTLDR 07-19-2002 04:57 PM

Quote:

Originally posted by Spingo
This is the only lil minor problem that I'm having at the moment. I've tried looking in the vbindex.php file, and from what I can see, the following three lines get the post from the database:
Remove this line to allow line breaks in the newsblock

PHP Code:

$newstext=str_replace("<br />","",$newstext); 

Quote:

Also, with the amount of codefixes and ammendments that have been made since the v1.3 release, are we likely to see v1.4 soon?
I have no idea if el3m3nt is supporting or going to release a new version of this hack, he doesn't seem to post much in this thread, I may see about releasing a new version if he isn't going to and theres any interest.

iblis 07-23-2002 05:17 PM

OMG! my site is SO slow with vBindex..

take a look: http://www.freakforum.nu/index.php

takes up to one minutte to load.. whats wrong?

please help, its a bussy norwegian site! ;)

NTLDR 07-23-2002 09:28 PM

Quote:

Page generated in 26.07498503 seconds (0.43% PHP - 99.57% MySQL) with 65 queries.
This is why its so slow, the main page has 65 queries on it. You will need to remove some functions from your vbindex PHP file to reduce the number of queries and thus speeding up the load time of the page.

iblis 07-24-2002 05:21 AM

NTLDR: ahh.. thanks.. I removed the polls from index.php and the templates.. works perfect now! ;)

love this hack! :)

btw NTLDR, you know of a easy way to add the avatar on the user on the index page?

Ninth Dimension 07-24-2002 10:20 AM

Hi all, i've just installed this hack here (soon to be here), and so far it's looking really good.

What I want to do, once i've moved the forum to GameVine.co.uk is use this file in the root directory rather than the forum dir, what would I need to change in order for this to be possable?

Cheers (sorry if this quistion has already been asked, but over 300 posts is a bit too much to track though)

iblis 07-24-2002 10:39 AM

Quote:

Originally posted by danielhollands
Hi all, i've just installed this hack here (soon to be here), and so far it's looking really good.

What I want to do, once i've moved the forum to GameVine.co.uk is use this file in the root directory rather than the forum dir, what would I need to change in order for this to be possable?

Cheers (sorry if this quistion has already been asked, but over 300 posts is a bit too much to track though)

just add:

chdir("/home/yoursite/forum");

above "require('./global.php');" in vbindex index.php file..

then add "/forum" on all the url's in the vbindex templates :)

ps: sorry for my bad english..

Ninth Dimension 07-24-2002 11:19 AM

Hi, thank you for this, it works fantasticly (i just put in chdir("./forum"); rather than the whole path)

I do have another problem, voting on the poll does not work, I get the following error message:
Quote:

The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session.
(Yet again, i'm sorry if this question has been answered, but like i said before, 300 posts in a little too much to read though)

Cheers again.

NTLDR 07-24-2002 05:49 PM

Quote:

Originally posted by danielhollands
I do have another problem, voting on the poll does not work, I get the following error message:(Yet again, i'm sorry if this question has been answered, but like i said before, 300 posts in a little too much to read though)
Indeed this has been fixed somewhere in this thread, I'm going to contact el3m3nt and see if I can release a new version with all the bug fixes and maybe somemore features soon.

From memory you should have this line in the home_poll template:

Code:

<input type="hidden" name="s" value="$session[sessionhash]">
Which needs to be changed to:

Code:

<input type="hidden" name="s" value="$session[dbsessionhash]">
To be able to vote correctly.

NTLDR 07-24-2002 05:52 PM

Quote:

Originally posted by iblis
btw NTLDR, you know of a easy way to add the avatar on the user on the index page?
The way I have done this is to use the welcome panel hack that is avalible for your forums and applied it to the front page, take a look at mysite for an example. Is that the kind of thing you wanted?

Ninth Dimension 07-24-2002 07:07 PM

Thank you for the advice, i'll be looking foward to any new releases of this hack :)

NTLDR 07-24-2002 08:49 PM

No problem ;)

I've contacted el3m3nt regarding a new (or updated) realease of this hack and am wating to hear back from him.

iblis 07-26-2002 06:00 AM

NTLDR: I used the code from the "welcome panel" to.. but my index.php is not in the /forum directory..

so the avatar image gets broken, pointing to www.domain.com/avatar.php ..

the correct url would be www.domain.com/forum/avatar.php ..

but I cant find the <a> to fix it :(

Ninth Dimension 07-26-2002 06:42 AM

I found the only way to solve this problem was to edit the {imagesfolder} patch in the replacements section of the admin.

Try that :)

iblis 07-26-2002 11:24 AM

huh? /vbimages?

Grower 07-26-2002 05:17 PM

I highly recommend everybody using this hack to install also "Thread Preview Hack". Some level of data redundancy is the only way to go with this kind of hack. Then you can remove extra queries in loop (putting query into a loop is always the worst solution and should be avoided).

For those who have installed this hack and have also "firstpostid" column in thread table here is code you can use for pulling news:
Code:

// news by nakkid (modified)
// -------------------------
$newsquery=$DB_site->query("SELECT thread.threadid,thread.title,thread.dateline,thread.postusername,thread.postuserid,
thread.replycount,thread.iconid,post.pagetext,icon.title AS icontitle,icon.iconpath
FROM thread
LEFT JOIN post ON thread.firstpostid = post.postid
LEFT JOIN icon ON icon.iconid = post.iconid
WHERE forumid='$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
while ($news=$DB_site->fetch_array($newsquery)) {
  $newsthreadid=$news[threadid];
  $newstitle=$news[title];
  $newstime=vbdate($timeformat,$news[dateline]);
  $newsdate=vbdate($dateformat,$news[dateline]);
  $newsusername=$news[postusername];
  $newsuserid=$news[postuserid];
  $comments=$news[replycount];

  $newstext=bbcodeparse($news[pagetext],$newsforum,1);
  $newstext=str_replace("<br />","",$newstext);

  if ($news[iconid]=='0') {
        $news[icontitle]="";
        $news[iconpath]="https://vborg.vbsupport.ru/images/icons/icon.gif";
  }

  eval("\$newsbits .= \"".gettemplate('home_newsbit')."\";");
}

eval("\$news = \"".gettemplate('home_news')."\";");

Also there is an error on first few lines where templatesused string is filled (missing commas) which caused extra queries. Here is fixed code:
Code:

$templatesused='error_nopermission,home,home_buddy1,home_buddy2,home_footer,home_header,home_headinclude,home_left';
$templatesused.=',home_login,home_logout,home_news,home_newsbit,home_nothreads,home_poll,home_pollresult,home_right';
$templatesused.=',home_threadbit,home_threads,forumhome_loggedinuser,forumhome_loggedinusers,maxloggedin';

This thread is so long that I hope I'm not reposting something already fixed :)


All times are GMT. The time now is 04:06 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.01781 seconds
  • Memory Usage 1,860KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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