Search Results for 'code'
-
AuthorSearch Results
-
April 9, 2009 at 12:03 pm #72868
In reply to: A question about customizing bbcode buttons
_ck_
ParticipantI’ve hardcoded it in the javascript.
edit it and change
function edOver(element) {element.style.color="#000080"; element.style.backgroundColor="#ddd";}
function edOut(element) {element.style.color="#000000"; element.style.backgroundColor="buttonface";}to whatever color you’d like
April 9, 2009 at 10:54 am #71397_ck_
ParticipantMerlin that code looks vaguely familiar
April 9, 2009 at 10:48 am #71396deadlyhifi
Participant…it does keep the paging intact but counts for all the forums (fora?), even the excluded one(s).
To get round this requires amending the function bb_latest_topics_pages() in functions.bb-template.php.
$bb_latest_topics_count = $bbdb->get_var('SELECT COUNT('topic_id') FROM '' . $bbdb->topics . '' WHERE 'topic_open' = 1 AND 'topic_status' = 0 AND 'topic_sticky' != 2 AND 'forum_id' != 3;');
// AND 'forum_id' != 3 - filters out forum 3 on front page paging count.April 9, 2009 at 10:44 am #72892In reply to: Registrations and Spam.
deadlyhifi
ParticipantThanks for the reply _ck_.
I’m actually using it on a larger site than recommended
and we have pretty strict forum policies so ban people for 24 hours when they slip up using the Ban-Plus plugin. The problem is people just set up another account and instantly start posting again.We recently had a spammer, a human one who would deliver actual advice to a discussion, but then follow it with links to escort agencies and the like. We banned him but he just signed up again – 5 times in a row!
The 24 hours approval rate would solve all these problems. Just need to find some time!
April 9, 2009 at 5:06 am #5125Topic: A question about customizing bbcode buttons
in forum Pluginspierrottorreip
MemberI’m trying to customize bbcode buttons on one of my sites (I’ll provide the link upon request for fear of offending anyone).
My questions…
I set the text color to grey and would like it to hover black. I’m not sure how to do this without a style sheet.
Also, when I click one of the buttons – this / appears beside it. How can I make that not happen?
Thanks,
The plugin is really great and I look forward to using it more.
April 9, 2009 at 2:02 am #5155Topic: Automatic Thread Tagger
in forum Requests & Feedbackalehawk
MemberHi!
I normally use VBulleting forum, several of my sites runs it but I algo use wordpress in some sites and for a new one I was looking for something in the middle betweeen forum and blog and I thing I got it with bbpress.
I know it isnt like WordPress but I like it.
To the point, in VBulletin I got a automatic thread tagger, it will add tags automatically to the posts, it works just fine, you can exclude words like TO, FOR, THE, etc.
I guess something like that is missing here. I dont know how to code it.
Tnx!
April 8, 2009 at 4:22 pm #72939In reply to: Can not post ‘New Topic in this Forum’
simpleanecdote
MemberStill got them.
I’m not a php newbie.
Not an expert, but in a comfortable place in the middle

