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)

el3m3nt 04-06-2002 12:55 PM

In the online.php look for..
Code:

    case 'index':
      $userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Index</a>";
      break;

Add below another case..
Code:

    case 'home':
      $userinfo[where] = "$bbtitle <a href='home.php?s=$session[sessionhash]'>Home</a>";
      break;

if you name your index-file "home.php".

Look for..
Code:

  case 'index.php':
    $userinfo[activity] = 'index';
    break;

Add below..
Code:

  case 'home.php':
    $userinfo[activity] = 'home';
    break;

Just adapt ur code to the right names of ur files.

el3m3nt 04-06-2002 01:04 PM

i noticed a bug with the newsicons.. when there is no icon selected, the url to the pic is called { imagesfolder }/icons/icon0.gif. but icon0.gif doesnt normally exist.

soon i will release version 1.1 with the buddy-list feature (the user can see his/her buddies on the indexsite)

KarateKid 04-06-2002 01:06 PM

thankyou :)

Harryli 04-06-2002 01:47 PM

Aehm... very cool, but now I cant go the Forums, it always beams me back to the new index... whats the way to go from here to the forums???

KarateKid 04-06-2002 02:13 PM

rename before uploading the file to something like home.php oder index2.php, than you have also to modify some links in the templates but then you can use your old index file as normally :)

You can compare with my version where I did it also this way. I postet the link some posts above ;)

Harryli 04-06-2002 02:20 PM

THX a lot!

-=dm=- 04-06-2002 03:21 PM

damn! this looks great.
this is exact what I needed:D
thanx el3m3nt
Quote:

Originally posted by el3m3nt
i noticed a bug with the newsicons.. when there is no icon selected, the url to the pic is called { imagesfolder }/icons/icon0.gif. but icon0.gif doesnt normally exist.

soon i will release version 1.1 with the buddy-list feature (the user can see his/her buddies on the indexsite)


when is the version 1.1 out maybe I should wait...

NTLDR 04-06-2002 04:10 PM

Quote:

Originally posted by KarateKid
can you possibly implement the sessionlocation. That I get no "UNKNOWN LOCATION" Messages in the Online-List :)
The best way to do this is to intsall FireFly's "Add Who's Online locations from Admin CP" hack located in this thread then you can add other locations easily as well.

KarateKid 04-06-2002 07:25 PM

Hi NTLDR, element posted the solution above on top of site 2 ;)

NTLDR 04-06-2002 08:42 PM

Hi el3m3nt,

I think I may a found a very minor bug, that causes a script error, at least with Internetr Explorer 6, the page still displays correctly, but depending on peoples options many anoying error messages pop up, and I like to get rid of these errors :D

On line 371 and 373 or there abouts in the php file (mine differs as I've hacked it :p )

The following lines:

PHP Code:

$pollbits .= "<tr><td bgcolor=\"{secondaltcolor}\" width=\"5%\" onMouseOver=\"this.style.backgroundColor='{firstaltcolor}'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='{secondaltcolor}';\"><input type=\"checkbox\" name=\"optionnumber[$option[number]]\" value=\"yes\"></td><td bgcolor=\"{secondaltcolor}\" colspan=\"3\"><smallfont>$option[question]</smallfont></td></tr>"

And:

PHP Code:

$pollbits .= "<tr><td bgcolor=\"{secondaltcolor}\" width=\"5%\" onMouseOver=\"this.style.backgroundColor='{firstaltcolor}'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='{secondaltcolor}';\"><input type=\"radio\" name=\"optionnumber\" value=\"$option[number]\"></td><td bgcolor=\"{secondaltcolor}\" colspan=\"3\"><smallfont>$option[question]</smallfont></td></tr>"

It doesn't seem to like the mouse roll over effects for the poll options that appear in the poll table (the onMouseOut & onMouseOver).

I removed these to lines and IE6 didn't report any script errors.

This may just be with mine! But I thought I'd let you know, other than that this hack works perfectly!


All times are GMT. The time now is 06:15 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.03250 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (2)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