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)
-   -   [RELEASE vB 2.0] MSN Message Center like available on http://www.msn.com (https://vborg.vbsupport.ru/showthread.php?t=16335)

Sarge 05-09-2001 09:53 PM

This is cool,
But is there anyway that we can get the online names to appear in rows of 4 or 5 next to eachother?

If you have 30 names and all the names are under eachother it would look tore up from the floor up

Just wondering.
Cool hack

Christian 05-09-2001 09:57 PM

First of all 30 online contacts is very much!

I never have 30 of my ppl online the same time although I have about 70 in my list!


Then the problem with the tables is that you can't do that in the template!

You would have to edit the VBS script!
But if you find a solution you can tell me! ;)

Christian 05-10-2001 12:04 PM

Sarge, here is the code which list the users online:

Code:

If I_>0 Then
Dim Z_,ol,nc
Z_=""
ol=0
nc=30
Dim i
i=0
While i<I_ And ol<nc
Dim s
s=H_(i).State
If s AND 2 Then
ol=ol+1
Dim h,AB_
h=" href="""&"vbscript:op("&i&")"""
AB_=fixName(H_(i).FriendlyName,130)
Z_=Z_&"<a"&h&">"&getStateImage(s)&"</a> "&"<a"&h&" title="""
Z_=Z_&"Send an instant message to"&" "&AB_&"."
Z_=Z_&""" class=mclink>"&K_&AB_
Z_=Z_&"</font></a><br>"
End If
i=i+1
Wend
If ol>0 Then
W_="block"

What you could try is to make let this loop run until let's say 10 contacts.
Then make a new loops which runs from 11 to 20, and so on.
Give the class always a different name like mclink1, mclink2, ...
Then you can try if you can create several columns in the table row containing the online contacts in the template, by using clas mclink1 for the first comlumn, mclink2 for the second, and so on.

I think that is the only way to seperate the online users and put them in different tablerows or columns!

Christian 05-10-2001 12:14 PM

What I meant with the creating of the classes mclink1 and mclink2 is the following line:

Code:

Z_=Z_&""" class=mclink>"&K_&AB_
But I really can't say if this commands creates this class or calls it!

You have to ask some Visual Basic coders!

They will know what to do in your case! :)

Wayne Luke 05-10-2001 02:13 PM

I thought about doing this, the thought of redistributing Microsoft's code didn't please me. Especially when it specifically was not released for public distribution and they went to a decent amount of effort to obfuscate it to prevent it from being stolen.

Johnny 05-10-2001 02:14 PM

tnx a lot for the dutch installation version! :D

Johnny

Christian 05-10-2001 02:51 PM

Quote:

Originally posted by wluke
I thought about doing this, the thought of redistributing Microsoft's code didn't please me. Especially when it specifically was not released for public distribution and they went to a decent amount of effort to obfuscate it to prevent it from being stolen.
First of all they did not do any effort to prevent it from being stolen!

Second is that it is NO service that runs from their server!

The Message Center does nothing but reflecting the status of your local running program to an internet site!

It would be something different if you would get access to the MSN main server where the online status is stored so that you could display if a user is online in MSN WITHOUT having to start the program! That would be access to their services!

All it does now it showing your own contacts only to you!

Sarge 05-11-2001 10:33 PM

I removed this hack.

It is a good idea, but it looks like crap (to much wasted space). I will wait for a newer release

Christian 05-11-2001 11:18 PM

What exactly do you want to look it like?

Sarge 05-12-2001 12:03 AM

i dont like how all the names are undereachother.

I had 12 people on the other day and that table was huge.

It would look more sweet if the names were next to eachother and wrapped.

Also if the login boxes were next to eachother also


All times are GMT. The time now is 01:42 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.01087 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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