Search Results for 'code'
-
AuthorSearch Results
-
December 4, 2006 at 8:44 pm #52096
In reply to: Not post count but reply count on front page?
ardentfrost
Memberthen add this in front of your plugin.
if ( is_front() ) {
*plugin I mentioned here*
}
December 4, 2006 at 8:36 pm #52095In reply to: Not post count but reply count on front page?
Null
MemberWell I am working on a new page where I want to have this reply function on. If I do this your way or use it as a plugin, it would effect everypage using this option. I only want this on my alternitive index/front-page.php file. Lets call it index2.php.
So I want this only on my alternitive index page, thats why I want to hardcode it for that page only…
Thx
December 4, 2006 at 8:34 pm #52021In reply to: Site Options Plugin
so1o
Participanthttps://bbpress.org/documentation/faq/#customization-folders
do the default plugin installation routine..
please note that you need site-options plugin and the latest code from the bbpress repository
December 4, 2006 at 8:33 pm #52103In reply to: Not latest reply link, but first reply link?
Null
MemberYeah, thats why I ask that here
I have no clue how to do that!
December 4, 2006 at 8:07 pm #52094In reply to: Not post count but reply count on front page?
ardentfrost
MemberWhy wouldn’t you want to use it as a plugin? There’s a filter applied to the reply count call specifically so you can do something like what you’re asking for.
If you want to hardcode it, you have to go to template-functions.php and find the “get_topic_posts” function and do the -1 there.
December 4, 2006 at 7:40 pm #52143In reply to: How to make a menu like the one on this site?
Null
MemberAbout the placing, where ever i placed it in the header it never turned out right. Sec I dont know how to build sugh a menu like this, i am a compleet retar…. noob
December 4, 2006 at 7:35 pm #52093In reply to: Not post count but reply count on front page?
Null
MemberIf I don’t wanna use it as a plugin, but hardcode it? Then I put it in index.php? and where in the index.php?
Thx for the help
December 4, 2006 at 4:26 pm #52092In reply to: Not post count but reply count on front page?
ardentfrost
Memberthis is untested…
make a file in your my-plugin directory and call it whatever you want. Insert the following:
global $topic;
add_filter ( 'get_topic_posts', ($topic->topic_posts)-1, $topic->topic_id );
That should work
December 4, 2006 at 4:22 pm #52100In reply to: Not latest reply link, but first reply link?
ardentfrost
Memberjust find where it is and add this:
<a href="<?php topic_link(); ?>">First Post</a>
December 4, 2006 at 4:08 pm #1067Topic: AJAX thingy should be green too
in forum Requests & FeedbackNull
MemberWel when posting etc you see that AJAX thingy fading. It’s YELLOW though and I think it should be green, just like the rest of the template. Plz fix
December 4, 2006 at 4:00 pm #51738In reply to: Guest user
steven19
Member*bump*
December 4, 2006 at 3:58 pm #51171In reply to: Private Forum script
topiq
Memberi installed the site_opitons plugin. but i get some kinds of errors.
in the “private forum management” i get this errors:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 29
value="2" > News
and if i want to change the message a user gets if he is not allowed to access a private forum:
Fatal error: Call to undefined function is_serialized() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/site-options.php on line 190
thanks for your help!
PS: in the SITE OPTIONS tab i get nothing but a submit button…
December 4, 2006 at 1:09 pm #50962In reply to: Plugin for points system?
anotherbrick
MemberAlright
I’d like to follow the progress, and contribute if possible. I have a need for such a thing in an ongoing project, so I have time to give for this(I’m new-ish to PHP, but not to programming in general – C/C#/Ruby). Lemme know if you make a start!
December 4, 2006 at 12:51 pm #50961In reply to: Plugin for points system?
thomasklaiber
MemberAh … this isn’t implemented yet. But would be a nice idea for a plugin, I think I’ll give it a try
December 4, 2006 at 11:33 am #50950In reply to: How do I create new themes (not topics)?
spencerp
Member@talkaboutdesign, wow, that’s nice! Thanks for doing that! Can’t wait until ya release it.
spencerp
December 4, 2006 at 9:55 am #51169In reply to: Private Forum script
topiq
Memberit does not work for me. when i want to access the private forum plugin in the admin panel i get this error:
Fatal error: Call to undefined function get_option() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 22
December 4, 2006 at 8:28 am #50643In reply to: rawurlencode() Error
plognark
MemberOk, I lied, that actually doesn’t fix the problem.
However, what does seem to work is error supression:
$this->query_string .= $wpvar . ‘=’ . @rawurlencode($this->query_vars[$wpvar]);
Just throw an @ sign in front of the offending rawurlencode function and it seems to clean things up.
December 4, 2006 at 7:14 am #51846In reply to: To display [Resolved], by the thread’s title
spencerp
MemberIn your forum’s root directory.. you have to make a folder called: my-plugins and then upload the file there.. Call a blank file: my_resolve_ title.php and add the above codes into it.. make sure there isn’t white space before the: <?php and after the last: ?>
Save it, and upload it to your my-plugins folder.. Good luck!
spencerp
December 4, 2006 at 6:22 am #51845In reply to: To display [Resolved], by the thread’s title
suleiman
Memberwhere does this plugin code get dropped exactly?
December 4, 2006 at 4:27 am #50840In reply to: Error for tags.php
chrishajer
Participant@richardjeananders: this addition to the .htaccess absolutely fixed this exact problem for me. I was seeing the same error in Firefox when I clicked on the Tag link in the breadcrumb navigation. PHP scripts were being interpreted by PHP 4.4.4 on the server until I created an .htaccess file with this one line. Now, PHP scripts are being interpreted by PHP 5.1.6. I can’t believe that fixed it. Thank you very much.
.htaccess
AddType x-mapp-php5 .php
December 4, 2006 at 12:19 am #52117In reply to: Private Forums Plugin
Trent Adams
MemberThanks! The plugins work now with the latest code!
Cheers,
Trent
December 4, 2006 at 12:04 am #52114In reply to: Private Forums Plugin
so1o
Participantsorry about the mis communication..
the latest code for bbpress..
coz the is_serialized function is in the latest code but not in blix i think…
December 4, 2006 at 12:01 am #52113In reply to: Private Forums Plugin
Trent Adams
MemberI just redownloaded both site options and private forum plugins and reinstalled them.
Still get the error:
Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179
Should I just give up and get lastest code?
Trent
December 3, 2006 at 11:49 pm #52112In reply to: Private Forums Plugin
so1o
ParticipantThe plugin currently works on the latest code.. let me check if i can fix the code to work with blix..
Trent:
can you check with the latest code and let know..
December 3, 2006 at 10:49 pm #52111In reply to: Private Forums Plugin
ardentfrost
MemberWay to keep the bar raised for developing plugins s101
Thanks for the plugin, one less thing I gotta make
-
AuthorSearch Results