Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #11
    Ext User
    Join Date
    Mar 2007
    Posts
    94
    Vote Rating
    0
    danvega is on a distinguished road

      0  

    Default


    Works good now, just replace with a non greedy match

    Code:
    tweets[i].text = tweets[i].text.replace(/(http:\/\/)(.*?)\s/gi, '<a href="$1$2">$1$2</a>');

  2. #12
    Sencha User
    Join Date
    Dec 2010
    Posts
    1
    Vote Rating
    0
    trainxl is on a distinguished road

      0  

    Default Successfully used with Ext.List

    Successfully used with Ext.List


    Hey guys,

    thanks for the advice, prepareData also works with Ext.List in the way described.

    This is what works for me:

    Code:
    var list = new Ext.List({
    	prepareData  : function(data) {
    		data.text = data.text.replace(/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim, '<a href="$1" target="_blank">$1</a>')
    		data.text = data.text.replace(/(@)([A-Za-z0-9_-]*)/gi, '<a href="http://twitter.com/$2" target="_blank">$1$2</a>')
    		data.text = data.text.replace(/(#)([A-Za-z0-9_-]*)/gi, '<a href="http://twitter.com/#!/search/%23$2" target="_blank">$1$2</a>')
    		return data;
    	},
            store: app.stores.tweets,
            plugins: [{
                ptype: 'pullrefresh',
                autoPaging: true,
                loadingText: 'Lade...',
                pullRefreshText: 'Aktualisiert',
                releaseRefreshText: 'Loslassen...',
                snappingAnimationDuration: 1000
            }],
            itemTpl: [
                '<div class="tweet">',
                    '<div class="tweet-lcol">',
                        '<img src="{profile_img}" />',
                        '<p class="tweet-date">{created_at:date("d.m.Y")}</p>',
                    '</div>',
                    '<p class="tweet-text tweet-rcol">{text}</p>',
                '</div>'
            ]        
    })

Similar Threads

  1. How do I create a a simple list of links?
    By kohalza in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 9 Aug 2012, 2:12 AM
  2. How to create links in templates?
    By Dumas in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 19 Jul 2010, 6:38 AM
  3. Replies: 0
    Last Post: 15 Jul 2009, 12:46 AM
  4. howto create a tabpanel with links dynamically
    By Mario Minati in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 21 Jul 2008, 7:42 AM
  5. How to create menu items like the "Quick Links" above?
    By pnfsjp in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 25 Sep 2007, 8:18 PM

Thread Participants: 3

Tags for this Thread