Donate Share

Brim

Tracker: Patches

5 Brim - Wordpress - ID: 1288499
Last Update: Comment added ( nobody )

The attached file shows how you can embed brim in
wordpress.
It is not a wordpress plugin, you have to edit some files.

How to use this:

place the attached file in the wordpress root directory.

Edit the file and replace these values by your own:

define ('BRIM_PATH','../brim');
define ('CALLBACK','http://localhost/~test/wordpress/');
$_GET['username']='test';
$_GET['plugin']='bookmarks';

This is the setup for a test user with a directory
'brim' and a directory 'wordpress' in his public_html
directory.

Now edit your template file and add:

<div id="sidebar">
<?php include ABSPATH.'/brim-bookmarks.php'; ?>
</div>

This should show all public bookmarks of the user 'test'


Barry Nauta ( barrel ) - 2005-09-12 09:29

5

Closed

Accepted

Barry Nauta

None

None

Public


Comments ( 3 )




Date: 2009-06-03 21:56
Sender: nobody

<a href="<http://groups.google.com/group/buy-best-generic-valium>">buy
valium</a>


Date: 2005-09-13 19:45
Sender: barrelProject Admin

Logged In: YES
user_id=96199

A small bug is present which prevents the plugin from saving
its options on some php installations.

in the file brim-wordpress.php change line 195 from
<form method="post"
name="brim_option" action="'.$_SERVER[PHP_SELF].'">
to
<form method="post"
name="brim_option" action="'.$SERVER[PHP_SELF].'">


Date: 2005-09-13 10:30
Sender: barrelProject Admin

Logged In: YES
user_id=96199

Previous version deleted, attached is a genuine wordpress
plugin (albeit a pretty rough version).
You would also need to replace the
framework/view/PublicExplorerTreeDelegate.php file which is
also attached.

Installation instructions:
* Replace the framework/view/PublicExplorerTreeDelegate.php
* Copy the file 'brim-wordpress.php' to your plugins
directory in wordpress
* Edit the sidebar.php file of your template and add
<li><h2>Brim - bookmarks</h2>
<ul>
<?php echo brim_bookmarks(); ?>
</ul>
</li>

That should be all.



Log in to comment.

Attached Files ( 2 )

Filename Description Download
brim-wordpress.php Download
PublicExplorerTreeDelegate.php Download

Changes ( 12 )

Field Old Value Date By
close_date - 2005-10-05 19:08 barrel
status_id Open 2005-10-05 19:08 barrel
close_date 2005-09-12 09:30 2005-09-13 10:31 barrel
status_id Closed 2005-09-13 10:31 barrel
File Added 148892: PublicExplorerTreeDelegate.php 2005-09-13 10:31 barrel
File Added 148891: brim-wordpress.php 2005-09-13 10:30 barrel
File Deleted 148787: 2005-09-13 10:26 barrel
status_id Open 2005-09-12 09:30 barrel
close_date - 2005-09-12 09:30 barrel
assigned_to nobody 2005-09-12 09:29 barrel
resolution_id None 2005-09-12 09:29 barrel
File Added 148787: brim-bookmarks.php 2005-09-12 09:29 barrel