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 11-22-2002 01:38 PM

As the instructions on Post 1 say you must have the shoutbox installed already if you wish to use it.

Buddha 11-22-2002 05:03 PM

sounds interesting ntldr.

look forward to checking it out.

fyi, if you're interested in seeing what i've been doing with your script, check out these screenshots.

Index - Top
Index - Slide Menu Open
Index - Bottom

because this style is a fixed width, i used a nice sliding menu to save space. normally i don't like slide menus but this one is slick and smooth. plus i did not set it as static so it doesn't scroll with the page (i hate that).

you can't see it, but under the polls, i have various ads controlled by karatekid's banner hack.

this is only the main vbindex... there are another twenty pages... lol.

Kars10 11-29-2002 02:19 PM

Ive got a Problem with it.
It shows the newstitle, the newsavatar and the newsicon. But the Newstext is not showing.
Ive checked everything twice. I set the settings with the newsforumid, and i have all templates. What can it be?? :confused:

NTLDR 11-29-2002 02:40 PM

Read though the thread, its probably been mentioned on every page for the last 3 or 4 pages.

Kars10 11-29-2002 02:52 PM

i can?t find it NTLDR, sorry! Please have a look.
Its not my Problem that this hack rocks so much that you have build 75 pages full of Posts ;) :D
I hoped u as the hackmaker could help me out!

Kars10 11-29-2002 02:57 PM

Forget about it. It was the update postids-thing. Thanks, works now!!

/me klicks install.

NTLDR 11-29-2002 03:36 PM

Update counters holds the solution to your problem. ;)

Big J 12-01-2002 06:20 AM

great hack!

bahamut0 12-03-2002 02:33 AM

hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.

http://www.gamepsycosis.com/forum/vbindex.php

one thing ive been triing for ages to get my main title to be centered above the buttons and ( ok flame me time) for the life of me cannot find the right code :( i know it's easy but my brain is giving me selective amnesia.
but again thanks for the page now i just need to give it looks.

Highlander 12-03-2002 03:31 AM

Hi, there.. how i can disable the "latest Threads (private Forum shows" it shows private boards.. did i forgot something.. its no problem burt my users [url9http.www.spieleplanet.org/forum/vbindex.php[/url] shout about that and think that they got no permission to view normal open boards.. sometimes they think so and dont know that these are private (admin) boards ..

.. and how could i make this:
to get another latest threads just from a forumid of my wishes :)

Buddha 12-03-2002 12:48 PM

Quote:

Originally posted by bahamut0
hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.

http://www.gamepsycosis.com/forum/vbindex.php

one thing ive been triing for ages to get my main title to be centered above the buttons and ( ok flame me time) for the life of me cannot find the right code :( i know it's easy but my brain is giving me selective amnesia.
but again thanks for the page now i just need to give it looks.

you want your logo centered above your navigation buttons, you mean?

Kohhal 12-03-2002 02:33 PM

Just updated to the latest version, works great. Only 17 queries on my homepage :D

bahamut0 12-03-2002 06:48 PM

yes budda my brain finnaly gave me back it's thoughts and i got it , lol well i guess there is something to be said about sleep :)

btw loving this hack just wish i new more about how to add more hacks to the vbindex page.

NTLDR 12-03-2002 06:50 PM

Quote:

Originally posted by bahamut0
hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.
I would suggest that you copy the header template to the home_header one making sure that all the paths are set correctly for the images and hyperlinks :)

NTLDR 12-03-2002 06:53 PM

Quote:

Originally posted by Highlander
.. and how could i make this:
to get another latest threads just from a forumid of my wishes :)

For info on how the permisions work: https://vborg.vbsupport.ru/showthrea...ums#post317875

Just change the Query in the threads section to say forumid=X instead of !=$newforum and !=$pollsforum

bahamut0 12-03-2002 06:55 PM

thanks will give that a shot was getting a little bothersome changing header code then going to home header and changing the same stuff lol
wow would of thought that would be a easy fix and something i would of thought of , more sleep i think i need. :nervous:

bahamut0 12-03-2002 06:58 PM

one more thing this might be the wrong forum to put this in but since it's for your index hack i'll ask here. does anyone have mabye a button that i can add to both the main index and vb index to go back and forth between them. like vbhome and home buttons .

anders 12-03-2002 08:37 PM

I would like to see a random image thing!

Ryan McBain 12-04-2002 05:50 AM

Ok i have everything installed, but I want to have it some the user login, and the 5 most recent threads show on my main page at http://www.ryanmcbain.com what do I have to do to make this happen?

