vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Tournaments, Ladders & Leagues Manager v4.x (https://vborg.vbsupport.ru/showthread.php?t=238945)

Fields 11-11-2014 04:37 PM

Hello,

when I invite users to a team, they get a broken link via pm:

Code:

http://example.com/teams.php?do=viewteam&id=10
When I delete the "amp;", the link works. Do you have a fix for that?

Morrus 11-11-2014 08:43 PM

Quote:

Originally Posted by Fields (Post 2522292)
Hello,

when I invite users to a team, they get a broken link via pm:

Code:

http://example.com/teams.php?do=viewteam&id=10
When I delete the "amp;", the link works. Do you have a fix for that?

Ah, I think you're having exactly the same problem I am. Manually replacing & with & fixes it for me. Just need the system to send the correct link in the first place!

Fields 11-12-2014 08:58 AM

Quote:

Originally Posted by Morrus (Post 2522315)
Ah, I think you're having exactly the same problem I am. Manually replacing & with & fixes it for me. Just need the system to send the correct link in the first place!

Did you fix a code in a template or a file or do you always fix the link before sending the PM?

Morrus 11-12-2014 09:06 AM

Quote:

Originally Posted by Fields (Post 2522362)
Did you fix a code in a template or a file or do you always fix the link before sending the PM?

I did neither. I just tried doing exactly what you did.

bananalive 11-17-2014 01:13 PM

Quote:

Originally Posted by Fields (Post 2522292)
Hello,

when I invite users to a team, they get a broken link via pm:

Code:

http://example.com/teams.php?do=viewteam&id=10
When I delete the "amp;", the link works. Do you have a fix for that?

I'm unable to replicate this - are you running latest version?

The only thing I can think of is to make sure template tmnt_inviteteam uses

{vb:raw message}

not

{vb:var message}

Fields 11-17-2014 03:20 PM

Yes, I am using the latest version. The template is correct (some phrases are translated):

Code:

<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>

<form name="vbform" action="teams.php?do=inviteteam&amp;teamid={vb:raw team.teamid}" method="post">
<h2 class="blockhead">Benutzer in dein Team einladen</h2>
<div class="blockbody formcontrols">
        <div class="blockrow">
                <label for"users" class="floatcontainer">Benutzer</label>
                <ul class="multifield group">
                        <li>
                                <div id="userfield" class="popupmenu nomouseover noclick nohovermenu">
                                        <textarea class="primary full textbox popupctrl" name="users" id="userfield_txt" tabindex="1" autocomplete="off" rows="2" cols="50"></textarea>
                                </div>
                        </li>
                </ul>
        </div>
        <div class="blockrow">
                <label for"message">Nachricht</label>
                <div>
                        <textarea name="message" id="message" rows="4" cols="75">{vb:raw message}</textarea>
                </div>
        </div>
        <vb:if condition="$team['invited_players']">
        <div class="blocksubhead">
                Benutzer, die bereits eingeladen wurden: <br /> <span style="font-weight: normal;">{vb:raw team.invited_players}</span>       
        </div>
        </vb:if>
</div>
<script type="text/javascript">
<!--
        usss = new vB_AJAX_NameSuggest('usss', 'userfield_txt', 'userfield');
        usss.allow_multiple = true;
//-->
</script>
<div class="blockfoot actionbuttons">
        <div class="group">
                <input type="hidden" name="do" value="inviteteam" />
                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input name="teamid" type="hidden" value="{vb:raw team.teamid}" />
        <input type="submit" class="button" value="{vb:rawphrase go}" />
        <a href="{vb:raw team.url}" class="button">{vb:rawphrase cancel}</a>
        </div>
</div>
</form>


bananalive 11-17-2014 04:33 PM

Quote:

Originally Posted by Fields (Post 2523139)
Yes, I am using the latest version. The template is correct (some phrases are translated):

Code:

<script type="text/javascript"...

Edit teams.php

Find line

PHP Code:

$message "Please join my team \r\n\r\n [url]".$vbulletin->options['bburl']."/".$team['url']."[/url]"


Add before


PHP Code:

$team['url'] = str_replace("&amp;","&",$team['url']); 


Fields 11-18-2014 05:41 AM

Thanks, I'll give it a try :)

Fields 11-19-2014 03:32 PM

Okay, I checked it, the link still doesn't work because of the &amp;

There is something weird: I get a notification when I received a PN on my site. In this mail, there is a preview of the PN, and the link in there is correct.

Topollino 12-02-2014 11:23 AM

Hi, is there any way to reset a ladder?


All times are GMT. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07735 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete