vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Show Spiders on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=119134)

vwdforum 09-07-2006 02:10 PM

Quote:

Originally Posted by TLove
Try this


Excellent!

Works just fine, shame not having the numbers on the home page but I can live with that!!

Mal

mac27 09-07-2006 08:58 PM

So can you color the spiders or make them a group. I was thinking of adding them to my legend that shows who is online.

amykhar 09-07-2006 09:01 PM

You can, but you have to modify the code. If you know how to code, yell and I'll point you to the section you would need to work in.

Zia 09-11-2006 04:48 AM

by the way..spiders visited today..can it be listed in "Users visited Today" block and "show spider browsing thread" too?

mac27 09-11-2006 04:50 AM

Hey Amy I don't want to yell to loud. LOL Thanks and yes could you point me in that direction. :)

Ronak 09-14-2006 04:15 PM

gr8 mod...Installed ;)

amykhar 09-14-2006 07:28 PM

Quote:

Originally Posted by Zia
by the way..spiders visited today..can it be listed in "Users visited Today" block and "show spider browsing thread" too?

Yes, it can be done, and I had it done on my site at one point. I'll look into putting it back on my site and then will add it into the install directions here.

amykhar 09-14-2006 07:34 PM

If you want colored spider names (and I'm NOT supporting this part) here's what you do:

Find:
Code:

while ($spidername = current($spiderlist))
  {
  if ($spidername > 1) {
  $loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
  }
  else
  {
  $loggedin['musername'] = trim(key($spiderlist));
  }
  $loggedin['userid'] = 0;
  eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
  next($spiderlist);
  }

Replace it with (for example):
Code:

while ($spidername = current($spiderlist))
  {
  switch($spidername)
  {
    case "Google": $spidername = "<span style='color:blue;'>$spidername</span>";
    break;
    case "Yahoo": $spidername = "<span style='color:red;'>$spidername</span>";
    break;
  }
  if ($spidername > 1) {
  $loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
  }
  else
  {
  $loggedin['musername'] = trim(key($spiderlist));
  }
  $loggedin['userid'] = 0;
  eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
  next($spiderlist);
  }

Of course, you will have to look at the exact spider names and decide what colors you want the spider to be. The code I posted is just a general idea of how to go about it.

rob30UK 09-15-2006 02:32 PM

I would be most grateful for this hack, but feel there must be a way without edits.

Has anyone any idea how this can be ported to require no code changes.

mcyates 09-16-2006 08:38 AM

this does not work with vbulletin version 3.6.1.


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