Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119348

HeliosProtocol on "[Plugin: WP Mingle] Accessing variables in PHP"

$
0
0

I would suggest that you look into the MnglBoardApi.php file, and there you can find a few little tidbits that may help you along. It states right at the top: before your plugin can add activity, it myst register itself as a source by using the mngl-activity-types filter to add a code (the key of your array entry), fname and icon url. Here's an example from the mnglBoardsController class:

I would have a look at that file, find that you can register mingle's hooks in different parts of your code something similar to what follows:

<ul><li><?php echo $_GET["$author->sex"]; ?></li>
<li><?php echo $_GET["$author->age"]; ?> Year Young!!</li></ul>

I'm not 100% sure that will work, but I am 100% sure that if you look into the mingle api php file, you will be able to figure something along those lines out with a little bit of help from good ole Google.

Have a merry christmas


Viewing all articles
Browse latest Browse all 119348

Trending Articles