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)

NTLDR 06-09-2002 07:21 PM

Quote:

Originally posted by BrAinZ
But I am using Version 2.0.3 that does not have this code.
I'm afraid I don't have a version as early as 2.0.3, try looking for a line that starts:
PHP Code:

$activeusers ""

or similar and copy to a line like:
PHP Code:

eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";"); 

or similar if they exist in 2.0.3.

I would suggest that you upgrade to 2.2.6 if you can and remove many security expolits on your board.

Tigga 06-09-2002 09:41 PM

Thanks for the help NTLDR. It worked great except you forgot to end the link on this line

$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';

It worked fine after I added </A> though. :)

JF1980 06-11-2002 10:24 PM

I installed it (with the links mod) and here it is: http://www.thrill-seekers.net/forums/home.php

Now how do I use it in http://www.thrill-seekers.net/index.php , leaving the forums index at http://www.thrill-seekers.net/forums/index.php

e.g. rename home.php to index.php and have in in my root directory, not the vb directory?

Also, I believe that this is v 1.2, how do I upgrade to 1.3?

Also, when im logged out, the page is blank!

LightBringer 06-14-2002 04:47 AM

*Fixed*

-=dm=- 06-14-2002 10:49 PM

Hi NTLDR

I have activated the rightblock, now I want, when user click on a button instead of open a new page I like it to appear in the center exact like u have on u r vBindex (with left and right blocks still there) :)
once u told me something like this "home.php?s=&mypage_blahblah" but I cant remeber :(

NTLDR 06-15-2002 08:52 PM

Hi -=dm=- the info is somewhere in this thread, but its quicker to repost then to find it ;)

You need to replace: (should be near the end of the file)

PHP Code:

eval("dooutput(\"".gettemplate('home')."\");"); 

With:

PHP Code:

if (!$page)
// no page specified
{
eval(
"dooutput(\"".gettemplate('home')."\");");
}
else
eval(
"dooutput(\"".gettemplate("$page")."\");"); 

You can change:

PHP Code:

$page 

to whatever you want in the URL so in the above code the url to get to a page would be:

Code:

x.php?s=$session[sessionhash]&page=template_name
Where:

x.php is the name of the vbindex.php file;

$session[sessionhash] is the users sessionhash where required, should be used in all links;

and template_name is the name of the template you wish to be displayed.

To create new pages just make a copy of your home template and change the main content.

If no page is specified in the url then the home template is loaded.

GuruXL 06-15-2002 11:13 PM

I don't know where the discussion is exactly but, I would like to show off my programming site now :p

A sneak peek at whats to come..

http://www.flohost.com/~guruxl/index.php

GuruXL 06-15-2002 11:23 PM

i just realized something...

All you really did was take the "Pages Via Template" Hack, add a few variables and things from other hacks, and viola, this hack...

MalaK_3araby 06-16-2002 08:21 AM

Quote:

Originally posted by NTLDR


Wrong

This will work in another directory other than your forums dir, if you use the chdir command:

PHP Code:

chdir("/path/to/forums"); 

Above:

PHP Code:

require("global.php"); 


Hiya NTLDR

i did that and it works .. but there is always a but ..
its images .. they are not showing since all ther refrence is for /images not vbb/images ...
I do not want to manually enter that since it i am using many styles. Any ideas on how to correct that and get the correct path for {imagesfolder}?

-=dm=- 06-16-2002 10:05 AM

Hi NTLDR thanx :)
this was exact what I was looking for.
now is it possible to see which page user are on, on "who is online"?


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