Search Results for 'code'
-
AuthorSearch Results
-
September 11, 2010 at 6:53 pm #93629
In reply to: Change style of function called fields
Dakcenturi
MemberHere is a section of the view source:
<tr class=”form-field”>
<th scope=”row”>
<label for=”first_name”>First name</label>
</th>
<td>
<input name=”first_name” id=”first_name” type=”text” value=”” />
</td>
</tr>
Now I tried and none of them made any noticeable change.:
.input{
background-color: #171717;
color: #00CC00;
}
#first_name{
background-color: #171717;
color: #00CC00;
}
.form-field{
background-color: #171717;
color: #00CC00;
}
In order to get it to work on one of the other forms I actually put the style in the input code, but I don’t know how to access the input code as it is being called via php and isn’t a .php file in the theme.
September 11, 2010 at 5:11 pm #93865In reply to: themes problem and quote ajax problem
kikko088
Member
now it works, thank you.For the theme?
kikko088
September 11, 2010 at 4:52 pm #92034In reply to: Can't access the dashboard
Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
Don’t know what the BackPress has to do here!
September 11, 2010 at 4:48 pm #78878In reply to: Admin link doesn't take me to dashboard
Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
Don’t know what the BackPress has to do here!
September 11, 2010 at 4:48 pm #92551Ashish Kumar (Ashfame)
ParticipantThis issue can be solved by the bbPress integration plugin for WordPress. Keep the plugin activated, it generates the required cookies on WordPress authentication hooks which otherwise are not created for accessing bbPress dashboard (or admin panel)
P.S. – I actually looked at the plugin’s code today!
September 11, 2010 at 4:43 pm #93863In reply to: themes problem and quote ajax problem
kikko088
MemberI try to delete and upload, i try to overwrite two times but nothing…
the same problem, the permission are 770
September 11, 2010 at 4:43 pm #93833In reply to: Integrate WP Twentyten and bbPress Kakumei
Ashish Kumar (Ashfame)
ParticipantInstead of loading WordPress from
wp-load.php, load it fromwp-blog-header.php.I checked the header.php file of Twentyten and there is nothing in it that would stop you from making changes. Follow the tutorial and you will be fine.
This is the line before which you should add the link to bb-style.css
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />Rest is in the tutorial.
September 11, 2010 at 11:30 am #93832In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberWell, I don’t quite have it done. I can’t figure out why your code breaks the site as I mentioned earlier. Do I need it? (I forgot to mention that your code calls wp-blog-header.php, and another tutorial I referenced calls wp-load.php. I know that requiring wp-load.php is a requirement; but what about wp-blog-header.php?)
Also, I don’t know how to link the style sheet to bbPress because I can’t figure out how to get the link in the header. I don’t understand header.php in Twentyten. Can you help me with that?
I’ll post a link when I get it published, but I’m doing all of this on a local mirror of my public site.
September 11, 2010 at 3:53 am #93829In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberI’ve gotten this to work this way so far:
Put this line in bb-config.php
require_once( '/your/full/path/wp-load.php');In the files listed below, replace
<?php bb_get_header(); ?>with<?php get_header(); ?><div id="container">
<div id="content" role="main">
<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>and
<?php bb_get_footer(); ?>with</div>
</div>
<?php get_footer(); ?>404.php
edit-post.php
favorites.php
forum.php
front-page.php
login.php
password-reset.php
profile-base.php
profile-edit.php
profile.php
register.php
register-success.php
search.php
stats.php
tag-single.php
tags.php
topic.php
I use Twentyten with one right sidebar. I decided I didn’t want it in the bbPress section of the site. If you want it, replace the footer code above with this:
</div>
<?php get_sidebar(); ?><div id="primary" class="widget-area" role="complimentary">
</div><?php get_footer(); ?>I want bbPress to fill the width of the “container”. I can the following in-line style in each page (
<div id=”content” role=”main” style=”width: 95%; font-size: 1.2em;”>`), but I’m sure I can use the style sheet to define a class or something and do it right – that is once I get Twentyten to read the bbPress style sheet.I’d also like to rearrange the objects on the page, which I may also work on once I can use the style sheet.
May not like it when I’m done, but it’s been a learning experience!
September 10, 2010 at 9:36 pm #93828In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberWill do. Thanks! Sweet dreams.
September 10, 2010 at 9:31 pm #93827In reply to: Integrate WP Twentyten and bbPress Kakumei
Ashish Kumar (Ashfame)
ParticipantI haven’t played with twentyten code yet so can’t say if that will be easy for you to follow up. I am in my bed right now, typing this on my mobile.↲You do one thing, get back to me tomorrow & I will tell you. I am quite busy with my schedule so if I don’t come back on my own, hit me an email > ashishsainiashfameatgmaildotcom↲
September 10, 2010 at 9:24 pm #93826In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberPerhaps I should have included this info in my last reply. This is the error I get when using the code you recommended in bb-config.php:
Parse error: syntax error, unexpected ‘;’ in /myfullpath/public_html/bbpress/bb-config.php on line 15
Line 15:
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST'))FWIW, I learned from another tutorial that I needed to put this code at the end of the bb-config.php file:
require_once( '/myfullpath/public_html/wp-load.php');I found that the integration will not work without it.
September 10, 2010 at 8:49 pm #93825In reply to: Integrate WP Twentyten and bbPress Kakumei
wblogan
MemberYour’s is one of the tutorials I followed, Ashfame. It helped me a great deal and I’m grateful to you for it. However, the following code broke my site:
/* Deep integration */if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST'))
{
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}
I started replacing the bb_get tags as you recommended in front-page.php. As I said, I could not get the get_sidebar to work.
Also, I moved ahead with your instructions regarding the style sheets, and then on to editing the twentyten them header.php to insert the link to the bbpress theme and couldn’t figure out where to put the link – it broke my wordpress.
What am I missing?
September 10, 2010 at 8:17 pm #93807In reply to: Search drop down unexpected behaviour
KentonMr
Member‘trunk’ ?
I’m still a newbie – I though the download was the latest release “approved”
I didn’t even know of that bug list
… so good is the documentation … and I’ll bet that most users don’t or can be bothered to dig around in the maze of code to figure out why it doesn’t perform how expected.
This sort of bug fix is easy to apply – affecting only a couple of lines of code there ought to be a forum/list somewhere to enable these sort of changes to be publicised – perhaps there is but I just haven’t connected with it yet.
Still at least I managed to fix this problem one on my own … I get the feeling watching others struggle that this is what comes with bbPress … being on your own
September 10, 2010 at 5:22 pm #93822In reply to: backslashes – lack of!! how do i get them to show?
kevinjohngallagher
MemberHi Paul,
Just so you know, if you areusing the bbpress plugin that works with buddy press, then you’re not using bbpress.
It’s a fork from last years release hacked to work with buddypress. That’s not to say bad things about it though, how it was done was really great, it’s just confusing.
Don worry though, they’re making a new wordpress plugin that’s not this software or the buddypress plugin, and they’re going to call that bbpress too. At thy time, we’ll all b confused
September 10, 2010 at 3:59 pm #93805In reply to: Search drop down unexpected behaviour
KentonMr
MemberQuote:It’s a known bug, fixed in [2400] if I remember correctly.Not in the version I downloaded and installed only a couple of months ago.
Anyway that fix is no good as it will still not work correctly. The id ‘forum_id’ needs to be passed for the dropdownlist to be correctly ‘selected’ and sent

Is it not also wise to prevent nasty code being sent through the id or is this somehow cleaned elsewhere … in which case why the esc_attr() use on the other inputs above/below?
September 10, 2010 at 3:29 pm #93812In reply to: Cant administer my site
zaerl
ParticipantPasswords are saved in the SQL table
usersunder theuser_passfield, MD5 encoded.September 10, 2010 at 1:39 pm #93803In reply to: Search drop down unexpected behaviour
KentonMr
Member! BUG ALERT !
It was an error in the core code.
The solution, found after experimenting is as follows:
In line 943 of class.bb_query.php
Replace the occurence of ‘forum-id’
with ‘forum_id’
It is also recommended that the missing line prior to this should read
$q_forum_id = esc_attr($q_forum_id);
in order to prevent attacks using the input value for ‘forum_id’
The form now will function correctly along with any other call to this input field in any plugin.
As always just a simple typo in coding rather than a serious error in code design.
September 10, 2010 at 9:19 am #35307Topic: Search drop down unexpected behaviour
in forum TroubleshootingKentonMr
MemberOne the search page:
The dropdownlist of forums does not remember the last ‘selected’ forum_id
In the code ln943 of class.bb_query.php
Code:$r .= “tt<div>” . bb_get_forum_dropdown(array(‘selected’ => $q_forum_id, ‘none’ => __(‘Any’), ‘id’ => ‘forum-id’)) . “</div>n”;the forum_dropdown function is called with (‘selected’ => $q_forum_id) as one of the args however $q_forum_id never seems to have a value at this point.
Perhaps this is true for the first call to the search page (ie. when using the search box) but not on subsequent calls using the search form when the forum_id may have been selected.
Is this a bug or is it deliberate?
NB: by hard coding the (‘selected’ => 2) the page performs as expected – but obviously that is no better than the present state.
So I deduce that $q_forum_id is not being set !
NB: I have tried $q but that too has no value!
Any help appreciated
September 9, 2010 at 11:57 pm #92124dovoto
MemberHaving similar issues…
Symptoms:
1) Blank forum page if i navigate to http://www.drunkencoders.com/forums/
2) Forum loads if i http://www.drunkencoders.com/forums/index.php
3) Blank page if i follow any of the forum title links
I did however have a wordpress page called “forums” at one point (since deleted) which would have also resolved to this location…possible issue?
I am using bb-config to load wp-load.php on startup per the suggestions (seems to work as indicated by direct navigation to index.php).
I am using the wp functions to load header and footer info (this also works as i get my wp site blog wrapped properly around my otherwise plain bbpress install if i navigate directly to index.php)
Any suggestions or thoughts?
September 9, 2010 at 9:40 pm #93576In reply to: Show avatar of current user
jdblundell
MemberSure. Nothing is showing…
Here’s the code from post.php
<br />
<li id="post-2"><br />
<div id="position-1"><br />
<div class="threadauthor"> </p>
<p> <p><br />
<strong><a href="http://www.travismamone.net"&rt;Travis_Mamone</a&rt;</strong><br />
<small><a href="http://somethingbeautifulpodcast.com/forum/profile.php?id=5"&rt;Administrator</a&rt;</small> </p>
<p> <p></p> </p>
<p><small><div class="post_socialize_wrap"></div></small><br />
</p><br />
</div><br />
<div class="threadpost"><br />
<div class="post"><p>Anybody you'd like to hear interviewed on Something Beautiful? Speak now!<br />
</p></div><br />
<div class="poststuff">Posted 20 hours ago <a href="#post-2"&rt;#</a&rt; <a href="http://somethingbeautifulpodcast.com/forum/bb-admin/posts.php?poster_ip=69.2.182.113"&rt;69.2.182.113</a&rt;<br />
<a href="http://somethingbeautifulpodcast.com/forum/edit.php?id=2"&rt;Edit</a&rt;<br />
<a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=1&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Delete</a&rt;<br />
<a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=0&view=all&_wp_http_referer=%2Fforum%2Ftopic.php%3Fid%3D2&_wpnonce=06dca23c66"&rt;Undelete</a&rt;<br />
<a href="http://somethingbeautifulpodcast.com/forum/bb-admin/delete-post.php?id=2&status=2&_wpnonce=06dca23c66"&rt;Spam</a&rt;<br />
<a href="#post_content"&rt;Quota</a&rt;</div><br />
</div><br />
</div>September 9, 2010 at 5:44 pm #93574In reply to: Show avatar of current user
jdblundell
MemberI’m new to bbPress and I’m having the hardest time figuring out how to enable/display gravatars on my site.
I’ve tried:
if ( $avatar = bb_get_avatar( bb_get_current_user_info( ‘id’ ), 80 ) ) {
echo $avatar;
unset( $avatar ); }
With the PHP tags on the start and end. I’ve added the code on the profile.php file of my template as well as on the post.php file and nothing is showing.
Do I need to do an img src as well?
September 9, 2010 at 12:04 am #93705In reply to: BBcode-lite users MUST upgrade to 1.0.5 ASAP
_ck_
ParticipantAh, yes all secondary attributes unfortunately have to be disallowed now via bbcode-lite because of the security issue. It’s a quick fix with that side effect.
The trade-off of bbcode-lite is speed, so for security things have to be disallowed instead of trying to parse for all options which would slow things down.
HTML tags are saved when a post is made and then they are done, so it’s fast. But bbcode has to be parsed each and every time a page is displayed, so speed is important.
I guess an advanced feature for a future version would be to convert the bbcode into permanently saved html after the user’s time to edit has passed (ie. an hour). But that kind of sophistication will have to wait.
September 8, 2010 at 11:57 pm #93754In reply to: Adding text to the "Register Success" page
zaerl
ParticipantIt’s in the folder of your theme.
bb-templates/kakumei/register-success.phpfor kakumeimy-templates/your-theme/register-success.phpfor othersSeptember 8, 2010 at 10:03 pm #93704In reply to: BBcode-lite users MUST upgrade to 1.0.5 ASAP
RedBull
MemberThanks _ck_,
I just went back and used the:
<img src=”http://mydomain.com/pic.jpg” alt=”Pic1″ />
As this is allowed through bbcode-lite.
Appreciate the response,
RedBull
-
AuthorSearch Results