• This has been kinda driving me nuts.

    I have a target page that contains all kinds of content for each of my groups — segregated by shortcodes.

    I have a profile page that lets users join or leave a group.

    What I’m TRYING to make happen is that when a user makes a choice on the profile page, then they go right to the target page and their group choice drives how that appears.

    My test code for that is:

    <div id="Elektu" onmouseup="setTimeout(function() {window.location = '../monster-goodies/';}, 1000);">test</div>

    When I click on the word “Test” I wait a second and then I bounce over there. All is as it should be.

    But when I take this EXACT SAME DIV code and wrap it around these buttons:

    <div id="Elektu" onmouseup="setTimeout(function() {window.location = '../monster-goodies/';}, 1000);">
    <p>Note: you can only join one Creature Clan at a time. Your current Creature Clan is: [groups_member group="Ghost"]Ghost[/groups_member][groups_member group="Vampire"]Vampire[/groups_member][groups_member group="Werewolf"]Werewolf[/groups_member][groups_member group="Zombie"]Zombie[/groups_member][groups_non_member group="Ghost,Vampire,Werewolf,Zombie"]<em>unaffiliated with any Creature Clan</em>[/groups_non_member].</p>
    [groups_member group="Ghost"][groups_leave group="Ghost"][/groups_member][groups_member group="Vampire"][groups_leave group="Vampire"][/groups_member][groups_member group="Werewolf"][groups_leave group="Werewolf"][/groups_member][groups_member group="Zombie"][groups_leave group="Zombie"][/groups_member]
    [groups_non_member group="Ghost,Vampire,Werewolf,Zombie"][groups_join group="Ghost"][groups_join group="Vampire"][groups_join group="Werewolf"][groups_join group="Zombie"][/groups_non_member]
    </div>

    …then that is not what happens. Clicking one of the Groups-generated buttons keeps me on the same page, but modifies the look of one of the buttons, and doesn’t jump to the other page.

    I don’t THINK I’m doing anything wrong, and the exact same DIV code works on a single text word.

    So…

    …how can I achieve this? I’m honestly a little shocked the redirect breaks.

    https://ww.wp.xz.cn/plugins/groups/

Viewing 1 replies (of 1 total)
  • Plugin Author Kento

    (@proaktion)

    Hi,

    The buttons generated are actually input fields within a form, that’s why you see a different behavior I suppose.

    Cheers

Viewing 1 replies (of 1 total)

The topic ‘Post-buttonclick actions?’ is closed to new replies.