Questions tagged [thickbox]
Thickbox is a javascript library, incorporated into WordPress, that enables the generation of a lightbox both on the frontend and in de admin area.
64
questions
0
votes
0
answers
66
views
WordPress Thickbox Navigation Issue in Gallery
I am adding an image gallery via wp media uploader. In the frontend, I am trying to show these images in Thickbox pop-up. However, it shows the images in pop-up but when I navigate [next and prev ...
0
votes
1
answer
69
views
WP Dashboard video modal on load
I was able to create a dashboard modal using add_thickbox();, triggered by a link:
<a href="#TB_inline?width=600&height=550&inlineId=my-content-id" class="thickbox">View my inline ...
0
votes
0
answers
2k
views
open modal window
I am working on a site where HR employees are managing applicants for jobs. I'm currently trying to add a modal window on a custom admin dashboard that will let a user quickly change an applicant's ...
1
vote
1
answer
1k
views
Custom Thickbox Broken on Dashboard Page?
I'm working on an extension that, as part of its functionality, adds Thickboxes to many pages in the Wordpress admin. On most pages this works fine -- I use an in_admin_footer action hook to call ...
0
votes
1
answer
503
views
Wordpress Admin Thickbox: Remove Margins/Padding
I've added a Thickbox to an admin page by adding the the following action hook to add the library code
add_action( 'in_admin_footer', function(){
add_thickbox();
});
And then triggering ...
2
votes
1
answer
203
views
Open upload media dialog from thickbox
I'm using Thickbox (lightbox) built-in in WordPress to display some controls for user, some of controls using javascript to open dialogs like Upload Media that is already works fine outside the ...
1
vote
1
answer
510
views
How to customize WordPress Thickbox?
I've been able to do a certain amount of styling via CSS, but I'd like to add divs and more to the navigation elements - in other ords, I need to be able to somehow edit the actual js file, but ...
1
vote
1
answer
450
views
How to open the add media dialogue it in a certain state / tab?
I created a customized wp_view similar to embed (see wp-includes/js/mce-view.js, l. 868).
I also have my own tab in the "add media" dialog. Naturally I want the edit button of my wp_view opening the ...
0
votes
1
answer
115
views
Media button Thickbox content doesn't work everywhere
Please, understand that I'm new to wordpress and php.
I added a media button to my media buttons in the admin by adding the following code to functions.php file:
function add_custom_media_button() {
...
1
vote
1
answer
10k
views
Showing a Thickbox (tb_show) does nothing
I'm trying to add a media uploader to a widget/plugin and I'm at the stage where I need to add a picture from the media library (or upload a new one).
I added some javascript and added an event to a ...
0
votes
2
answers
2k
views
Form within thickbox
When I try and insert a form into a thickbox for use in the admin area, it seems to be removed completely. What do I need to change?
<?php
// Enqueue thickbox js and css
add_thickbox();
?&...
2
votes
1
answer
1k
views
Run script after clicking Set Featured Image in Media
I would like to run some script to get the featured image's width and height after the user clicked 'Use Featured Image' button and use the data retrieved within the Post Edit screen. Is there such ...
0
votes
1
answer
513
views
How would I get this to work - send to post from thick box
I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
0
votes
0
answers
444
views
wp media popup close all popup
I am having a problem, regarding wp media popup, I am using a thick box for some data insertion. Now from that thick box the media popup is callled. Now from media popup when I click on 'insert into ...
0
votes
0
answers
406
views
Is it possible to load an admin page inside a thickbox?
I'm currently trying to load a custom made admin page inside a thickbox. It's for creating new users with loads of extra custom data and none of the stuff I don't care about. Administrators can ...
12
votes
1
answer
3k
views
Custom media upload content for inserting custom post shortcode
I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post.
The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ]
And it works ...
0
votes
0
answers
172
views
Is it possible to upload multiple images via Media Library tab in Thickbox I've created?
I have a meta box upload button and I want to upload multiple images using that button.
Firstly I enqueue required scripts:
add_action( 'admin_print_scripts-post-new.php', 'mycpt_admin_script', 11 );...
9
votes
2
answers
2k
views
ThickBox replacement
I'm searching, unsuccessfully unfortunately, for a ThickBox replacement used in Media Uploader.
Any search fails on how to leverage Media Uploader and nothing about a script used for modal windows.
...
0
votes
1
answer
2k
views
Thickbox in Plugin settings page?
I adding the default wordpress thickbox in the admin page to show some information inside the div. Everything seems ok when i click that link it appear in popup now
<a class="thickbox" href="#...
1
vote
1
answer
2k
views
Loading WP core Thickbox through frontend
Looking through some of the top Google results, this question has been answered a number of times, but the answers given don't seem to be working in my WP 3.6 install.
One solution given is this:
...
4
votes
6
answers
7k
views
ThickBox width can't be changed in admin
I'm trying to make pop up in admin area (in post edit screen) and i can't make my thickbox wider then 670px (width: 670px).
Here's my thickbox code that shows thickbox:
tb_show( ed.getLang('m7....
1
vote
1
answer
1k
views
Thickbox doesn't respect dimensions when used in admin [duplicate]
I'm writing an admin plugin which produces a pop up to give the user a preview of content.
I tried to use thickbox as suggested here - http://codex.wordpress.org/ThickBox but it does not respect ...
0
votes
0
answers
480
views
Thickbox not displaying just the image, instead showing full page in lightbox
I have implemented Thickbox into my wordpress theme. I have a regular Wordpress gallery that now has the lightbox when you click on any of the images. When clicked the lightbox shows up. However, ...
3
votes
1
answer
4k
views
Issues creating a tinyMCE plugin that creates a custom link
I'm working on a plugin that works similar to the "link" button on tinyMCE:
The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
5
votes
1
answer
38k
views
Lightbox popup on WooCommerce add_to_cart action
I would like to create a modal 'pop-up' window in WooCommerce to appear when the "Add to cart" button has been clicked. This has to occur after the WC actions that actually add the product to the cart ...
0
votes
1
answer
220
views
where does my function output from load-* go?
I've got a function hooked into load-edit.php that prints out print content:
add_action('load-edit.php', array($this, 'generate_bulk_print_content'));
public function generate_bulk_print_content() {
...
0
votes
1
answer
133
views
Hide the 'Gallery Settings' section of the Gallery tab of the media Thickbox
When I invoke the media uploader from a certain page, I'm looking for a way to hide all of the 'Gallery Settings' options at the bottom of the Gallery tab. I have set a referrer (dd-options-footer), ...
0
votes
1
answer
3k
views
How do I make Contact Form 7 pop up in thickbox? [closed]
I am trying to make contact form 7 pop up in a thickbox modal window. I can either use do_shortcode or the shortcode but I'm not sure how to set it up. Can someone push me in the right direction?
...
0
votes
1
answer
460
views
Thickbox 'tb_unload' function being called twice
When closing the Thickbox (by clicking on the cross), I am invoking the following function, by hooking it to the tb_unload action. However, the action is being called twice for some reason, and I don'...
0
votes
2
answers
138
views
Only make custom image size if uploaded via Thickbox and attached to certain page
I am trying to make it so that WP will create another size image for me, but only when the image is uploaded via the Thickbox, and only when it will be attached to a certain ID.
Does anybody know how ...
4
votes
1
answer
10k
views
how to use thickbox in admin?
I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed ...
1
vote
1
answer
2k
views
How to Add Custom CSS to the Media Thickbox?
I've added a couple of custom fields to the Edit Media screen, but when these are displayed in the WP Media Thickbox (when adding images from the Edit Post screen, for example), the styling is gone.
...
2
votes
2
answers
309
views
Wordpress native thickbox language
Is there any clean way (not overwriting wp-includes\js\thickbox\thickbox.js file) to translate english next/ prev/ image # of # and Close tooltip in Wordpress native Thickbox script?
1
vote
0
answers
613
views
Show/hide button in thickbox depending on from which page it is opened
I use the Taxonomy Images plugin and it generates a button in the thickbox for associating an image with a term (see screenshot). Due to the fact that I can only associate terms with images in a ...
2
votes
2
answers
2k
views
Getting RID of thickbox!
I want to get rid of the complete thickbox css js and loading gif. Can anybody give me the correct way to get rid of it all via functions.php ?
Cheers,
Alex
3
votes
1
answer
2k
views
Error with Custom Admin Screen in iframe Thickbox
I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
0
votes
2
answers
636
views
include shortcode values in Thickbox form
I have a shortcode that is built using a Thickbox form with various inputs that return the values. This works fine. However, I would like the existing values (if present) to re-populate the form if ...
0
votes
1
answer
750
views
Custom Text in Media Uploader in a Theme Options Page
I want to replace the media uploader thickbox text only if it's used in the theme options page. If it is used in the Post then I don't want to make any changes.
I am trying the following code, but ...
2
votes
1
answer
811
views
Access tinymce from thickbox
Basically, I have a custom tinymce button which opens a thickbox window in iframe mode.
Is there a way to access the tinymce from the iframe? Wordpress media uploader seems to do it somehow.
Stuff ...
0
votes
1
answer
808
views
Custom Jquery in admin breaks media-upload script
I have this part of code which loads custom version of jquery
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://code.jquery.com/jquery-latest.min.js"), false, '');
...
3
votes
1
answer
3k
views
How to enlarge thickbox media library iframe?
The iframe in thickbox media library is not big enough to display my custom tab. I tried to add "width=900&height=600" at the end of the link that pointing to the library, but no luck. How can I ...
0
votes
2
answers
1k
views
Add text to metabox input text field from Thickbox
I have a custom post type with a metabox text input area that I want to have a shortcode inserted into from a thickbox when a link is clicked on from the modal window. Using the code below right now ...
4
votes
1
answer
2k
views
Image uploader with "Set Featured Image" link on front end
I am loading upload-media.php file using thickbox on front end where user can upload images to the post.
Question: How to I trigger the upload-media.php so the link "set featured image" shows up on ...
0
votes
3
answers
1k
views
thickbox never gets called (weird behavior)
I have the exact same files (except for wp-config) running on a local server and a test server, and in my functions.php I have this:
function len_scripts() {
if (!is_admin()):
...
0
votes
1
answer
636
views
How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality
I have create a custom post type with meta boxes.
In metaboxes I have create some fealds that the use can use the WordPress ThickBox Media Dialog to upload his/her images for each post seperatly.
...
4
votes
1
answer
1k
views
Thickbox hacking - removing fields
Default (big and ugly) Thickbox
I don't like how this Thickbox's page looks at all, I almost never use all these settings fields so decided to get rid off them, at least on pages where I'm uploading ...
4
votes
2
answers
2k
views
Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
I'm working on my admin area theme and I wanted to make some modifications on the way the thickbox and tinyMCE looks. I could make most of the changes through adding custom stylesheets and JS to my ...
0
votes
2
answers
3k
views
Adding URL of PDF from Thickbox in a Meta Box
I have created some meta boxes of pages on the theme i'm working on.
The idea is to have a input field, then a button to upload files.
The meta box is working properly.
When I click on the button, ...
2
votes
1
answer
976
views
How to hook into wordpress admin upload iframe?
I have written a plugin which lets the user upload file attachments for using WordPress as a download site.
So I have added a meta box which shows the user the files he has uploaded for every post. ...
0
votes
1
answer
3k
views
How to modify iFrame content in an admin thickbox
I have a link in a metabox that brings up a Thickbox iFrame of another page on my site. It works fine, except that I can't seem to affect the DOM of the page in the iFrame.
What do I have to do to ...