Kohhal 12-04-2002 12:04 PM

Ok, here's a slight problem I have that maybe you can help me with. (hack works fine, this is just related to "who's online")

I've created .htaccess as described in the install instructions so vbindex loads when the url : http://www.mysite.com is entered. If I then quickly skip to the who's online page it says I'm on my Main forums index page, not my homepage(in the root above /forum where vbindex.php resides). But if I manually enter http://www.mysite.com/vbindex.php and then skip to the who's online it shows me as being on the homepage correctly.(so the who's online php code is fine)

So,(phew) is it possible to get the who's online to show my location correctly with regard to the .htaccess redirect?

NTLDR 12-04-2002 04:23 PM

The WOL will work correctly, for one file of each name. When looking at the homepage your localtion is set as / which is determined to be the Forum Home Page.

-=dm=- 12-04-2002 07:51 PM

Quote:

Originally posted by Minifreunde
Ive got a Problem with it.
It shows the newstitle, the newsavatar and the newsicon. But the Newstext is not showing.
Ive checked everything twice. I set the settings with the newsforumid, and i have all templates. What can it be?? :confused:

*INSTALL* :D

Hi NTLDR
Just installed on a clean board:)
Im having the above problem and I cant figure out where to look for those counters.

Logo 12-04-2002 07:53 PM

hi NTLDR !

thanks for this wonderfull hack. It works fine. thje only problem i have, is that the news will not be shown.

The Header of each News Thread is display, and i can read the whole Post when pushing the "Read Full Post" Link.

But no text appears in the news...

whats wrong ???

___________

-=db=- posted on the same time. I must say, that i have an none hacked board !!!

Logo 12-04-2002 07:58 PM

Sorry, i found it !!!

must uopdate the counters for working this hack

thx

lg

Logo

-=dm=- 12-04-2002 08:08 PM

Quote:

Originally posted by Logo
Sorry, i found it !!!

must uopdate the counters for working this hack

thx

lg

Logo

LOGO

how did you update those counter?

Logo 12-04-2002 08:11 PM

Admin control Panel - import&maintenance- update counters


and there i think the best way is to click on ervery uodate button ;)

NTLDR 12-04-2002 08:18 PM

As Logo said :)

You only need to run the Update threads with postid one though :D

-=dm=- 12-04-2002 08:19 PM

Thanx LOGO
done but Im having still the same problem, I see the title icon but not the news text...

[EDIT]

Hi NTLDR
as u can see I started all over again, removed all hacks and did a clean install:)

updated all counters but still same problem thats strange..

-=dm=- 12-04-2002 09:55 PM

in lright block how the add which forum the user have posted? (like in the old style vBindex)
Thread : Threadstarter : Forum : Replies : Last Post
I tried $postforum but it dont show up...

