medinauta
Forum Replies Created
-
I forgot 1 more step:
3a. Look for:
<option value="list-grouped"<?php selected($display_type, 'list-grouped');?>><?php _e('List - grouped by date', GCE_TEXT_DOMAIN); ?></option>
and add this right after:
<option value="titles"<?php selected($display_type, 'titles');?>><?php _e('Title List', GCE_TEXT_DOMAIN); ?></option> <option value="titles-grouped"<?php selected($display_type, 'titles-grouped');?>><?php _e('Title List - grouped by date', GCE_TEXT_DOMAIN); ?></option>
RESOLVED:
1. Open /widget/gce-widget.php
2. Add two new “cases” to the SWITCH:case 'titles': echo '<div class="gce-widget-list" id="' . $args['widget_id'] . '-container">'; //Output main widget content as list gce_widget_content_title_list($feed_ids, $title_text); echo '</div>'; break; case 'titles-grouped': echo '<div class="gce-widget-list" id="' . $args['widget_id'] . '-container">'; //Output main widget content as a grouped list gce_widget_content_title_list($feed_ids, $title_text, true); echo '</div>'; break;
3. Right before the end, add a new function:
function gce_widget_content_title_list($feed_ids, $title_text, $grouped = false){ //Create new GCE_Parser object, passing array of feed id(s) $list = new GCE_Parser(explode('-', $feed_ids), $title_text); //If the feed(s) parsed ok, output the list markup, otherwise output an error message if(count($list->get_errors()) == 0){ echo $list->get_title_list($grouped); }else{ printf(__('The following feeds were not parsed successfully: %s. Please check that the feed URLs are correct and that the feeds have public sharing enabled.'), implode(', ', $list->get_errors())); }
4. Open /inc/gce-parser.php
5. Right before “//Returns the event information markup for the specified event (type = tooltip or list)” add this function:function get_title_list($grouped = false){ $event_days = $this->get_event_days(); //If event_days is empty, there are no events in the feed(s), so return a message indicating this if(count((array)$event_days) == 0) return '<p>' . __('There are currently no upcoming events.', GCE_TEXT_DOMAIN) . '</p>'; $today = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $markup = '<ul class="gce-list">'; foreach($event_days as $key => $event_day){ //If this is a grouped list, add the date title and begin the nested list for this day if($grouped){ $markup .= '<li' . ($key == $today ? ' class="gce-today"' : '') . '>' . '<p class="gce-list-title">' . $this->title . ' ' . date_i18n($event_day[0]->get_feed()->get_date_format(), $key) . '</p>' . '<ul>'; } foreach($event_day as $event){ //Create the markup for this event $markup .= '<li class="gce-has-events">' . //If this isn't a grouped list and a date title should be displayed, add the date title ((!$grouped && isset($this->title)) ? '<p class="gce-list-title">' . $this->title . ' ' . date_i18n($event->get_feed()->get_date_format(), $key) . '</p>' : '') . //Add the event title '<p class="gce-list-event">' . esc_html($event->get_title()) . '</p> <div class="gce-event-info"> <ul><li>' . //Add the date to the event ((!$grouped && !isset($this->title)) ? '<p class="gce-tooltip-event">' . $this->title . ' ' . date_i18n($event->get_feed()->get_date_format(), $key) . '</p>' : '') . $this->get_event_info_markup($event, 'tooltip') . '</li></ul></div></li>'; } //If this is a grouped list, close the nested list for this day if($grouped) $markup .= '</ul></li>'; } $markup .= '</ul>'; return $markup; }
6. Add a couple of styles at the bottom of /css/gce-style.css:
.gce-list .gce-has-events .gce-event-info{ /* Event information */ display:none; /* Important! */ } .gce-widget-list .gce-list .gce-list-event{ /* The event title */ cursor:pointer; color:#25A; }
7. Now you will have 2 more options in the widget: “Title List” and “Title List -ordered by date”
Just check in the configuration setup (“options/slideshow” menu) if “Enable flash slideshow” is selected. I believe that your problem only happens when using the javascript slideshow (the non-flash version).
I guess you are using the non-flash slideshow, right?
Forum: Plugins
In reply to: Change the amount of thumbnail displayBy default the gallery’s number of columns is set to “0”, so now the gallery is showing the maximum number of rows allowed in your template width.
To change the number of rows, go to the backend and in the “Gallery” menu, go to: options-> Gallery, and in “Number of columns” put the number you wish.
I check your site and the width is not allowing to add the extra column. the thumbnails are using padding, so just change that in:
– wp-content/plugins/nextgen-gallery/css/ngg_dkret3.css
– .ngg-gallery-thumbnail img {
– set the padding to “0”There is a presorted option for alt/title text
Did you check in the configuration setup (“options/slideshow” menu), that “shuffle mode” isn’t selected?
1. Open: /wp-content/plugins/nextgen-gallery/css/nggallery.css
2. Modify:
.ngg-gallery-thumbnail img:hover {background-color: darkGray;}to something like:
.ngg-gallery-thumbnail img:hover { /*background-color: darkGray;*/}
What code do you use to show the gallery?
ngg.slideshow.js should be rewritten.
Right now is just taking the images urls in the default order (id):
for (img in r.images) {
var photo = r.images[img];
//populate images into an array
stack.push( decodeURI( photo[‘imageURL’] ) );I dont know how to arrange it by “galSort”
Let see if I understand ??
– “Image browser” is the template mode where the gallery shows one picture at a time in a “browser” style, again, its an alternative to the thumbnail grid mode where all the pictures are shown. ex: [imagebrowser id=38]
– “Gallery view” is the template mode for a gallery overview, it shows the thumbnail of the pictures in an album at once, the grid of pictures. ex:[album id=38]
When in “gallery view”, you have the option to choose a js overlay image script (lightbox, thickbox, hisghslide, etc).
Seems to me that your question is regarding the arrows that your overlay shows (your website says you are using the “shutter” effect), my response was about the arrows shown when you select “Image Browser” ([imagebrowser id=38]).
To change the navigation arrows of your javascript image overlay, you need to modify that overlay’s files:
For shutter:
1. Open \plugins\nextgen-gallery\shutter\shutter-reloaded.js
2. Look for:
prevlink = '<a href="#" onclick="shutterReloaded.make('+prev+');return false">& lt ;& lt ;</a>'+dv;
3. Change the & lt ;& lt ; for your desired PREVIOUS ascii code or image
4. Look for:
nextlink = '<a href="#" onclick="shutterReloaded.make('+next+');return false">& gt ;& gt;</a>'+dv;
5. Change the & gt ;& gt; for your desired NEXT ascii code or image
6. Save and tryYou can handle the size changing the “shutter-reloaded.css” file in the same folder.
#shDisplay div#shNext{ float:right; font-size:8px; } #shDisplay div#shPrev { float:left; font-size:8px; }
I thought you were asking how to change the size of those… because those are ascii codes its size are changed with the “font-size” style. Maybe I am misunderstanding your question.
1. Open the file /plugins/nextgen-gallery/lib/gd.thumbnail.inc.php
2.Look for// increase memory-limit if possible, GD needs this for large images
// @ini_set(‘memory_limit’, ‘128M’);3. uncomment that second line (delete the “//”)
4. Save and try* Some servers doesnt allow this memory increased.
1. open: nggfunctions.php
2. look for:
‘timeout:’ . $ngg_options[‘irRotatetime’] * 1000 .3. Add a line BEFORE the code above and place:
‘pause: 1’ .4. Save and test
—–
To add it to the backend, so it shows in the settings:(after step 1&2)
—–3. Add a line BEFORE the code above and place:
‘pause:’ . $ngg_options[‘irPause’] .4. Open the file at \admin\settings.php and find:
<tr>
<th><?php _e(‘Duration time’,’nggallery’) ?>:</th>
<td><input type=”text” size=”3″ maxlength=”3″ name=”irRotatetime” value=”<?php echo $ngg->options[‘irRotatetime’] ?>” /> <?php _e(‘sec.’, ‘nggallery’) ;?></td>
</tr>5. Right after that code place:
<tr>
<th><?php _e(‘Pause’,’nggallery’) ?>:</th>
<td><input type=”text” size=”3″ maxlength=”3″ name=”irPause” value=”<?php echo $ngg->options[‘irPause’] ?>” /> <?php _e(‘0-1. 1 to pause on mouseover’, ‘nggallery’) ;?></td>
</tr>
6. save both files, update and test.Forum: Fixing WordPress
In reply to: [associated_posts] Under Thumbnails In Next GenSeems like there is another pluging a Related Post one, like YARPP or Post Page Associator, have a link?