Search Results for 'code'
-
AuthorSearch Results
-
February 27, 2007 at 11:30 pm #54907
In reply to: Integrating Aggrss into bbPress theme?
CMoseley
MemberI’m not sure exactly what your asking. I copied and pasted the code in my WordPress template into my bbPress template. Works fine in WordPress, gives me the above error in bbPress.
The code I used was:
<?php
if ($rs = aggrss('http://onctalk.com/wp-commentsrss2-custom.php'))
{
// dump the structure
//echo "<pre>";
//print_r($rs);
//echo "</pre>";
echo "<a href='" . $rs[link] . "' style='color: #000000; font-weight: bold;' >" . $rs[title] . "</a>";
echo $rs[description] . "<br />";
foreach ($rs['items'] as $item)
{
echo "<p><a href='" .$item['link']. "'>" . $item['title'] . "</a><br/>" .html_entity_decode($item['description']). "</p>";
}
if ($rs['items_count'] <= 0) { echo "Sorry, no items found in the RSS file <img src='http://www.soderlind.no/wp-includes/images/smilies/icon_sad.gif' alt='
' class='wp-smiley' /> "; }
}
else
{
echo "<!-- It's not possible to reach RSS file -->";
}
?>February 27, 2007 at 10:08 pm #55085In reply to: “/” Escaping issue within my posts
Null
MemberIt happens on this forum as well. You get more \every time you edit a post one is added.
Excample (used the code tags):
echo '<li><a href="link-to-your-thingy.com">Thingy-name</a></li>';I didn’t add any in it Also code between the code tags shouldn’t be altered at all.
Every time I edit this post (and leave the in) it wil ad 1 more…
Edit:
LOL seems to be fixed now :S
February 27, 2007 at 9:39 pm #55062In reply to: WordPress + BBpress vs. WordPress + Vanilla
flatworm
Memberif ( !defined('BBPATH') )
define('BBPATH', dirname(C:AllProgramingphp&mysql SERVERwordpressbbpress) . '/' );
require_once( BBPATH . 'C:AllProgramingphp&mysql SERVERwordpressbbpress' );
?>Are this last lines correct if the path to my bbpress is: “C:AllProgramingphp&mysql SERVERwordpressbbpress” ?
February 27, 2007 at 6:44 pm #54673In reply to: Import SMF to bbPress
vedmak
Member>>The only thing I can say is: have you deleted all occurrences of ut8_encode? There are more than one.
I deleted all ut8_encode. You can see my script.
>>If so, please send it to antiswen at yahoo dot es (yep, es, not com).
I don`t know spanish (yahoo dot es?), that is why i put it on my blog.
Download my script and SMF db
February 27, 2007 at 6:30 pm #50946In reply to: Quote Option
fel64
MemberHas anyone made a plugin for quoting posts? Is it under development? It’d be great.

By the way, Trent, not sure if you still use the same CSS but instead of declaring
border-xxxx:for each side you can simply declareborder:and it’ll apply for all sides.
February 27, 2007 at 8:21 am #55061In reply to: WordPress + BBpress vs. WordPress + Vanilla
fel64
MemberHave you entered all the right details in your
config.php? Since you’re sharing databases it should have the same database info (name, user, password) as wordpress’swp-config.php.Yeah I call this a debugged version – Chrishajer sums it up nicely.
February 27, 2007 at 4:14 am #54342In reply to: Updated to Desmond But Theme Not Working
kirkk
MemberTo fix this, i have uploaded all my files and directories without installing them on localhost… First, i uploaded wordpress to my web server and installed it then uploaded bbpress and installed it on web server…
… before of that “above” , i had installed both of them on my localhost then i had uploaded them to my web-server, but that moment i had problems with slashes. Because there is an confusing section about slashes between the normal windows and web server…
And i recommend that do not change the folder name of your “bbpress” after u upload it to your web server . I tried it two or three times after i installed both of my wordpress and bbpress on my web server, it caused slashes to head backwards…
Now i have solved all my problems

forward to hearing from you with the same

(sorry for my english if i made any mistake, it is not my first language)
February 27, 2007 at 3:23 am #50263In reply to: Users dont receive password after registration
master5o1
ParticipantI am looking for a similar/same fix. I have no smtp/mail sending abilities, and I am looking for a way to print it nicely on screen. Can one of you please explain the above ‘fix’
I’ve just begun attempting to use php so I don’t quite understand yet.
February 27, 2007 at 12:54 am #54341In reply to: Updated to Desmond But Theme Not Working
ccmve
MemberI’m having a similar problem.
I’ve uploaded my custom theme to /my-templates/mytheme
The default theme is in /bb-templates/kakumei/
The site is working fine, but I see this error: “Theme not found. Default theme applied.” And I cannot switch to my custom theme. The reason is in the URL to the custom theme in the presentation>themes panel:
http://
forum.mybbpress.com/bb-admin/themes.php? theme=C:\WWW\PUBLIC\forums.mybbpress.com/ bb-templates/mytheme/&_wpnonce=36ec0251ebObviously that URL won’t work. I’ve uploaded both plugins above. Neither worked. How do I fix the URL to mytheme?
February 26, 2007 at 11:47 pm #54404In reply to: REQ: Theme demo switcher like phpBB
lonemadmax
MemberNew version, same link. No need to touch core files now. It relies on the bb_foot action to inject the box. More info in the README.
February 26, 2007 at 11:12 pm #54624In reply to: Plugin: bbMenu 1.0
fel64
MemberUse function_exists( string $function_name );
I don’t know how your plugin works, but if you made any calls to hooks then they simply won’t be called (as far as I understand it). Your code will probably also not be loaded. This plugin inactive shouldn’t be a problem?
February 26, 2007 at 11:04 pm #55056In reply to: WordPress + BBpress vs. WordPress + Vanilla
fel64
MemberWhat do you mean by manual?
You have to change some settings in config.php, but that’s it. Nothing a monkey with a keyboard and a human to do the work for him couldn’t do … really, it’s simple.
No editing code or the like. Even if it’s in a different subdomain you barely have to do anything.Certainly doesn’t sound as much work as installing Vanilla – bbPress is set up to use mostly the same tables as WP already …
February 26, 2007 at 11:02 pm #53925In reply to: post or reply by email
fel64
MemberWhile it sounds like somewhat useful functionality, I don’t want it – if it was enabled by default in bbPress, I’d even want to turn it off. Anything that means users can just visit once, know that they’re going to get any answers and never have to come back is that you’re going to get a lot of users who do just that. I would much rather they check regularly, sometimes see something that catches their eye and hang around … It just sounds like a feature that hinders a community building up.
February 26, 2007 at 9:20 pm #1486Topic: WordPress + BBpress vs. WordPress + Vanilla
in forum Installationflatworm
MemberIt requires alot of pain in the *** to install Vanilla on WordPress.
I do not want to do it manualy.
<b>Does this thing require a manual hookup?<b/>
Does it still have the bug that had to be solved by editing the code?
February 26, 2007 at 9:19 pm #54672In reply to: Import SMF to bbPress
lonemadmax
MemberI’m very sorry to hear that. The problem is most probably in the script; as I said, I’m a complete newbie to php and databases, and just modified the script without really knowing how much of it worked. The only thing I can say is: have you deleted all occurrences of ut8_encode? There are more than one. Also utf8_decode may give you problems, but I don’t think they’d be the ones your seeing.
Is there any chance that I could get a dump of your database? (A fake one, with russian characters in fake posts and fake users from SMF in the same conditions as the real one, so that I can play with it here.) If so, please send it to antiswen at yahoo dot es (yep, es, not com). Oh, and please zip it or something so that yahoo doesn’t mess with the text.
February 26, 2007 at 8:13 pm #54621In reply to: Plugin: bbMenu 1.0
Null
Membersuleiman, I am still trying to figure out why the damn thing won’t install for you. I am kinda busy at the moment so it could take some time.
For template builders I have the following message:
If you build a template and want to make it compatible with bbMenu you can use the code below.
It shows the bbmenu if it is installed, if not it will show nothing (or your own hardcode menu).
……..Changing code…….. stay tuned……….
February 26, 2007 at 5:42 pm #54275In reply to: Patch: Categories for version 0.8
spencerp
MemberSam, you ROCK!
That worked like a charm!!Thanks so much for posting the correction here, I just ran this one, and it worked!

patch -p0 <categories-build719.patch
Just wondering though Sam, when another patch is submitted, would I/”we” just use same method as before, or..? Cause I’m thinking, it would merge badly right? Or something might go awry right?
Since the patch basically creates files/ applies changes to the specific files.. and running another patch, would/could just make things messy right? Thanks again for adding the correction here…

spencerp
February 26, 2007 at 3:06 pm #55052In reply to: 3 question about bbPress
john24
MemberThank you. I am going to check the plugins for my needs and just have to find someone to fix my kitchen sink
February 26, 2007 at 12:46 pm #55007Fakey
MemberOh no, quite the contrary. The results are shown fine too. The problem is when the titles are show a local variable
$topicsis created:<?php
foreach ( $titles as $topic ) :
$count = $topic->topic_posts;
?>This is all fine and dandy, but, as you can see,
$topicis a local variable and won’t be any use further down the page when the code checks whether results have been returned or not.I hope I’m making myself clear. Let me reiterate just for kicks: The title results show up fine, but the php code prints “No results found.” as well. Just change
$topicsto$titlesin the following code in the template file “search.php”:<?php if ( !$topics && !$recent && !$relevant && !$users) : ?>
<?php _e('No results found.') ?>
<?php endif; ?>February 26, 2007 at 8:47 am #54274In reply to: Patch: Categories for version 0.8
Sam Bauers
ParticipantTo patch:
1. copy the patch file to the base directory of your forum
2. cd to the base directory of your forum
3. apply patch using:
patch -p0 <categories-buildXXX.patch
Where XXX is the build number.
Make sure there is no space between “<” and the start of the filename. That was a mistake in my instructions.
February 26, 2007 at 5:05 am #1480Fakey
MemberAfter a search for a word that appears only in the topic title (but not the tags, nor post content) the results are listed, followed by:
No results found.
This is because the
ifstatement is looking for the local variable$topics, instead of the correct variable$titles.It’s a small fix, but I didn’t know how to post on the bbPress bugtracker.
February 26, 2007 at 1:28 am #54273In reply to: Patch: Categories for version 0.8
spencerp
MemberThanks for your reply Sam…
Yeah, for the most part at least lol. Only thing I can’t seem to get working for me though, even followed your instructions over here:https://trac.bbpress.org/ticket/520#comment:30
Is applying a “patch” using SVN access… I’m on dreamhost, but, I go through the: START > RUN > CMD …. then login that way… I tried adding that line of code, and even uploaded the patch to my forums/ root directory.. used that:
$ patch -p0 < /path/to/patchfile/categories-build701.patch
Giving my path of “/public_html/forums/categories-build719.patch
And it fails to find such thing in that directory? I’m not a Pro at SVN-ing yet, but anyone with any thoughts, suggestions, and so forth? I was just going to download the lastest SVN files to the Desktop like normally did, and apply patch via Tortoise SVN.. and only upload those “patched” ones… into the forums/ root..
Does that sound like it’s my only option, or.. maybe someone can tell me for sure what to do, and how to do patches via SVN or whatever.. Thanks in advance..
*EDIT* Oh, or does it mean the WHOLE path? I’ll give that a whirl once then, won’t hurt lol.
spencerp
February 25, 2007 at 11:54 pm #54886Trent Adams
MemberIt requires you to create a file called .htaccess and place it in your bbpress root folder. Most works with just the following in it:
Options +MultiViewsOnce you have that in your .htaccess your can turn mod_rewrite on in the config.php and see if it works. If not, try taking that line out of the .htaccess and put whatever you have spit out of this file:
http://chezmauricekusadasi.com/yeni/forum/bb-admin/rewrite-rules.phpThen turn that with mod_rewrite on. If that doesn’t work, then it most likely isn’t going to I am afraid and you will have to turn the fancy URL’s off again!
Trent
February 25, 2007 at 11:41 pm #54340In reply to: Updated to Desmond But Theme Not Working
Trent Adams
MemberSorry, I should have done this sooner for you (just been crazy busy!). Create a file called whatever you want, but I recommend path-to-url.php and put the following in it and upload it to /my-plugins/ directory:
<?php
function fix_bb_path_to_url( $url ) {
$url = str_replace(array('//', '\\'), array('/', '\'), $url);
return preg_replace( '|
([^/])|', '
/$1', $url );
}
add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
?>That might work with the stylesheet issue. Let me know
Trent
February 25, 2007 at 11:31 pm #54272In reply to: Patch: Categories for version 0.8
Sam Bauers
ParticipantSound like you’ve got everything under control.
-
AuthorSearch Results