send information from the thickbox image uploader second tab

So i decided that for me, i can settle for changing an input field on the top.parent for it to be used with the native options. i used this for the function of the iframe tab: function media_upload_choosebackground_form() { media_upload_header(); ?> <h3 class=”media-title”>HTML Form</h3> <img src=”http://www.mimi.me/wp-content/themes/mimi.me_regular_sites/images/background-Green-stripes-thumb.jpg” style=”cursor:pointer; float:left; margin:10px 0 0 10px” id=”greenstripes” title=”Green Stripes” … Read more

modify buddpress adminbar only in admin pages

You ca use the conditional tag is_admin() to check if you are on the front-end or back-end like this: function bp_adminbar_currentsite_menu() { global $bp; if (!is_admin()){ ?> <li> <!– Insert your link url or relative url, and your link text below –> <a href=”http://EXAMPLE.COM”>EXAMPLE LINK TEXT</a> </li> <?php } } // Call The Function Above … Read more

How to fix broken admin Thickbox?

Update: I fixed the issue myself. The problem was resulting from where I had removed jQuery output from the front end of my site (using my own version) improperly. It was not an issue with WordPress itself. The function I was using to unset it removed it from the admin as well. I hadn’t realized … Read more

WordPress plugins not showing after switching servers

I found the issue. The problem was that there were two plugins I was using (A facebook likebox and a twitter plugin) and apparently these plugins are pretty well known to break other plugins on the site if they are installed. I removed those to plugins and then the rest of my plugins all started … Read more

Exclude admin from the top commenters list [duplicate]

Assuming the comment_author is a User ID, try: if(user_can($result->comment_author,’manage_options’)){ $output .= “<li>”.(($result->comment_author_url) ? “<a href=””.$result->comment_author_url.””>” : “”).$result->comment_author.(($result->comment_author_url) ? “</a>” : “”).” (“.$result->comments_count.”)</li>”; } If not, one can use get_comment, and select the comment_ID in the SQL statement. You can then use the object returned to grab the user ID of the comments author, and do … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)