vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   like ICQ indicator (https://vborg.vbsupport.ru/showthread.php?t=41589)

ripman 07-27-2002 08:43 AM

like ICQ indicator
 
Hello I need to place an online/offline indicator on my forum and I'm lost. On VB 2.0.0 it was simple :


PHP Code:


if ($post[field5]!=""
{
eval(
"\$post[field5] = \"".gettemplate("gadu-gadu")."\";");
}
else 
{
$post[field5]="";


and add template gadu-gadu which is

PHP Code:

img src="http://www.gadu-gadu.pl/users/status.asp?id=$userinfo[field5]alt="#GG : $userinfo[field5] - wyslij mi wiadomosc" border=

When i wanted to upgrade to 2.2.6 i noticed that showtread.php whas modified. Can anyone tell me where did you move the part of code like this (it's from showthread.php @ vb2.0.0):

PHP Code:

 if ($post[showemail] and $displayemails) {
      eval(
"\$post[useremail] = \"".gettemplate("postbit_useremail")."\";");
    } else {
      
$post[useremail]="";
    }
    
$userinfo=$post;
    if (
$post[icq]!="") {
      eval(
"\$post[icqicon] = \"".gettemplate("icq")."\";");
    } else {
      
$post[icq]="";
    }
    
    if (
$post[field5]!="") {
      eval(
"\$post[field5] = \"".gettemplate("gadu-gadu")."\";");
    }
    else {
      
$post[field5]="";
    } 
    
    if (
$post[aim]!="") {
      eval(
"\$post[aimicon] = \"".gettemplate("aim")."\";");
    } else {
      
$post[aim]="";
    }
    if (
$post[yahoo]!="") {
      eval(
"\$post[yahooicon] = \"".gettemplate("yahoo")."\";");
    } else {
      
$post[yahoo]="";
    }

    if (
$post[homepage]!="" and $post[homepage]!="http://") {
      eval(
"\$post[homepage] = \"".gettemplate("postbit_homepage")."\";");
    } else {
      
$post[homepage]="";
    }

    if (
$post['receivepm'] and $enablepms==1) {
      eval(
"\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
    } else {
      
$post[pmlink] = "";
    } 


Xenon 07-27-2002 10:31 AM

search throug functions.php you'll find this code in getpostbit section

ripman 07-27-2002 10:34 AM

got it :laugh:

big thx :cheeky:


All times are GMT. The time now is 12:34 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.01233 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete