vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Member of the day (https://vborg.vbsupport.ru/showthread.php?t=60368)

Boofo 01-22-2004 07:00 PM

You're right. I apologize. I was trying to put it on my forumhome at the bottom so I wasn't using the template. Using mday[age] worked fine. I was looking at the code in the php file and it said memberoftheday[age] which, or course, didn't work. Needless to say, I was confused. But all is well now. ;)

Boofo 01-22-2004 07:03 PM

What does unserialize actually do? Is that like the RAND() variable or am I missing something?

NTLDR 01-22-2004 07:12 PM

http://uk2.php.net/manual/en/function.serialize.php
http://uk2.php.net/manual/en/function.unserialize.php

Quote:

serialize() returns a string containing a byte-stream representation of value that can be stored anywhere.

This is useful for storing or passing PHP values around without losing their type and structure.

To make the serialized string into a PHP value again, use unserialize(). serialize() handles all types, except the resource-type. You can even serialize() arrays that contain references to itself. References inside the array/object you are serialize()ing will also be stored.
Used quite alot in vB3, the majority of the stuff in the datastore table is serailized.

Kentaurus 01-23-2004 02:57 AM

Quote:

Originally Posted by Boofo
What does unserialize actually do? Is that like the RAND() variable or am I missing something?

Serialization is a method for making an object persistent in an OO language. You serialize the object and the use it later. PHP is still not so OO but still the serialization is a method to store data, in this case an array. I serialize an array, store it someplace then unserialize the data and get back my array. It is really useful because I can have arrays in arrays, different data types... almost everything.

Boofo 01-23-2004 10:11 AM

I'll have to look into that more. Thanks for explaining it. ;)

Also, here is what I get for an age for someone who hasn't entered a birthday.

(Age: 2004).

AutomatikStudio 01-24-2004 03:06 PM

When I try to run the cron I get: "Couldn't elect a member of the day, not enough members"...i have a couple of hundred members and I check to make sure the correct usergroups weren't restricted. Also the member box on FORUMHOME is just showing blank b/c it hasn't selected anybody.

Kentaurus 01-24-2004 07:33 PM

Quote:

Originally Posted by AutomatikStudio
When I try to run the cron I get: "Couldn't elect a member of the day, not enough members"...i have a couple of hundred members and I check to make sure the correct usergroups weren't restricted. Also the member box on FORUMHOME is just showing blank b/c it hasn't selected anybody.

Maybe you should lower the restrictions for the member of the day, maybe none of them have 50 (or the number you set) posts, or they all have less than 10 of reputation, or maybe no one has posted recently and the lastactivity var is set to 1 or something very low.

AutomatikStudio 01-26-2004 01:07 AM

Quote:

Originally Posted by kentaurus
Maybe you should lower the restrictions for the member of the day, maybe none of them have 50 (or the number you set) posts, or they all have less than 10 of reputation, or maybe no one has posted recently and the lastactivity var is set to 1 or something very low.

I've got it set to where no groups are restricted, 0 posts, no last days logged in, a reputation of 0, etc....i've got it set to where anybody can get picked.

Kentaurus 02-01-2004 08:43 PM

Quote:

Originally Posted by AutomatikStudio
I've got it set to where no groups are restricted, 0 posts, no last days logged in, a reputation of 0, etc....i've got it set to where anybody can get picked.

Then anybody has posted in that day? It needs at least 1 user with 1 post... I can't think right now in anything else that could be causing that

Boofo 02-01-2004 09:07 PM

kentaurus, can you look at post 25 here and see if you can figure out why this is doing that, please, sir? ;)


All times are GMT. The time now is 08:43 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.01209 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)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