Search Results for 'code'
-
AuthorSearch Results
-
March 21, 2007 at 12:00 am #55754
In reply to: bbMenu 1.1 programming problem (advanced!)
Sam Bauers
ParticipantInclude the following at the top of the new file:
require_once('../bb-load.php');
You may have to adjust the path a little to correctly reference the file.
That should give you access to the whole API, including the $bbdb object for manipulating the database.
March 20, 2007 at 11:33 pm #53812In reply to: Latest Disscussions Plugin
Atsutane
MemberThe fix i already put inside the plugin seem not working.
Maybe in the future bbpress should automatically fill up the
display_name
Anyway i try to see what i can do with that.
March 20, 2007 at 10:23 pm #55770In reply to: “Not Spam” Annoying Before Making Posts
bassetts
MemberYou have to create a folder called
my-plugins
inside the bbpress root e.g. /bbpress/my-plugins/ and then upload the plugin to that folder.March 20, 2007 at 9:48 pm #55757In reply to: multiple forums
Trent Adams
MemberI am afraid not. It would require you manually creating a forum for each site. If you wanted them all to have different sites, it would require a bbPress install for each and every user with different databases. If someone hacks the code to a MU version of bbPress maybe, but right now, not that I know of.
Trent
March 20, 2007 at 8:12 pm #1591Topic: Smilies plugin?
in forum Pluginskentpaus
MemberI’m missing a smilie plugin. Has anyone made one yet? If not I will try to make one ASAP
Edit: Sorry! Fonund one now. Will try it out
March 20, 2007 at 1:45 pm #55753In reply to: bbMenu 1.1 programming problem (advanced!)
Null
MemberHmm well so the easiest way is to keep the external file containing:
<?php
$id = $_POST['id'];
$content = $_POST['content'];
echo stripslashes(htmlentities($content)); ?>This file returns the edited text (this works), but how can I let it safe the variables to the database at the same time?
It’ll have to save: $content to the table bb_menu -> item
where $id = edit_id
Tried some stuff, but couldn’t get this updated into the db
March 20, 2007 at 11:55 am #53809In reply to: Latest Disscussions Plugin
Atsutane
MemberGlad it work perfectly for you
March 20, 2007 at 7:51 am #55761In reply to: What happened?
Sam Bauers
ParticipantTurn off permalinks in the config.php file
$bb->mod_rewrite = false
Or add the appropriate entries to your .htaccess file as described here
March 20, 2007 at 3:51 am #1589Topic: What happened?
in forum Installationdaniel8802
MemberHi guys … I have wordpress up and running on my site, but I tried to get bbpress working, but something isn’t quite right I think. Am I doing something wrong? You can check it out at rigelastronomy.com/bbpress … thanks! I’m new to bbpress, but love wordpress
March 20, 2007 at 12:08 am #53806In reply to: Latest Disscussions Plugin
Atsutane
MemberFROM _bbtopics
it seem to me your bb table prefix kinda mess up. Try check back inside option page. I also using wp 2.1.2 and bb 0.8.1, and still i can update my option
Try deactive and reactive the plugin back .. maybe that gonna fix it.
thanks i will keep that in mind
March 19, 2007 at 11:00 pm #1586Topic: bbMenu 1.1 programming problem (advanced!)
in forum PluginsNull
MemberHi,
I am currently upgrading my bbMenu plugin. You can now edit the titles en safe them to you db. The problem is, the last part I can’t get the saving to work.
In the JS file I have now:
var url = 'edit.php';
This file (edit.php) is called when someone renames the menu item and has the following code:
<?php
$id = $_POST['id'];
$content = $_POST['content'];
echo stripslashes(htmlentities($content)); ?>Now I don’t want to have an external file so I copy past this code into my bbmenu.php and changed the var url in the JS file too:
var url = '../my-plugins/bbmenu.php';
So it now calls the bbmenu.php but this gives some errors, cause it will reload the plugin file:
Fatal error: Call to undefined function add_action() in /bbpress/my-plugins/bbmenu.phpon line 30
How to solve this?
If this aint possible what do I need to add to edit.php so it also safes the stuff to the db?
Hope you guys can help me out
March 19, 2007 at 10:56 pm #55729In reply to: same header in bbpress – wordpress
peiqinglong
MemberDid you specify to load the admin interface? Make sure this line is inside your bbpress header somewhere:
<?php if ( is_bb_profile() ) profile_menu(); ?>
March 19, 2007 at 10:54 pm #55724In reply to: integration with wordpress…
peiqinglong
MemberThe first problem is in your header, you have:
<php bloginfo('stylesheet_url'); ?>
, it should be<?php bloginfo('stylesheet_url'); ?> and with the second import, I'm not sure why style.css is just floating around outside. It should be pointing to your forum so it should be:
@import url(“/archas/ram/wordpress/forum/bb-templates/your themestyle.css”);`The second problem is you have to edit EVERY file in the template. Make a new folder in bb-templates, call it whatever you want and copy all the files from kakumei theme except for images directory into your new folder and change all the files that have
<bb_get header()>
to<get_header()>
and don’t forget the footer and sidebar.The third problem is you need to style the bbpress stylesheet to match your theme…
March 19, 2007 at 8:13 pm #55723In reply to: integration with wordpress…
archasek
Memberin bb-admin panel, it shows only the code of php file.
what bout other questions ?
March 19, 2007 at 5:43 pm #53802In reply to: Latest Disscussions Plugin
fel64
MemberHaha, Atsutane, fantastic.
Continually improving this plugin is great
You spelt “integrated” intergrated by the way – luckily consistently through your code, so it works okay anyway. ^^ Better English is also “in” category rather than inside. Just if you want to know.
March 19, 2007 at 5:23 pm #53801In reply to: Latest Disscussions Plugin
Atsutane
MemberUpdate the plugin already. Now u can set the length of the text from BbLD option page. Get it from bbPress plugin page.
Refer to changelog for older update. Hope this gonna solve your problem
March 19, 2007 at 5:21 pm #55721In reply to: integration with wordpress…
archasek
Memberok, i did something like that in my front site, and everything seem to be working ok, but:
– look at forum and at wordpress- there is a little difference between them. text in forum is on the left, out from the table.
– in my bb-admin page i have bad encoding (im polish), i have to use the unicode, dunno what bbpress uses
how to add (activate) plugins for bbpress? i want to have display-name plugin to change moderators names
March 19, 2007 at 4:33 pm #55720In reply to: integration with wordpress…
peiqinglong
MemberMake sure that when you enter: require_once( ‘../wp-blog-header.php’);, it’s absolute path. For example: /home/username/archas/ram/wordpress/
To find out what your absolute path is:
1) make a file and call it path.php
2) add this code into the path.php:
<?php $p = getcwd(); echo $p; ?>
3) upload it to your wordpress directory and access it http://www.cs.elomza.pl/archas/ram/wordpress/path.php, that will output your path.
For more info: http://www.bui4ever.com/web-itecture/how_to_integrate_wordpress_and_bbpress/
March 19, 2007 at 9:37 am #53800In reply to: Latest Disscussions Plugin
Null
MemberIt’s not that hard to do. Just google on this and script/excamples will pop-up in no time. Basicly you will have to count the nr of letters and replace all other letters with …
I am at work else I could give an excample….
… not very helpful I know just google
March 17, 2007 at 3:10 pm #54370In reply to: Updated to Desmond But Theme Not Working
fel64
MemberIs there any way of displaying the page numbers (as links) in the thread listing, so that you can jump straight to the latest page? Would be much nicer to navigate.
If not, I’ll add it as a ticket to trac? Not sure what the right thing to do is!
March 17, 2007 at 7:41 am #55735In reply to: bbPress on mac osx
Sam Bauers
ParticipantCheck your apache error log for PHP errors using tail.
tail -f /var/log/httpd/error_log
On the command line.
March 17, 2007 at 12:55 am #54369In reply to: Updated to Desmond But Theme Not Working
spencerp
MemberHaha. All I know is… after wiping the database clean of the bbPress tables and files/folders and such in the htdocs folder for Xampp Lite/ localhost … tried to install it fresh again… it went just fine, except for that Stylesheet URL issue….
Not sure why, or what’s going on with it.. but apparently she’s holding a grudge against Xampp Lite and the localhost… damn bitch!!!! LOL! Nah, just kidding folks!
spencerp
March 17, 2007 at 12:25 am #54368In reply to: Updated to Desmond But Theme Not Working
Trent Adams
MemberGood to know…….so that is the URL issue and not the localhost issue even though you are installed on a localhost. Man, this thread is confusing sometimes!
Trent
March 17, 2007 at 12:12 am #54367In reply to: Updated to Desmond But Theme Not Working
spencerp
MemberOh okay. However, I just SVN-ed my localhost copy, and she’s still not working like supposed too. So, I just manually re-added the straight URL to the stylesheet for now..
So evidently it hasn’t been fixed yet sigh.. Hmm..
spencerp
March 16, 2007 at 11:40 pm #54365In reply to: Updated to Desmond But Theme Not Working
spencerp
MemberIt’s ok Trent.
It’s really not a big deal since it’s for the localhost copy only.
It’s just that it *would be* nice to have this fixed in general though, ya know.. ?
Do you know if mdawaffe had applied a fix yet or not? I noticed a handful of files come through the SVN, just not sure if one contains a “fix” or whatever.. lol!
spencerp
-
AuthorSearch Results