This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Pre-made search?


avatar
johngaltnh 0
From: -
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

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Pre-made search?
avatar
OP 0
From: -
Pre-made search?

Dear Phillip,

Thank you very much!

I'll try this out and report back!

Very truly,

Brett
1 Re: Pre-made search?
avatar
Administrator
1340
From: Vienna, Austria
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:
Posted by $insert[story_author]

with
Posted by <a href="https://www.contentteller.com/asearch.php?author=$insert[story_author]">$insert[story_author]</a>


Let me know if you have any questions
1 Re: Pre-made search?
avatar
Administrator
1340
From: Vienna, Austria
Pre-made search?

This needs a new search script. However, I will see what I can do for you.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.