Search Results for 'code'
-
AuthorSearch Results
-
April 8, 2007 at 3:30 pm #56830
In reply to: Informed Banking Press
fel64
MemberThe CSS is fine in IE 7 at least.
Looking good.
fel64
MemberIt’s got a lot more of a consistent feel to it now, which is very nice. But when you hover over links they still turn green, as do the rows in the thread listing.
Look for the
a:hoveritem in your CSS file to change links when hovered, and look for something liketr:hoverfor the thread rows. I think the specific item for thread rows is#latest tr:hover, #forumlist tr:hover, #favorites tr:hoverJust keep playing with it until you’re happy is the best advice.
April 8, 2007 at 3:23 pm #55483In reply to: Custom Theme for WordPress integration w/ bbPress
fel64
MemberNot sure what the DXX theme is, but if it’s the one you’re using on your site yeah it’s ultra-easy.
First of all, don’t try to force bb into the WP theme … that rarely works. Your best bet is to open (or make if it doesn’t exist) your
my-templatesfolder and start a new theme by making a new folder (call itdxxor something). Go back up into your main bb folder, openbb-templates > kakumeiand copystyle.css, then paste it into your newmy-templates > dxxfolder.Using CSS you can then modify how your page looks (not what’s on it though). The basic way to do css is like this:
html element {
property: something;
}For example, the code to colour links red with NO underline is like this:
a {
color: red;
text-decoration: none;
}To change the way your forum looks, you therefore open the copy of
style.cssyou made and change properties like that. There’s much more info at http://www.w3schools.com/css/. That is all you need to know.So for example, what you would do for your theme is make links blue and no underline, make the header green, change the background of the page and put a border on the main
divelement. Some knowledge of HTML will be helpful but you can also pick this up.April 8, 2007 at 3:22 pm #56616In reply to: Reverse the display of the messages
wmarcy
MemberWorks perfectly Pravin, any chance I could get you to add the conditionals to the code snippet?
I would like anywhere the topic list is displayed, a small arrow or link next to the topic_id (or just a link) to click this and the current sort order would be changed. So if it is a normal, chronological display and the link is clicked, for it to display in reverse chronological display.
Or is this something that is too complicated?
April 8, 2007 at 2:27 pm #56157In reply to: Technorati Runs bbPress
albert4000
MemberThis one too:
http://www.informedbanking.com/resources/forums/
Its not nearly as big as Technorati but I’ve been tweaking it slowly but surely, integrating it in with a custom CMS / Wiki, WordPress, and now bbpress.
Thanks for the awesome software. I sent in a patch of themes.php last night – it needs a urldecode() in the current subversion revision.
April 8, 2007 at 9:48 am #1713Topic: HACK: User avatar from WPMU Avatar Plugin
in forum PluginsNola1974
ParticipantIf anyone is using ‘ Avatar pluginsuleiman, here’s a hack I use to show the WPMU’s avatar in BBPress:
In post.php, after the
<small><?php post_author_title(); ?></small>bit I use the following:<?php
$userid = get_post_author_id();
$wp_avatar = '/full/path/to/public_html/wp-content/avatars/' .$userid. '.jpg';
$wp_avatarURL = '/wp-content/avatars/' .$userid. '.jpg';
if (file_exists($wp_avatar)) {
echo '<img class="avatar" src="'. $wp_avatarURL.'" />';
}
?>Probably not the most elegant, but it works:
Vincent
April 8, 2007 at 4:42 am #56614In reply to: Reverse the display of the messages
Pravin Paratey
Participantlook for these lines (20-23) in
topic.phpif ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page );
$forum = get_forum ( $topic->forum_id );change to
if ( !$bb_db_override ) :
$posts = get_thread( $topic_id, $page, 1 );
$forum = get_forum ( $topic->forum_id );get_threadfunction changedApril 7, 2007 at 11:35 pm #56801In reply to: What is a bozo?
fel64
MemberQuoting dictionary.com:
bo·zo /ˈboʊzoʊ/
–noun, plural -zos. Slang.
1. a fellow, esp. a big, strong, stupid fellow.
2. a rude, obnoxious, or annoying person: Two or three bozos tried to cut in ahead of the rest of us in the supermarket line.
Users marked bozos means that Akismet (the part of the code responsible for spam detection) has identified these as spammers, or you have manually set their status. They can post, however posts will be visible only to themselves – they will not realise that their posts are showing up to noone else. Useful precaution against spammers (it bothers no-one, they don’t try harder since they think they’re succeeding) and perhaps against trolls, although I haven’t tried that.
April 7, 2007 at 10:28 pm #55293In reply to: HTTP_AUTH plugin/how to ?
mathboy
MemberThank you!
April 7, 2007 at 9:46 pm #56632In reply to: bbpress future
Null
MemberI also think people should realize that bbPress isn’t dsigned to be a plugin for WP in any way and the developers should keep in mind to not develop too much towards this too.
It’s a standalone forum, fast and light and should stay this way
April 7, 2007 at 7:25 pm #56613In reply to: Reverse the display of the messages
Trent Adams
MemberI see now….the first topic and then reverse the order of the replies. Off the top of my head that would seem like a difficult thing to do as each reply is given an reply ID based off the previous reply ID (sequential). Displaying the order would have to be done by hacking the core files for topic.php so that is changes from desending to acending in the mySQL query. I think it can be done though, just have to look at the core code I guess.
Trent
April 7, 2007 at 5:45 pm #55011In reply to: Is there an Approve Registration plugin?
Trent Adams
MemberYou cannot click a checkbox that says “turn off registration”, but you can do it indirectly through the following steps by editing your theme files. If you have the default template, please upload the changed files to a new folder off the root of /my-templates/
1) Remove the following file out of your root directory, register.php.
2) Edit your template file login-form.php and remove the following:
<p><?php printf(__('<a href="%1$s">Register</a> or log in'), bb_get_option('uri').'register.php') ?>:</p>3) Put something like the following in register.php from your template folder:
<?php bb_get_header(); ?>
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> » <?php _e('Register'); ?></h3>
<h2 id="register"><?php _e('Registration Turned Off, Sorry!'); ?></h2>
<?php bb_get_footer(); ?>Unless I am missing something, that should do it!
Trent
April 7, 2007 at 4:49 pm #1709Topic: Topic closed message when adding reply.
in forum Troubleshootingafrodude
MemberI’ve encountered with this error very recently, it didn’t happened before.
When a reply is posted (So far, by me the Key Master) the Topic closed message appears with no reason.
I have these plugins installed:
allow-images
bb-avatar
bb-memberlist
bb-post-count
bbpress_bbcode
fix-bbpress
forum-restriction
front-page-topics
April 7, 2007 at 3:27 pm #56658In reply to: Cookie integration for wordpress
fel64
MemberThere’s an easier way to do this, just put in the right domain.
//cookies
define('COOKIE_DOMAIN', '.2diabolos.com');Or
//cookies
define('COOKIE_DOMAIN', 'forum.2diabolos.com');If you go with the first, in my opinion neater version, you also need to add this to bbPress’
config.php.//try to sync cookies
$bb->cookiedomain = '.2diabolos.com';
$bb->cookiepath = '/';Then clear your cookies, log out and in and see if it works across your site.
April 7, 2007 at 3:21 pm #56639In reply to: Plugin: BB-Ads
fel64
MemberThat’s pretty cool. Are there screenshots, is there anywhere running it so we can see what it’s like?
You’ve submitted it to the plugin db too, haven’t you?
April 7, 2007 at 10:44 am #56630In reply to: bbpress future
c00l2sv
MemberI hope development team had a look on this thread:
https://bbpress.org/forums/topic/867and on this:
http://forum.mootools.net/viewtopic.php?id=2337Why?! Cause i’m not sure bbpress made the right choise on integrating javascript in the core of bbs! It is really hard to develop new templates especially to port some templates that use different ajax libs!
April 7, 2007 at 8:51 am #56588In reply to: reply and add new topic
archasek
Memberhttp://ram.org.pl/forum/ – do you see them? i don’t.
edit:
do you know what file can i TRANSLATE
Add New Topic
You must log in to post.in?
edit:
http://ram.org.pl/forum/?new=1 doesn’t work
April 6, 2007 at 11:22 pm #51449In reply to: Plugin: Simple Onlinelist
thomasklaiber
MemberOr if you want it on front-page anyway, add something like
<?php if ( bb_current_user_can( 'edit_users' ) ) : ?>around the code.April 6, 2007 at 10:07 pm #1704Topic: Plugin: BB-Ads
in forum Pluginswittmania
MemberThis is my first attempt at a plugin, so be gentle!

