Search Results for 'code'
-
AuthorSearch Results
-
March 31, 2010 at 2:53 am #82552
In reply to: wp integration cookie does not work
rockyteng
Memberhi guys,
thanks gerikg’s instrucition,very helpful!
i followed gerikg’s instruction,but meet a problem.
on task 7 after i clicked on save changes,
i should get the code below:
define( ‘COOKIEHASH’, ‘9ff1a614da865684d07223b202d18708’ );
define( ‘COOKIE_DOMAIN’, ‘.10.10.1.20’ );
define( ‘SITECOOKIEPATH’, ‘/wordpressmu/’ );
define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );
define( ‘COOKIEPATH’, ‘/wordpressmu/’ );
but actually i lost
define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );
so when i log into bbpress then
i can log into wordpressmu automatically
but i cant log into wordpressmu admin automatically
does anybody have an idea what i have missed?
your help will be much appreciated.
thanks guys
March 31, 2010 at 1:34 am #86332In reply to: Topic tags
chrishajer
ParticipantOne thing, not sure if it matters. The forum pages all return a 404 code, even though the page is displayed. This was an old problem with WordPress integration.
Here is something:
http://www.adrogen.com/blog/wordpress-wp-blog-headerphp-causes-404-in-ie/
Also, are you including
wp-load.phporwp-blog-header.php? Should bewp-load.php.There is another post on these forums on how to fix it but I cannot find it right now.
March 31, 2010 at 1:27 am #86331In reply to: Topic tags
chrishajer
ParticipantI wasn’t able to add a tag either
March 30, 2010 at 8:27 pm #86305In reply to: insert flash (swf) file in template
zaerl
ParticipantSomething like:
<object width="300" height="200">
<param name="movie" value="your_file.swf">
<embed src="your_file.swf" width="300" height="200">
</embed>
</object>March 30, 2010 at 8:24 pm #86300In reply to: All forums RSS feed?
zaerl
ParticipantFile
rss.phpat line 182. It seems that bbPress retrieves the last 35 posts if called like/rssif ( !$posts = bb_get_latest_posts( 35 ) )
die();you can add a new case on top of that file but I don’t think that it’s a wise choice expecially if you have a huge forum.
March 30, 2010 at 8:04 pm #86324In reply to: Displaying sub-sub-forums
pagal
Participant@ miruru.. I’m happy that you are also interested in this issue… I was also searching the same thing.. but I’m depressed and left if..
yes you are right this issue is two year old… “but we are new on bbpress”
I know its not good to highlight someone but It was hurting …
I was interested in this post https://bbpress.org/forums/topic/forum-list-alterations .. because the Micheal has been successful to solve this issue.. I also tried it… but i had failed.. so then I decided to contact Micheal to solve this issue… I had registered on his site ( http://www.inniosoft.co.cc/devstation ) and ask him to solve this problem… but it was amazing that he is not interested to solve bbpress issues.. and said his forums not just for bbpress.. ( that’s why he is not accessible to his server and he was unable to show the code )…
he said he will show the code will soon when he will get his server .. so after some weeks I contacted him again becoz its had been toooo late.. huh then he said even he was not able to access his server.. and you know what happed “he deleted me from his forums
” and kick me off by saying that I was against his forum’s term and condition .. and its a “continues ignorance” to ask questions…please don’t go there.. its my humble request to all
otherwise you’ll be depressed like me

we will be happy if someone solve this issue except “Micheal “.
your well wisher
Pagal
March 30, 2010 at 6:56 pm #86312In reply to: Hide topics
johnhiler
MemberHere are some more detailed instructions for you:
1) First, create a new forum and call it “Hidden” or something similar.
2) Upload and activate the Hidden Forums plugin.
3) Get the forum id number here: http://yoursiteurl.com/forums?forumlist
For the sake of this example, let’s say the forumid of your new forum you want to hide is #3.
4) Now edit the settings manually at the top of the plugin:
http://svn.automattic.com/bb-plugins/hidden-forums/trunk/hidden-forums.php
Use the settings below, at the end of this post.
5) Reupload your plugin with the new settings, and see if it works!
Hope that helps!

