Search Results for 'code'
-
AuthorSearch Results
-
April 6, 2007 at 4:32 pm #56481
drmike
MemberI noticed this on occasion on the wp.com forums. If the system sees a tag as something that needs to be encoded, then there’s no way it can’t ever be un-encoded. It’s a pain when trying to fix HTML over there.
April 6, 2007 at 12:16 pm #56599In reply to: Profile links: nick and role
wittmania
MemberI assume you mean on a topics/posts page. Find post.php, and insert this code wherever you want the name/profile link:
<a href="<?php _e(attribute_escape
(get_user_profile_link
(get_post_author_id()))); ?>">
<?php _e(get_post_author()); ?></a>I broke it up into several lines for easier reading here, but it should all be on one line. This will build the profile link using the post author’s name as the text for the link.
April 6, 2007 at 6:34 am #56361In reply to: localhost installs
mirfan
MemberI changed
define( 'BBPATH', dirname(__FILE__) . '/' );with this:
define( 'BBPATH', str_replace('\', '/', realpath(dirname(__FILE__))) . '/' );in bb-load.php, and now it works on localhost with windows xp sp2.
April 6, 2007 at 5:02 am #55291In reply to: HTTP_AUTH plugin/how to ?
mathboy
MemberThis is exactly what I’m after also.
However, when I turn on the HTTP authentication in the Admin page I get a bunch of warnings at the top of the screen (see below), and also am unable to log off.Warning: Missing argument 2 for bb_login() in …/bb-includes/pluggable.php on line 125
and multiple of:
Warning: Cannot modify header information – headers already sent by (output started at …/bb-includes/pluggable.php:125) in …/bb-includes/pluggable.php on line 37
April 6, 2007 at 12:10 am #56486In reply to: Forum Start Date
startribe
MemberWorked

Thanks again Trent!
Best,
Orion
April 5, 2007 at 11:45 pm #1694Topic: Latest Discussion Error
in forum Pluginsstartribe
MemberHey Community,
I am starting up another site, and I am setting up the Latest Discussions Plugin. I have installed and integrated WP & BB. Once I activate the plugin and use the call for the latest discussion on the wordpress page I am given this error:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT * FROM topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMITAny ideas what might be going on here?
Thanks,
Orion
April 5, 2007 at 11:29 pm #56507In reply to: Strut Your bbPress!
Michael Adams (mdawaffe)
MemberI take no credit
April 5, 2007 at 9:21 pm #52644In reply to: Plugin: [REL] Signature
wittmania
MemberOK, to answer the “where do I put the code question (0.8.1)…
In
functions.php, find theget_profile_info_keys()function, which should be on or around line 1761. In the line that starts witharray('user_email'..., add the following code before the last “)” in the line. Note the comma., 'sig' => array(0, __('Signature'))This will add the signature field to the profile edit page, enabling users to input their own signatures.
Next, we need to add the code to display the signatures in their posts. In
post.php, find this line (for me it was line 17):<div class="post"><?php post_text(); ?></div>BEFORE the closing div tag, add the following:
<?php /*Is the signature field blank?*/
if (get_sig( get_post_author_id() ) != "") { ?>
<div class="signature"><?php post_sig(); ?></div>
<?php } ?>(NOTE: Make sure the existing closing div tag still follows the code above.)
This checks to see if a signature exists, and if it does it adds a nested div with the signature class stylization applied to it, and the content of the signature field is placed inside this div.
Finally, add the following to your style sheet:
.signature {
border-top: 1px dotted #ccc;
margin: 5px 0 0;
padding: 5px 0 0;
}If you are using the default theme, this will style the signature div exactly like the
poststuffdiv that follows it.Please note that (at this time) signatures are text-only. You may want to let your users know by adding a note in the functions.php array declaration. Something like
'Signature (text only)'would do the trick.I don’t know if it’s possible, but it would be nice if this plugin would be modified so that it can display images, links, and so on in the signature. Does anyone know how to do that?
Thanks!
April 5, 2007 at 8:02 pm #56498In reply to: Novice Headache with WP & bb Integration
Trent Adams
MemberJust joking around really! I just have a habit of getting the basic install up and working the way people want and then try including WP content, changing themes, adding plugins, etc so they can track what they did when they see further problems (if any exist!). That is my funny way of saying ‘break things” afterwards

**Edit**
I tried to test out your forum again and the same error is still there. Let me know when you get that sorted out and I can try and work with you to get this working.
Cheers,
Trent
April 5, 2007 at 6:51 pm #56497In reply to: Novice Headache with WP & bb Integration
Davor Dedic
MemberYeah,
I saw that, went back to the start, (everything is back to normal now) however everything is working except of logging through bbPress with my WP user, again once logge through WP, no problem ???
Any thoughts ?
P.S.
What did you mean by “…and then break it with tring to include WP content like the UTW plugin
” do you mean I should stop trying doing that
April 5, 2007 at 6:21 pm #56496In reply to: Novice Headache with WP & bb Integration
Trent Adams
MemberDaddo,
You have the following error on your forum right now:
Fatal error: Cannot redeclare is_tag() (previously declared in /home/.mardi/driftk27/driftkikker.com/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php:117) in /home/.mardi/driftk27/forum.driftkikker.com/bb-includes/template-functions.php on line 251My suggestion would be to get the cookies and logins working with the default template and then break it with tring to include WP content like the UTW plugin

Trent
April 5, 2007 at 6:11 pm #52223In reply to: Template of this forum??
Trent Adams
MemberThat is the intended placement for the forums here as well as the other wordpress forums. It can be changed though! I would just edit style.css for this portion:
/* Profile Page
=================================== */
#profile-menu {
}
#profile-menu li {
font-size: 1.1em;
background-color: #eee;
padding: 4px 7px;
display: inline;
border-top: 3px single #9e9e9e;
position: relative;
top: -10px;
}All I did there was take out the positioning for profile-menu itself so it displays inline and then changed the border of the list items themselves to have a single border on top instead of the double. You can edit that more to get it to look the way you want as well.
That being said, I am leaving it as is because it is the closest to the ‘actual forum’ with the profile menu on the right hand side floating……but this will fix you up!
Trent
April 5, 2007 at 5:14 pm #56495In reply to: Novice Headache with WP & bb Integration
Davor Dedic
MemberYes,
I did that,
that was the first thing I did,
and then I double checked it, but still I can not log in through bbPress

