Activity Stream
48,167 MEMBERS
61023 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member

    Default Multiple Links In Profile Field

    i just made a profile field on an IPB forum
    where members can add links to their websites

    i am using a text area for it

    i used this code:

    Code: 
    <span class="ft">{title}:</span><br /><span class="fc"><a href="http://www.{content}">{content}</a></span>
    but when i try clicking the links on postbit it opens the link like this

    Code: 
    http://www.link1.com<br />link2.com
    any way how i can fix this?
    iFlames Reviewed by iFlames on . Multiple Links In Profile Field i just made a profile field on an IPB forum where members can add links to their websites i am using a text area for it i used this code: <span class="ft">{title}:</span><br /><span class="fc"><a href="http://www.{content}">{content}</a></span> but when i try clicking the links on postbit it opens the link like this Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    bump?

  4.     
    #3
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    looks liek the value of "{content}" has html inside it... make sure whatever is setting the vale of {content} is not adding the <br />
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  5.     
    #4
    Respected Developer
    Website's:
    wrzc.org
    lol your trying to copy KWWH's custom script and add it to AdminHQ and your even asking here on the original site how to do it.

    EDIT: ontopic. Litewarez is right. The content of {content} has the list of links not just one link.

    What you want to do is either break up {content} so it becomes {content1} {content2} {content3} etc.
    so it's like this:
    Code: 
    <a href="http://www.{content1}">{content1}</a><br />
    <a href="http://www.{content2}">{content2}</a><br />
    <a href="http://www.{content3}">{content3}</a><br />
    ect.
    or else have all the html in {content} something like this:
    Code: 
    <span class="ft">{title}:</span><br /><span class="fc">{content}</span>
    where the contents of {content} are
    Code: 
    <a href="http://www.link1.com">link1.com</a><br />
    <a href="http://www.link2.com">link2.com</a><br />
    <a href="http://www.link3.com">link3.com</a><br />
    ect.
    You know what would be cool. You could have it so the links are like:
    Code: 
    <a href="http://www.link3.com"><img scr="http://www.link3.com/favicon.ico" title="link3.com"></a>
    and it will display their favicon. Looks really cool. It's what I was going to do for AS but left it.
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  6.     
    #5
    Member
    thats a cool idea happy
    but how can i break up a single text area which contents are included in a single variable
    which is {content}

    to 3-4 different variables?

  7.     
    #6
    Respected Developer
    Website's:
    wrzc.org
    Ya the favicon is cool. Remember to use a default one if none exist though. Why are you just saving one content? What does your code look like?

    I'm not sure. Something like the following will work in PHP but you'll have to play around with it to get it into IPB:

    PHP Code: 
    $content str_replace("<br />" '  ' $content);
    $content array_unique($content);  //removes duplicates optional
    foreach($content as $link) {
        echo 
    "<a href='http://www.".$link."'>".$link."</a>";

    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  8.     
    #7
    Respected Member
    Quote Originally Posted by InFlames! View Post
    i just made a profile field on an IPB forum
    where members can add links to their websites

    i am using a text area for it

    i used this code:

    Code: 
    <span class="ft">{title}:</span><br /><span class="fc"><a href="http://www.{content}">{content}</a></span>
    but when i try clicking the links on postbit it opens the link like this

    Code: 
    http://www.link1.com<br />link2.com
    any way how i can fix this?
    Change the <br /> to a regular <br>

    That should work for you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10th Sep 2012, 11:55 AM
  2. Multiple names for same HTML form field
    By pankaj in forum Web Development Area
    Replies: 0
    Last Post: 6th May 2012, 02:45 PM
  3. Replies: 7
    Last Post: 21st Oct 2011, 01:06 PM
  4. User profile website field abuse
    By nYXem in forum Feedback and Suggestions
    Replies: 22
    Last Post: 14th Oct 2011, 02:11 PM

Tags for this Thread

BE SOCIAL