jbboro3
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Live Scores] PRO VersionIf you need live sports data like scores, standing, upcoming matches etc.. I can help you with API. Any sports is possible. It’s automatic.API uses from various sources like bet365, betfair, williamhills, espn etc.. You can mail me at [email protected] for custom work.
Proper explanation:
Menu: Articles | sports | Stories | Post
I’ve a template page called “Post” (as you see in the menu post).. I’ve ALM short code placed in that template page. Shortcode is [ajax_load_more container_type=”div” post_type=”post” category=”post”]..
When I click on the menu button “Post”.. The page load with ajax and ALM also works fine.. But while in that same post page if I click again in the menu button post, the page loads with ajax but this time ALM will not load..
So, it works only on first instance.. Though it will work again when I visit non-ajax page and click the post button again.. Hope you understood..
Thanks
Hello,
I call only once after the page load… here…
$(“#content”).load(“/posts.php”, function(){
$(“.ajax-load-more-wrap”).ajaxloadmore(); });
});
where is the problem? can you please indicate me in the code?
Thanks
ok, no problem. leave it alone. Thanks for spending time looking at it..
I implemented the code of ajax loading but unfortunately it loads only once.. auto load will not work in second click until page is refreshed without ajax.. here is the code i used
$(document).ready(function(){
$(document).ajaxStart(function(){
$(“#imgloader”).css(“display”, “block”);
});
$(document).ajaxComplete(function(){
$(“#imgloader”).css(“display”, “none”);
});
$(‘content’).on(“click”, “#button”, function(e){
e.preventDefault();$(“#special”).load(“/posts.php”, function(){
$(“.ajax-load-more-wrap”).ajaxloadmore(); });
});
});When in ajax page if i click the same button, the auto load will not work for second click.. more function needed to execute next call?
I know it might be burden for you flowing up responses for long conversation but I want to get this working. Even if I subscribe for pro ALM, I will still need them.
Regards
Yes.. right now, it doesn’t auto scroll though it opens the first page.. it should trigger auto scroll at the success..
Regards
Hi @dcooney.. No they are not using ajax.. They are just using Javascript and css.. ALM is loaded by using shortcode which looks like: <?php echo do_shortcode(‘[ajax_load_more container_type=”div” post_type=”post” category=”post1″]’); ?>
This is the line I need to get it working: $(“.ajax-load-more-wrap”).ajaxloadmore(); })
This is the script function:
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName(“tabcontent”);
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = “none”;
}
tablinks = document.getElementsByClassName(“tablinks”);
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(” active”, “”);
}
document.getElementById(cityName).style.display = “block”;
evt.currentTarget.className += ” active”;
}// Get the element with id=”defaultOpen” and click on it
document.getElementById(“defaultOpen”).click();Thanks
@dcooney.. Yes it helped me a lot. You are awesome.. If you don’t mind, I’d like to ask you for one more solution..
I’ve this tab to load different categories of post. I tried to applied ALM but here too I’m not able to get the auto scroll working.. Yes, the first page loading occurs but subsequent auto scrolling doesn’t work.. I like using tabs because it’s way faster.. here is the code I use
<button class=”tablinks” onclick=”openCity(event, ‘post1’)” id=”defaultOpen”>post1</button>
<button class=”tablinks” onclick=”openCity(event, ‘post2’)”>post2</button>
<button class=”tablinks” onclick=”openCity(event, ‘post3’)”>post3</button>
</div><div id=”post1″ class=”tabcontent”>
<?php echo do_shortcode(‘[ajax_load_more container_type=”div” post_type=”post” category=”post1″]’); ?>
</div>
<div id=”post2″ class=”tabcontent”>
<?php echo do_shortcode(‘[ajax_load_more container_type=”div” post_type=”post” category=”post2″]’); ?>
</div>
<div id=”post3″ class=”tabcontent”>
<?php echo do_shortcode(‘[ajax_load_more container_type=”div” post_type=”post” category=”post3″]’); ?>
</div>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName(“tabcontent”);
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = “none”;
}tablinks = document.getElementsByClassName(“tablinks”);
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(” active”, “”);}
document.getElementById(cityName).style.display = “block”;
evt.currentTarget.className += ” active”;
}// Get the element with id=”defaultOpen” and click on it
document.getElementById(“defaultOpen”).click();</script>
Just that load more or auto scroll is not working otherwise first page loads normally..
Thank you very much for help..I will review..
- This reply was modified 7 years, 7 months ago by jbboro3.
Forum: Fixing WordPress
In reply to: Re-name users table column (db)Hi, keith
Thanks for the swift reply.. This clarified my doubts..
Gonna give a try to that plugin..
Thanks
Forum: Fixing WordPress
In reply to: Show users photo upload@sidati Thank you so much for your help.. It’s working perfectly even with buddypress.. But here I need little bit of customization.. A list of them are:
* How can I echo elseif statement to show “custom message” when they don’t have any images uploaded. Like: if blah blah
{
echo “Match found” (the actual code to display);
}
else
{
echo “This user has no photos uploaded”;
}
?>* How to limit number of images to be shown? (for example last 10 images upload instead of listing everything);
* Extra question: Is it possible to set the gallery to private? Like they are visible to only himself or friends connection as in buddypress..
* Ability to append upload url to post for commenting..
Hoping to get positive answers. Thanks in advance!
*
- This reply was modified 8 years, 2 months ago by jbboro3.
Forum: Fixing WordPress
In reply to: Show users photo upload@sidati I want to show all the photos or images uploaded by author or subscriber.. I’m using User submitted post to receive blogs & articles from the users. So they upload plenty of images in the articles that are inserted within the editing content area of tinymce.. Now I want to show the images of each users they submitted through post. For eg., just like all the post of particular users can be displayed..
Thanks
Forum: Plugins
In reply to: [WordPress Popular Posts] Hide displaying pageOkay! It helps. Thank you very much..
Can it get working with buddypress hashtag? Using the parameters hashtag (#)
Thanks!
Forum: Plugins
In reply to: [WordPress Popular Posts] Hide displaying pageHi, Hector,
Thanks for the swift reply.
I’m using [wpp] shortcode in widget section itself. In the widget section, I selected the “text” button and put this code [wpp limit=’4′]. As I’m more flexible to modifying the custom text css than using the default widget, so I’m going this alternative.
Normally, everything is fine, but it pulls data from both pages and post.. I’m not sure maybe because I’m using front end themify builder to construct pages, which is identifying itself as “post” or the plugin itself is pulling both pages and post.
Yes, after setting post type I had pressed “Apply button”..
If there is no immediate solution to this, then please suggest me how to exclude pages or post (based on url or slug) manually or putting some codes, somewhere (or even core pages for temporary purposes)
Your help will be highly appreciated.
Thanks
Forum: Plugins
In reply to: [MediaPress] Mediapress on urlHey brajesh that was very much helpful.. Thank you for your time..
Forum: Plugins
In reply to: [BuddyPress Global Search] Not working properly on Fixed admin barHi thanks for the responses.
It’s still not working.. I’m using theme from themify.. It works normally when the admin bar is not set to fixed position.
Also, is there a way that this search plugin doesn’t overtake the search functionality of bbpress? I need to keep them separate. It seems BP global search is overlapping every other search plugins.. I need this plugin only for searching friends on bp, and the others like bbpress, search to it’s own content.. I don’t want to see results together..
Thank you..
Forum: Plugins
In reply to: [BetPress] Stack input field along with bettingsHello,
Mailed you the details. Please check the mail and revert it back to me.