Search Results for 'code'
-
Search Results
-
Topic: link back to blog
Hi,
There is an answer to this question posted a year ago, but when I open the header.php file from my bb-templates/kakumei folder all that is there is “>”. I tried adding the code there, but it deleted the header. Is it located in another place?
I’m using bbpress 0.9.0.4 and wordpress 2.7.1.
Thanks!
Topic: Amended Profile page
(profile.php in theme folder)
My users were asking for the ability to jump to the last post on the ‘User Activity’ area within their profile page. So I amended the page to use tables like the favorites listings do with two columns >
TOPIC > DETAILS
topic name > You replied 2 weeks ago. No replies since.
<?php bb_get_header(); ?>
<h3 class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Profile') ?></h3>
<div class="vcard">
<?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?>
<div id="useravatar"><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
<h2 id="userlogin"><span class="fn"><?php echo get_user_display_name( $user->ID ); ?></span> <small>(<span class="nickname"><?php echo get_user_name( $user->ID ); ?></span>)</small></h2>
<?php if ( $updated ) : ?>
<div class="notice">
<p><?php _e('Profile updated'); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again »'); ?></a></p>
</div>
<?php elseif ( $user_id == bb_get_current_user_info( 'id' ) ) : ?>
<p>
<?php _e('This is how your profile appears to a logged in member.'); ?>
<?php if (bb_current_user_can( 'edit_user', $user->ID )) : ?>
<?php printf(__('You may <a href="%1$s">edit this information</a>.'), attribute_escape( get_profile_tab_link( $user_id, 'edit' ) ) ); ?>
<?php endif; ?>
</p>
<?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?>
<p><?php printf(__('You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites’ <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.'), attribute_escape( get_favorites_link() ), attribute_escape( get_favorites_rss_link() )); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php bb_profile_data(); ?>
</div>
<h3 id="useractivity"><?php _e('User Activity') ?></h3>
<div id="user-replies" class="user-recent">
<h4><?php _e('Recent Replies'); ?></h4>
<?php if ( $posts ) : ?>
<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Details'); ?></th>
</tr>
<?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
<tr<?php alt_class('replies'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num">
<a href="<?php topic_last_post_link(); ?>">
<?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You replied %s ago.'), bb_get_post_time()); else printf(__('Latest reply %s ago.'), bb_get_post_time()); ?>
<span class="freshness"><?php
if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
printf(__('Latest reply %s ago'), get_topic_time());
else
_e('No replies since.');
?></span>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : if ( $page ) : ?>
<p><?php _e('No more replies.') ?></p>
<?php else : ?>
<p><?php _e('No replies yet.') ?></p>
<?php endif; endif; ?>
</div>
<div id="user-threads" class="user-recent">
<h4><?php _e('Topics Started') ?></h4>
<?php if ( $topics ) : ?>
<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Details'); ?></th>
</tr>
<?php foreach ($topics as $topic) : ?>
<tr<?php alt_class('topics'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num">
<a href="<?php topic_last_post_link(); ?>">
<?php printf(__('Started: %s ago.'), get_topic_start_time()); ?>
<span class="freshness"><?php
if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
printf(__('Recent reply: %s ago.'), get_topic_time());
else
_e('No replies.');
?></span>
</a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : if ( $page ) : ?>
<p><?php _e('No more topics posted.') ?></p>
<?php else : ?>
<p><?php _e('No topics posted yet.') ?></p>
<?php endif; endif;?>
</div>
<div class="nav">
<?php profile_pages(); ?>
</div>
<?php bb_get_footer(); ?>Okay, have been searching google and this forum for long time and find there is no occurrences of it.. not even mention of it. So, wanted to ask everyone out here if they know what is happening..
I am using double quotes in the code and trying to paste the code within backticks and while everything looks okay few html characters are rendering their ASCII code or something (html escape characters ??)
For example,
double quotes ( ” ) are rendered as &q uot;
ampersands ( & ) are rendered as &a mp;
ignore the spaces. I have disabled all the plugins, switched themes and looked over everything, but I still can’t figure out what is causing this. I saw several forums including bbpressshowcase which suffers from same problem. I don’t see that problem here in this forum.
Can anyone shed some light for me?
Thanks for all your help.
When I post code samples in my bbPress install, all quote marks show up like this:
"This includes when I use backticks and/or buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>It becomes:
<div class="box">This is a box</div>I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
[code] buttons. Neither work.
For instance, when I post this code:
<div class="box">This is a box</div>It becomes:
<div class="box">This is a box</div>I am using the beta version of bbPress with WordPress integration. I have deactivate all plugins and switched themes, so I know it is a problem with my bbPress code.
Thoughts?
Topic: Bulgarian translation
Hello

I noticed that Bulgarian translation is quite out of date so with a friend we made an update. It is available here:
I hate it when something so easy is giving me problems. I have a link to my search page… mysite.com/myforum/search.php… like that. And it works fine, except the font color on the search form itself is a gray or reddish color and it doesn’t go with my dark blue layout… I need the font to be white. With CSS I’ve got the font set to white everywhere else, even the search results are white, but the form itself is not so you can barely read it.
I’ve tried editing the color with CSS, regular html, I’ve been in my search.php in my forum root and my search.php in my template, and I’ve been in my search-form.php file, and no matter what I do… I can only get the font to change in firefox… for some reason in ie6, which should be illegal to use, the font it not white.
I simply added <font color=”white”></font> to the form, and again, it works in firefox, but when I test it with ie6 it doesn’t work. Why?
I even tried adding a new div… I added <div id=”searchcolor”>search form code here</div> then in my CSS file I have #searchcolor {color:white;}, but even that doesn’t work. Nothing seems to change the form font color in ie6.
This is frustrating because it’s something SO simple! Font color!
I think I’ll learn it one day … 