Search Results for 'code'
-
AuthorSearch Results
-
wenkong
Memberjust now i key in the chinese character Tag, but not show in HOT Tag.
which version can support Unicode or other languages Tag?
March 8, 2007 at 7:35 am #55361In reply to: Pretty Permalinks Not Working
laemo
MemberTrent,
I have read the FAQs for my hosting account (Linux hosting) at GoDaddy, and it says that the server is mod_rewrite enabled. It is evident from the fact that my wordpress install works fine with custom permalinks. Tried even using the stuff spewed by rewrite-rules.php. Nothing seems to work!

Mirce, I had disabled pretty permalinks for a while in between and I believe that is around when you must have checked the forums.
wyDay, I have kept the .htaccess file for about a day now, no results yet

Should I perhaps try to reinstall bb-press? The only thing I am concerned about is losing my WP data because I believe wp-users is one table that is shared if both are installed in the same database.
I would really like to get my pretty permalinks to work. I have tried both the tricks mentioned in the FAQ, still I am a bit clueless..
March 8, 2007 at 1:10 am #55333In reply to: Modifying the topic tag list
Staffan
MemberThank you for answering! I’ve been trying to do exactly that, but there are no ids in style.css called #yourtaglist, #otherstaglist etc. Although, I’m not sure I need to edit those ids anyway, since I don’t wanna have the tags in a list.
For now I have modified the code and edited out the ul and li-tags to make it look like this:
<?php if ( $user_tags ) : ?>
<div id="yourtags">
<?php _e('Your tags:'); ?>
<?php foreach ( $user_tags as $tag ) : ?>
<a href="<?php tag_link(); ?>" rel="tag"><?php tag_name(); ?></a> <?php tag_remove_link(); ?>
<?php endforeach; ?>
</div>
<?php endif; ?>It works pretty well, but the tags aren’t separated by anything. Is there any way to insert commas between the tags, but not after the last tag?
March 8, 2007 at 12:47 am #55296In reply to: Plugin: Allow additional or custom profile fields
Trent Adams
MemberNot sure if the options you want are hardcoded into the plugin? Maybe you should take a look at having the options in the admin to add the options. As well, I placed in my “number of children” and it didn’t save in the database or show up in my profile. Not sure what is going on there! contact me if you want to chat. I have an IM deal on my site at the bottom right corner:
Trent
March 7, 2007 at 11:45 pm #55332In reply to: Modifying the topic tag list
Trent Adams
MemberYou would have to modify the CSS to list the tags you want. That means playing around with style.css of your template playing with these parts:
<div id="topic-tags">
<div id="othertags">
<ul id="otherstaglist">The names will be like #topic-tags, #othertags and something with list item for otherstaglist. I haven’t looked at it, but the list is CSS driven.
Trent
March 7, 2007 at 11:41 pm #55417In reply to: Allowing HTML
Trent Adams
MemberWell, the code “em” is already for italics, but if you really need to have it as the “i”, it would be something like this (chrishajer is going to hate me for saying this as it is really poor markup, but….)
<?php
function allow_italics_as_allowed_tags( $tags ) {
$tags['i'] = array();
return $tags;
}
add_filter( 'bb_allowed_tags', 'allow_italics_as_allowed_tags' );
?>That should work. Get the idea?
Trent
March 7, 2007 at 9:27 pm #55268In reply to: i need wysiwyg editor
mrbl4d3
Memberok, after i will try with swfobject but i have already install Tinymce editor.
I can see correctly the editor but when i try to insert new post bbpress said me: “You need to actually submit some content!”.
If i can edit already insert post i don’t have error…
sorry for bad english