I think I’ve pretty much got over all the bugs in the system.
If anyone wants my style of integration – this is what I did:
Installed bbPress in root/forums/
in header.php of forum template put the following before everything else:
<?php include('../lib/includes/header.php');//Website template ?>
in header.php of your own website:
$forumexplode = explode('/', $_SERVER);
if($forumexplode == "forums")
{
bb_feed_head();
?>
#You can also put in here you own, relative path style sheets from the main website.
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
<?php if('rtl' == bb_get_option('text_direction')) : ?>
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
<?php endif;
bb_head();
}
else
{
?>
Anything you want to load from normal relative path (if not forums)
<?php
}
?>
</head>
<body id="<?php ($forumexplode == "forums" ? bb_location() : ""); ?>">
in footer.php of forum template put the following after everything else:
<?php include('../lib/includes/footer.php');//Website template ?>
I also prefixed all the forum template’s XHTML id tags with forum_ so they won’t mess with my website’s structure.
After you’ve done all that, you’re free to style your forum via the css file in the templates directory like you would normally, as well as the structure via the other files.
And your website, via your own stylesheets.
Or you can load everything from either stylesheet as long as you remember to load them from their relative path in the header.
Hope this helps someone ;P
Peace everyone, hope bbPress will release a version soon which will be easier to integrate.
Because my system doesn’t really allow for easy user authentication integration on the rest of the website. Can be circumvented via regular user auth integration but that’s more work.
SMF (Simple Machines Forum) has ssi.php file which you just load into any page and everything is integrated right there and then. Maybe in future versions?
Me.
April 8, 2009 at 4:13 pm #72942In reply to: Unable to access “Admin” area
Vizworld
MemberNo luck, still redirects with the ?123412341234 added… Deleting cookies hasn’t helped either.. Tried it about 6 times now
April 8, 2009 at 4:05 pm #72941In reply to: Unable to access “Admin” area
_ck_
ParticipantFirst see if it’s just your browser remembering the old redirect by adding something like
?123on your /bb-admin/ urlie. http://example.com/forums/bb-admin/?123
also try deleting the cookies again for your site
April 8, 2009 at 1:43 pm #72908In reply to: *lost* username password for admin
johanh
Member@mypop It’s interesting to note in the way you write that you share my frustration and out of your frustration grew the energy to tell me what I need to do. I did that and this is the first time that I got the drop down menu as per the instructions https://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt
3. On Step 3 enter anything you like for your site name and first forum name. Select “Admin” from the
35 dropdown to use as your keymaster user.
But then I got this *minor* error:
DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist
SELECT
option_valueFROM wp_options WHEREoption_name= ‘auth_salt’ LIMIT 1DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist
SELECT
option_valueFROM wp_options WHEREoption_name= ‘secure_auth_salt’ LIMIT 1DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist
SELECT
option_valueFROM wp_options WHEREoption_name= ‘logged_in_salt’ LIMIT 1This may be a minor error by the installation program but it seems Greek to me.
Hope you can help.
April 8, 2009 at 10:55 am #72935In reply to: WordPress header in bbpress
zeronix
MemberI tried to include my Header.php content (some codes of it) to my bbpress header.php but always got trouble with the scripts.
It seems the codes are different and wont work together.
Maybe someone can help us because i am a beginner too.
Maybe there´s a way to create a new Page in WP and include bbPress there?
I hope so.
April 8, 2009 at 9:47 am #65710In reply to: Intergrating the theme
zeronix
MemberIs there a wayy to get this Tool you talked about in your Tutorial?
I´d also love to integrate my WP theme to my forum but the link you posted is down

