Results 1 to 3 of 3

Thread: smarty and *

  1. #1
    Casual Pligger thuggster's Avatar
    Joined
    Sep 2007
    Posts
    37
    Thanks
    Received:0
    Given: 0

    smarty and *

    hi,

    i have a question. is there a smarty variable that allows me to use a * .
    Code:
    $submit_url eq "http://www.youtube.com"
    i want to allow a random string behind this code.

    like
    Code:
    $submit_url eq "http://www.youtube.com/*"
    is that possible??

  2. #2
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    Instead you can do a strsubstr comparison at php and pass the results to tpl via a smarty variable - that would be easier.

    and to answer your question - no * is not used or allowed in smarty for wildcard matching..

  3. #3
    Casual Pligger thuggster's Avatar
    Joined
    Sep 2007
    Posts
    37
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by dollars5 View Post
    Instead you can do a strsubstr comparison at php and pass the results to tpl via a smarty variable - that would be easier.

    and to answer your question - no * is not used or allowed in smarty for wildcard matching..
    thnx for the reply dollars5,
    I am not that wizzard at php, but is there a smarty variable that can be used as a wildcard?

Similar Threads

  1. PHP in Smarty
    By muscleda in forum Questions & Comments
    Replies: 6
    Last Post: 11-09-2012, 08:07 PM
  2. Smarty Help
    By timbo in forum Questions & Comments
    Replies: 0
    Last Post: 11-15-2007, 01:47 PM
  3. Smarty
    By Unknown in forum Questions & Comments
    Replies: 3
    Last Post: 08-02-2007, 11:49 PM
  4. Smarty problems in OS X
    By pressp in forum Questions & Comments
    Replies: 1
    Last Post: 06-30-2006, 03:30 PM
  5. Smarty
    By AshDigg in forum Questions & Comments
    Replies: 2
    Last Post: 12-31-2005, 10:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg