Search Results for 'code'
- 
		AuthorSearch Results
- 
		
			
March 11, 2007 at 10:59 pm #1553Topic: Profile Page and Permalinksin forum TroubleshootingJustin Tadlock ParticipantI finally got everything set up at Books In Bed. The Forum is working well too. Tell me what you think of it so far. The problems I have had are linking to a topic author’s profile page. I can get the “last poster’s” profile page link though. What I think I need to do is get the author’s “user id” to do this, but for some reason I can’t get it. Also, I’ve tried everything on this site to get pretty permalinks working (I use GoDaddy). They’ve always worked fine on my WordPress blog, but not on bbpress. The only thing I haven’t done is /bb-admin/rewrite_rules.phpbecause I keep getting an error when I go to that page.March 11, 2007 at 10:05 pm #55489In reply to: Anyone here know how to parse files with PHP?macwise MemberMany, many, many ulterior motives.  First of all, this is happening because I can’t seem to find any solution that will search for and filter what <u>I</u> would like it to search for and filter.  Instead, it gives the cookie cutter solution. First of all, this is happening because I can’t seem to find any solution that will search for and filter what <u>I</u> would like it to search for and filter.  Instead, it gives the cookie cutter solution.I am also on Dreamhost right now, coming from a dedicated hosting environment, (my own server), and since I can’t configure the stats program they have installed, nor can I easily install another of my own, I thought I’d try my hand at learning how to parse files myself. So this is partially for education, partially for usefulness, and partially with the hopes of developing something that the gen. public might find helpful. Am I wasting my, (and everybody else’s) time? March 11, 2007 at 9:59 pm #55488In reply to: Anyone here know how to parse files with PHP?fel64 MemberMeh, I have little/no experience with handling files myself. Might be easier, though, for you to modify some existing code? There’s already been a lot of very sophisticated work done in statsgathering. I’m thinking of Reinvigorate, for example – not trying to discourage you, just find the most practical solution? I mean, are you in it purely to make the plugin or is there some ulterior motive?  March 11, 2007 at 4:12 pm #55328 March 11, 2007 at 4:12 pm #55328In reply to: Problem with the Support Forum plugindrmike MemberShows you how often I go into the admin side.  Fixed. Thanks. -drmike March 11, 2007 at 1:02 pm #55479In reply to: swedish letters in the plugin quoteflaerpen MemberIt works  Thanks! March 11, 2007 at 12:32 pm #55478In reply to: swedish letters in the plugin quotefel64 MemberThere is a line in the quote plugin that converts all special characters to their HTML equivalents. if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>');(Some code is cut off to the side because of the forum’s limited width) I assume that the problem lies here. My guess is that it returns a different character format to the one your browser is using? Get your quote.php file in your plugin folder and change this code to if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>', ENT_COMPAT, 'UTF-8');Upload the new version to your server and see if it works.  If not, undo changes, save and upload the original file. If not, undo changes, save and upload the original file.That’s just my guess; the first thing I would try. I don’t actually know. March 11, 2007 at 12:26 pm #55481In reply to: Custom Theme for WordPress integration w/ bbPressfel64 MemberIt depends on the amount of work you’re willing to put in as well as the complexity of your WordPress theme (assuming that you’re trying to match your bbPress theme to your WP theme?). Using CSS (which is what you use to style the site) is simple and enjoyable to me, but you may prefer to just get someone else to do it. Everything is in plain English and the format is simple. Have a look at http://www.w3schools.com/css/  March 10, 2007 at 4:26 pm #55439 March 10, 2007 at 4:26 pm #55439In reply to: Logout and posts disappearfel64 MemberVery simple way to softly resize your images: go to your theme’s folder, open style.css, and copy in this code at the bottom:img {
 max-width: 600px;
 max-height: 800px;
 }You can change this to any values you like, but I think 600px width works with the default theme at least. Make sure there are no spaces between the number and the px. If you don’t care about height you can just take that line out. Any bigger images will be scaled down automatically – they will still load at full resolution/size, but they will display smaller. March 10, 2007 at 3:23 pm #55438 March 10, 2007 at 3:23 pm #55438In reply to: Logout and posts disappearchrishajer Participant> 1) wenkong posted a topic i think in chinese > and now i cant delete the tag he created because > it wont work, he said its something to do with > utf8. How can I delete that tag & how can I stop > it from happening again Sorry, I can’t help with the tags. Maybe this will help: https://bbpress.org/forums/topic/433 > 2) How many tags will appear on the start page? > does it go forever or is it limited to 100 etc It is limited, never checked how many, but it’s taken care of automatically. > 3) is there any examples of what the allowed > markup with backticks looks like (If ?I dont > know how it works Im sure my users won’t) <?php /* this is a block of code in backticks */
 echo "Hello.nn";
 ?>> 4) Is there a way to add images with a > softresize to a set size say 500px etc > or a plugin that can do it Not that I know of, and I know why it’s a problem (it messes up the layout when wide images are used.) Maybe just post the image parameters and ask people not to insert large images. Ban those who won’t comply  But maybe someone will consider the image size limits for a plugin. Have fun March 10, 2007 at 3:15 pm #55224In reply to: Titles for topic replies?LMD ParticipantI’ve managed to create a plugin that adds titles to replies – and documented it. The plugin is available for download from my website: http://www.classical-webdesigns.co.uk/articles/36_bbpress-plugin-add-titles-to-replies.html Comments and suggestions are welcome. One other thing, re: “Preview sounds good – but better yet would be an AJAX thing that means you don’t even have to reload the page when you post.  “ “That’s what I meant by using the DOM. In fact there would be no need for AJAX even – by using the javascript DOM you can ‘preview in place’ the post you are currently working on. If users do not have javascript enabled, then graceful degradation would mean that a button to view the preview on a separate page would be visible. March 10, 2007 at 1:38 pm #55157In reply to: style-rtl.css problem in 0.81 with IEtalgalili MemberThanks chrishajer. Since I did not yet open the forum, I don’t see a reason to try and patch it to work. (especially when I don’t know how people are supposed to login if I remove the TEMPLATE) I hope the issue will be resolved soon, so I could open up the forum  Cheers, Tal. March 10, 2007 at 5:15 am #55467In reply to: New Install – New Database?Atsutane Memberit seem to me u set $bb->mod_rewrite = true;Follow the instruction here and u will be fineMarch 10, 2007 at 3:51 am #55156In reply to: style-rtl.css problem in 0.81 with IEchrishajer ParticipantI was only kidding about making people use FF.  And from experience, it might take a week or so before the ticket is assigned, unless it’s affecting a lot of people or is an easy one to fix. I wish I had the answer but I have a hard enough time just reading from right to left. Did you try removing the / class=”login” / from the template for the login form and see if the problem goes away in IE? At least that way it would be visible in IE, although not styled and ugly. It could be used at least temporarily until it’s resolved. March 10, 2007 at 3:12 am #55464In reply to: New Install – New Database?Atsutane MemberIf u want to integrate your wp with bbpress then u should use the same database. But if u dont want, having new database also ok  March 10, 2007 at 12:56 am #54653 March 10, 2007 at 12:56 am #54653In reply to: Restrict New Topicolzvoi MemberPut this code in a Plugin. The group “Member” will be affected. function restrict_bb_got_roles() { global $bb_roles; unset($bb_roles->roles); unset($bb_roles->roles); unset($bb_roles->role_objects->capabilities); unset($bb_roles->role_objects->capabilities); } add_action(‘bb_got_roles’, ‘restrict_bb_got_roles’); March 9, 2007 at 8:52 am #55452In reply to: Ajax libs used…Null MemberNah protoype.js can’t be removed, cause my bbMenu plugin uses/needs it too  I guess you’ll need to include your .js in your template folder and call it from there… March 9, 2007 at 2:49 am #55445In reply to: how to disable Tag function?wenkong Memberso nice, thank you. I’m using your new templates.  hope new creative template release. March 9, 2007 at 2:10 am #55444In reply to: how to disable Tag function?Trent Adams MemberYou would need to edit your template files to get rid of all the places that tags show up. If you are using the default theme, the best thing would be to edit all the files that need editing and upload them to a new folder /my-templates/themename/ as that will allow you to edit the files that you need without doing anything to the themes in /bb-templates/. Any file in the folder inside /my-templates/ will be read and if it doesn’t exist there, it uses the originals in /bb-templates/. Off thet top of my head, it would require editing the following files: front-page.php topic.php forum.php (to get rid of the place to create topic and tags) new-topic.php There might be more and I might be off on the names, but just comment out <! — and –> around any code that deals with the tags. Trent March 9, 2007 at 12:46 am #55443In reply to: Converting from: PunBB to PHPBB to BBPresslonemadmax MemberIf punbb uses the same markup in posts that phpBB uses (the square bracket things) maybe a few changes to phpbb2bbpress can give you a direct conversion script. I could have a look if you provide me with a database dump from punbb. Also, if you are trying multistep conversions, there’s a script to go from SMF to bbPress  March 8, 2007 at 9:53 pm #55418 March 8, 2007 at 9:53 pm #55418In reply to: Allowing HTMLlarsjensen MemberI sure do, thanks a bunch!  March 8, 2007 at 4:06 pm #55338 March 8, 2007 at 4:06 pm #55338In reply to: Modifying the topic tag listStaffan MemberAlright! I did it. And if anybody wants to know, here’s how: This code in the stylesheet ul.taglista { list-style: none; margin: 0; padding: 0; }
 ul.taglista li { display: inline; }
 ul.taglista li:after { content: ","; }
 ul.taglista li:last-child:after { content: ""; }And this in topic-tags.php <?php if ( $user_tags ) : ?>
 <?php _e('Your tags:'); ?>
 <ul class="taglista">
 <?php foreach ( $user_tags as $tag ) : ?>
 <li id="tag-<?php echo $tag->tag_id; ?>_<?php echo $tag->user_id; ?>"><a href="<?php tag_link(); ?>" rel="tag"><?php tag_name(); ?></a> <?php tag_remove_link(); ?></li>
 <?php endforeach; ?>
 </ul>
 <?php endif; ?>It won’t work in IE, but that’s fine with me. Thanks for the help! March 8, 2007 at 1:51 pm #54281In reply to: Patch: Categories for version 0.8spencerp MemberAlright, I just went ahead and remove those two things. I’m planning on working at the Gathering theme for bbPress now… Thanks again Sam for everything!  spencerp March 8, 2007 at 1:04 pm #52903In reply to: MediaWiki, bbPress, and WordPress integration..spencerp MemberUPDATE: I’ve decided to remove my MediaWiki, or better known as the Codex. I merely installed it to play around, customize, and get familiar with it. The whole reason for removing it is, I really don’t have the time for it. I don’t have time to add anything to it, make a theme for it, and customize it anymore. As for this article, it’s still a good reference guide as what To-Do for getting your MediaWiki, bbPress, and WP login/registration working together.  I hope you find it as useful as I did. Well, I guess that’s it for now. Tata. I hope you find it as useful as I did. Well, I guess that’s it for now. Tata.spencerp wenkong Memberjust now i key in the chinese character Tag, but not show in HOT Tag. which version can support Unicode or other languages Tag? March 8, 2007 at 7:35 am #55361In reply to: Pretty Permalinks Not Workinglaemo MemberTrent, I have read the FAQs for my hosting account (Linux hosting) at GoDaddy, and it says that the server is mod_rewrite enabled. It is evident from the fact that my wordpress install works fine with custom permalinks. Tried even using the stuff spewed by rewrite-rules.php. Nothing seems to work!  Mirce, I had disabled pretty permalinks for a while in between and I believe that is around when you must have checked the forums. wyDay, I have kept the .htaccess file for about a day now, no results yet  Should I perhaps try to reinstall bb-press? The only thing I am concerned about is losing my WP data because I believe wp-users is one table that is shared if both are installed in the same database. I would really like to get my pretty permalinks to work. I have tried both the tricks mentioned in the FAQ, still I am a bit clueless.. 
- 
		AuthorSearch Results