Forum Replies Created
-
ok say I have the group map plug-in, it has the group api for the edit/create screen ( lets call the slug “Group additional info” )
I also have a group website plug-in ( lest groups save and display a link to their site ) and a group phone number plug-in ( lets the groups save and display their phone number )
So the above plug-in’s could all be called in the “Group additional info” slug ( create/edit screens ) as they are related to that niche.
so then how/where could I add a hook so that the website and phone number plug-ins could ‘hook’ to the “Group additional info” slug ( create/edit screens )?
hope thats clearer
@travel-junkie is it possible to ‘hook’ to a plug-in’s edit/create page? say a edit/create page called additional info which could then call my group web site, phone number, ect.. as my 1st edit/create page is getting messy..
ta @travel-junkie that did the trick, ye I am ganna rather keep it using the groups_custom_group_fields_editable. At least i learned something in the process.
OK so I’m ganna incorporate a group address ( @antonrsa ) and call it in the group header but have it on the map creation step and in the map admin edit tab thing. The address wont affect the map as I can’t get the geo-coding working.. ( converting the address into co-ordinates ) will give it another try later on.
What I can’t get right is ( mebe @DJPaul or @boonebgorges could help ) saving the co-ordinates from the map admin edit screen: from lines 37 down ( http://pastebin.com/WnR6MTv6 )
I included the form and stuff for the create screen so you can see whats going on. My first time working with the group api so not to sure what to do and can’t find anything looking at existing plug-ins..is this when you try and go to group>admin>map cause I also get that error but cleaning it up.. Was thinking its better to not have a edit tab for one field and would rather incorporate it into the group details/ group creation step one..
For now edit the details via group>admin>edit details and look for the map field
I have a few, ie: address, website.. I had a look at how to release them to the wp respiratory but looked complicated so been avoiding it, once I have the group map working nicely Ill release them all.
Im working on adding directions and a street view, maybe should release it and have a forum so more experienced developers could help me out..
@antonrsa here’s the working plug-in code. Let me know if it works on your side.
@antonrsa Ill release it once it resembles something decent and I clean up the code a bit.
I got it to return the group rating ( changed a posts id to a groups id ), checked it by editing the votes in the db table though just can’t get it to save the group id. Please help
I thought of trying to make a function that would take preference over the build in wordpress $id.
something like:
function id()
$id = $bp->groups->current_group->idbut doesn’t take effect, is there some way to take priority like with css !important ?
Edit: instead of trying the above I changed all instances of $id to my own function $group_rate
Though I just need a little help with the function and after which I dont see why it shouldn’t all work
Here’s my version, my function’s on line 7-10 : http://pastebin.com/dR74qbqM
Motivation

K well trying this with the Five Star Rating plug-in: https://wordpress.org/extend/plugins/five-star-rating/
Here’s what I have so far, though $id ( from line 176 onwards ) is confusing me.. and not quite sure to do there?
I cant get it to save the group data..Im calling the ‘stars’ using the shortcode in the group header: http://pastebin.com/R1gsTudD
Here’s my edited fsr.class.php: http://pastebin.com/qczBCb18
Edit: was working, now its not after I cleared cash
Its working for me.You should be able to edit your sidebar.php in your child theme and change the ‘standard divs’ to your custom divs/css.
Had a look at some of the theme’s im using and really cant give you an example as it wouldn’t make sense. Also try looking in your functions.php as you could also play around with divs/css.
Do you have firefox > firebug ?
If not get firefox and install the firebug app. Then all you do is right click on the element you would like to change and select ‘inspect element’. It will show you in which file its located and the line.
You might also have to try !important ( google it if you dont know.. )in default.css, line 34
Change it to the colour you want.
You must get firefox and install the firebug extension. Then all you do is right click on the element, and “inspect element” you would like to change and can then see where it is located.
Haven’t used it though it looks like you must go into wp-admin > pages > ad new page and title it: activity-tags
Then place the short code [bp_activity_tags] in the body of the post were you would normally write stuff and click publish page.
Hope that you come right
Did you follow the installation correctly?
Installation
Installation is easy:
1. Upload bp-activity-tags folder to the wp-content/plugins directory in your installation.
2. Activate the plugin in your Administration Panel.
3. Create a new page in your blog with default activity tags URI: activity-tags.
4. Place [bp_activity_tags] in the post content area.
5. Activate widget BP Activity Tags.border-bottom:0 !important;
try that?
Edit: soz I came right. This time it was a js error, had to rename them too.. Overlooked it :< @modemlooper
Im having trouble trying to style the share it button, say I create a new rule for div class=”bp-share-it-button-group generic-button ” and rename the div according to the new rule/styling I’ve created. The shareit button is styled correctly ( as to the new rule I created ) but the drop-down list doesn’t work. I’ve tried a few approaches, even duplicating the generic-button rule in my themes css but still the drop-down wont work.
Am I missing something here? Please let me know if you have a solution.
Im currently using the group wiki plug-in for an alternative use, though I do occasionally get errors with it as you have mentioned. Can’t donate much but would gladly beta test and give feedback.
so +1
Things I think that would be beneficial:
- Exclude Page Creation from the group creation – It would normally be a lengthy process and Im sure most ppl wouldn’t be 100% sure what the ‘wiki pages’ are going to be about exactly when first creating a group, so only show the ‘enable group ‘wiki’ along with admin options.
- Page Creation – when creating the group wiki pages, the ‘+’ sign ( adding pages ) is confusing at first. Maybe something more simplistic like the precess of creating a group ( steps one two three.. )
- Preset Table Layouts – preset layouts would provide ease of creating a ‘wiki’ page, styled according to the ‘site context’. Would also bring a sense of uniform to the site, easing reading and usability. These Layouts could be defined by the site admin or just hacked in the plug-in for now, focusing on the core functionality
This is abit off topic but Iv’e found a great need for this. When customizing a plug-in, I would always loose trac of the changes I made and so on, so Iv’e started to keep a personal wiki of my changes using something like ‘WikiPad”. When the plug-ins are updated, I basically have to update it and make my changes acording to my wiki again. What would be nice would be a plug-in wiki shiper along with the plug-in, with whats been added and whats been reworked, so say if a plug-in had one line of code change ( updated ), now you could simply add that one line of code ( if you knew what had been added/changed ) rather than updating the plugin, having all your changes over written and then having to redo the work, over and over..
thank modemlooper, didn’t know about that. works..
@modemlooper not the css, im talking about the drop down menu, when you click “Get email updates” there’s a drop down that doesn’t expand the div, it ‘drops down’ over what would be ( in the image above ) covering “Email Options”.
‘Your Share’ button’s drop down expands the div, I would like it to do the same as the group email one, just open over things..
Soz the 1st post wasn’t very clear.
@modemlooper I’m using the group email subscription along-side your share it plug-in. When you click the email one, the drop-down/window appears over the ‘stuff’ below and when yours is clicked it pushes everything down.
I would like to make the 2 open the same ( as the group email one ). I dont know js and tried playing around but I cant come right. Think you could help me out? what might also be nice for other ppl is to have a option to select either js file?
Let me know, thanks.
@paulhastings0 MariusOoms has just released a update.
@apeatling soz was resolved, error on my side. Corrected it in the above post