Thanks
March 7, 2007 at 5:57 pm #55267In reply to: i need wysiwyg editor
drmike
MemberZeug is just everywhere…
March 7, 2007 at 5:56 pm #54932drmike
MemberStill can’t get those icons to show up though.
March 7, 2007 at 4:26 pm #55223In reply to: Titles for topic replies?
fel64
MemberJudging by the wordpress system (the documentation is quite good), 10 is default priority and plugins are executed in order of descending priority (so a plugin of 1 comes before 2). In WP the last two arguments are optional.
Preview sounds good – but better yet would be an AJAX thing that means you don’t even have to reload the page when you post.
March 7, 2007 at 2:27 pm #52314In reply to: Plugin – Private Messages
ardentfrost
MemberThe function checks to see if it exists, and if it doesn’t it creates the tables. If you created the tables as they are setup in that function, it shouldn’t do anything again. If it happens again, I suggest you comment out the table creation code in the plugin. I don’t know why it would do that.
By the way, Online List works the same way as mine with table creation if you use that one.
March 7, 2007 at 2:20 pm #54930desbest
MemberBut I love this feature.
That’s the whole reason why I chose this script.
If you hate the feature so much, why don’t you edit your template’s topic.php file and remove the corresponding code.
March 7, 2007 at 1:44 pm #55415In reply to: Allowing HTML
Trent Adams
MemberThe allowed tags are in template-formatting.php I believe (might be wrong as it is early there) in your bb-includes, but it is best to look even at the ‘allowed markeup’ on this forum when you are posting and then know those can be used. To add more, it is often done with plugins, like the image plugin in the ‘extend’ tab of this site. Or I through this up to use stike for myself:
<?php
function allow_strike_as_allowed_tags( $tags ) {
$tags['del'] = array();
return $tags;
}
add_filter( 'bb_allowed_tags', 'allow_strike_as_allowed_tags' );
?>There are was to add to the bb_allowed_tags even with plugins.
Trent
March 7, 2007 at 1:39 pm #55358In reply to: Pretty Permalinks Not Working
Trent Adams
MemberThe best thing is go step by step through it again. Sometimes something small is missed and that is enough to screw up the entire thing. As well, if:
Options +MultiViewsDoes that work in your .htaccess file in your root bbPrsss directory ( / ). If not, try what is spit out of /bb-admin/rewrite-rules.php
If that doesn’t work, maybe try working with GoDaddy to make sure your setup can do mod_rewrites
Trent
March 7, 2007 at 7:11 am #55266In reply to: i need wysiwyg editor
zeug
MemberYeh AMP has 2 ways to embed media, one uses SWFObject to embed Flash movies, like all the youtube etc stuff. The other tests simple href links in the page for media file extensions .mp3, .flv, .mov etc, and if it finds them it loads em.
It’s just the SWFObject javascript embeds that need to be handled behind the scenes by a bbPress plugin as I take it most everyone knows how to make simple href links. For these all you need is the javascript call in the head:
<script type="text/javascript" src="http://PATH TO PLAYER DIRECTORY/anarchy_media/anarchy.js"></script>And yeh, no idiocy required, apart from my own idiocy of ommission … I should really get around to documenting what anarchy.js actually does and add that to the download package so it’s all clearer than opaque mud… sort of more a translucent mud hopefully.
March 7, 2007 at 6:47 am #1531Topic: Pretty Permalinks Not Working
in forum Troubleshootinglaemo
MemberHello,
I have read the FAQ here: http://bbpress.org/documentation/faq/#pretty-permalinks
and I have tried both, using Options +MultiViews and also using the code generated by /bb-admin/rewrite-rules.php but I cannot seem to get my permalinks working.
http://www.nmimsieee.com/forums/ is the link to my forums.
I am using GoDaddy for hosting. I have set $bb->mod_rewrite = true in my config.php and my forums are in the same database as WordPress.
I recently migrated my forums to my WordPress database, and I did the same at home (I have a server running on my laptop, and I just loaded all the data onto the domain mentioned above).
Permalinks work fine at home on my WAMP setup. However on my domain at GoDaddy, I get an error saying “No input file specified.”
Could anyone please help me out and tell me where am I going wrong? I would really appreciate it.
March 6, 2007 at 9:44 pm #55283In reply to: HTTP_AUTH plugin/how to ?
fel64
Member“As well, if you have an integration with WordPress, bbPress integrates logins perfectly with WordPress.”
That said, if they are in different subdomains you will have to tweak some files (currently, anyway). But it’s two lines that need changing in total, and it’s very simple.

