The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
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.. |
#12
|
||||
|
||||
![]()
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.
|
#13
|
||||
|
||||
![]()
I found this on line 847..?
Code:
// Items to display per page $perpage = (!$vbulletin->GPC['perpage'] OR $vbulletin->GPC['perpage'] > $vbulletin->options['sg_maxperpage']) ? $vbulletin->options['sg_perpage'] : $vbulletin->GPC['perpage']; And this on line 776 Code:
// Display groups the current user is in if ($vbulletin->userinfo['userid']) { $mygroups = fetch_socialgroups_mygroups($vbulletin->options['sg_enablesocialgroupicons']); // Render bits $mygroup_bits = ''; foreach ($mygroups AS $mygroup) { ($hook = vBulletinHook::fetch_hook('group_list_mygroupsbit')) ? eval($hook) : false; eval('$mygroup_bits .= "' . fetch_template('socialgroups_mygroups_' . ($vbulletin->options['sg_enablesocialgroupicons'] ? '' : 'listview_') . 'bit') . '";'); } } ($hook = vBulletinHook::fetch_hook('group_overview')) ? eval($hook) : false; $navbits[''] = $vbphrase['social_groups']; $show['creategroup'] = ($vbulletin->userinfo['permissions']['socialgrouppermissions'] & $vbulletin->bf_ugp_socialgrouppermissions['cancreategroups']); $templatename = 'socialgroups_overview'; } |
#14
|
||||
|
||||
![]()
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).
|
#15
|
||||
|
||||
![]()
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 |
#16
|
||||
|
||||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|