WordPress.org

Ready to get started?Download WordPress

Forums

Challonge
[resolved] Sign Up (7 posts)

  1. muhtopie
    Member
    Posted 4 months ago #

    Hey,

    people tend to be stupid and don't use that shiny lightgreen button to sign up. They click on the Tournament link and register at challonge. They should not do that. How can I replace that link with a link to the tournament tree only?

    https://wordpress.org/plugins/challonge/

  2. muhtopie
    Member
    Posted 4 months ago #

    Well I wouldn't mind to deactivate the hyperlink to challonge and activate it, when the tournament starts ;)

    but idk where it is ^^

  3. muhtopie
    Member
    Posted 4 months ago #

    Well discovered some major mistake. If the user signed up through challonge, the normal wordpress user will get an message if they want to confirm the match

    "Your opponent, , did not sign up through this website. The host or an authorized Challonge user must report the score."

  4. zavaboy
    Member
    Plugin Author

    Posted 4 months ago #

    I'm sorry this is causing you problems. I have it in the plans to change this in a future update.

    Meanwhile, if you would like to disable the link in the widget, modify the following lines in class-challonge-widget.php (towards bottom) from:

    $ret .= '<a href="' . $tourny->{ 'full-challonge-url' } . '">'
    							. esc_html( $tourny->name )
    						. '</a><br /><span class="challonge-info">'

    To:

    $ret .= esc_html( $tourny->name )
    						. '<br /><span class="challonge-info">'

    I hope this helps you out! :)

  5. zavaboy
    Member
    Plugin Author

    Posted 4 months ago #

    Version 1.1.0 fixes this.

    Thanks!

  6. darylavery
    Member
    Posted 4 months ago #

    I see that this has been changed in the latest version. My tournament has around 150+ participants so when you click on the URL now, it just looks like a mess because the lightbox is very small and it's hard to navigate such a huge bracket.

    In the old version it was easy for me to change the link in the URL for my tournament, but now I don't see how to do it. Is there a way I can change where the tournament title in the widget links to?

  7. zavaboy
    Member
    Plugin Author

    Posted 4 months ago #

    In version 1.1.0, you may make the change at lines 314 through 316 in class-challonge-plugin.php:

    $lnk_title_html = '<a href="' . sprintf( $lnk_url, 750, 550 ) . '&lnk_tourny=' . esc_attr( $lnk_tourny )
    			. '&lnk_action=view" class="challonge-tournyid-' . esc_attr( $lnk_tourny ) . ' thickbox" title="' . esc_html( $tourny->name ) . '">'
    			. esc_html( $tourny->name ) . '</a>';

    What can I add to the plugin that will help you with this? Would it help if I made a way to get the titles link to posts and pages? Would it help if I made a way to set custom URLs for certain patterns?

    I can probably best help if you explain exactly what you want it to do and why. You may not be the only person who wants this sort of thing.

    Thanks for following up! :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.