Recent Topics

Enable/Disable display_voting_form

Started by on Jun 18, 2017 – Contents updated: Jul 14, 2017

Jun 18, 2017 23:27    

Is it possible to enable / disable this?

/**
 * Display a voting form
 *
 * @param array Params
 */
function display_voting_form( $params = array() )

Jun 19, 2017 00:13

Actually I found it can be set in Skin Settings. FYI the colorbox theme is hideous

colorbox-bootstrap.css

vs

colorbox.css

and the only way to change it is to hack it?

case 'colorbox_css_file':
						// CSS file of colorbox, @see require_js_helper( 'colorbox' )
						return 'colorbox-bootstrap.min.css';

Jun 19, 2017 00:16

					case 'colorbox_css_file':
						// CSS file of colorbox, @see require_js_helper( 'colorbox' )
						return 'colorbox/colorbox.css';

Jun 19, 2017 00:21

is there anyway to use "nickname" (preferred name) instead of the login here? Perhaps a setting for skin settings?

Jun 24, 2017 20:11

@achillis you can include this section of code into the _skin.class.php file of your skin:

	function get_template( $name )
	{
		switch( $name )
		{
		...
		...
			case 'colorbox_css_file':
				return 'colorbox/colorbox.css';

Regarding your latest comment, I can't even get the title of the image to be displayed in the zoom, so I don't fully understand what do you need, or how you put the username in that place. Please explain a bit more.

Regards!

Jun 24, 2017 22:17

okay, thank you for that, will get back to you.

Jun 25, 2017 03:21

To override returning user login since the $param can't be changed anywhere else

$User->login = $User->get_preferred_name();
					
					
echo $User->get_avatar_imgtag( $params['thumb_size'], $params['img_shape'].' img-responsive img-center', '', $lightbox, '', 'user', $tag_size );


Form is loading...

powered by open-source CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.