$hidden_forums=array(3); // hide these forums, list by comma seperated number
$hidden_forums=array(‘keymaster’,’administrator’); // these roles can always see ALL forums regardless
$hidden_forums[3]=array(‘administrator’,’moderator’); // exact formal role name, *not* ability
$hidden_forums=array(1); // these users can always see ALL forums regardless
$hidden_forums=”[H] “; // text, html, css or image to indicate hidden forums/topics, make it =””; if you don’t want any label at all
March 30, 2010 at 6:49 pm #86299In reply to: All forums RSS feed?
ishutan
MemberClose, that does give a feed for all the forums, but it looks like it’s only pulling in the most recent posts.
I’m looking for something that will feed all posts on all forums?
Thanks.
March 30, 2010 at 11:24 am #86303In reply to: insert flash (swf) file in template
Gautam Gupta
ParticipantJust put the embed video code in the front-page.php template.
March 30, 2010 at 10:34 am #86162In reply to: Can I add custom permalink option
pagal
Participant@ jomontvm thank you so much…
I’ll try it soon and tell you what happened…
Thanks again..
March 30, 2010 at 9:10 am #86161In reply to: Can I add custom permalink option
jomontvm
ParticipantHi Pagal,
I have customized the permalink for bbpress, and it works fine. It’s still on the testing stage, though you can try this. The following is the modifications I have done.
Step 1:
Open ‘bb-admin/options-permalinks.php’
You will find a permalink options declaration. Add one more option as shown below, it will add one more option in the permalink options in the backend. You can make the custom option with a text field, in order to customize in your own way (I have done in a predefined format in order to make it simple).
$permalink_options = array(
'mod_rewrite' => array(
'title' => __( 'Permalink type' ),
'type' => 'radio',
'options' => array(
'0' => sprintf( __( '<span>None</span>%s' ), bb_get_uri( 'forum.php', array( 'id' => 1 ), BB_URI_CONTEXT_TEXT ) ),
'1' => sprintf( __( '<span>Numeric</span>%s' ), bb_get_uri( 'forum/1', null, BB_URI_CONTEXT_TEXT ) ),
'slugs' => sprintf( __( '<span>Name based</span>%s' ), bb_get_uri( '/forum/first-forum', null, BB_URI_CONTEXT_TEXT ) ),
'custom' => sprintf( __( '<span>Custom</span>%s' ), bb_get_uri( '/forum/%parent_slug%/%forum_slug%', null, BB_URI_CONTEXT_TEXT ))
)
)
);
Step 2:
Now we have to create the custom format of permalinks for forums and topics.
Open ‘bb-includes/functions.bb-template.php’
We have to modify two functions ‘get_forum_link’ and ‘get_topic_link’. See the changes I have done for the custom permalink option.
function get_forum_link( $forum_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
$forum = bb_get_forum( get_forum_id( $forum_id ) );
if (!$context || !is_integer($context)) {
$context = BB_URI_CONTEXT_A_HREF;
}
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
$page = (1 < $page) ? '/page/' . $page : '';
if ($rewrite === 'custom') {
if ($forum->forum_parent > 0) {
$parent = bb_get_forum($forum->forum_parent);
$parent_slug = $parent->forum_slug;
$custom_link = $parent_slug . '/' . $forum->forum_slug;
} else {
$custom_link = $forum->forum_slug;
}
$link = bb_get_uri('forum/' . $custom_link . $page, null, $context);
} else {
if ( $rewrite === 'slugs' ) {
$column = 'forum_slug';
} else {
$column = 'forum_id';
}
$link = bb_get_uri('forum/' . $forum->$column . $page, null, $context);
}
} else {
$query = array(
'id' => $forum->forum_id,
'page' => (1 < $page) ? $page : false
);
$link = bb_get_uri('forum.php', $query, $context);
}
return apply_filters( 'get_forum_link', $link, $forum->forum_id, $context );
}
function get_topic_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
$topic = get_topic( get_topic_id( $id ) );
if (!$context || !is_integer($context)) {
$context = BB_URI_CONTEXT_A_HREF;
}
$args = array();
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
$page = (1 < $page) ? '/page/' . $page : '';
if ($rewrite === 'custom') {
$custom_link = '';
if ($topic->forum_id > 0) {
$forum = bb_get_forum($topic->forum_id);
if ($forum->forum_parent > 0) {
$parent = bb_get_forum($forum->forum_parent);
$custom_link = $parent->forum_slug;
}
$custom_link .= '/' . $forum->forum_slug;
}
if (!empty($custom_link)) {
$custom_link .= '/topic/' . $topic->topic_slug;
} else {
$custom_link .= 'topic/' . $topic->topic_slug;
}
$link = bb_get_uri($custom_link . $page, null, $context);
} else {
if ( $rewrite === 'slugs' ) {
$column = 'topic_slug';
} else {
$column = 'topic_id';
}
$link = bb_get_uri('topic/' . $topic->$column . $page, null, $context);
}
} else {
$page = (1 < $page) ? $page : false;
$link = bb_get_uri('topic.php', array('id' => $topic->topic_id, 'page' => $page), $context);
}
return apply_filters( 'get_topic_link', $link, $topic->topic_id, $context );
}
Step 3:
Now we have to define the htaccess rules.
Open ‘.htaccess’ file in bbpress root folder, and add following two lines just above the code line – RewriteRule ^topic/?$ /forums/ [R=302,L,QSA].
RewriteRule ^(.+)/topic/(.+) /forums/topic.php?id=$2 [L,QSA]
RewriteRule ^forum/(.+)/(.+) /forums/forum/$2/ [L,QSA]
Here is how my URLs looks after making these modifications:
Forum URL: mysite.com/forums/forum/en/first-forum-in-english
Topic URL: mysite.com/forums/en/first-forum-in-english/topic/the-ipad-developers-challenge
March 30, 2010 at 6:39 am #86307In reply to: Hide topics
johnhiler
MemberOne option would be to install Hidden Forums, and designate one folder as hidden to all but admins:
https://bbpress.org/plugins/topic/hidden-forums/
Then if you wanted to hide a particular topic, you could just move it into your private forum…
March 29, 2010 at 4:08 pm #84563In reply to: bbPress mobile version
kevinjohngallagher
MemberI personally use the PHP class found at http://detectmobilebrowsers.mobi/.
include(‘mobile_device_detect.php’);
$mobile = mobile_device_detect();
if(!mobile)
{
//echo TinyMCE code
}
I had this as a plugin on bbProgress, but i see they’ve even shut their doors (no more message on front page). I’ll try and boot up my old dev machine and find it as a plugin when i get home
March 29, 2010 at 12:05 pm #83592kevinjohngallagher
MemberAs you’re on the forums Marius… Any chance of telling us if this code we’ve given you does work?
Maybe even throw out a “thank you”, but I realise that’s asking a bit much, we’ll be happy for you to just give us feedback on the code that we’ve written for you to solve your problem.
Thanks in advance for showing some manners
Kev
March 29, 2010 at 9:10 am #85751In reply to: BuddyPress Default Theme for bbPress?
Arturo
Participantafter the easter vacation i release the theme! now is working great and all the function are ok

