Search Results for 'code'
-
AuthorSearch Results
-
March 26, 2007 at 12:54 am #55844
In reply to: Setting user data
fel64
MemberUnfortunately not, as it simply hangs itself on the
get_profile_info_keysfilter – so it gives extra values for the user to edit, which isn’t what I’m looking for.March 25, 2007 at 10:44 pm #55923In reply to: Show off your Forum !!
Arlo
MemberThis is my migrated phpBB forum. It’s integrated with my main site rather tightly (UI-wise, not database), and I did a bit of modification to the post layout, making the best use of the narrow column I think. Other than that, just your usual CSS tweakage.
It’s not live yet, so I welcome feedback:
http://automatorworld.com/bbpress/
The plugins I’m using are:
Comment Quicktags
Front Page Topics
Post Notification
Page links
Quote
edit: Please feel free to register and test post, I would welcome the Q&A
March 25, 2007 at 10:43 pm #56007In reply to: remove forum/”topic”/number
Trent Adams
MemberIt works if you are willing to download the latest TRAC version from https://trac.bbpress.org/browser/trunk/ and then scrolling down to the bottom of the page and clicking the ‘download in other format – Zip format’. That is the latest development version. Then you have to change your config.php to have:
$bb->mod_rewrite = 'slugs';Your .htaccess file should just be back to whatever you had before. Mine is just the + MultiViews part.
Trent
March 25, 2007 at 10:32 pm #56006In reply to: remove forum/”topic”/number
cocowawa
Memberfel64, this dont work the url“s link dont change and then error404
i am adapting code to do a unique forum (without forums!) you con see: http://www.todopiscinasQQQ.es/foro/ (remove QQQ)
Whats are wrong?
Trent i hope to do this now but i thing i need to wait for 1.0 and my code dont works then.
March 25, 2007 at 8:10 pm #56004In reply to: remove forum/”topic”/number
fel64
MemberOpen your config.php file and change line 26 (I think) to
$bb->mod_rewrite = 'slugs';(It should have been
$bb->mod_rewrite = [true or false]before.)Put the following code in your .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/(.+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/(.+)/?$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/(.+)/page/([0-9]+)$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/(.+)/?$ /topic.php?id=$1 [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/(.+)/([a-z]+)$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/(.+)/([a-z]+)/page/([0-9]+)$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/(.+)/?$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /rss.php?profile=$1 [L,QSA]
</IfModule>March 25, 2007 at 5:38 pm #56003In reply to: remove forum/”topic”/number
cocowawa
MemberOh! I like it! Trent
Could you give me your code please? or say me what are you doing
Thanks!
March 25, 2007 at 3:05 pm #54292In reply to: Patch: Categories for version 0.8
Sam Bauers
ParticipantOn *nix RTFM…
man patchOn windows… no idea
March 25, 2007 at 3:00 pm #56039In reply to: Tags not found
Trent Adams
MemberIf you changed from 1.3 to 2.2 in Apache and it worked before the upgrade, it must have something in there that it doesn’t like with the Mod Rewrite handling. I am not sure myself, but I would change my .htaccess in the bbPress root folder of http://www.canadianbookclubs.com/forums/ to have only:
Options +MultiViewsNothing else. Try it in that and in your http://www.canadianbookclubs.com/bkrv/ test run with the new version as well. Either way, it should work for one of them. That works best with most servers I have used and they are using Apache 2+. Try that out maybe and if not, take Fel64’s suggestion and put the contents of what is outputted by: /bb-admin/rewrite-rules.php
Trent
March 25, 2007 at 2:57 pm #55891In reply to: Plugin: Page links for bbPress
Sam Bauers
ParticipantComment out this line in the plugin to get page 1 showing.
unset($links[0]);That’s line 82 in version 1.0.2
March 25, 2007 at 2:43 pm #1620Topic: Latest WordPress & bbPress in another language!
in forum Troubleshootingc00l2sv
MemberCurrently i’m trying to develop something using wordpress & bbpress.
Everything flows pretty good when talking on functionality and the rest of features, but there is a problem.
Actually 2 problems. First I already posted here: http://bbpress.org/forums/topic/867
And now the second one:
The final release has to be in another language but english. It’s true, I found no troubles translating bbpress in my language and the rest of updated wordpress. But after what I’ve integrated both of api’s: the wordpress and bbpress; this resulted in the following error:
Fatal error: Cannot redeclare class streamreader in /var/www/pm/forum/bb-includes/streams.php on line 26I suppose it’s because of the translations, cause when I did not defined BBLANG, everything worked well.
After a bit I thought, that a solution for my problem can be joining both of the bbpress and wordpress translation .mo’s and defining just WPLANG for my language settings. That worked, but I dont see this as a pretty simple and accessible solution for everybody!
I would be glad getting some help on that, If there is any other more easier solution, that would be cool.
March 25, 2007 at 2:00 pm #51434In reply to: Plugin: Simple Onlinelist
citizenkeith
ParticipantI switched back to the first version, but the member list was still messed up. So I emptied the bb_online table, and now it doesn’t work at all.
Oops.
March 25, 2007 at 1:48 pm #55910In reply to: Add New – issue
stasi
MemberThanks for your replys.. i’v checked to post-form.php, and it is present in the “crystal” theme.
I tried to switch back to the default theme, and suddenly it worked! Then I switched back to crystal theme at overwrited the original theme files (perhaps i’v done something with the files before).. but no, it still dosen’t work as it should
March 25, 2007 at 10:59 am #56067In reply to: Spoiler plugin?
fel64
MemberIf Trent’s theory is correct (and it sounds good) I think the best thing for you to do is to plonk that javascript reference in a plugin (that’s certainly the neatest thing). This is probably the code you need.
<?php
/*
Plugin Name: Javascript Spoilers
Plugin URI: [Enhanced SS page]
Description: Makes little javascript buttons to show and hide text in spoiler tags. A port of a WP plugin.
Author: [Author of Enhanced SS]
Version: 0.1
Author URI: [Author of Enhanced SS homepage]
*/
function ess_addjs()
{
$plugin_uri = bb_get_option('uri') . str_replace(BBPATH, '', BBPLUGINDIR);
$js_uri = $plugin_uri . 'enhancedss.js';
echo '<script type="text/javascript" src="' . $js_uri . '" />' . "n";
}
add_action('bb_head', ''ess_addjs);
?>You will have to modify the javascript filename from enhancedss.js to whatever it’s actually called.
Copy and paste all that into a plain-text file, call it something.php and upload it to your plugins folder. Also upload the enhancedss.js file to that folder.
Almost all that code was totally ripped off from Sam Bauer’s Page links plugin.
March 25, 2007 at 10:46 am #55639In reply to: What’s integration?
fel64
MemberI think so. Integration has to be done from the very start. You have to set up your
config.phpproperly before install (with the database pointed at your WP database) else it won’t integrate. Maybe I’m wrong; does anyone else know?March 25, 2007 at 1:45 am #56063In reply to: Spoiler plugin?
mattpeckham
Member
Okay, pretty simple – see here:
http://mikecarey.net/?p=187#comments
Scroll down a dozen comments from the top to the one dated March 18th, 2007 12:36 pm and see the ‘Show’ drop-downs. That’s a spoiler plugin that essentially takes any text with <spoiler> tags around it and inserts the drop-down function.
I’m either looking for something like that, or alternately jury-rigging a custom tag (if that’s even possible) to let my users post, say, black text on a black background (in a blockquote box) that you have to highlight to see.
Make a little more sense?
Matt
March 25, 2007 at 1:37 am #56062In reply to: Spoiler plugin?
Trent Adams
MemberNot sure what you are trying to do here. Explain to me like I am 5 years old what you are trying to get done because I act that way….

Trent
March 25, 2007 at 1:28 am #55863mattpeckham
MemberYou’re an amazing guy, Mr. Trent.
We’ll give you all the time in the world, of course, and simply be grateful if/when you’re able to cobble something together!
March 25, 2007 at 1:11 am #53902In reply to: Bozo problem
Trent Adams
MemberIt was scheduled to be out pretty soon here, but the number of tickets keeps increasing. Usually, at some point, mdawaffe just cuts the tickets to the next version and has a release. It will be soon I would imagine…..maybe within 30 days, but don’t quote me on that……

Trent
March 25, 2007 at 12:57 am #55799In reply to: Plugin: YouTube in bbPress
Trent Adams
MemberIt will be more like how wordpress.com does it:
[youtube=videolink]Trent
March 24, 2007 at 9:37 pm #56020In reply to: Tags not found
fel64
MemberThe 404s seem to me to probably come from your
config.phpand.htaccessfiles not being set up accordingly. If you have mod_rewrite set to true in your config.php (which you do) then you must update your .htacess file.Go to http://www.canadianbookclubs.com/bkrv/bb-admin/rewrite-rules.php (probably) and copy the output into your forum folder’s .htaccess file. Try again.
You said something about a hacker?
As far as I know each theme must be in a sub-folder of my-templates.
March 24, 2007 at 9:32 pm #56010In reply to: Some Questionssssss
fel64
MemberNo, it isn’t.
Stylesheets are what determines the look of a forum. These are the stylesheets the WP.com forums use:
http://wordpress.com/forums-theme/wpcom/forums.css
http://wordpress.com/wp-content/themes/h3/style.css?1169109548
http://wordpress.com/wp-content/themes/h3/hack.css
I do not think they would mind if you use them, as long as you give credit. You could ask someone.
Or, instead, you could start a new theme, edit your new
style.cssfile and try to replicate what they have by try-and-error.March 24, 2007 at 9:29 pm #55908In reply to: Add New – issue
fel64
MemberCheck
forum/bb-templates/kakumei/post-form.phpis present on your server. That is the only thing I can think of.March 24, 2007 at 8:34 pm #56058In reply to: Read-only forum / keep user names?
Arlo
MemberYou both ask very reasonable questions
Basically, my forum is such that people tend to sign up just to ask 1 question and disappear. So over the years it has amassed about 700 users with 1-2 posts, tops.
My current setup is pretty much a mirror of the old forum (it’s at my site at /bbpress if you want to see the design in progress), which can of course work fine, but being the anal type I was thinking of starting this forum with a “clean slate”, as it were. Maybe 2-3 users would be returning and bear the burden of re-registering.
But I guess I’ll leave it be. As new posts come in the old ones will “flush” off the front page anyway. Thanks for the insights.
March 24, 2007 at 8:20 pm #56057In reply to: Read-only forum / keep user names?
chrishajer
ParticipantThis is very interesting to me. How about these ideas?
For the close a forum, I don’t know how you would do that. There’s nothing I know of in the bb_forums table that marks it open or closed. The best I think you could do is mark the topics closed. To do that with SQL, you could do something like
UPDATE bb_topics
SET topic_open=0
WHERE topic_id IN
(your comma separated list of topic_ids)You could drop the WHERE part if you wanted to mark all existing topics as closed. Before you do anything with SQL though, be sure you have a backup of the data.
I can see why you want to take a snapshot of the old forums and mark them “archived/old” but, I would assume if you are moving things from phpBB to bbPress that your forum structure is going to be similar, so closing the forums to new topics wouldn’t make sense anyway.
Another option is to create a new forum called “phpBB Archive” or something then move all the topics and posts over to that “archive” forum, then create your forum hierarchy again in bbPress like it was in phpBB (i.e. World News, World Labs, Support, etc.)
For the users, why not just change all the passwords? That would make the usernames still valid, so no one else could re-register as an existing name, no one could log in with the old name, and all the existing posts would still be attributed to the original poster.
Just my thoughts: maybe they’ll be useful. Good questions though…
March 24, 2007 at 4:56 pm #55920In reply to: Show off your Forum !!
flaerpen
MemberA swedish forum for teenagers.
- Quote
- allow images
- avatar
- emoticons
- memberlist
- post-count
- sitemap
I’ve also made a “plugin” for my menu. Instead of change the code in the core-files I made a plugin for the links. I think it’s not that professional but it works.
-
AuthorSearch Results