I just made this alteration myself. A quick hack solution would be to edit sg-jqvs-widget-plugin.php file. Around line 344 look for the following
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
and add you division before the endforeach like so
<hr>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
Now i’m just looking to remove the empty space between scrolling loops. also when set to scroll from bottom to top there is a gap as well. Very noticeable if you have it displaying full post content.
Hi Guys
Seems like I don’t need to look here anymore. You guys are figuring out solutions on your own. 😉
As for the gap at the bottom, we are working on it. It is a tricky problem. Need to completely rewrite the engine. Still trying to get it to work right.
May be mid this year… hopefully…
Thanks for your reply, ArtisticAdam…however, it doesn’t seem to take my changes when I insert the HR command inside the php file.
Anything special I need to look out for?
Thx again
Not infront of the code atm but that is exactly what i did. What does your source code look like for that section? Do you see the HR added in the page code?
Apparently, the changes to the PHP code won’t really reflect into my page?
I can’t see any changes I make to the code, however, changes to the CSS file work fine.
Interesting, here is what I changed in sg-jqvs-widget-plugin.php. You will notice I also changed it from a list to paragraph formatted but this should not affect the outcome.
<div class="scrollingtext">
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => $mycount,
'category' => $mycategory,
'orderby' => 'post_title',
'order' => 'ASC',
'post_type' => $myposttype, /*'post',*/
'post_status' => 'publish',
'suppress_filters' => false
);
$posts_array = get_posts( $args );
foreach( $posts_array as $post ) : setup_postdata($post);
?>
<!--<li>-->
<?php if ( $myshowtitle == 'true' ) { ?>
<p class="sgjvs_widget_title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</p>
<?php } ?>
<?php if ( $myshowdate == 'true' ) { ?>
<p class="sgjvs_widget_date">
<?php
$pfx_date = get_the_date( $myshowdateformat );
echo $pfx_date;
?>
</p>
<?php } ?>
<?php if ( $myincludecontent == 'content' ) { ?>
<p class="sgjvs_widget_content">
<?php
$mysgjvscontent = get_the_content();
echo $mysgjvscontent;
?>
</p>
<?php } elseif ( $myincludecontent == 'excerpt' ) { ?>
<p class="sgjvs_widget_excerpt">
<?php
$mysgjvsexcerpt = get_the_excerpt();
echo $mysgjvsexcerpt;
?>
</p>
<?php } ?>
<hr>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div> <!-- end of scrolling text -->
Thanks for your answer!
So, I replaced my code with yours (BTW my HR was at the exact same spot as yours), and ISDN (it still does nothing) :-/
In fact, it seems that the <li>
command still is part of the final html code the page displays ?!?!?!?
Not exactly sure what’s happening here and why…I restarted the apache daemon, dis-/enabled the plugin, but nothing helped. Finally, as I replaced the whole PHP code with <hello world>, the plugin stopped working, so this should be the proof that the code gets loaded alright…
Arrggghhh….I kinda go crazy over this…