We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    I need a little help with calling a specific page in to another document. I am currently using a TV with the viewport wiget enabled. The TV default text is

    /100?service=viewprofile&username=[[profileOwner]]

    The [[profileOwner]] snippet finds who’s profile page you are looking at using winloginPE and displays only that users info in the viewport.

    It works fine but I don’t really want to use iframes on my site... how else can I call in the specific query string for a given users profile link?
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 8960
      • 150 Posts
      Is this sort of what you’re looking to do?
      http://modxcms.com/forums/index.php/topic,29306.0/topicseen.html
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        yes very nearly... I want to pull the info that’s on a persons profile page and have it on another document but without using the iframe. I want to display their name, company, age and the contact form without using the iframe option. Using the iframe, it’s causing the contact form not to send the subject and message fields.
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 8960
          • 150 Posts
          Have you looked at using Scotty Delicios’ WebLoginPE? It does user profiles and allows you to display specific profiles on a page... or at least I think it does (haven’t used it, yet).
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            I am using webloginpe... But what I want is to display a specific persons profile. I want this persons information to be able to be displayed in another document. This document will have other options within it but I want the profile of the person on this page as well.
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              Here is an example of what I want but without the Iframe and a working contact box. For some reason the form does send an email but doesn’t include the subject or message.



              <form name="wlpeViewContactForm" method="post" action="[~[*id*]~]">
              					<fieldset style="border:0px">
              						<h4>Contact [+view.username+]</h4>
              						<input type="hidden" id="wlpeMe" name="me" value="[+user.internalKey+]" />
              						<input type="hidden" id="wlpeYou" name="you" value="[+view.internalKey+]" />
              						<label for"wlpeViewContactSubject" class="Dspace1">Subject:
              							<input type="text" id="wlpeViewContactSubject" name="subject" />
              						</label>
              						<label for"wlpeViewContactMessage" class="DspaceText">Message:
              							<textarea class="DspaceText" name="message"></textarea>
              						</label>
              					</fieldset>
              					<fieldset style="border:0px;margin-top:20px">
              						<button type="submit" id="wlpeContactSend" name="service" value="messageuser">Send Message to [+view.username+]</button>
              					</fieldset>
              				</form>
              


              That’s a copy of my form.

              Thanks
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                I’m receiving an error in IE using the viewport wigget. 


                If you check this page it should appear in IE.  Basically I am using the iframe to get a users profile from the webloginPE profile pages. 

                The error says expected ’)’

                Anyone any idea how to stop that error or even better, a way to not use the iframe but still gather in from a user profile as above. 
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 25551 ☆ A M B ☆
                  • 1,231 Posts
                  Hey, I am not sure what to do there but I just changed the setting for the scollbars. It was set to no and I put it to the nil setting and it sorted the error out. Is that an error with the viewport wiget?
                    Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                    AugmentBLU - MODX Partner

                    BLUcart - MODX Revolution E-Commerce & Shopping Cart