killbert72
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Pool] Let users register for a leagueWorks perfectly. Thanks man!
Forum: Plugins
In reply to: [Football Pool] Let users register for a leagueSomeone suggested I do this:
<?php if(!isset($_POST['submit'])){ //if the form has not been submitted yet, display the form echo "<form name='myform' action='' method='POST'>"; //Get array of leagues $leagues = $pool->get_leagues(true); //Make a drop down echo "<select name='league'>"; foreach($leagues as $league){ echo "<option>$league</option>"; } echo "</select>"; echo "<input type='submit' name='submit' value='Submit'>"; echo "</form>"; }else{ //If the form has been submitted, run the PHP function to update database $pool = new Football_Pool_Pool; $pool->update_league_for_user(get_current_user_id(), $_POST['league']); echo "Database updated!"; } ?>But now the question is: where to put this file and how to call it?
Forum: Plugins
In reply to: [Football Pool] Let users register for a leagueIn addition Mike, your question is not the same: you are confusing what is referred to as ‘leagues’ in the context of this question.
Here ‘leagues’ are different groups of players all competing in the same pool for the World Cup. Like the Marketing Department League or a group of friends. They form a subset of the overall group of people playing.
What you are referring to is to have different sets of independent tournaments for which a player can submit his predictions. This is an interesting idea, but not what I am discussing with Antoine here π
Forum: Plugins
In reply to: [Football Pool] No content team pagesFound the real culprit! Did a search for add_filter( ‘the_content’ and found this line in my Theme’s functions.php:
add_filter(‘the_content’, ‘autoinsert_rel_prettyPhoto’);
I had that prettyPhoto script turned on but wasn’t using it. Switching in off in my theme option page solved the problem, even without the number in football-pool.php, so your plugin is back to standard!
Thanks man, your support is amazing!
Forum: Plugins
In reply to: [Football Pool] No content team pagesPut in 90, worked like a charm! You are a star!
Duizend punten!
Forum: Plugins
In reply to: [Football Pool] No content team pagesYes, so that is the culprit….the pages display correctly in the standard themes like Twenty Twelve etc.
No, how do I find a solution? i’d hate to change my entire site’s theme…
Forum: Plugins
In reply to: [Football Pool] No content team pagesteam = theme…
Forum: Plugins
In reply to: [Football Pool] No content team pagesI just checked to preview my site in another team, and there it displays the pages correctly, so I am guessing that it must be my beloved U-design theme that is causing the problem after all….
Forum: Plugins
In reply to: [Football Pool] No content team pagesJust to be sure, shouldn’t the page -venues give an overview of all stadiums on one page? Because that is not happening at the moment. But i am not sure if this should be the case.
I am using U-design as theme, but that is pretty robust and not causing issues in my opinion….
You mind if I grant you access to my site so you can have a look?
Forum: Plugins
In reply to: [Football Pool] No content team pagesI have three pages that are a bit ‘special’ in as they have received a “-” sign before their name: -venues, -teams, -groups.
I did not put that “-” in front by the way…
the page “-teams”” has the slug:
[fp-link slug=”teams”]
Forum: Plugins
In reply to: [Football Pool] Widget withI figured this out myself, I changed a few lines in the widget php file and it works.
Forum: Plugins
In reply to: [Football Pool] Choose Knock Out Stage WinnersThanks Antoine, after looking at the reasons why you set it up this way, I actually like it a lot!