Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter zkorwin

    (@zkorwin)

    OK, editing wp-includes/functions.php at around line 1063 has an effect but only if you’re not logged in as an administrator.

    Thread Starter zkorwin

    (@zkorwin)

    So editing the wp-includes/functions.php file does have an effect, it just doesn’t show if you’re logged in as an administrator.

    Thread Starter zkorwin

    (@zkorwin)

    Anyone please?

    Thread Starter zkorwin

    (@zkorwin)

    I was thinking that it puts a default image in when no image is present which is not the case. I fixed it so it can do that however. Put this code:

    if($pos===false){
    echo("<img src=\"https://www.yoursite.com/yourimage.jpg\" class=imgtfe hspace=5 align=left width=100 height=58 border=0>");
    }

    Before this:

    if($pos!==false){
    		$content=substr($content,$pos,stripos($content,">",$pos));
    		$pos = stripos($content,"src=")+4;
    		$stopchar=" ";

    Where you would just replace the attributes with ones that you need.

    If you’re still interested in an answer to this, I think I happened upon one when I was trying to fix another problem I ran into with this plugin.

    You can change the options you’re trying to change in the jquery.lightbox.js file, which look like this:

    // Options
    
    		constructed:		false,
    
    		src:				null,		// the source location of our js file
    		baseurl:			null,
    
    		files: {
    			// If you are doing a repack with packer (https://dean.edwards.name/packer/) then append ".packed" onto the js and css files before you pack it.
    			js: {
    				lightbox:	'js/jquery.lightbox.js',
    				colorBlend:	'js/jquery.color.js'
    			},
    			css: {
    				lightbox:	'css/jquery.lightbox.css'
    			},
    			images: {
    				prev:		'images/prev.gif',
    				next:		'images/next.gif',
    				blank:		'images/blank.gif',
    				loading:	'images/loading.gif'
    			}
    		},
    
    		text: {
    			// For translating
    			image:		'Image',
    			of:			'of',
    			close:		'Close X',
    			closeInfo:	'You can also click anywhere outside the image to close.',
    			download:	'Direct link to download the image.',
    			help: {
    				close:		'Click to close',
    				interact:	'Hover to interact'
    			},
    			about: {
    				text: 	'jQuery Lightbox Plugin (balupton edition)',
    				title:	'Licenced under the GNU Affero General Public License.',
    				link:	'https://jquery.com/plugins/project/jquerylightbox_bal'
    			}
    		},
    
    		keys: {
    			close:	'c',
    			prev:	'p',
    			next:	'n'
    		},
    
    		handlers: {
    			// For custom actions
    			show:	null
    		},
    
    		opacity:		0.9,
    		padding:		null,		// if null - autodetect
    
    		speed:			400,		// Duration of effect, milliseconds
    
    		rel:			'lightbox',	// What to look for in the rels
    
    		auto_relify:	true,		// should we automaticly do the rels?
    
    		auto_scroll:	'follow',	// should the lightbox scroll with the page? follow, disabled, ignore
    		auto_resize:	true,		// true or false
    
    		ie6:			null,		// are we ie6?
    		ie6_support:	true,		// have ie6 support
    		ie6_upgrade:	true,		// show ie6 upgrade message
    
    		colorBlend:		null,		// null - auto-detect, true - force, false - no
    
    		download_link:	true,		// Display the download link
    
    		show_linkback:		true,	// true, false
    		show_info:			'auto',	// auto - automaticly handle, true - force
    		show_extended_info:	'auto',	// auto - automaticly handle, true - force	
    
    		// names of the options that can be modified
    		options:	['auto_scroll', 'auto_resize', 'download_link', 'show_info', 'show_extended_info', 'ie6_support', 'ie6_upgrade', 'colorBlend', 'baseurl', 'files', 'text', 'show_linkback', 'keys', 'opacity', 'padding', 'speed', 'rel', 'auto_relify'],

    In order to make the changes to the jquery.lightbox.js file appear on your site, however, you first have to open up the jquery-lightbox.php file and change:
    wp_enqueue_script('jquerylightbox', $path.'/jquery.lightbox.packed.js', array('jquery'), '1.3.5');

    to:
    wp_enqueue_script('jquerylightbox', $path.'/jquery.lightbox.js', array('jquery'), '1.3.5');

    and the changes should be reflected.

    In case anyone’s still interested in an answer to this question (which I very, very, very much was), here it is:

    Open the jquery-lightbox.php file and find this piece of code:

    wp_enqueue_script('jquerylightbox', $path.'/jquery.lightbox.packed.js', array('jquery'), '1.3.5');

    and change it to:

    wp_enqueue_script('jquerylightbox', $path.'/jquery.lightbox.js', array('jquery'), '1.3.5');

    Now all of the changes you make to jquery.lightbox.js will be reflected on your site.

    I had this problem too. I found a website which recommended creating a file called “php.ini” (without quotes) and placing it in the wp-admin directory of your website. Inside the file put: “memory = 20MB” (without the quotes).

    This worked for me.

Viewing 7 replies - 1 through 7 (of 7 total)