~12-15 april.
sorry for the delay, a new post coming with the link to download the theme.
March 28, 2010 at 11:08 pm #33870Topic: New post indicators are not working, at all
in forum Pluginsbramruiter1
MemberIs this thing on? Great.
I’m currently updating my forum to a newer bbPress version and a nicer looking theme. Everything was going fine until I bumped into a few plug-in issues. I have searched the forums and came across this topic, which seems to mark my problem but never gets resolved.
A recap: I have used the _ck_ plug-in Unread Posts on bbPress 0.9.0.2 and it worked well. I had a bug once in a while (with a topic staying unread, even though I have read it), but it did it’s work properly. When there was a new post, the title of that particular topic went bold. When I clicked on it, the link would lead me to the post which was my last read post. And when I got back to the frontpage, it stopped being bold.
Now I have downloaded the Unread Post plug-in again and installed it on bbPress Version 1.0.2 for my new forum. Result: the topics stay unread until I logout and the bold titles don’t take me to the last read post.
So I’ve tried the earlier version by fel64. Indicate New Post doesn’t do anything either. It mimics Unread Post’s bugs.
Unread topics on the other hand trashed my front-page and won’t take me anywhere since topics does not have an URL like this
http://www.domain.com/<div id=.I’m really lost here, since these are unresolved problems everywhere I look.
Could someone please help me out? Please?
March 28, 2010 at 8:48 pm #33868Topic: web site link remove in profile or nofollow?
in forum Requests & Feedbackdjsteve
MemberI was poking around in the theme, and in profile.php and have not yet found a way to remove the “website link” in user profiles. Can someone shed some light on this? I am considering taking out the web site link, or adding rel=nofollow to it.. and maybe taking out the email addy off the user profile pages, but no clue where to find this code.
Help appreciated!
Steve
March 28, 2010 at 8:21 pm #85362In reply to: Unwanted ads in bbPress Themes
Kevin Ryman
ParticipantNice find.
March 28, 2010 at 8:05 pm #65342In reply to: New Theme: Genealogías
Kevin Ryman
ParticipantNo it’s not. The site I’m working on can be found at http://neodeviants.com/

