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)

AlexanderT 03-09-2004 06:24 AM

Good hack :)

AlexanderT 03-09-2004 07:51 AM

Btw, does anyone know how to modify the hack to display the member's avatar, even if the avatar is from the database and not custom (currently only custom uploaded avatars are shown).

brandy 03-20-2004 09:21 PM

I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy

brandy 03-21-2004 02:09 PM

Quote:

Originally Posted by brandy
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy

Another question, how can I add a custom profile field to display in the memberoftheday? I tried various things, but can't figure it out.

Thanks much!
Brandy

will_lean 04-22-2004 11:21 PM

Is it possible to also call the users avatar(default one if you use it) to be displayed along with the info?

Code:

$memberOfTheDay = $DB_site->query_first("SELECT user.userid,user.username,user.posts,user.reputation,user.birthday
im assuming itd be more or less adding the extra avatar or profile tables to the above query?


could this also be possible for what brandy is looking for?
i.e adding in the profile feild table to the query.

this hack is very cool thanks alot!

fridayweb 04-29-2004 08:09 PM

Nice feature. I would like to add the info of "join date" next to their posts. I can see where to put things, but I'm not sure the exact language to create a new variable of $mday[join]. Could anyone help me out? :squareeyed:

JagFan 05-03-2004 05:45 PM

Nice hack! Thanks..installed and working great.

brandy 05-09-2004 03:10 AM

I've got "member of the day" at my site www.doggiedoor.com/forums/ and I have it set up so that only the moderators are elected (did this by restricting all other usergroups). We've had it up for about a month now, I've got 15 moderators that it chooses from, and a few have never been chosen.

Note: They DO meet the requirements I have set up, as in posted at least once, posted and logged in in the last 30 days, have a reputation over 99.

I can't seem to figure out why they would be passed over? They are feeling neglected, apparently they've been waiting for their turn to no avail.
Any clues?
Brandy

Odoin 05-09-2004 03:33 AM

Could it just be the luck of the draw? It you look at many things that use random numbers it seems sometimes a few numbers do not come up as much as others... I donno :ermm:

AlexanderT 05-09-2004 11:23 AM

Quote:

Originally Posted by will_lean
Is it possible to also call the users avatar(default one if you use it) to be displayed along with the info?

That is what I am looking for, too. Looks like Kentaurus hasn't visited this thread for the past two months though :(

Maikeru 05-13-2004 11:44 PM

Good work. I learned a lot by seeing this hack on some forums. I even made friends. :nervous:. I'll probably be using this hack too.

brandy 05-15-2004 02:25 PM

Quote:

Originally Posted by AlexanderT
That is what I am looking for, too. Looks like Kentaurus hasn't visited this thread for the past two months though :(

I've noticed on mine, that some avatars appear, and others don't. It seems that the smaller avatars appear, but the larger ones don't - but I'm not sure if size is the defining factor.
Brandy

Kentaurus 05-16-2004 08:10 AM

Quote:

Originally Posted by brandy
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy

Another question, how can I add a custom profile field to display in the memberoftheday? I tried various things, but can't figure it out.

Thanks much!
Brandy

Some modifications to my hack (just download the files again):

Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)

You can now use any user or userfield variable in the memberoftheday template.




About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.

AlexanderT 05-16-2004 09:10 AM

update works great!

Thanks Kentaurus.

brandy 05-16-2004 08:28 PM

Quote:

Originally Posted by Kentaurus
Some modifications to my hack (just download the files again):

Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)

You can now use any user or userfield variable in the memberoftheday template.




About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.

Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy

Kentaurus 05-17-2004 04:11 AM

Quote:

Originally Posted by brandy
Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy

Just wait for the next member of the day to be generated, I expect then the avatar will be visible.

You need to use $mday[field5], please let me know if that works as expected.

fridayweb 05-31-2004 01:31 AM

Do you know of a way to get the tasks list to generate a page so that people could see all of the previous members of the day?

Hmm... or maybe just do an automatic entry on the calendar so people can see it that way.

SaN-DeeP 06-01-2004 09:27 AM

i just installed it
everything is fine except the users avtars are not getting display :)

i think they are using custom avtars on forum..
any ideaz to fix this.

Thnx.
Sandy...

SaN-DeeP 06-03-2004 08:15 AM

Quote:

Originally Posted by SaN-DeeP
i just installed it
everything is fine except the users avtars are not getting display :)

i think they are using custom avtars on forum..
any ideaz to fix this.

Thnx.
Sandy...

pretty weird
but as stated in ur above post. it will work after 1 day and it does ;)


however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)

When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.

Sandy...

Kentaurus 06-04-2004 06:00 AM

Quote:

Originally Posted by SaN-DeeP
pretty weird
but as stated in ur above post. it will work after 1 day and it does ;)


however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)

When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.

Sandy...

Change the hour in the cron job. Instead of having it at 0 hour substract 13 hours so it can change just at midnight.

SaN-DeeP 06-05-2004 06:23 AM

Quote:

Originally Posted by Kentaurus
Change the hour in the cron job. Instead of having it at 0 hour substract 13 hours so it can change just at midnight.

