Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 22 replies - 1 through 22 (of 22 total)
  • @stuffsone

    Participant

    resolved…finally…

    @stuffsone

    Participant

    oopsss…now a different issue…
    @r-a-y
    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….
    http://pastebin.com/jvDuH362

    @stuffsone

    Participant

    resolved….
    i used a different approach but nevertheless, the problem is solved
    thanks anyway @r-a-y :) you’ve always been helpful

    @stuffsone

    Participant

    Hi @r-a-y
    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…. :D

    @stuffsone

    Participant

    bump!

    @stuffsone

    Participant

    resolved!

    @stuffsone

    Participant

    @r-a-y
    Salute!
    Thanks a lot…worked smoothly…
    :-)
    btw…the group thing still not working out for me… :( [referring to my question of yesterday]
    http://pastebin.com/b71azwxi

    @stuffsone

    Participant

    queries 1 to 4 fully resolved…
    5 and 6 almost…thanks everyone

    @stuffsone

    Participant

    @r-a-y
    when i am printing $slug_params, i am basically doing the same thing as printing $details_result
    isnt it???
    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…

    @stuffsone

    Participant

    @nuprn1
    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…

    @stuffsone

    Participant

    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… :(

    @stuffsone

    Participant

    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…

    @stuffsone

    Participant

    @r-a-y
    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.

    http://pastebin.com/tRRzw57E

    @stuffsone

    Participant

    and I have included the single quotes in the $params_slug variable….
    $slug_params = “‘” . $details_result . “‘”;
    I echoed the value after that

    @stuffsone

    Participant

    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….
    http://pastie.org/private/8mymveqb0x5l04cvlm6aqa

    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…

    @stuffsone

    Participant

    could anyone help with the group extension api?

    @stuffsone

    Participant

    thanks @r-a-y
    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 :)

    @stuffsone

    Participant

    @ray
    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”
    OR
    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?

    @stuffsone

    Participant

    @r-a-y
    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….

    @stuffsone

    Participant

    anyone??? guys..help me out here…

    @stuffsone

    Participant

    @DJPaul where to rename them???
    also i have few more questions….could you please check them here….
    https://buddypress.org/community/groups/creating-extending/forum/topic/new-to-buddypress/
    any help will be appreciated….

    @stuffsone

    Participant

    I am using wordpress 2.9.2 and buddypress 1.2.3

Viewing 22 replies - 1 through 22 (of 22 total)
Skip to toolbar