appugappu
Forum Replies Created
-
Can anybuddy help me with this ?
Actually we are using NGG to show before and after images in our modified page. The image sequence is 1-2, 3-4, 5-6 so if NGG renames 1.jpg to 1-1.jpg then the sequence is messed up and our before-after page starts show ing 1-1(-1.jpg), 2-2(-2.jpg), 3-4, 5-6 etc.
One possible solution is to prevent users from uploading images with same filenames as the ones already in the gallery or if you can suggest another solution/ hack, that would help a bunch.
thanks for your help.
Hmm…I indeed will have to install members. danke for your immensely invaluable support.
Ok. Good to know. However I want to where in the plugin code to remove that functionality. I know that would cripple future table-press releases but that’s fine with me.
thanks
appuI disabled all plugins expect for NextGen gallery before reporting this.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi,
Now everything works as desired. A small bit of styling help required. Is it possible to set first & last row of the table to always touch the top and bottom edges of viewport.
thanks
appuForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi Tobias,
Above code works with Table press v1.5 but not with v1.4, any idea why?
thanks
appuForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi,
I tried the above code, but it did not work out. So I posed this problem to SO user “SaschaM78” and he was of the following view:
“You try to extend dataTable instead of adding a handler for the complete event.”Here is the modified code he whipped up:
var table = $('#example').dataTable({ "initComplete": function(settings, json) { var table= $(this).dataTable().api(); var info = table.page.info(); var direction= 'asc'; if (info.pages > 1) { // start cycling the pages now window.setInterval(function() { if (direction=='asc') { table.page( 'next' ).draw( false ); if (table.page()+1 == info.pages) direction= 'desc'; } else { table.page( 'previous' ).draw( false ); if (table.page() == 0) direction= 'asc'; } }, 2000); } } });Src: http://jsfiddle.net/Moonbird_IT/HEDvf/2351/
I put entered the re-formatted code in the command box but unfortunately the above code did not work. Could you plz test it? It shouldn’t take too long.
thanks
appuForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi,
That worked for me. For Auto-Pagination, A SO user “SaschaM78” very generously proposed the below solution:
// create the DataTable var table = $('#example').DataTable(); // retrieve the page information var info = table.page.info(); // initialise the paging direction var direction= 'asc'; // in case there are more than 1 pages of data, start pagination if (info.pages > 1) { // start cycling the pages now window.setInterval(function() { if (direction=='asc') { table.page( 'next' ).draw( false ); // switch directions if last page of data shown if (table.page()+1 == info.pages) direction= 'desc'; } else { table.page( 'previous' ).draw( false ); // switch directions if the first page of data is shown if (table.page() == 1) direction= 'asc'; } }, 2000); }Src: http://stackoverflow.com/questions/28928079/jquery-simulate-user-click-on-previous-button-link
After formatting (removing line breaks $ comments) I put the above code in Custom Commands section but it did not work like the your previous soln (fnRowCallback).
Could you help including the auto pagination code in correct place. Would also request you to test it.
thanks
dkjForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi Tobias,
I tried to hack my way through the core files in controller-frontend.php by including the above code in between script tags as shown below:
<script type="text/javascript"> jQuery(document).ready(function($){ $('#tablepress-1').dataTable({ "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { console.log(aData[1]); if ( aData[0] == 'Ajay' ) { $('td:eq(0)', nRow).html( '<b>Ajay</b>' ); } } }); {$datatables_strings}{$commands} }); </script>It gives the error: “DataTables warning: table id=tablepress-1 – Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3”
Could u plz format the above code correctly so that both, my function and {$datatables_strings}{$commands} gets correctly interpreted by browser.
many thanks
dkjForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageHi,
Thanks for your reply. I understand your support limitations and the time you can devote for support, so I will try to make this work myself. Which files do I have to edit to apply the setInterval() and click() function and also where do I include the following code.
oTable = $('#matrix').dataTable({ ... "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { for (var i in aData) { // Check if a cell contains data in the following format: // '[state] content' if (aData[i].substring(0,1)=='[') { // remove the state part from the content and use the given state as CSS class var stateName= aData[i].substring(1,aData[i].indexOf(']')); var content= aData[i].substring(aData[i].indexOf(']')+1); $('td:eq('+i+')', nRow).html(content).addClass(stateName); } } } });thanks
dkjForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Auto Rotate/Move to Next PageThanks for replying. I know this could be achieved with a some simple Jquery magic but the problem is I am complete noob with JS let alone jquery (though i plan to make up for it soon) and I sure that will not be too much of work for you, so could you plz help me with the code and direction where to include it. Would really appreciate it if you could help with this.
regards,
dkjI am running wordpress 3.4.2 on localhost (xampp pack) on a windows machine and Comodo firewall.
I have the same problem, the plugin is not able to fetch API key from your server. Comodo Firewall active connection window shows the connection between my comp and your servers.
Another Usage Question :
As you specify that your plugin has a firewall. Can the firewall be configured (or any other way in the plugin) to actually block wordpress core/ theme files from sending /receiving data to a particular IP just like as we can do with a desktop firewall (in my case comodo internet security).
I downloaded some themes which may be having base64 encoded code embedded in them. I checked it with TAC plugin and it did show theme files containing encoded data.
I could try removing the encoded code but that might break the theme altogether and then there might be other way to link or code some functions or modules that might make a call to the hacker’s servers and on top of that I am not that good with PHP so I thought it would be better to provide a kind of environment where the file is not able to make a call to the IP address altogether.
Thanks & regards,
appu.Hi,
I got it working. Now I want to customize the style of the table as per either of the following (first one is more preferable):
http://www.flickr.com/photos/55097319@N03/5128485136/
http://www.flickr.com/photos/55097319@N03/5128494296/
I tried by changing the background color of a column as per your faq “
How can I change the background color of a row?
” but it did not work
.wp-table-reloaded-id-1 .col-2 td { background-color: #2887b3!important; }Now as per your faq
How can I highlight certain cells or their content?
the author needs the col and row of the cell to style it that way or needs to know some html. The author neither knows html nor will have the time to apply custom styles to row and column. Highlighting particular columns (last column) text should be by default to all columns. How can we achieve that ?
I want each table on the site to style that particular way.Moreover the order of columns (columns headings) are reversed on the homepage (see link1 below) although I have entered column heading text in a particular order(link2). Pls let me know what I need to do to get the column order right.
link1: http://www.flickr.com/photos/55097319@N03/5128551202/
link2: http://www.flickr.com/photos/55097319@N03/5128553016/
warm regards,
rseni.Hi Tobias,
I am new to PHP so i will not be able to do what you ask me to. However looking at the home.php of the theme I could make out the code responsible for displaying the excerpts. I have pasted the code below. I do not see any use of the the_excerpt() function in the code. Anyways I am new to php and it would really be very very big help if you could show me how to get the theme to use the_content() function.
CODE:
<div class="hpbottom"> <h3>Bottom Featured Category</h3> <!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "hpbottom". Recommended image size is 70x70, as the stylesheet is written for this size.--> <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>" alt="<?php the_title(); ?>" /></a> <?php endif; ?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(850, "[Read more of this review]"); ?> <div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> <!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL--> <b><a href="#" rel="bookmark">Read More Posts From This Category</a></b> </div>Regarding your other workaround of using a text widget on a page, as far i know in wp admin you could add widgets to sidebars but I have no clue how to add widgets to show up on a pages, directly in admin area or via an appropriate plug-in.
Anyways whether you help or not or even if I end up not using your plugin, I would like to donate for your wonderful contribution to the community. Could you tell me how could i make a donation to you.
regards,
rseni.