oh and I have still the news problem:(

NTLDR 12-04-2002 09:59 PM

Quote:

Originally posted by -=dm=-
in lright block how the add which forum the user have posted? (like in the old style vBindex)
Thread : Threadstarter : Forum : Replies : Last Post
I tried $postforum but it dont show up...

Find:

PHP Code:

$postforum=$latestforum['title']; 

Replace with:

PHP Code:

$postforum=$latestthread['title']; 

For the news, make sure you have changed newthread.php and admin/misc.php and updated the counters.

-=dm=- 12-04-2002 10:22 PM

great worked perfect:D

what about those thread icons are they gone in this version or is there still a way to add these? (currently icons are not displayed instead a "6")

this apears 3 times in the misc.php do I have to add the code 3 times.

thanx

doformfooter("Update");

NTLDR 12-04-2002 10:37 PM

Icons don't appear for the threads in this one, use $latestthread[iconid] which should give you the ID for the icon and change add the HTML from the old version with that variable in it.

-=dm=- 12-04-2002 10:59 PM

in my old vBindex.php I have this line:

PHP Code:

if ($latestthread['iconid']==0) { $icon=""; } else { $icon="<img src=\"{*imagesfolder}/icons/icon$latestthread[iconid].gif\" border=0>"; } 

in threadbit template:
Code:

<td bgcolor="$threadbg" align="center">$icon</td>
but I dont know where to insert this code in the new vBindex.php
:(

[EDIT]
an another thing,
for some strange reason it shows "Last post 01-01-1970 by username"

Ryan McBain 12-05-2002 01:15 AM

Ok i have everything installed, but I want to have it some the user login, and the 5 most recent threads show on my main page at http://www.ryanmcbain.com what do I have to do to make this happen?

Kohhal 12-05-2002 07:16 AM

Quote:

Originally posted by NTLDR
The WOL will work correctly, for one file of each name. When looking at the homepage your localtion is set as / which is determined to be the Forum Home Page.
Hmmm, so basically the way I described it working is the only way it will work ie. unless vbindex.php is in the address bar it won't show it correctly because of the "/" being regarded as forum home?

Nuts :(

Is there any way around this?

-=dm=- 12-05-2002 11:06 AM

ok fixed :D
replaced:
PHP Code:

while ($latestthread $DB_site->fetch_array($threadsquery)) {

        
$title unhtmlspecialchars($latestthread['title']);
        
$starter $latestthread['postusername'];
        
$numreplies $latestthread['replycount'];
        
$lastposter $latestthread['lastposter'];
        
$mpostid$latestpost['postid'];
        
$postdate=vbdate($dateformat,$latestpost[dateline]);
        
$posttime=vbdate($timeformat,$latestpost[dateline]);
        
$postforum=$latestthread['title'];
        
$postforumid=$latestthread['forumid'];

        
$gothreadid $latestthread['threadid'];
        if ((
$counter++ % 2) != 0) {
        
$threadbg="#F1F1F1";
        } else {
        
$threadbg="#DFDFDF";
        }
        eval(
"\$threadbits .= \"".gettemplate('home_threadbit')."\";");
    }
eval(
"\$threads = \"".gettemplate('home_threads')."\";");


with this
PHP Code:

            while ($latestthread $DB_site->fetch_array($threadsquery)) {
            
$result1 $DB_site->query("SELECT postid,dateline,pagetext FROM post WHERE threadid='$latestthread[threadid]' order by dateline desc limit 1");
            
$latestpost $DB_site->fetch_array($result1);
            
$result2 $DB_site->query("SELECT title FROM forum WHERE forumid='$latestthread[forumid]' limit 1");
            
$latestforum $DB_site->fetch_array($result2);

            
$title $latestthread['title'];
            
$starter $latestthread['postusername'];
            
$numreplies $latestthread['replycount'];
            
$lastposter $latestthread['lastposter'];
            
$mpostid$latestpost['postid'];
            
$postdate=vbdate($dateformat,$latestpost[dateline]);
            
$posttime=vbdate($timeformat,$latestpost[dateline]);
            
$postforum=$latestforum['title'];
            
$postforumid=$latestthread['forumid'];

            if (
$latestthread['iconid']==0) { $icon=""; } else { $icon="<img src=\"https://vborg.vbsupport.ru/vbimages/icons/icon$latestthread[iconid].gif\" border=0>"; }

            
$gothreadid $latestthread['threadid'];
            if ((
$counter++ % 2) != 0) {
                
$threadbg="#F1F1F1";
            } else {
                
$threadbg="#DFDFDF";
            }

            eval(
"\$threadbits .= \"".gettemplate('home_threadbit')."\";");
        }
}

eval(
"\$threads = \"".gettemplate('home_threads')."\";"); 

I added this code from the old vBindex now its working.

but I have still the news problem.

NTLDR 12-05-2002 12:11 PM

Quote:

Originally posted by TheMasterG
Is there any way around this?
My index.php is just a standard redirect that points to vbindex.php so I can see exactly where they are:

PHP Code:

<?php
error_reporting
(7);

require(
'./global.php');

eval(
"standardredirect(\"".gettemplate("redirect_vbindex")."\",\"vbindex.php?s=$session[sessionhash]\");");

?>

Create a template called redirect_vbindex and add a redirection message to it.

NTLDR 12-05-2002 12:14 PM

Quote:

Originally posted by -=dm=-
I added this code from the old vBindex now its working.
I suggest that no one uses this as it will use 2 queries for each thread, and a base query, compared to the v2.1 code which uses 1 in total. For 5 threads thats a saving of 10 queries.

-=dm=- 12-05-2002 12:38 PM

but I couldnt get it to work with the other code:(

NTLDR 12-05-2002 03:45 PM

Quote:

Originally posted by -=dm=-
but I couldnt get it to work with the other code:(
Just add this part in the while loop:

PHP Code:

if ($latestthread['iconid']==0) { 
    
$icon="";
} else { 
    
$icon="<img src=\"{*imagesfolder}/icons/icon$latestthread[iconid].gif\" border=0>"




All times are GMT. The time now is 11:01 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.02470 seconds
  • Memory Usage 1,869KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (10)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