Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Who's Online journal addition Details »»
Who's Online journal addition
Version: , by sabret00the sabret00the is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-26-2003 Last Update: Never Installs: 0
 
No support by the author.

i'm sure for a coder of any more experience than myself this is a peice of but for me i've stumbled, basically i'm trying to make the online.php say "Viewing Journal of {username} but i've stumbled, i tried to adapt apfeifer "Show Who's Profile User is Viewing in Who's Online" hack to accomodate my needs, but upon testing realised i just didn't do anything, help me please, someone!!!

Open online.php and find
PHP Code:
  global $thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$enableemail$enablepms$bbtitle$usergroupdef$numberguests
just before the semi-colon add
PHP Code:
$DB_site
Now find
PHP Code:
    case 'gallery':
      
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break; 
and directly below it add
PHP Code:
    case 'journal':
      
$userid explode("="$userinfo[location]);
      
$username=$DB_site->query("SELECT username FROM user WHERE userid='$userid'");
      
$username=$DB_site->fetch_array($username);
      if (!
$username[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing journal of <a href='journal.php?journalid=$userid&action=view&s=$session[sessionhash]'>$username[username]</a>";
      }
      break; 
Now find
PHP Code:
  case 'gallery.php':
    
$userinfo[activity] = 'gallery';
    break; 
and directly below it add
PHP Code:
  case 'journal.php':
    
$userinfo[activity] = 'gallery';
    break; 
Save, Close and upload

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-26-2003, 04:50 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does nobody have a clue as how to make this work?
Reply With Quote
  #3  
Old 01-27-2003, 11:44 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing this:

PHP Code:
case 'journal':
      
$userid explode("="$userinfo[location]);
      
$username=$DB_site->query("SELECT username FROM user WHERE userid='$userid'");
      
$username=$DB_site->fetch_array($username);
      if (!
$username[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing journal of <a href='journal.php?journalid=$userid&action=view&s=$session[sessionhash]'>$username[username]</a>";
      }
      break; 
to this:

PHP Code:
case 'journal':
      
$userid explode("="$userinfo[location]);
      
$username=$DB_site->query("SELECT username FROM user WHERE userid='$userid'");
      
$username2=$DB_site->fetch_array($username);
      if (!
$username2[username]) {
        
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      } else {
        
$userinfo[where] = "Viewing journal of <a href='journal.php?journalid=$userid&action=view&s=$session[sessionhash]'>$username2[username]</a>";
      }
      break; 
then change this:

PHP Code:
case 'journal.php':
    
$userinfo[activity] = 'gallery';
    break; 
to this:

PHP Code:
case 'journal.php':
    
$userinfo[activity] = 'journal';
    break; 
Reply With Quote
  #4  
Old 01-28-2003, 06:03 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks loo , i'll try it now
Reply With Quote
  #5  
Old 01-28-2003, 06:28 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sadly it didn't work, but hey you tried so thank you!
Reply With Quote
  #6  
Old 02-11-2003, 07:52 PM
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This SHOULD work Let me know if not.

OPEN online.php

Remove any journal stuff you added

FIND
PHP Code:
    case 'spider':
      
$userinfo[where] = "Search Engine Spider";
      break; 




ABOVE that INSERT
PHP Code:
// [BEGIN Edit] Show Who's Journal is being read
    
case 'journal':
      
$userid explode("="$userinfo[location]);
      
$username=$DB_site->query("SELECT username FROM user WHERE userid='$userid[2]'");
      
$username=$DB_site->fetch_array($username);
      if (!
$username[username]) {
        
$userinfo[where] = "Viewing <a href='journal.php?s=$session[sessionhash]'>Journals</a>";
      } else {
        
$userinfo[where] = "Viewing Journal of <a href='journal.php?s=$session[sessionhash]&userid=$userid[2]&action=view'>$username[username]</a>";
      }
      break;
// [END Edit] Show Who's Journal is being read 




FIND
PHP Code:
  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 




ABOVE that INSERT
PHP Code:
// [BEGIN Edit] Show Who's Journal is being read
  
case 'journal.php':
    
$userinfo[activity] = 'journal';
    break;
// [END Edit] Show Who's Journal is being read 
Reply With Quote
  #7  
Old 02-20-2003, 12:42 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yay it works, thank you so much bane ^_^
Reply With Quote
  #8  
Old 02-20-2003, 01:03 PM
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

=) Glad to help.
Reply With Quote
  #9  
Old 02-20-2003, 01:25 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:$ I hope you don't mind, but with a minor edit here and there, this has helped me greatly to add a few locations to my WOL. Thanks! :$
Reply With Quote
  #10  
Old 03-08-2003, 05:55 AM
zefman zefman is offline
 
Join Date: Feb 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thks too ! i have added this feature for my board

the journal hack is a fantastic thing but suffer of the absence of possibility to search in the members journals
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:45 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.04747 seconds
  • Memory Usage 2,338KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (14)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete