|
Please help me to add dynamic titles for each member on my dating site
Hello,
I have a dating site that I bought from online script. I like to change to dynamic title for each member (username, age, gender) for title tag but don't know how to do that. Because the script owner use templates (.ihtml) so i need someone who can help me with.
my site is [url removed]
Here is my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^russian_dating_free_([0-9]+)\.html$ /index.php?page=view_profile&id=$1 [QSA,L]
Here is the php template code that I modified, this template (search_result.ihtml) does not have title. When I click on each member, the url become domain.com/russian_dating_free_4893.html
<a href="/russian_dating_free_<?php echo $profile['id']; ?>.html"><?= $profile[ name ] ?></a></b>
Here is the page_top.ihtml template that has the title tag, but I don't know how to modify it to get member information on the title tag.
<title>{SITE_TITLE}</title>
Here are some variables:
$profile[gender], $age, $profile[city], $profile[state], $profile[country]
here is what I tried but does not work:
<title><!-- IF "search_result" -->{$profile[gender]},{$age}<!-- ENDIF --> | {title}</title>
I want to change dynamic title to each member page, if it is the homepage, then use the {title}, otherwise, use $profile[gender], $age, $profile[city], $profile[state], $profile[country] for each member profile.
It does not work, can anyone please help?
Thanks.
Last edited by 3ncryptabl3_lick; 07-24-2008 at 07:05 PM..
|