Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 07-23-2008, 10:09 AM   #1 (permalink)
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  
Add Post to del.icio.us
Reply With Quote
Old 07-25-2008, 06:48 AM   #2 (permalink)
Senior Member
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 833
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
<?php
if (!$search_result) {
echo "{SITE_TITLE}";
} else {
$profile[gender]; }
?>
Poor coding but you get the idea.
It may also be that the templates are unable to run php within them - so you would need to go back into the script itself and modify it to make the switch there.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-25-2008, 07:50 AM   #3 (permalink)
Contributing Member
 
Join Date: 06-29-08
Posts: 187
iTrader: 0 / 0%
Latest Blog:
None

jennypretty is liked by many
Thanks so much.
What is the rich coding?

when I tried this:
<?php
if (!$search_result) {
echo "{SITE_TITLE}";
} else {
$profile[gender]; $profile[city], $profile[state], $profile[country]}
?>

It is not working.
Please help.

Thanks.
__________________
---------------------------------------
Life is short, try to do something good!
American Singles at Free Dating Service
jennypretty is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic site optimizatiob fashionmoksh SEO Forum 6 07-03-2008 09:26 AM
PHP Dynamic Pages And Dynamic Meta Tags?? prasad_shejale SEO Forum 3 03-05-2008 10:42 AM
Problems with setting up a Dynamic site (Help!) TnG Web Design Lobby 2 02-04-2007 10:19 AM
Dynamic titles and URLs with adwords GeXus Marketing Forum 3 05-06-2006 12:31 PM
Converting Titles into Friendly Titles thing2b Coding Forum 1 09-04-2005 05:44 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:50 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.