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)

The Piper 06-07-2002 07:20 PM

:dead:

Shame on me for not finding it! :)

Anyway, I'd like to thank both el3m3nt and NTLDR for all of their great support on this hack. I have finally ported all of my website to vBulletin and I'm using vbIndex to drive the main page. It is now finally online.

In case you want to check it out: All Pink Floyd Fan Network.

Thanks again for everything, guys!

Paulo

Tigga 06-08-2002 06:52 AM

Nice hack el3m3nt. :)
I'm currently working on totally redesigning my site to incorporate the features of vBulletin into it more. At first I was going to use vBhome, but I think I may switch to this one instead.
The one thing that I can not seem to figure out (and does not seem to be in either of these hacks) is how to display a users avatar with the rest of their information. I've tried to figure this out myself, but I'm not that good with php code yet. If anyone could help me with this it would be much appreciated.

NTLDR 06-08-2002 08:44 PM

Quote:

Originally posted by The Piper
Anyway, I'd like to thank both el3m3nt and NTLDR for all of their great support on this hack.
No problem, I'm glad I could help, you've done a good job with your sites home page, congrats :)

NTLDR 06-08-2002 08:46 PM

Quote:

Originally posted by PlurPlanet
The one thing that I can not seem to figure out (and does not seem to be in either of these hacks) is how to display a users avatar with the rest of their information.
Do you mean like how I have the users avartar shown on my vBindex page? If so I'll work out the code and where you need to put it in the standard vBindex file.

Tigga 06-08-2002 09:06 PM

Hi NTLDR,
I just checked out your site again and that is exactly what I am trying to do. If you could tell me what code needs to be placed in the vBindex page I would appreciate it. I'm not exactly sure of the rules about posting code from vBulletin on here, so if it would be better you could just PM or email me.
Thanks for the help! :)

The Piper 06-09-2002 05:56 PM

I just noticed that guest users see the poll in the main page but are not able to vote on it. It says "User already voted", even though I set the poll forums permissions to allow guests to vote.

Any way to change this?

Thanks!
Paulo

NTLDR 06-09-2002 06:07 PM

Quote:

Originally posted by PlurPlanet
Hi NTLDR,
I just checked out your site again and that is exactly what I am trying to do. If you could tell me what code needs to be placed in the vBindex page I would appreciate it. I'm not exactly sure of the rules about posting code from vBulletin on here, so if it would be better you could just PM or email me.
Thanks for the help! :)

Right, you need to add this code:

PHP Code:

// show avatar
// -------------------------
if ($bbuserinfo[userid]!=0) {
  
$avatarurl=getavatarurl($bbuserinfo[userid]);
  if (
$avatarurl=='') {
    
$avatarurl='images/avatars/noavatar.gif';
  }
  
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
  
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';


After this code in the vbindex php file:

PHP Code:

]// vBindex - start
// ------------------------- 

This code is taken from the welcome pannel hack and full credit goes to the creator of that hack.

You need to add:

Code:

$avatarimage
in the template that you want the avatar to be displayed.

NTLDR 06-09-2002 06:10 PM

Quote:

Originally posted by The Piper
I just noticed that guest users see the poll in the main page but are not able to vote on it. It says "User already voted", even though I set the poll forums permissions to allow guests to vote.

Any way to change this?

Thanks!
Paulo

Does this happen in the forum when a guest votes? As all guests have userid 0 I'm asuming when one guest votes it allows no other guests to vote, can users vote multiple times?

The Piper 06-09-2002 06:15 PM

Quote:

Originally posted by NTLDR


Does this happen in the forum when a guest votes? As all guests have userid 0 I'm asuming when one guest votes it allows no other guests to vote, can users vote multiple times?

No, I just logged in as guest and when I go to the forums, I'm allowed to vote. Pretty strange, isn't it?

BrAinZ 06-09-2002 07:06 PM

I have tried to install this hack, but can't find the relevant bit of the original index.php file :(

Instructions say find this:

PHP Code:

    $activeusers "";
    
$loggedinusers "";

   
till    
    
      $recordusers 
$maxusers[0];
      
$recorddate vbdate($dateformat,$maxusers[1]);
      
$recordtime vbdate($timeformat,$maxusers[1]);
      eval(
"\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";"); 

But I am using Version 2.0.3 that does not have this code.

Anyone got any ideas?


All times are GMT. The time now is 09:22 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.01394 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_php_printable
  • (5)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