This plugin allows you to display custom ads/messages anywhere on your site, including the front page, profile pages, forum pages, and even between posts.
The plugin randomly selects a file from a pre-determined directory, or you can specify a specific file to display. File types include .php, .html, .htm, or you can add custom file types as needed.
The files themselves can include links, images, PHP functions, and CSS stylization. You can customize the ads/messages however you want.
You can get the 0.1 version here:
http://blog.wittmania.com/bb-ads
PLEASE feel free to let me know if you find any bugs. I’m also extremely open to suggestions for future revisions, as my PHP skills are only slightly better than my bow hunting skills, which are pretty pathetic.
Enjoy!
April 6, 2007 at 10:06 pm #56587In reply to: reply and add new topic
fel64
MemberThe plugin he linked you does give you buttons like that. Click it and it auto-inserts the code.
April 6, 2007 at 7:01 pm #52649In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantAh, that did it! Thanks for the clarification.
Any chance that we can add smilies from the emoticon plugin into the sigature? Or at least an IMG tag?
April 6, 2007 at 6:02 pm #52647In reply to: Plugin: [REL] Signature
H
Participantcitizenkeit; if you have installed the avatar plugin, you have to edit the function in the bb-avatar.php file in your plugins folder… The function get_profile_info_keys_plus_avatar() overrides the function in the function.php file.
Just add the code written above at the end of the get_profile_info_keys_plus_avatar() function (before the last ‘)’ ).
Got it?
April 6, 2007 at 5:50 pm #56585In reply to: reply and add new topic
archasek
Memberthanks alot, but this plugin, unfortunately doesnt work for me

do you know, Trent, how can i translate http://ram.org.pl/forum/ ‘add topic’ and ‘reply’ on down of the page? and why my ‘add new’ (‘dodaj nowy’ in my theme) doesn’t work?
April 6, 2007 at 5:24 pm #56579In reply to: adityanaik.com
so1o
Participantuse the sort_tag_heat_map filter.. search for it in the forum, you’ll find a code example somewhere here
April 6, 2007 at 4:42 pm #52645In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantIn functions.php, find the get_profile_info_keys() function, which should be on or around line 1761. In the line that starts with array(‘user_email’…, add the following code before the last “)” in the line. Note the comma.
, 'sig' => array(0, __('Signature'))'Hmm… I can’t seem to get this to work. I’ve followed your instructions, but it doesn’t show up in the Edit Profile area. Here’s my code for that section of functions.php:
//meta_key => (required?, Label). Don't use user_{anything} as the name of your meta_key.
function get_profile_info_keys() {
return apply_filters(
'get_profile_info_keys',
array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')), 'sig' => array(0, __('Signature')))
);
}Is this correct?
-
AuthorSearch Results