Search Results for 'code'
-
AuthorSearch Results
-
January 4, 2007 at 7:42 pm #52750
In reply to: Adding Articles to the Wiki
Trent Adams
MemberWe have a bbPress docs (codex) in the works and that will be something that we can expect early this year. Right now, it is just getting all these projects rolled out. bbPress has only ‘officially’ been released for a couple of months now!
Trent
January 4, 2007 at 7:33 pm #53048In reply to: Plugin: Private Forums v 2.1
Trent Adams
MemberSo10, did you see my post (2 up from your last one)?

Trent
January 4, 2007 at 3:09 pm #53068In reply to: Tags drop down.. can it be done?
ardentfrost
Memberget_top_tags($recent, $limit)will return an array of tag objects… each object contains the tag ID, tag (tag all lower case), raw tag (tag how it was typed), and tag count (how many times the tag is used). To get the link to a specific tag, you useget_tag_link(). You’d want to use the get_top_tags function like this:get_top_tags(false, X)where X is the number of tags you want displayed.You can also pull the tags straight from the database. Here’s the code used in functions.php:
$tags = $bbdb->get_results("SELECT * FROM $bbdb->tags ORDER BY tag_count DESC LIMIT $limit")I’d take out the limit part if you want all the tags. Then, if you want a drop down menu, you can just do this (this is from my head and untested, so it might not work if copy and pasted):
if(!empty($tags) ) :echo '<select name="userid" id="userid">';
foreach( $tags as $tag) :
echo "<option value='$tag->raw_tag'>$tag->tag</option>";
endforeach;
echo '</select>';
else:
echo "No tags exist";
endif;
Then you just gotta figure out how to either redirect to the desired page using POST data or something like that. Not exactly sure how I’d go about it.
January 4, 2007 at 2:47 pm #52943In reply to: usually forums would have…
ardentfrost
MemberAn earthquake in Taiwan knocked out my box in Atlanta?

