Search Results for 'code'
-
Search Results
-
Hey.
When i tried Easy Video Embed i had alot of problems with all IE versions.
Now i added the new <iframe> from youtube in it. Also i updated the old code and made that for IE only, cause they dont support html5. I cant contact or add the new files so maybe sombody else wants to?
O yeah it works on 1.0.3 of course
here is the new code:<br />
function ae_detect_ie()<br />
{<br />
if (isset($_SERVER['HTTP_USER_AGENT']) &&<br />
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))<br />
return true;<br />
else<br />
return false;<br />
}</p>
<p>...............................(60 lines of code)</p>
<p>if (ae_detect_ie())
{$post_text = preg_replace('#[video]http://([a-zA-Z0-9]+.|)youtube.com/.*v=([a-zA-Z0-9_-]+).*[/video]#i', ' <object width="640" height="510"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/\2" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="510"></embed></object>',$post_text); }
else
{ $post_text = preg_replace('#[video]http://([a-zA-Z0-9]+.|)youtube.com/.*v=([a-zA-Z0-9_-]+).*[/video]#i', '<iframe title="YouTube video player" width="853" height="510" src="http://www.youtube.com/v/\2"frameborder="0" allowfullscreen></iframe>',$post_text);<br />
} </p>
<p>test it here:
Hi, I’m working on a plugin for the bbpress plugin version. I’m trying to add private messages to the bbpress plugin, and I have already done a lot of work on it.
My problem is I’m trying to add a page in the bbpress profile to display the private messages. I’m trying to do it by modifying /bbpress/bbp-themes/bbp-twentyten/bbpress/user.php so it looks like this:
$_GET["page"] = $wpbbpmpage;
if( $wpbbpmpage == recieved ) {
get_template_part( ‘bbpress/user’, ‘pm-recieved’ );
}
elseif( $wpbbpmpage == sent ) {
get_template_part( ‘bbpress/user’, ‘pm-sent’ );
}
else {
// Profile details
get_template_part( ‘bbpress/user’, ‘details’ );
// Subsciptions
get_template_part( ‘bbpress/user’, ‘subscriptions’ );
// Favorite topics
get_template_part( ‘bbpress/user’, ‘favorites’ );
// Topics created
get_template_part( ‘bbpress/user’, ‘topics-created’ );
}
So that when the url is http://siteurl.com/users/username/?page=sent a list of all the private messages that the user sent will be displayed, and when the url is http://siteurl.com/users/username/?page=recieved a list of all the private messages that the user has received will be displayed. Right now the code isn’t working, and I have no idea why. If someone could tell me where I’m going wrong, I would appreciate it a lot.
NOTE: This is my first wordpress plugin, and I’m pretty proud of myself for coming this far

Thank’s for your help,
-Christofian
I installed bbpress the other day, I then found that when i tried to edit the theme I got error messages, so I reuploaded bbpress, and now i’ve got error messages at the top, http://technomaniacs.co.uk/bbpress/bb-admin/install.php, take a look for yourself. The code is in white at the top so you’ll have to highlight it to read it. Also, when i installed the first time i think these error messages where there then.
How do i fix this?
thanks
I wonder if anyone can help please. I have run an update to a WordPress site (created by someone else) that had bbpress integrated. I didn’t upgrade BBpress. Before the WP upgrade, the forum was working fine. However since the wordpress upgrade (from 2.9.2 to 3.1) we are having the following problems:
1) I cannot access the bbpress admin panel
2) The Forum is showing posts and topics but the reply form is missing (only the heading shows)
3) I cant see any way of creating posts, topics or threads so I presume something else is missing…
I had to rewrite the WordPress theme files as the original custom theme had been so badly coded / core hacked etc. I haven’t touched the custom bbpress theme so thought it would be something to do with that. So first thing I did was disable it and enabled the default bbpress theme (through phpmyadmin) but have exactly the same set of problems – which to me rules out a theme issue.
Anybody have any ideas where to start? Sorry I am not sure of bbpress version. Where do I find that?
Topic: Integration issues
Hi all,
I’m sure this has been covered a few times, but here goes.
Cookies obviously aren’t working, because I’m getting booted out of wp-admin when logged into bbpress and visa versa.
Have installed the bbPress integration plugin with settings in wp-admin like so:
bbPress URL: http://website.com/forum/
Your Plugins URL: http//website.com/forum/bb-admin/plugins.php
Wordpress type: WordPress
Added this code to the very bottom of wp-config.php
define( ‘COOKIEPATH’, ‘/’ );
In bb-admin, I’ve got:
Wordpress address: http://website.com
Blog address: http://website.com
WordPress “auth” cookie salt: (auth_salt wasn’t present in the wp admin page, anyway I took the code from wp-config.php)
WordPress “secure auth” cookie salt: (as above)
WordPress “logged in” cookie salt: (as above)
Manually entered codes so the following match
AUTH_KEY / BB_AUTH_KEY
SECURE_AUTH_KEY / BB_SECURE_AUTH_KEY
LOGGED_IN_KEY / BB_LOGGED_IN_KEY
And that’s where I’m at. Can someone tell me what I’m missing?
I’m not going to worry about database sharing right now – is that advisable? Or is it highly recommended?
Also what should I have the wordpress roles set to for each one of these?
WordPress Administrator
WordPress Editor
WordPress Author
WordPress Contributor
WordPress Subscriber
Thanks for the help!