Search Results for 'code'
-
Search Results
-
So I totally hacked up my htaccess file and now when I visit a nonexistant url it goes to the apache 404 page instead of the bbpress 404.. how do I need to change the code below to fix that?
# BEGIN bbPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /community
Options +FollowSymlinks +MultiViews
RewriteRule ^forums$ forums/ [R=301]
RewriteRule ^forums/$ /community/index.php?view=forums [P,L,QSA]
RewriteRule ^leaderboards$ leaderboards/ [R=301]
RewriteRule ^leaderboards/$ /community/index.php?view=leaderboards [P,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ rss.php?profile=$1 [L,QSA]
RewriteRule ^page/([0-9]+)/?$ ?page=$1 [L,QSA]
RewriteRule ^forums/([^/]+)/([^/]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]
RewriteRule ^forums/([^/]+)/([^/]+)/?$ topic.php?id=$2 [L,QSA]
RewriteRule ^forums/([^/]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forums/([^/]+)/?$ forum.php?id=$1 [L,QSA]
</IfModule>
# END bbPress
Topic: Color of text.
When I change the font color to “ffffff” in the code below, it does not apply it to all the text on the top of the page for registration/login etc. It only changes “welcome” and the rest like “admin”, “logout”, “register” and “lost password” are still the same. Where is the color of these fonts (all the text having to do with login, logout, forgot password, logout etc.) controlled in the CSS?
.login {
position: absolute;
bottom: 31px;
left: 0;
font-weight: normal;
color: #ffffff;
width: 100%;
z-index: 1;
font-size: 12px;
}Thank you.
Is it possible to install bbPress in the same folder as WordPress or have anyone tried? I have seen alot of people trying to remove the extra /forum url that appears in bbPress. This really seems like the obvious solution and like it’s what it’s coded for initially. I only fear that it’s too easy and straight forward that it won’t work
I recently installed bbpress by extending buddypress 1.1 with wordpress mu 2.8.4. While everything is ok on the buddypress end, the forum does not have a “Add New Topic” link displayed…. I tried adding topics and posts through the database too, but same result!
You can find the link to the forum here – http://smartlearnwebtv.com/iitjee/forums. I’d appreciate any help from you guys.Note: The forum under the “Groups” category seems to work fine – not sure if this has got anything to do with the problem am facing.
Change
template-functions.phpas described below:function post_form( $h2 = '' ) {
global $page, $topic, $forum;
$add = topic_pages_add();
if ( empty($h2) && false !== $h2 ) {
if ( is_topic() )
$h2 = __('Reply');
elseif ( is_forum() && !bb_forums( $forum_id )) // <== Change here
$h2 = __('New Topic in this Forum');
elseif ( is_bb_tag() || is_front() )
$h2 = __('Add New Topic');
}
...It’s a pity that I had to change a core file. Maybe somebody else could contribute a better solution?
Topic: Font color not changing.
When I am using the code below to change the h1 text color, it will not work. Is it set somewhere else in the stock theme “Kakumei”? I was trying to change the color line below to ffffff from 444. Same problem with footer font too. Just some of it changes to ffffff.
Thank you.
#header h1 {
font-family: Georgia;
font-style: italic;
overflow: auto;
position: absolute;
display: block;
color: #444;
text-align: right;
letter-spacing: -1px;
right: 69px;
bottom: 36px;
padding: 6px;
z-index: 2;
}Topic: Two Websites, One Board?
I’m hoping this is possible, but am doubtful. Hopefully someone can help if it is possible.
I run a small community website. I have a friend that runs a similar but not exactly the same small community website. We were looking to become “sister” websites. What we want to do is have the message boards from both sites be a single board. This part isn’t what I’m worried about. I know it’s as simple as directing a link.
What we are wanting however is to have her WP theme show up as the bbP theme when entered from her domain.. And when entered from my domain, my WP theme to show up as the bbP theme. Does anyone feel this is 1) possible 2) relatively “easy” to accomplish? When I say relatively easy, I mean that I know it will be difficult, but I don’t want to re-write ALL of the bbPress code.
Thanks!
hope you understand.