![]() |
Social groups on profile question..?
I have an issue..
Quote:
Quote:
|
wish I could help you I am having problems with social groups right now also..
|
This is the line that spits out the groups:
$block_data[socialgroupbits] And that is made up of calls to the template "memberinfo_socialgroupbit". Is that template a default template? |
I'm not sure.. it looks like it could have been edited.
Here is my "memberinfo_socialgroupbit" Quote:
|
It's definitely been edited if that is all there is to it. You can also tell by going to edit that template and then selecting View History > Compare and comparing it to the default template. You should revert that template (when you revert, your will lose the contents so if for some reason you want to save that, copy it into a text editor.)
|
Revert worked great.. it made them images instead of text links.. thats even better.!! :)
Thanks.! |
If it's been edited - you may want to think of what you edited as you may have something imported you added there.
|
Thanks for the heads up.. but i dont remember what i did to make it change in the first place.
|
I have another question about this.. is there an option to limit how many groups will show on this page.?
Although it seems like it should be in the ACP options, I dont see it anywhere. Do i have to edit the code in one of these templates..? - memberinfo_socialgroupbit - memberinfo_socialgroupbit_text - memberinfo_publicgroupbit - memberinfo_membergroupbit - memberinfo_block_groups - MEMBERINFO Thanks.. I just switched skins so i have a lot of things going on. :) |
Quote:
|
Wow thats a bummer.. 12 avatars/icons takes up a lot of room.
Any idea where or how to edit the code to limit it..? I didn't see anything in any of those templates for a limit. I hate to go back to text only, but i guess i might have to.. |
You aren't going to find it in a template. It's in the query and php is not in templates. You will have to actually edit the code in the file. And actually, I think the 12 is on another page (profile page), not this page. You will have to apply a limit to the query or whatever you want done instead for that template/list. The query is around line 774 in group.php. If you want to change what gets spit out, the $mygroup_bits variable is defined right after the query about line 801.
|
I found this on line 847..?
Code:
// Items to display per page And this on line 776 Code:
// Display groups the current user is in |
Neither of those is the query. Look for the query just before the "// Display groups the current user is in" line. It's called "$mygroups" and that is the query you would have to modify if you want it to only spit out a certain number of groups (add "LIMIT x" to it).
|
I have to add to the code.? I'm scared.. lol
I am ok with editing, but very weary about creating my own. I'll see what i can find, then i can find out exactly what & where to make the edit. Thanks |
I never edit files on my live site first (if I can help it - if it's tracker related, I do need to do it live and have brought down my site a couple of times , lol). I always test it out on a test site first no matter how simple the edit may seem.
|
All times are GMT. The time now is 02:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|