Search Results for 'code'
-
Search Results
-
Topic: Naviagtion Bar in bbPress
I use a custom theme (heavily a modified Kakumei) and some custom plugins. The forum is new, so it doesn’t have activity, all our users are still using the Vanilla forum we had.
I didn’t hack any core files, all “non standard things” are donde via custom plugins.
Plugins i use:
– My own “Ajustes” (for sidebar, footer and navigation menu content, profile content, and some html tags).
– MD5 Insecurity (will be deactivated soon).
– Private Messaging Extended
– A custom Quicktags (ported from Vanilla)
– Ajaxed Quote
– Simple Online List (i also modified a lot this plugin, because it never worked for me ….).
– Unread Topics. I also modified this one, it was doing too many queries. I added some indices and reduced the overhead.
– User Photo. I ported the User Photo WP plugin.
– Human Test.
Also i indirectly use:
– Gaming Codes: each user can enter his gaming codes. They’re displayed on the user profile.
– Aleph: this plugin creates user lists (among other things). So i use it inside WP like a “member list”. The beauty is that i can easily create different user lists, so i created a list for each gaming code (in other words, users can see which users have a certain gamer code).
As i said, the theme is a heavily modified Kakumei. I replaced all topics/forum loops with my own, trying to mimick the Vanilla look. Also the css is based on the Tarski theme for WordPress. In fact, i import it directly from the WP installation.
For the forum/topic icons, i created a custom plugin which printed the css based on the slug of each forum, and then i added the resulting code to the style.css. I still have to create a lot of icons, those are temporary.
I hope you like my forums and if you have any questions or would like a plugin/theme release, just ask :p
Topic: bbPress call for the time
Topic: Several domains
Hi, i hope someone can help me with this.
I have several domains pointing to the same bbpress forum. For example, during the installation, i installed bbpress with the domain name setting of “domainA.com”. Now, when i get a visitor from “domainB.com”, he will be redirected to “domainA.com” pretty fast, like when he’s clicking the “Home” link on the forum.
I have managed to change this, by replacing, in the header file of the template, the:
<?php bb_option('uri'); ?>
.. to:
http://<?php _e($_SERVER['HTTP_HOST']) ?>
And it works. However, bbpress use the ‘uri’ alot, and for example, if the user is not logged in, and is trying to post, he will be redirected to domainA.
What i’m asking for, i guess, is if it’s possible, in the php files somewhere, to specifically define the uri to be the server’http_host’ instead of the domainA? Where can i find and change this, and how?
Thank you very much.
Mike
I upgraded bbpress after upgrading my wordpress site to the latest version (2.5.1). The install complained that there were already forums/threads in the database, but said the install went OK. The problem I’m having, however, is that when I go to the forums, I get a t_string error referring to line 20 of the bb_config.php file.
This line is the prefix used for the tables.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
So, I’m guessing that it thinks it is a new install instead of merely an upgrade. How do I get the updated version to simply read in the existing forums and threads?
Thank you so much for any help. These are busy forums and there will be limited patience with this problem.
I’m using bbsync properly synchronized with my wp-blog. I want to close wp-comments and add a link to the forum topic in every wp-entry for responses. Bbsync provides this code:
Replies in the thread can be shown where the comments are (quite automagically). Use <?php bbrepliestext(); ?> to just link to the thread; it accepts the link text as an argument and %no% and %replies% will be replaced with the numebr of posts and the right pluralicised form of the word reply.
But I don’t know how or where using it. Anybody can explain me the instructions more detailed, please? Has someone something similar working? I’ve tried to paste
<?php bbrepliestext(); ?>
in my template files but it doesn’t work (blank text) .Thanks!
Topic: PHP Injection
I like the idea of adding a BB to a WordPress website and BBPress offers good integration but, having had one website previously screwed with a Visitor’s Book, I am a bit paranoid about PHP Injection.
Since there is actually an invitation to put code between backticks, how secure is it against injection?
Is there a simple hack to exclude backticks?
Topic: Private Messaging Extended