Please should always check the headers, footers, and the main page’s source code for things like that (intrusive advertisement).
March 28, 2010 at 5:51 pm #86052kevinjohngallagher
MemberThankfully, i came up with a cunning solution.
It’s a new thing some of the kids are using, called Google. I know, it might never catch on, but it’s worth a shot…
http://ulyssesonline.com/blackletterhead/
Now it appears that the theme has been removed entirely, but i’d suggest contacting the Author via his website. It’s a 2 year old theme that really just changes a few colours, so they’ve probably just forgotten about it.
That said, the theme has been updated for WordPress so there is every chance that the code you need has just been rolled into one.
Either way, it’s a good place to start

Good Luck
March 28, 2010 at 5:42 pm #85704kevinjohngallagher
MemberYes

Just remember that users set tags, and users are notoriously useless.
Especially if your forum / blog is not aimed at technical people (who have, to a certain degree, become used to the idea of tags for cross pollination).
March 28, 2010 at 8:16 am #86108In reply to: https problem?
Gautam Gupta
ParticipantYou would need:
define( 'BB_FORCE_SSL_ADMIN', true ); //force use of ssl in the admin area
define( 'BB_FORCE_SSL_USER_FORMS', true ); //force use of ssl on user forms like login, registration and profile editingYou can check the source here – http://xref.yoast.com/bbtrunk/nav.html?bb-settings.php.source.html#l458
March 28, 2010 at 4:12 am #86107In reply to: https problem?
Kevin Ryman
ParticipantDid
define('FORCE_SSL_ADMIN', true);work?March 28, 2010 at 3:23 am #85749In reply to: BuddyPress Default Theme for bbPress?
gerikg
Memberand I don’t know what it means… I don’t code.
March 28, 2010 at 3:10 am #85748In reply to: BuddyPress Default Theme for bbPress?
gerikg
MemberI’m working on it but I can’t get the admin bar to show in bbpress.
I keep getting:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_admin_bar_css' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php on line 339
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_add_js' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php on line 339 -
AuthorSearch Results