vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - microMEMBERS (https://vborg.vbsupport.ru/showthread.php?t=208382)

Ipuck 04-24-2009 02:05 AM

Quote:

Originally Posted by Furcal15 (Post 1791458)
Hey bro, my Top Posters of the week/month/overall are updated correctly. Some of the least active posters are in the lead. How do I go about fixing this?

Beautiful mod by the way.

I have the same problem. No answer from the coder :erm:. No post from coder since 3/25 :confused:

MaryTheG(r)eek 04-24-2009 09:30 AM

Today I decided to let all my modules here unsupported, as I seen that most members dosen't respects my work, the time that I spent to develope and support them. Worst of all they don't respect even the laws.

I didn't asked anything in exchange. No money, not even to register in my site as most other developers ask for. What I asked, and I was expecting to find from their side, is a small gredit to me as a person, by letting my copyright in place.

Unfortunatelly, doing a simple search in Google (anybody can check it) for "vbulletin memberindex" I found dozens of sites having removed my copyright. Thank you all of you my dear. You're giving a shit to the only rule that I put. But I'm wondering why you don't dare to remove Jelsoft's copyright. Because it's a big company while I'm just a single person, much more, a woman. My congratulations men!!

One of them was so cool that registered in my site and post:
Quote:

i saw this on vbulletin.org and thought i'd like to point something out here.
copyrighting a vbulletin addon? and trying to charge to remove the link?
heres a tip for you, rewrite the copyright to ITS FREE, DO WHAT YOU WANT. and go for a donation based system.
because guess what, thats just shitty. ++++ copyrights. specially for a addon to a forumsoftware.
Of course I don't plan to punish all other honest members who respected me. I'll continue posting most of my modules for free, I'll continue supporting them, but on my site only or to sites which accept encoded modules. Free yes... But not with visible source code any more. It's my intellectual property and I'll protect it.

Classifieds and MemberIndex will continue unencoded as they're right now. But unsupported.

Thank you for your understanding (this goes to honest users).
Mary

Bigj85 04-24-2009 11:12 AM

Quote:

Originally Posted by Ipuck (Post 1797868)
I have the same problem. No answer from the coder :erm:. No post from coder since 3/25 :confused:

well it looks like you won't get any help from the developer so...

I think you have the same problem I did,you have usergroups that you created other than the default "registered members" group
you need to define these groups in the memberidex.php
file of the addon

Open memberidex.php and look for the lines // Week's Top Posters // Month's Top Posters and // Overall Top Posters under those lines you will find

PHP Code:

WHERE usergroupid=

now you wanna add the groupids of your custom groups
like this

PHP Code:

WHERE usergroupid=OR usergroupid=OR usergroupid=

replace the x's with the ids of your groups,you can find the group id by going in your admin cp and navigating to "Usergroups/Usergroup Manager"

save the file and reupload it and it should now show the posters from all your groups

here's what mine looks like,hope this helps

PHP Code:

  // Week's Top Posters
  
if ($vbulletin->options[micromembers_week] == '1') {
        
$timelimit time() - 24 60 60;
        
$mostactiveweek_get $db->query_read("
          SELECT "
.TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle,
            COUNT("
.TABLE_PREFIX."post.postid) AS postcount
          FROM "
.TABLE_PREFIX."user 
          LEFT JOIN "
.TABLE_PREFIX."post
            ON "
.TABLE_PREFIX."post.userid=".TABLE_PREFIX."user.userid
            AND dateline>
$timelimit
          WHERE usergroupid=2 or usergroupid=2 or usergroupid=5 or usergroupid=6 or usergroupid=7 or usergroupid=8 or usergroupid=11 or usergroupid=12
          GROUP BY "
.TABLE_PREFIX."user.userid
          ORDER BY postcount DESC 
          LIMIT 
$limit");
        
$users = array();
        while(
$user $db->fetch_array($mostactiveweek_get))
          
$users[] = $user;
        
$totalposts $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>$timelimit");
        
$mostactiveusersweek printUsers($users$vbulletin->options['micromembers_week_text'], 2$totalposts['postcount']);
        unset(
$users);
  }
  
  
// Month's Top Posters
  
if ($vbulletin->options[micromembers_month] == '1') {
        
$timelimit time() - 30 24 60 60;
        
$mostactivemonth_get $db->query_read("
          SELECT "
.TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle,
            COUNT("
.TABLE_PREFIX."post.postid) AS postcount
          FROM "
.TABLE_PREFIX."user 
          LEFT JOIN "
.TABLE_PREFIX."post
             ON "
.TABLE_PREFIX."post.userid=".TABLE_PREFIX."user.userid
           AND dateline>
$timelimit
          WHERE usergroupid=2 or usergroupid=2 or usergroupid=5 or usergroupid=6 or usergroupid=7 or usergroupid=8 or usergroupid=11 or usergroupid=12
          GROUP BY "
.TABLE_PREFIX."user.userid
          ORDER BY postcount DESC 
          LIMIT 
$limit");
        
$users = array();
        while(
$user $db->fetch_array($mostactivemonth_get))
          
$users[] = $user;
        
$totalposts $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>$timelimit");
        
$mostactiveusersmonth printUsers($users$vbulletin->options['micromembers_month_text'], 2$totalposts['postcount']);
        unset(
$users);
  }

  
// Overall Top Posters
  
if ($vbulletin->options[micromembers_overall] == '1') {
        
$mostactive_get $db->query_read("
          SELECT userid, username, usertitle, posts AS postcount
          FROM "
.TABLE_PREFIX."user 
          WHERE usergroupid=2 or usergroupid=2 or usergroupid=5 or usergroupid=6 or usergroupid=7 or usergroupid=8 or usergroupid=11 or usergroupid=12
          ORDER BY posts DESC 
          LIMIT 
$limit");
        
$users = array();
        while(
$user $db->fetch_array($mostactive_get))
          
$users[] = $user;
        
$totalposts $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post");
        
$mostactiveusers printUsers($users$vbulletin->options['micromembers_overall_text'], 2$totalposts['postcount']);
        unset(
$users);
  } 


MaryTheG(r)eek 04-24-2009 01:34 PM

Quote:

Originally Posted by Bigj85 (Post 1798040)
well it looks like you won't get any help from the developer so...
Open memberidex.php and look for the lines // Week's Top Posters // Month's Top Posters and // Overall Top Posters under those lines you will find

PHP Code:

WHERE usergroupid=

now you wanna add the groupids of your custom groups
like this

PHP Code:

WHERE usergroupid=OR usergroupid=OR usergroupid=

replace the x's with the ids of your groups,you can find the group id by going in your admin cp and navigating to "Usergroups/Usergroup Manager"

Don't always shoot the developer. Spend some time to read the previous posts. I've replied on it some pages before (page #3):
https://vborg.vbsupport.ru/showpost....9&postcount=45

Maria

Bigj85 04-24-2009 01:42 PM

Quote:

Originally Posted by MicroHellas (Post 1798108)
Don't always shoot the developer. Spend some time to read the previous posts. I've replied on it some pages before (page #3):
https://vborg.vbsupport.ru/showpost....9&postcount=45

Maria

I just wanted to help since it looked like you weren't supporting it anymore
personally I think micromembers is a great addon,sorry if you feel members here don't respect your work but I can tell you I respect your work :)

great addon,thanks for the work you put in on it

john102774 04-24-2009 03:15 PM

I'm loving this Hack!!! Good stuff.

What is the min donation to remove the copyright? :)

john102774 04-24-2009 03:15 PM

I would like to show my support..

Nadeemjp 04-24-2009 03:21 PM

i am still not able to properly put it but i am shocked to see that members dont respect the wish of the developer. if i have paid for the hack then i may wanna remove the copyright but if it is free then i must respect the author. if mary is upset, she has every right to. sorry maria for all of this:(

MaryTheG(r)eek 04-24-2009 04:00 PM

Quote:

Originally Posted by Bigj85 (Post 1798113)
I just wanted to help since it looked like you weren't supporting it anymore

I can't let 400+ members who installed Classifieds & microMEMBERS alone on the streets. By saying not supporting, means first priority to my site, and no upgrades (here).
Thank you for your supporting words.

Maria

odln018 04-24-2009 04:01 PM

I don't see what the big deal is in leaving the copyright? It makes sense to leave it, so others can obtain it, and allow the developer to realize how desirable a mod is.

Mary, I've installed it, and am currently testing it. I was hoping to ask a few questions, but respect your desire to wash your hands of it.

It does sadden me though.

MaryTheG(r)eek 04-24-2009 04:09 PM

Hello,

After my post:
https://vborg.vbsupport.ru/showpost....&postcount=122

I decided to give all those you've installed microMEMBERS a file that removes (legally) my copyright link.

Please download the file microMembersBF.php and upload it to micromembers/includes/

Mary

MaryTheG(r)eek 04-24-2009 04:19 PM

Quote:

Originally Posted by odln018 (Post 1798226)
I don't see what the big deal is in leaving the copyright? It makes sense to leave it, so others can obtain it, and allow the developer to realize how desirable a mod is.

Mary, I've installed it, and am currently testing it. I was hoping to ask a few questions, but respect your desire to wash your hands of it.

It does sadden me though.

Go ahead and ask. But as it's 8:30pm here, I'll reply tomorrow morning.

Mary

Rckcrwlr 04-24-2009 04:39 PM

Maria,
Don't give into a couple @#$@. You deserve the respect of offering quality mods and some just don't appreciate it.

You are second to none... Stand strong and you will prevail.

Trust me.

John

john102774 04-24-2009 04:53 PM

Hey Mary, can you PM me your paypal link so I can make a donation to show my appreciation for your work?

Thank you.

I'm just one of your many supporters here, :)
John

Phantasmagoric 04-24-2009 05:16 PM

I don't want to remove your link, I still wish to respect your time and effort, as I appreciate very much what this mod has done to beautify our site.

You can see your copyright in place here:
http://skins4forums.com/memberindex.php
I've altered it a little as it was an eyesore as it was, but your link is still clearly in sight, that would never change for as long as I use your mod, I never remove copyright, it's disrespectful.

Should we sign up to your site now then, I don't mind 'if' it means we will actually still be able to use this mod, as it is awesome and I'd hate to lose it.

Please don't encode it, they do that with vBCommerce, and as much as I would like to be able to use that mod I 'wont', I don't trust hidden code, no-one in their right mind ever would.



****** edit ***********

The update, is that just the remove link thingy or is the mod itself updated, I don't want the remove url thing but if a proper update is here I should like to keep up to date, thanks for your time.

MaryTheG(r)eek 04-25-2009 09:27 AM

Quote:

Originally Posted by john102774 (Post 1798270)
Hey Mary, can you PM me your paypal link so I can make a donation to show my appreciation for your work?

Thank you.

I'm just one of your many supporters here, :)
John

pay-pal@microhellas.com

Thank you for supporting my work. There is no minimum. You can donate anything you like.

Mary

Nadeemjp 04-25-2009 01:54 PM

Maria, I am the webmaster of familybunker and I appreciate your help via email. I didnt remove your copyrights but i uploaded the file to be updated.
Since this has removed your copyrights, I feel obliged to make a small donation (as i am running just a fun forum and do not earn from it, so i will be using my pocket money to donate). please dont be disappointed to see a small amount, just value the feelings behind it.

we, the VB users, would never want to lose good coders like yourself. please stay with us and keep giving out good products as you have been doing so far.

thank you so much for everything.

down.low 04-26-2009 04:50 AM

Quote:

MicroHellas,

First I'd like to thank you for the mod,.- it definitely makes the members page look a whole lot tidier, that's for sure. I've noticed that this mod is now unsupported :(,.- but after reading the last 10 pages for an answer to my problem,.- I don't blame you. -down.low
I noticed, (well I think), users are having the same problem as me but haven't been to clear about explaining the issue at hand. So here's my problem, (as I said I know it's unsupported so I guess this will be feedback).

My calculations for "Top Posters Last Month" & "top Posters Overall" are a little fudged- well the overall is. here's a picture to show what I mean:

http://i472.photobucket.com/albums/r...tion/micro.jpg

My forum has been open for 41 days now,.- from the picture above the months posters are most likely correct,.-

For the month, the user has 1624 post out of 30181-

For the total of overall days, the user has 938 post out of 30181-

The "out of" amount for the month should be lower then the overall "out of" amount- but I managed to fix this one from post #89 of this thread.

The users total post for "overall" should be higher then "month" considering that it should be calculating from day 1 of the forum opening, not only the month at hand. Sorry if I'm not making any sense, but if anyone has had this problem and has managed to fix it,.- I'd be really greatful if you could lend me a hand.

MaryTheG(r)eek 04-26-2009 05:05 AM

Quote:

Originally Posted by down.low (Post 1799127)
The users total post for "overall" should be higher then "month" considering that it should be calculating from day 1 of the forum opening, not only the month at hand. Sorry if I'm not making any sense, but if anyone has had this problem and has managed to fix it,.- I'd be really greatful if you could lend me a hand.

Could you please post a screenshoot from that user's profile statistics?

Mary

down.low 04-26-2009 05:11 AM

Quote:

Originally Posted by MicroHellas (Post 1799131)
Could you please post a screenshoot from that user's profile statistics?

Mary

I sure can, give me one second.

down.low 04-26-2009 05:20 AM

http://i472.photobucket.com/albums/r...tion/stats.jpg


Well, well, it looks like the overall post count is correct,.- but the months post count is incorrect.

The user has 1648 for the month.

But only has a total of 938 on their profile.

I've realized what the problem is, my forum has a contest sub-forum that does not affect your post count when posting in there,.- the months calculations is including these post as well,.- but the overall calculations is skipping them,.- am I making any sense hun?

odln018 04-26-2009 05:43 PM

Quote:

Originally Posted by MicroHellas (Post 1798237)
Go ahead and ask. But as it's 8:30pm here, I'll reply tomorrow morning.

Mary

That is very kind of you.

Primarily what I was interested in doing is having the memberindex.php default to show ALL members.

Thank y ou

MaryTheG(r)eek 04-27-2009 04:35 PM

Quote:

Originally Posted by down.low (Post 1799142)
I've realized what the problem is, my forum has a contest sub-forum that does not affect your post count when posting in there,.- the months calculations is including these post as well,.- but the overall calculations is skipping them,.- am I making any sense hun?

Stupid me;) Open memberindex.php
Find:
Code:

if ($vbulletin->options[micromembers_month] == '1') {
$timelimit = time() - 30 * 7 * 24 * 60 * 60;

Replace with:
Code:

if ($vbulletin->options[micromembers_month] == '1') {
$timelimit = time() - 30 * 24 * 60 * 60;

Mary

MaryTheG(r)eek 04-27-2009 04:43 PM

Quote:

Originally Posted by odln018 (Post 1799443)
That is very kind of you.

Primarily what I was interested in doing is having the memberindex.php default to show ALL members.

Thank y ou

Hello,

But it shows all members. It just seperate them by usergroup. Do you mean to remove the line above: Admins(xx), Mods(xx), Users(xx) and the listing to show all by default?

Mary

down.low 04-28-2009 08:16 AM

Quote:

Originally Posted by MicroHellas (Post 1799996)
Stupid me;) Open memberindex.php
Find:
Code:

if ($vbulletin->options[micromembers_month] == '1') {
$timelimit = time() - 30 * 7 * 24 * 60 * 60;

Replace with:
Code:

if ($vbulletin->options[micromembers_month] == '1') {
$timelimit = time() - 30 * 24 * 60 * 60;

Mary

Thanks for taking the time to help me out,.- I've did that previously befored ever writing you and the calculations are still wrong- like I said though in my last post, I think it's because I have a sub-forum set up to not count post,.- and your mod is counting them in one section but not the other. It's no biggie I don't want you to trouble yourself,.- it's more my problem then your's. Once again thanks for a great mod,.- and for being apart of vb.org.

MaryTheG(r)eek 04-28-2009 09:58 AM

Quote:

Originally Posted by down.low (Post 1800392)
.... I think it's because I have a sub-forum set up to not count post,.- and your mod is counting them in one section but not the other.

Thank you for your supporting words. Give me some time to check it again. Most probably needs one more restriction in "where".

Mary

MaryTheG(r)eek 04-29-2009 10:15 AM

Quote:

Originally Posted by down.low (Post 1800392)
It's no biggie I don't want you to trouble yourself,.- it's more my problem then your's. Once again thanks for a great mod,.- and for being apart of vb.org.

Finally seems to be more complicated than what I was expecting. Seems that vBulletin codes all forum options in a 5 digits number with field name "options" (table forum). I did some check in vb code but I wan unable to find a section for it.

There is a way to resolve this problem, if you've same options for the forums that you don't count posts. If you're familiar with phpMyAdmin check the values in field "option". If it's the same, then just give me that 5 digit number and I'll modify your code to have correct results.

If not, the last that I can do, it to modify your code which counts the overall posts at least to have the hidden posts counting there too. Currently, for overall I'm getting the number from user table and not from post table as I'm doing for week and month.

Mary

Leo Brazil 04-29-2009 01:10 PM

Quote:

Originally Posted by Leo Brazil (Post 1784963)
First thank you for this great mod, really impressive.
Where exactly is the line to change on membersindex.php to add more the one user group to be showed on administrators block. I have two levels (two different usergroups) and they are not properlly showed. I tried also to use the Special Group box but it's only accept one usergroup at the time, I mean I can't set up two or three users groups just like separeting them with commas. Any tip ?

Sorry to bump this, but does one here have a tip for it ?

Quote:

Originally Posted by MicroHellas (Post 1801085)
Currently, for overall I'm getting the number from user table and not from post table as I'm doing for week and month.

It would be great, I'm getting the same issue here, not a big deal, we could live with that but as we do have a few forums like off-topic ones not counting posts, it's affecting your mod page.

Thanks

SteamyLightning 04-29-2009 01:31 PM

Is there anyway to add the usergroup fix to the AdminCP options?

MaryTheG(r)eek 04-29-2009 01:48 PM

Quote:

Originally Posted by Leo Brazil (Post 1801149)
Sorry to bump this, but does one here have a tip for it ?

Open memberindex.php
Find:
Code:

  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace with:
Code:

  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup OR ugroup.usergroupid=xxx OR ".TABLE_PREFIX."usergroup.usergroupid=xxx
 
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace xxx with the usergroupid that you want.

If you want to use more than 2 usergroups you can use the code below (of course you can use this code even for 2 only usergroups). On memberindex.php
Find:
Code:

  $admingroup = $vbulletin->options['micromembers_admins_group'];
  $admingroup2 = $vbulletin->options['micromembers_admins2_group'];
  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace with:
Code:

  $admingroup = array('xxx', 'xxx');
  $thesegroups = implode(",", $admingroup);
  $admingroup2 = $vbulletin->options['micromembers_admins2_group'];
  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid IN $thesegroups OR ".TABLE_PREFIX."usergroup.usergroupid IN $thesegroups
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");



Quote:

Originally Posted by Leo Brazil (Post 1801149)
It would be great, I'm getting the same issue here, not a big deal, we could live with that but as we do have a few forums like off-topic ones not counting posts, it's affecting your mod page.
Thanks

I'm trying to find a solution for it. Please have patience.
Mary

mike2902 04-30-2009 12:42 AM

Ive installed it. The stats boxes show up but it just says Loading... in all three boxes. What could be wrong

MaryTheG(r)eek 04-30-2009 04:03 AM

Quote:

Originally Posted by mike2902 (Post 1801546)
Ive installed it. The stats boxes show up but it just says Loading... in all three boxes. What could be wrong

It happens to me once but in one of my PHP scripts and not in vB. Can you provide with a screenshoot? There is a possibility to be the same issue which comes out from wrong upload. Actually it can't find the javascript which shows the images in popup.

Mary

down.low 04-30-2009 06:39 AM

Quote:

Originally Posted by MicroHellas (Post 1801085)
Finally seems to be more complicated than what I was expecting. Seems that vBulletin codes all forum options in a 5 digits number with field name "options" (table forum). I did some check in vb code but I wan unable to find a section for it.

There is a way to resolve this problem, if you've same options for the forums that you don't count posts. If you're familiar with phpMyAdmin check the values in field "option". If it's the same, then just give me that 5 digit number and I'll modify your code to have correct results.

If not, the last that I can do, it to modify your code which counts the overall posts at least to have the hidden posts counting there too. Currently, for overall I'm getting the number from user table and not from post table as I'm doing for week and month.

Mary

ha, you lost me after the word "finally",. :)..

All in all the hack works like a charm,.- unless you have your forum set up to not count post in a particular forum.

You've spent plenty of making just making this mod possible- plenty of time helping other (judging from the last 10 pages), and is still willing to help those in need even if the mod isn't supported-

My problem is no biggy, I'm sure you have many things to do as well as I, once again thanks for a great mod, and for the generous helping hand:)

Later's mary, ttyl.

-D.l

mike2902 04-30-2009 10:23 AM

Quote:

Originally Posted by MicroHellas (Post 1801623)
It happens to me once but in one of my PHP scripts and not in vB. Can you provide with a screenshoot? There is a possibility to be the same issue which comes out from wrong upload. Actually it can't find the javascript which shows the images in popup.

Mary


Heres a screenshot. I also dont get any of the membelist features like in your screen shot. Or maybe I dont know where to look for them.



https://vborg.vbsupport.ru/external/2009/05/159.jpg

MaryTheG(r)eek 04-30-2009 01:18 PM

Quote:

Originally Posted by mike2902 (Post 1801729)
Heres a screenshot. I also dont get any of the membelist features like in your screen shot. Or maybe I dont know where to look for them.

Sorry, but this is not a part of my module. Maybe you confused it with another one.

Mary

MaryTheG(r)eek 04-30-2009 02:42 PM

Quote:

Originally Posted by down.low (Post 1801658)
All in all the hack works like a charm,.- unless you have your forum set up to not count post in a particular forum.
-D.l

I'm Greek, Woman, and ... Blonde !! The worst combination for someone stubborn as a mule:) Well, I checked another 2 addons here, showing Top posters. They've the same problem. They count hidden posts too. But I found a solution to solve the problem. As I can't find by coding, which forums are not counting on posts, I'll add an option in admincp where you can setup like 4,17,21 the forums that they don't count. Then it's easy for me to change the query, so you'll get real statistics.

Mary

Leo Brazil 04-30-2009 03:53 PM

Quote:

Originally Posted by MicroHellas (Post 1801167)
Open memberindex.php
Find:
Code:

  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace with:
Code:

  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup OR ugroup.usergroupid=xxx OR ".TABLE_PREFIX."usergroup.usergroupid=xxx
 
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace xxx with the usergroupid that you want.

If you want to use more than 2 usergroups you can use the code below (of course you can use this code even for 2 only usergroups). On memberindex.php
Find:
Code:

  $admingroup = $vbulletin->options['micromembers_admins_group'];
  $admingroup2 = $vbulletin->options['micromembers_admins2_group'];
  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");

Replace with:
Code:

  $admingroup = array('xxx', 'xxx');
  $thesegroups = implode(",", $admingroup);
  $admingroup2 = $vbulletin->options['micromembers_admins2_group'];
  // Build Admins Block
  if ($vbulletin->options[micromembers_admins] == '1') {
    $teammembers_get = $vbulletin->db->query_read("
    SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle
    FROM ".TABLE_PREFIX."user
    JOIN ".TABLE_PREFIX."usergroup AS ugroup
  ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid
  LEFT JOIN ".TABLE_PREFIX."usergroup
  ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids))
    WHERE ugroup.usergroupid IN $thesegroups OR ".TABLE_PREFIX."usergroup.usergroupid IN $thesegroups
  GROUP BY ".TABLE_PREFIX."user.userid
    ORDER BY RAND()
    LIMIT $limit
    ");


Great, worked that out. Thank you.


Quote:

Originally Posted by MicroHellas (Post 1801167)
I'm trying to find a solution for it. Please have patience.
Mary

Don't worry, take your time.

Quote:

Originally Posted by MicroHellas (Post 1801841)
I'm Greek, Woman, and ... Blonde !! The worst combination for someone stubborn as a mule:)

Mary, don't worry about it. There's a lot of "wise" people here can't do 1/10th of what you did here.

Χρεώστης

mike2902 04-30-2009 04:15 PM

Quote:

Originally Posted by MicroHellas (Post 1801796)
Sorry, but this is not a part of my module. Maybe you confused it with another one.

Mary

Oh my you are right....Ok any reason why It just inst working. General question I know. Perhaps I will unistall it and start again.


edit..ok I uninstalled and installed again and still nothing. What could I be doing wrong. I edited the navbar template as follows


<if condition="$show['communitylink'] AND $show['popups']">
<td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="vbmenu_control"><a href="memberindex.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="vbmenu_control"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar


Thats all I have done. what else to I need to do. Im sure I have just missed something?

Robru 05-01-2009 09:16 AM

thank you for sharing :)

MaryTheG(r)eek 05-01-2009 09:26 AM

Quote:

Originally Posted by mike2902 (Post 1801915)
Oh my you are right....Ok any reason why It just inst working. General question I know. Perhaps I will unistall it and start again.?

It's not about "general question". It's all about "general details". By saying not working what exactly do you mean? Can't see anything? or are you seeing something wrong?
Also for the URL. It dosen't works when you click the menu option only? eg if you try to access memberindex.php directly from your browse, is it working?

Maria


All times are GMT. The time now is 11:13 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.01711 seconds
  • Memory Usage 1,964KB
  • 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
  • (12)bbcode_code_printable
  • (5)bbcode_php_printable
  • (31)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