Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

Pre-made search?

Discussion in 'Version 1.x' started by johngaltnh, Dec 4, 2003.

  1. johngaltnh Guest

    Pre-made search?

    I would like to create a link that, without having to fill out the search form, pulls up a particular search.

    For example, if the editor puts the author name in each article, I would like to make a link (or something) that will pull up all articles that contain that author's name.

    How do I do that?

    Thank you!
    Brett
    johngaltnh, Dec 4, 2003
    #1
  2. Philipp Guest

    Pre-made search?

    This needs a new search script. However, I will see what I can do for you.
    Philipp, Dec 5, 2003
    #2
  3. Philipp Guest

    Pre-made search?

    In attachment is an author search script. Rename the script asearch.php and copy it to your main directory.

    Usage: asearch.php?author=authorname

    Here an template example:
    Find and replace in news:
    Code:
    Posted by $insert[story_author]
    with
    Code:
    Posted by <a href="asearch.php?author=$insert[story_author]">$insert[story_author]</a>
    Let me know if you have any questions
    Philipp, Dec 7, 2003
    #3
  4. johngaltnh Guest

    Pre-made search?

    Dear Phillip,

    Thank you very much!

    I'll try this out and report back!

    Very truly,

    Brett
    johngaltnh, Dec 11, 2003
    #4
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.