vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=235326)

m002.p 08-05-2010 05:02 PM

Thanks Sarcoth,

Didnt take me long to find it. The line concerned is:

user AS user ON(user.usergroupid = usergroup.usergroupid OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids))

Simply removing the OR FIND_IN_SET() did the trick.

Nice to speak again, and once again great work with this mod. Im still using it ;)

Sarcoth 08-05-2010 05:48 PM

Good to hear! :) Take care and stop by anytime.

CharlieDelta 08-05-2010 07:00 PM

Fantastic mod! Nominated!

Gleedo 08-06-2010 05:28 PM

Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.

Sarcoth 08-06-2010 05:40 PM

Quote:

Originally Posted by Gleedo (Post 2080151)
Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.

There's a way. The question you need to ask, are your members going to like having their age displayed? :) I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.

Gleedo 08-06-2010 05:54 PM

Quote:

Originally Posted by Sarcoth (Post 2080162)
There's a way. The question you need to ask, are your members going to like having their age displayed? :) I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.

Well we are called The Old Gits Army lol - but I guess having the age displayed based on their preferences would be best. Would be great if you manage to incorporate this into your mod at some stage in the future.

Thanks Sarcoth :)

Sarcoth 08-09-2010 08:20 PM

@Gleedo - I spent a couple hours on this today. Apparently, I have the code needed to display birthdays already in the .php file. All I did was change one of the column's (in the showroster_userbits template) to birthday and that did the trick.

For example, find:
Code:

<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
Change to:
Code:

<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.birthday}</td></vb:if>
Now, the same thing should be true for just changing the word birthday to age to show the user's age, but it doesn't work. Something must be missing, but I don't see what it could be. I think it "should" work. If the birthday works, the age should work. It uses the birthday code when figuring out the age. I've double checked the memberlist.php for any missing code, but I don't see it. Sorry, maybe someone else will know what to look for.

Kr33p3r 08-12-2010 03:46 AM

Great mod, thanks for making it.

2 issues:
  • Usernames do not link to their profiles.
  • Avatars break for all but 1 usergroup (even users in multiple).

http://www.cyberneticpunks.com/forums/showroster.php

Thoughts? I am sure its me.

Sarcoth 08-12-2010 11:14 AM

Quote:

Originally Posted by Kr33p3r (Post 2082515)
Great mod, thanks for making it.

2 issues:
  • Usernames do not link to their profiles.
  • Avatars break for all but 1 usergroup (even users in multiple).

http://www.cyberneticpunks.com/forums/showroster.php

Thoughts? I am sure its me.

I checked into this on my test and live site. The Usernames are linking to their profiles and the avatars look fine. I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank. I will have to look into fixing that, but I am not sure how to fix your problem. I'm blocked from your site here at work so I will try to take a look at it this weekend.

Gleedo 08-12-2010 11:25 AM

Quote:

Originally Posted by Sarcoth (Post 2082618)
I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank.

Thats because the roster is expecting a noavatar.jpg (or something like that) which does not exist (for me at least) in the style images folder, so I changed the path so it would look for it in images/misc and then added the avatar in there :)


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