If you’re planning to install WordPress, look for a WP plugin that does whatever you want and logs you in – there are way way more WP plugins than bbPress plugins.
March 6, 2007 at 7:54 pm #52311In reply to: Plugin – Private Messages
cbfadmin
MemberI had problems too. The table was not created. I had to do it manualy. I have all of the latest updates for both WP and bbPress so I dont know what went wrong. To fix the data base issue go to you myphp admin (data base) and give the following command.
CREATE TABLE
bb_privatemessages(pm_idBIGINT( 20 ) NOT NULL AUTO_INCREMENT ,id_senderINT( 11 ) NOT NULL ,id_receiverINT( 11 ) NOT NULL ,seenINT( 2 ) NOT NULL ,pmtitleVARCHAR( 64 ) NOT NULL ,messageVARCHAR( 255 ) NOT NULL ,created_onDATETIME NOT NULL ,PRIMARY KEY (
pm_id)) TYPE = MYISAM ;
This solved my problems for now.
March 6, 2007 at 7:27 pm #55295In reply to: Plugin: Allow additional or custom profile fields
ardentfrost
MemberLet me know if it works for non-WP-integrated bbpress… if so I’ll see about using it in a couple of my plugins
March 6, 2007 at 7:12 pm #53188In reply to: No Login with IE6
macwise
Memberkannued,
As far as I can tell, the spec for the label tag indicates that it should be as above. I downloaded your html page and css file, then uploaded them to my server. Here’s what I found:
The problem is stemming from the
<br>tag used inside of the<label>tags. IE thinks the input element is still on the first line, but it’s really being displayed on the second line. Here’s how I have modified it, and it seems to work in ie:<label>Username: </label>
<input name="user_login" type="text" id="user_login" size="13" maxlength="40" value="" style="display: block; clear: both; />
<label>Password:</label>
<input name="password" type="password" id="password" size="13" maxlength="40"style="display: block; clear: both; />
<input type="submit" name="Submit" id="submit" value="Login »" />I’m not 100% sure about the functionality in IE, because I had to d’load the css file and place it on my server. In Safari it worked fine importing it as specified in the original HTML, however IE puked it up. Probably being oversecure in all the wrong places again! Anyhow, I’m pretty sure this will solve your problem.
Break tags are a somewhat quick and dirty way to break a line. This isn’t a bad element to use, but it should be used when appropriate, or at least when you want to be lazy and it doesn’t break stuff. (that’s the extent of my philosophy). Try this out, and let me know if it works for you.
***EDIT***
I do see in another resource that the label tag can be associated either way, and should have a “for=” option if the input element is not found inside the label. Sorry for the mixup.
Either way, the
<br>tag is most likely the culprit. Adding the styles to those input tags, (or specifying them in the stylesheet) should fix the problem.Links to LABEL element info (for documentation/S.E. purposes):
March 6, 2007 at 8:56 am #1522Topic: HTTP_AUTH plugin/how to ?
in forum Pluginschiensavant
MemberHi,
I was wondering if there was a HTTP_AUTH plugin/how to available. We’re thinking about integrating BBpress to our server, but we’d like to keep the existing user and password list, so that Bbpress would smoothly be part of our portal.
We might also use WordPress, maybe something done for WordPress is already working for BBpress ?
Since I haven’t found any relevant information so far, I though I might as well ask for help
March 6, 2007 at 6:07 am #55275In reply to: Plugin help…
macwise
MemberAhem, Trent…this means you too.
March 6, 2007 at 5:00 am #55273In reply to: Plugin help…
ardentfrost
MemberHonestly all I did to learn was download existing plugins (there weren’t many when I started writing them, so you’re at an advantage there) and check out how certain things were performed… I also used windows search to look through the files of bbpress to see how things were done.
Once you see how it is done currently (or how similar functions work), then you can start writing your own subroutines to either intercept, replace, or just create new functions that can be installed into the themes.
Unfortunately, I don’t know much about dealing with WP. I never wrote anything for WP, and the plugins of mine that play nice with WP only do so because people like Trent and spencer helped me test them.
But if you ask specific questions, there are a number of us here who can help you if we know what you’re asking
March 6, 2007 at 12:34 am #53184In reply to: No Login with IE6
macwise
MemberYou can click in the form element if you click within 1 px of the top of the element. It’s being blocked/covered by something. I haven’t looked too closely, but I’m pretty sure the problem is that your
<label>tags are encapsulating your input elements. They should be before the form element, like this:<label>Username:</label>
<input "input stuff" />Yours is like this:
<label>Username:
<input "input stuff" />
</label>Try that and see if that helps.
-Ron
March 6, 2007 at 12:28 am #55272In reply to: Plugin help…
mirce
MemberI had the same problem. Its not very hard to do it. You need to use add_action or add_filter. See my problem here https://bbpress.org/forums/topic/742
This may help also:
https://codex.wordpress.org/Plugin_API#Current_Hooks_For_actions
I have no experience also but I managed to do a plugin.
Good luck!
-
AuthorSearch Results