vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] bList 1.0 (https://vborg.vbsupport.ru/showthread.php?t=2749)

08-30-2000 02:30 AM

LOL, yes. I didn't plan ahead when coding this, and hit a few nasty bugs, where therefore made the workaround code rather nasty as well... ;)

I must've warned Ed at least 5 times before forking it over. Hey, at least it works, and the new version will have some cleaned up code as well as lots of enhancements.

08-30-2000 02:43 AM

well i don't know php so can't tell the difference :) ... thanks stallion, ed and mrogish

i have both the buddy list and online user lists on my forum now :D ...

08-30-2000 02:45 AM

LOL yeah - the whole cookie storage method was weird at first, but it makes good sense when you see what it's doing.

I was going to get rid of the the "toggle" stuff in it, but that would get rid of viewing multiple people at one time.

Anyway, while Stallion's working on the new nifty version, I'm going to put out a new version with the private forum check and another bug fixed (we just worked around it before)

However, the change may "break" your cookies in that a blank row will appear. Just click the clear buddy list link I'm going to stick in there :)

08-30-2000 02:57 AM

Ok, 1.2 can be downloaded from the URL.

It adds mrogish's fix for private forums, and gets rid of a bug that was annoying me. Funny thing is, to avoid "breaking" the cookies, I may have slowed it down a little (had to use an ereg_replace(), but got rid of a next()). Oh well :D

Anyway, the clear function I mentioned isn't in it anymore since I don't need it and it wouldn't work. Someone wanna look at the code and tell me why it wouldn't work? (That same syntax has worked for me in other scripts)

Enjoy.

08-30-2000 03:19 AM

Mike,

The one I use to clear cookies has always been:

setcookie("buddylist","",mktime(0,0,0,0,0,2020),$c ookiepath);

It looks like an "issue" with cookies + location( ) calls in PHP. Check out the user discussions at:
http://www.php.net/manual/function.setcookie.php

Also, why can't you use str_replace in place of ereg_replace?

08-30-2000 03:41 AM

The private forums works in that if they don't have permission it won't allow them to read the message but the title of the thread still shows up instead of "Thread Not Viewable". So if the title of your thread was something that you didn't want anyone to see you'd be in trouble. :)

How about instead of a "Thread Not Viewable" link it just didn't list them at all?

Parker

08-30-2000 03:45 AM

str_replace won't let me just check if the first character of the string is ";" ( ^; ) - try it and see.

And thanks for the link - I just faked the location by setting $manage = 1; Of course I found another little bug in the process... :D

08-30-2000 03:48 AM

Actually, more than a little bug - cookie isn't getting deleted. Hmm...

08-30-2000 04:07 AM

Quote:

Originally posted by Ed Sullivan
str_replace won't let me just check if the first character of the string is ";" ( ^; ) - try it and see.
Ah ok, forgot how regexp worked for a sec..

The only alternative I can think of is this:

Code:

  if( substr( $buddylist, 0, 1 ) == ";" ) {
    $buddylist = substr( $buddylist, 1 );
  }

That will strip out leading ";". I think that's what you want to do, no?

I don't know if that's any faster, but you can try it out...

08-30-2000 04:16 AM

Wow, I'm an idiot. The cookie was getting deleted - but I was pulling data from my profile. :D

So that feature is now added to the release version. See original URL.


All times are GMT. The time now is 08:29 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.01065 seconds
  • Memory Usage 1,733KB
  • 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
  • (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