Somebody !!!
April 5, 2007 at 9:54 am #1686Topic: REQ: idea plugin like at the WP-site
in forum PluginsNull
MemberWell WP has it here:
http://wordpress.org/extend/ideas/
Can we get this as a plugin aswell? Would be very handy

Null
April 5, 2007 at 9:00 am #56453In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
ParticipantOh. My. Lord. This thread has basically just been a blog. lol
But, the good news is that my host figured out the cause… I forget the name of the module, but PHP was encrypting the cookies. As soon as he turned that off – everything works peachy.
What little hair I had left is gone now though.
April 5, 2007 at 1:57 am #56479michaelisc
MemberThanks Trent,
Well it works, kind of. To be more precise, if I put in three carriage returns with
<br />in the second empty CR space a single break space is inserted. Otherwise the<br />simply disappears from the post as verified during an edit.Once the breaks are successfully inserted and the post is edited again the
<br />‘s are all missing from the code in the post. Strange.April 4, 2007 at 11:51 pm #56478Trent Adams
MemberThis works for line breaks:
<br />As for the attributes of
<li>, it could be done with a little plugin. Could you post the exact code that you want to style the list item? It could also work if you just style all list items for posts in your CSS sheet. That is maybe easier than a plugin to do this.Trent
April 4, 2007 at 8:00 pm #52643In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantDo I use the code and instructions in the first post, or is this downloadable somewhere? I didn’t see it on the Extend page.
April 4, 2007 at 6:54 pm #1683Topic: `<br>` tags convert to special characters, don’t work
in forum Troubleshootingmichaelisc
MemberI have WordPress 2.1.2 and BBPress 0.8.1. They are (mostly) integrated. BBPress claims that
<br>tags should work but they don’t. They are immediately converted to special characters and show up in the post as they were coded, i.e. “br” inside the brackets.Also
<li>atrributes (type=disk, circle, blah blah) don’t work. Same problem as above. Any clues?April 4, 2007 at 11:25 am #54767In reply to: German Language
fel64
MemberYou have to set the language in
config.php. Open this file and look for line #41. Change itFROM
define('BBLANG', '');TO
define('BBLANG', 'de');April 4, 2007 at 7:49 am #54766In reply to: German Language
orientoscar
MemberHi Trent,
i upload the language File like this: /bb-includes/langauges/de_DE.mo
But there doesnt work?
And I have Problemes with the Templates too. I make it all correct but it doesnt work?
April 4, 2007 at 3:46 am #56439In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
Participantfel64: I’ve done that. I have the fix-bbpress plugin in and the “1” are no longer apearing. I then went through each account and put a 0 in the field and saved it. When I reload that page, it’s blank. (No 0)
Still having this problem.
SamBauers: I’ve completely deleted the bb-plugins directory and I still get the error. Could simple-onlinelist have put something int he database and corrupted it? I’ve had this plugin installed for a week. Don’t know why all of a sudden it would do this.
I looked in the database and all of the offending topics/posts were bozoed. But the authors are not. I don’t understand why whenever I try to delete ANY post (even ones from 2 weeks ago) I get “You do not have permission to do that.”
From wp_metadata:
User table value
1 bb_capabilities a:1:{s:9:"keymaster";b:1;}From bb_topicmeta:
Edit Delete meta_id topic_id meta_key meta_value
Edit Delete 19 15 deleted_posts 1
Edit Delete 20 15 bozos a:1:{i:1;i:1;}
Edit Delete 18 14 bozos a:1:{i:1;i:1;}
Edit Delete 17 14 deleted_posts 1
Edit Delete 15 13 deleted_posts 1
Edit Delete 16 13 bozos a:1:{i:1;i:1;}Can someone decypher this? (The bozo parts)
April 3, 2007 at 11:44 pm #56477In reply to: 404 Error on the edit user link
fel64
MemberAn invoice has been sent to your billing address for $215.00 to cover the support costs.
Glad you got your solution!
April 3, 2007 at 11:42 pm #56437In reply to: Can’t post. Topic turns yellow. Can’t delete.
fel64
MemberYou should install the bbpress-fix plugin, then change the field to 0 (no quotes) and save. This will hopefully fix things. The plugin only prevents you being marked as bozo, but it won’t unmark you (which is why you have to do that yourself).
Don’t reinstall yet.
April 3, 2007 at 11:31 pm #55195Sam Bauers
ParticipantBy default, the alphanumeric code is an md5 hash of the bb_table_prefix that is set in config.php
For default installs this effectively makes the cookie names:
'bb_user_' . md5('bb_')'bb_pass_' . md5('bb_')You can override the name of the cookie by setting values for the following somewhere in config.php:
$bb->usercookie = 'my_great_user_cookie_name'$bb->passcookie = 'my_great_pass_cookie_name'Then provided that your website is in the same domain as your forum, you should have no trouble reading these cookies using your own code.
-
AuthorSearch Results