PS:
I run WPmu and the latest bbPress release
I hope this tool will work with it (if you could send me).
Best regards, Sebastian
April 8, 2009 at 8:17 am #72924In reply to: Remove Forum Dashes: —
Tecca
ParticipantFrom ctsttom:
Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.
<?php bb_get_header(); ?>
<?php if ( $forums ) : ?>
<div id="contentleft">
<div id="login">
<?php login_form(); ?>
</div>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Forum Categories'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php foreach ( $forums as $forum ) : ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a> — <small><?php forum_description(' '); ?></small></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php if ( $bb_current_user->ID ) : ?>
<?php endif; else : // $forums ?>
<div id="contentleft">
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>
<?php post_form(); ?>
<?php endif; ?></div>
<div id="discussions">
<?php if ( $topics || $super_stickies ) : ?>
<h2><?php _e('Latest Discussions'); ?></h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
</table>
<?php endif; ?>
<div id="search">
<?php search_form( $q ); ?>
</div>
<br />
<img src="http://teccahigh.com/wp-content/themes/revolution/images/divide.png"><br />
<h2>Members Online</h2>
<small>Online now:
<?php do_action('members_online_now',''); ?></small><br />
<small>Online today:
<?php do_action('members_online_today',''); ?></small>
</div>
<?php include 'sidebar.php'; ?>
<div style="clear:both;"></div>
<?php bb_get_footer(); ?>April 8, 2009 at 12:06 am #72900In reply to: *Lost* Admin Username
Ipstenu (Mika Epstein)
ModeratorExtrapolating from this may help: https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin
April 7, 2009 at 11:51 pm #72923In reply to: Remove Forum Dashes: —
Ipstenu (Mika Epstein)
ModeratorIt’s in here bb-includes/functions.bb-template.php (line 680):
function forum_description( $args = null ) {
if ( is_numeric($args) )
$args = array( 'id' => $args );
elseif ( $args && is_string($args) && false === strpos($args, '=') )
$args = array( 'before' => $args );
$defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
$args = wp_parse_args( $args, $defaults );
if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
echo $args['before'] . $desc . $args['after'];
}So you could probably whip up some function to override it.
You both have one dash, most likely, but different fonts
April 7, 2009 at 11:20 pm #72879In reply to: Adding to the allowed tags in KSES
Tom Lynch
ParticipantI know chrishajer but the bbvideo plugin is crap because people like and are used to putting in the embed code, my users are tech savie just not used to the restrictiveness, can I disable filtering for all attributes of the embed, object, img, and param tags?
April 7, 2009 at 10:45 pm #72921In reply to: Remove Forum Dashes: —
Tom Lynch
ParticipantCan we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.
April 7, 2009 at 7:22 pm #5144Topic: Remove Forum Dashes: —
in forum ThemesTecca
ParticipantHey,
I’m trying to figure out how I can remove those dashes that separate the ‘Forum Name’ and its ‘Description.’
Here’s an image to show what I’m trying to say: http://teccahigh.com/images/uploads/forum22.png
Where it says “News, Updates, and Announcements —” I’d like to get rid of that dash in there. I have tried going into front-page.php and changing this:
<?php forum_description();To this:
<?php forum_description(' ');Which actually did work, but it removed a different dash (there used to be two dashes which looked like: — –
It removed the small one, but now I can’t figure out how to remove the other one.
April 7, 2009 at 4:46 pm #72918In reply to: Agitainment.Comics Forum
agitainment
MemberThanks, _ck_. I appreciate the feedback.
By the way, I’m running several of your plugins, including Human Test, bbCode, Subscribe to Topic and more.
For anyone wanting to extend your bbPress site, I suggest looking first at _ck_’s plugins under the Extend tab. Really great stuff.
April 7, 2009 at 3:00 am #72913In reply to: bb-post.php: how to define name=”_wpnonce” of input
Filipe Deschamps
MemberFinally figure it out.
It’s the bb_create_nonce();
It’s like an MD5 hash, formed by “create-post_” + “topic_id”
for example:
<input type="hidden" name="_wpnonce" value="<?=bb_create_nonce('create-post_3');?>"With this, you can create replies (posts) within the topic with id 3.
Best regards.
April 7, 2009 at 2:28 am #72911In reply to: bb-post.php: how to define name=”_wpnonce” of input
Ipstenu (Mika Epstein)
Moderator2. https://codex.wordpress.org/Function_Reference/wp_nonce_field
Don’t worry about the nonce field, it’s just for WP side and doesn’t translate, as of yet, to BB.
3. I think it’s just the internal http referrer, but I could be wrong.
April 6, 2009 at 9:56 pm #72598In reply to: Mazcue.com.ar (WP + BBpress)
Fernando Tellado
ParticipantFelicidades, estupenda integración, ya me gustaría a mi hacer algo así

In english: congratulations, very nice integration, I would like to do something similar
April 6, 2009 at 5:22 pm #68051In reply to: Here’s how to install Avatar Upload plugin
bobruffolo
MemberIt’s still not working for me
April 6, 2009 at 12:58 pm #72891In reply to: Registrations and Spam.
_ck_
ParticipantYou really get that many humans registering to spam on a smaller site?
One solution I use on a large site is to prevent any post with more than 2 urls.
Spammers typically cannot help but be morons and post several urls at once, normal humans rarely post more then two per post, and then not every post.
Not sending a password would be fairly easy by hacking the core, I’d have to look at it more carefully to see if it can be done via plugin without hacks. I believe it’s done in
pluggable.phpwhich means it’s replaceable, so that’s good.Another method would be to use my Instant Password but NOT do the final step of logging them in and activating the account, but instead store a scrambled password and log the request, then manually authorizing it which would drop their chosen password hash into place. The important/hard part is not letting them request a new password to activate the account.
This might also be worth a shot but not sure if it’s useful against humans unless they work from the same IP pool:
https://bbpress.org/forums/topic/new-stop-forum-spam-api-plugin-block-fake-user-registrations
April 6, 2009 at 1:15 am #72877In reply to: Losing keymaster when mereging bbP into WP
goken50
MemberThanks! Fix admin access would have worked.. I eventually worked it down to just going into phpmyadmin and setting a user to have admin bb abilities. Wish that went smoother, but good to figure out
-
AuthorSearch Results