Search Results for 'code'
-
Search Results
-
Topic: Putting a border on images
I’ve just added the Allow-Images plugin to a forum to bring a little life to some topics. There’s a post you can see at http://mbforum.letsdoo.org/topic/visitors-who-arent-registered#post-17.
I’m trying to figure out a way to put a 1 pixel grey border around images, like the avatar image on the left has. The avatar has its own CSS formatter, but I’m not so hot with CSS and can’t work out how to do it for the image in a post. I’ve used the usual bbcode [ img ] xyz [ /img ], but putting a CSS format tag in the [ img ] part stops the image from being displayed.
I guess I could hard code it into the plugin, but any better ideas..?
Edit:
Duh. I answered my own question. I just changed the stylesheet
img.avatar { display: block; border: 1px solid #ddd; border-width: 3px; border-style: double; }
to
img, img.avatar { display: block; border: 1px solid #ddd; border-width: 3px; border-style: double; }
Topic: Fixing Plugin Browser Plugin
I just wanted that plugin to work, so just researched a little bit and here is the fix.
Open the plugin-browser.php
Add this line below <?php at the top:
if ($_GET['plugin'] == 'plugin_browser_admin_page') { include( '../bb-admin/includes/functions.bb-plugin.php' ); }
Note: If you have plugin-browser file in another folder within my-plugins, then use this:
if ($_GET['plugin'] == 'plugin_browser_admin_page') { include( '../../bb-admin/includes/functions.bb-plugin.php' ); }
Hi all,
I have a bbPress 1.0-alpha-6 running, and I don’t know why the favorites link on a topic doesn’t entirely work.
When I click on the link “Add this topic to your favorites”, it creates a meta on the database “bb_favorites” with the proper id, BUT, the link still shows “add this topic to your favorites” instead of a link to the favorite page.
AND, if I add another topic to my favs, it doesn’t add the id with the previous ones, but overrides the meta_value with the new one
Is it a known bug or is something wrong with my bbpress ..?