Forum Replies Created
oopsss…now a different issue…
I made changes in bp-core-avatars to fetch avatars from uploads/group-avatars/[group-id] folder
Removed the height property so that the images will be fetched and displayed as per their width and the height will be adjusted accordingly….the problem is that this is working fine for some groups, and not working at all for some others….
the ones where it is working, the path of the image (when u see copy image url) — /uploads/group-avatars/[group-id]/[group-id].jpg
the ones where it is not working, the path stops at —> /uploads/group-avatars/[group-id]
Here is the code to the modified br-core-avatars.php I am using….
i used a different approach but nevertheless, the problem is solved
thanks anyway @r-a-y you’ve always been helpful
Its again you to my rescue!
Thanks. Yeah I had looked up on Bp_core_fetch_avatar function in bp-core-avatars.php file, and that it has a parameter ‘object’ => with the comment that we can use it if we are using filter.
Its just that I could not figure out how to do it. Tried few things unsuccessfully.
Would it be possible for you to guide me here. Lets say I am uploading my avatars in the standard file-size in some folder in the format “grpavtr_(group_id).png”, then how do I do it…. Have been stuck with this problem (and one more) for a week now…
I am sure I would go out and have a beer once I’m done with this….
queries 1 to 4 fully resolved…
5 and 6 almost…thanks everyone
when i am printing $slug_params, i am basically doing the same thing as printing $details_result
btw, i had printed that out as well…
actually i am generating a list in this section (where I am stuck in fetching avatar and other details)….and every other bit is doing exactly what it should…
again, thanks for being patient here…really appreciate it…
bp_has_activities and bp_has_groups -> both were working smoothly when I was using the predefined parameters…it is just not working when i am trying to pass this variable…
oopsss…had forgotten to remove them from bp_group_permalink() and description_excerpt()
actually when the earlier solution was not working, I tried that thinking may be there is the problem…
anyway…have removed that…and have changed to $slug_params = $details_result;
still no success…
meanwhile, i am looking at the functions you mentioned….if this does not work, i will need them only…
btw, just to bring it your attention: on codex.buddypress.org, the search form is not working…
also on the page of bp_has_groups(), in the documentation it is written bp_has_site_groups()
This might be right, but I could not find bp_has_site_groups() functions anywhere in the files in groups folder…so thought i will point these two issues out to you guys…hope its cool…
thanks mate…its just that I will be using the same thing…but for fetching different data on other areas of my site, so wanted to know bp_has_groups coz it will be needed eventually
Pasting once more, making a final attempt at resolving this. Please have a look. Appreciate your patience with me.
and I have included the single quotes in the $params_slug variable….
$slug_params = “‘” . $details_result . “‘”;
I echoed the value after that
Thanks for the reply @r-a-y
I wasn’t expecting one so soon …
I tried that…but it did not work….My understanding is that this text-box would not allow me to paste code….so Here is the link….
I am trying to just fetch the avatar, name of group based on slugs….as u can see, i echoed the $slug_params to see if that bit was working fine…it is… Help appreciated…
could anyone help with the group extension api?
the forum loop did solve one problem of mine…
that was great…when i saw the forum link on the homepage, i did think “if only i could pass an argument to take these group by group, and the link you shared had just that…
i needed them just on one of the pages….initially thought of adding a new one, but later clubbed it with home only…. one conditional statement+ur shared link, and this problem was resolved fully
I have created an excel parser/loader, that enables a user to import data directly into the table they want to from excel….as long as a user customizes the code-fragment depending on the fields present in the table, it is good to go…Will try to frame this into a plugin after 21st of this month…trying to get my site live by 21st…
re#4 (extra items in group header)
what i meant was : lets say I want to add “description2”, “description3”, “description4” besides the default “description”, and I want all of them appear on the group header page….now, I have modified the table structure so that it now has few more fields, i.e. “desc2”, “desc3” and “desc4”.
Here are my follow-up questions on this:
a. would it be a bad idea to do this way…i mean i have done it hoping that whenever buddypress is updated, my database will be left untouched…wouldn’t it?
b. I tried creating the functions for fetching desc2 etc based on function bp_group_description() in the bp-groups-templatetags.php, and calling it finally in group-header.php, but it does not work….am i doing something wrong??
Now this may be asking a lot but could you tell me what possibly could be going wrong here, or may be show be how this should be done, assuming a person has to
“fetch the details of a field XYZ in the table bp_groups”
in case altering with the table bp_groups is a bad idea, I could create a second meta-table with my parameters that has the group_id of the group whom the values of these fields correspond to….but in this case also, how do i fetch the results?
Thanks. I did have a look at the auto group join plugin. I have a few follow-up questions though. As I saw on buddypress itself, it did not need me to “join” any group anywhere… The moment I posted on any group, I became a part of it…That would also serve the purpose to a large extent…
from the extra sections in the user’s profile section i meant -> there are some extra features that i am providing in my website…things that I have hard coded…I wanted to hard code them into the user’s profiles…
about everything else, i will do the needful and get back if there are further doubts…Thanks a lot…
and thanks about the plugin by manoj…i will have a look…and if i can code the plugin, I will share it here….
@DJPaul where to rename them???
also i have few more questions….could you please check them here….
any help will be appreciated….