nelsondaniel
Forum Replies Created
-
Hmm, I might finally be on to something here…
In
class-tabs-widget.php
at line 68 you loop through the created items and echo out whatever’s returned fromsiteorigin_panels_render()
. From what I can see you send in the same$post_id
for all of the tabs, resulting in them getting the same id once rendered. I tested to append a unique value to the variable and that actually worked for me. Don’t know what other consequences it might have, but now I’m finally able to have different column layouts on each of the tabs. ??Here an image of the duplicate panel-grid-cell ID’s in the code:
So since that occurs it’s quite logic that the two layouts are identical.
- This reply was modified 8 years, 3 months ago by nelsondaniel.
Hi again,
Thanks for your reply!
Yes, that’s correct. I’m unable to create different layouts for the different tabs. If I dont set a Row ID, tab 2 takes the same layout as tab 1(since tab 2 doesnt get an unique ID for some reason).
And if I manually set the Row ID’s they’re of course unique, but then the appended CSS(in siteorigin-panels-grids-wp_footer) isnt updated. Therefor all the columns gets the default value of 100%.
It’s a really strange issue. I have the latest versions of(and have reinstalled) the plugins and WordPress. Have even tried using standard WP-themes and disabling the few every plugins in use, without any difference.
I’m using the tabs on a custom post type, but that should matter either since I tried it on a page as well with the same result. So I dont get why it seems to be working everywhere else but not here.
The site is currently only running on my local machine via WAMP, so unfortunetely I cant give you an URL. But here a image of how it looks when tab 2 has a unique Row ID:
If only I could force the appended CSS to include the specified Row ID’s I could get everything to work as desired.
Cheers!
Forum: Plugins
In reply to: Adding comments to custom dynamic page?Cant find any info regarding the subject on the net, feels like it just isnt possible.
Is there any other way that I can comment dynamic content on a static page?
I guess that I could make a copy of WP’s comment files and DB and modify it to fit my needs but that feels a bit overkill… And will probably get lost in a future upgrade of WP.
Forum: Plugins
In reply to: Adding comments to custom dynamic page?Does no one have a clue/suggestion? ??
Forum: Plugins
In reply to: [Plugin: NextGen] Viewing many large/medium imagesI managed to create a function that does what I was looking for.
I created a new shortcode called [singlepics_gallery id=your_gallery_id] and it shows all the images in a gallery with a with the Alt./Title shown underneath and the description as a link on the image. It will probably need som tweeking for it to work as you like it to.File: “plugins/nextgen-gallery/shortcodes.php”.
I added this at line 23:
add_shortcode( 'singlepics_gallery', array(&$this, 'show_singlepics_gallery' ) );
I added this at line 182:
//*** START MOD *** function show_singlepics_gallery( $atts, $content = '' ) { global $wpdb; extract(shortcode_atts(array( 'id' => 0 ), $atts )); $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE gid = '$id' "); if(!$galleryID) $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE name = '$id' "); if( $galleryID ) { $images = $wpdb->get_results("SELECT pid, post_id, galleryid, description, alttext FROM wp_ngg_pictures WHERE galleryid=".$galleryID, OBJECT_K); if($images) { foreach ($images as $key => $image) $out .= nggSinglePicture($image->pid, '530', '530', '', 'center', '', $image->alttext, $image->description)."<br /><br />"; } } else {$out = __('[Gallery not found]','nggallery');} return $out; } //*** END MOD ***
Forum: Plugins
In reply to: [Plugin: NextGen] Viewing many large/medium imagesAm I the only one that want to publish larger images from a gallery without using alot of [singpic]′s? ??