Run a tracert on the server and paste it to me (
tracert www.rayd.org). A lot of China is blocked off at the firewall due to spammers, so if you give me that info I should be able to make it available to you.January 4, 2007 at 2:40 pm #52292In reply to: Plugin – Private Messages
d3x7r0
MemberI just found a small issue with this plugin: when no title for the message is given it still sends the message but the link to read it is invisibe (since it’s just
<a></a>with nothing in between.January 4, 2007 at 1:38 pm #52942In reply to: usually forums would have…
Mistainu
Member@ardent: i can’t access your forums, i’m cut off from certain servers due to the Taiwan 7.1 Quake.
i’d love to try your plugins but i can’t, maybe in 3 weeks…
January 4, 2007 at 11:04 am #52995In reply to: Request: Posts since last visit
d3x7r0
MemberI just took a look at both codes and noticed that in the onlinelist plugin you’re using – 300 and on this one – 3600, notice the diference?
January 4, 2007 at 7:44 am #1189Topic: Tags drop down.. can it be done?
in forum Pluginsspencerp
MemberThe suggestion for this came up on the wp-forums list a while back, but.. nothing was posted on the “How-To” for it..
I was just wondering, what would be the tags “call” for making this possible? Here’s an example of what I’m talking about…
<li><h2>Browse By</h2><select name="archivemenu"onChange="document.location.href=this.options[this.selectedIndex].value;"><option value="">Tags</option><?php tag_heat_map(); ?></select>What’s the actual “call” for the tags, to have them all be listed there? Thanks in advanced..


spencerp
January 4, 2007 at 5:16 am #53064In reply to: Calling an file in a higher directory from plugin
Trent Adams
MemberWhy not run an absolute path?
require_once(/var/www/html/mysite_function.php);Does that work?
If it is root bbPress folder, you could use what is in config.php
require_once( BBPATH . 'mysite_function.php' );Should be pretty easy……?
Trent
January 4, 2007 at 4:58 am #1188Topic: Calling an file in a higher directory from plugin
in forum Pluginsmouse8b
MemberOn my site, I have a file of general purpose functions in the site root called “mysite_functions.php.” I have WordPress installed in /wordpress, and bbPress installed in /wordpress/bbpress. I have altered wp_setcookie() and wp_clearcookie() in a WordPress plugin. In those two functions, I use
require_once('../mysite_functions.php');, and then the function call. It works fine.The problem comes in the bbPress plugins. I have a plugin overriding bb_login() and bb_logout(). In each of those functions I use the exact same code to call mysite_functions.php, but I get “failed to open stream: No such file or directory in [file path] [line number]”
In either case, the functions are unchanged with the exception of appending:
require_once("../mysite_functions.php");call_my_function();January 4, 2007 at 3:32 am #53046In reply to: Plugin: Private Forums v 2.1
willdayble
MemberAlrighty, just to be a dumbarse, I’d love to use this plugin but I’ve NO idea how to do the “Upgrade the installation of bbPress to the latest version from the code repository” bit.
I’ve recently migrated from phpBB over to BBpress, with all my posts and topics thankfully intact… but I’ve some forums I need to hide.
Is there no way to hide forums based on the user level at all?
January 4, 2007 at 3:17 am #49797In reply to: How do I delete a forum?
willdayble
Member… the problem here is you can delete a forum but not the post entries in the database that are in said forum…
January 4, 2007 at 12:13 am #52051In reply to: users’ email address
satellio
MemberCool! But how come some users’ email addresses show as just “1”?
</tr> <tr id='user-3'><td>3</td>
<td><a href='http://sostomates.fr/bar/profile/3'>Kronenbourg</a></td>
<td><a href='mailto:1'>1</a></td>
<td>2006-12-21 10:54:46</td>
<td><a href='http://sostomates.fr/bar/profile/3/edit'>Edit</a></td>
</tr> <tr id='user-25'>
<td>25</td>
<td><a href='http://sostomates.fr/bar/profile/25'>Oliv</a></td>
<td><a href='mailto:1'>1</a></td>
<td>2007-01-01 18:32:56</td>
<td><a href='http://sostomates.fr/bar/profile/25/edit'>Edit</a></td>
January 3, 2007 at 11:52 pm #52595In reply to: gettext.php Error: i cannot see the posts
Michael Adams (mdawaffe)
MemberI’m not sure, but it looks like a bad .mo file. The Plural-Forms line of the .po file should end with a semicolon (
.
January 3, 2007 at 11:37 pm #52993In reply to: Request: Posts since last visit
thomasklaiber
MemberIf you are inactive for more than 5 minutes, you’re marked as offline. So if you go to the forum again later your last_visit is the time when you were there the time before.
(ehm .. sry… it’s hard for me to describe in english)
d3x7r0:
Strange … for me it works at the moment. Maybe some time problems … try removing the
-3600from line 53.Just remember, this is beta! (maybe… alpha
)
January 3, 2007 at 10:42 pm #51833In reply to: Plugin – Member List
ardentfrost
Memberyeah, so, this is what’s in functions.php (core file)
function bb_get_option( $option ) {global $bb;
switch ( $option ) :
case 'uri' :
return $bb->domain . $bb->path;
break;
...
So, all it does it return those exact two things you posted concatenated together. It makes no sense for the developed link to have a /forums/ in it.
January 3, 2007 at 10:28 pm #51832In reply to: Plugin – Member List
yogaboat
Memberarden, here’s what’s in the config file:
$bb->domain = 'http://navfm.org';$bb->path = '/bbpress/'
Is that what you mean?
January 3, 2007 at 10:25 pm #51830In reply to: Plugin – Member List
ardentfrost
Membersince I use the function
bb_get_option('uri')to build the link, I have no clue why it would be showing up as /forums instead of /bbpress for you. I assume it’s correct in your config.php file?January 3, 2007 at 10:18 pm #51829In reply to: Plugin – Member List
yogaboat
MemberThis was like one of those light bulb times for me – like years ago when I realized you could have an image link inside an href tag. Now I know you can have a php snippet inside one as well. It’s the little things.
Thanks again –
January 3, 2007 at 8:58 pm #51827In reply to: Plugin – Member List
Trent Adams
MemberMake it simple for now until Ardenfrost can answer! Change that line to:
<li class="view"><a href="http://navfm.org/bbpress/mlist.php">Member List</a></li>Just add in your actual URL (hardcode it!)
Trent
January 3, 2007 at 8:50 pm #51826In reply to: Plugin – Member List
yogaboat
MemberSorry, that was supposed to read, “adding this line:
<li class="view"><a href="<?php bb_memberlist_link(); ?>">Member List</a></li>“January 3, 2007 at 8:49 pm #51825In reply to: Plugin – Member List
yogaboat
MemberThe only bit of code I changed in front_page.php was adding this line:
<li class=”view”>“>Member List
?php if ( $bb_current_user->ID ) : ?><div id="viewdiv">
<h2><?php _e('Views'); ?></h2>
<ul id="views">
<?php foreach ( get_views() as $view => $title ) : ?>
<li class="view"><a href="<?php view_link(); ?>"><?php view_name(); ?></a></li>
<?php endforeach; ?>
<li class="view"><a href="<?php bb_memberlist_link(); ?>">Member List</a></li>
</ul>
</div>
<?php endif; else : // $forums ?>
I’m sure it’s something simple but i don’t know php.
January 3, 2007 at 8:23 pm #51824In reply to: Plugin – Member List
Trent Adams
MemberI would go to front-page.php and check that the code you entered for the link is /bbpress/mlist.php and not /forum/mlist.php because you would of had to enter the link yourself.
Trent
January 3, 2007 at 8:00 pm #52991In reply to: Request: Posts since last visit
d3x7r0
MemberI tried the beta but it doesn’t seem to be working for me
I have the onlinelist plugin and me and a friend of mine tried it like this:one made a post while the other wasn’t on the website (even the browsers where closed) and 5 minutes latter the other went to the site and tried to use the function.
The result? a blank page
January 3, 2007 at 7:57 pm #53062In reply to: Plugin Help
so1o
Participanthere you go bbolman
<phpadd_action('bb_head' , 'my_plugin_function_name');
function my_plugin_function_name() {
?>
stuff that you want to put
<?php
}
?>
-
AuthorSearch Results