Search Results for 'code'
-
Search Results
-
hello I just finished Deep integration of my WordPress with BBpress.
I had no errors with installation so everything was right from that part.
but when I’m trying to view forum on the header I got eror :
Deprecated: Assigning the return value of new by reference is deprecated in /customers/a
And when Im trying log in or go to bb-admin Im geting that error :
Deprecated: Assigning the return value of new by reference is deprecated in
Anyone could help me with that ;/ cuzz Im noob from php and I would like to make it working ;/
please for help ;/
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