where are the changes to be done exactly ??
In my cron jobs
i have set the hours to be 13 and minutes 0
is that fine ??

also the avtars are still not getting displayed.

1 more things, i have set to give 50 points to users who get this Member of Day Title.
But, it just shows members reputation to be done on the Member of Day box.

weras in there profiles it shows more. :S

Any fix for this
Thnx.
Sandy...

Malke 06-05-2004 07:15 PM

I have 2 questions:

If I set it to run once/week, does that mean that $days now stand for 1 week, or do I still set it so that the same member can't be "member of the week" in i.e 14 for 2 weeks?

In that case does 14 mean 14 days (2 weeks) or 14 weeks (since it's only being updated once/week).

Also, I've made it so that it's being updated every monday. Do I need to set an exact hour & minute for it to be done or will it just automaticly do it sunday night at midnight?

brandy 06-06-2004 12:57 AM

Quote:

Originally Posted by Kentaurus
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.

You need to use $mday[field5], please let me know if that works as expected.


Yes! Thank you, the $mday[field5] works like a charm!

Some of the avatars are still not showing up though.

When I look at the source code of the avatar image in their profile, it may be that the ones that look like this are showing up:
Code:

http://doggiedoor.com/forums/image.php?u=219&dateline=1084590730
And the ones that look like this are not showing up:
Code:

http://doggiedoor.com/forums/images/avatars/doggie/gooddoggie.gif
Just a thought.

SaN-DeeP 06-10-2004 01:01 AM

the avtar still has problems getting displayed

i stripped down my template to not fetch the avtar ;) finally


thnx for mod.
Sandy...

SaN-DeeP 06-27-2004 06:53 AM

i dunt want to display avtars using this hack.

can someone guide, what queries to be removed from memberoftheday.php file :)

i have edited index.php and template

Thnx.
Sandy...

Alex 08-04-2004 03:47 PM

This question was here before, but never was answered. Is there a way to show the information member of the day in the postbit for that user, that got elected?

Alex 08-05-2004 03:49 AM

I tried to do it myself (to get the information "member of the day" in the postbit).
My steps were:
I inserted the same things that go into index.php in the showthread.php. Also I inserted the 'memberoftheday' into showthread.php to the datastore. Even though I don't get the variables in the postbit.

Can someone help me out here?

Alex 08-09-2004 11:28 AM

Anyone?

Gary King 08-27-2004 08:27 PM

I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.

What do you think of the way it looks now, on my forums? :)

SaN-DeeP 08-28-2004 12:15 PM

Quote:

Originally Posted by Gary King
I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.

What do you think of the way it looks now, on my forums? :)

looks impressive, i did the same when i had this mod installed, but due to extra amount of queries i had to take it off

sully02 08-29-2004 10:58 PM

Has someone already converted this into a CMPS module? If so, I'd like to see it. If not... I may give it a try, though my PHP is rusty at best.

mokoboo 09-06-2004 01:04 AM

Need help here, I installed your hack, but since I did, the database is down... the forums shows "refresh" and VB database error...
Please help me :(

dfmafia 12-11-2004 04:42 PM

how would i go about having just the member of the day info on its own page so i can use
PHP Code:

<?php
include('/home/XXX/XXX/forums/member_of_the_day.php');
?>


Boofo 12-11-2004 04:49 PM

Quote:

Originally Posted by dfmafia
how would i go about having just the member of the day info on its own page so i can use
PHP Code:

<?php
include('/home/XXX/XXX/forums/member_of_the_day.php');
?>


Just run the cron job for it and then use a query to pull the info from the db. ;)

dfmafia 12-11-2004 05:27 PM

huh?

lol


this is where im putting it:
http://dfmafia.net/network.php

as you can c its not showing up (next to the news)

Boofo 12-11-2004 05:30 PM

Quote:

Originally Posted by dfmafia
huh?

lol

Since it is stored in the db, all you have to do is run the query for the info in the file you want to run for the new page. I use a query for it in my forumhome cache stats hack. The file is run by cron isn't it?

dfmafia 12-11-2004 05:33 PM

from the instructions:

################################################## ####################
# Scheduled tasks to add
################################################## ####################

In your admin control panel add a new scheduled task. Name it whatever you
want and set it to run in filename: ./includes/cron/memberoftheday.php


so i would do this:
PHP Code:

<?php
include('/home/XXX/XXX/forums/includes/cron/member_of_the_day.php');
?>


dfmafia 12-11-2004 05:35 PM

nah that didnt work

i dont want to use the format im using for the forums

thats y i made a .php page for it

i can get login info and recent posts but not member of the day info

boo.3 12-12-2004 12:31 AM

Quote:

Originally Posted by Gary King
I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.

What do you think of the way it looks now, on my forums? :)

ahh yours is 10x better could u PM me code?

Malke 12-15-2004 07:51 PM

Is there any way to edit this hack so that you just pick the member of the week yourself? By let's say entering a member-id somewhere or something?


All times are GMT. The time now is 04:17 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.01493 seconds
  • Memory Usage 1,835KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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