View Single Post
Old 07-23-2008, 10:09 AM   #1 (permalink)
jennypretty
Contributing Member
 
Join Date: 06-29-08
Posts: 187
iTrader: 0 / 0%
Latest Blog:
None

jennypretty is liked by many
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.
__________________
---------------------------------------
Life is short, try to do something good!
American Singles at Free Dating Service

Last edited by 3ncryptabl3_lick; 07-24-2008 at 07:05 PM..
jennypretty is offline   Reply With Quote