Titles question

Post Reply
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Titles question

Post by tubeman »

Hi,
In titles for example if I want:

order = ctr and page is 1
<title> Latest Videos </title>

Page after 1
<Title> Latest Videos Page 2 </title>

basically don't want to put the word and number for Page 1, how do I do this?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Titles question

Post by admin »

if ($_GET['page'] > 1) {
show title page ...
} else {
show title
}
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Titles question

Post by tubeman »

What do I add in this code to make it work:

<?php if ($_GET['order'] == 'ctr') {?>

<title>Site order by CTR </title>

<?php } elseif ($_GET['order'] == 'date') { ?>

<title>Site order by date </title>

<?php } else { ?>

<title>Default order (default = by ctr ) </title>

<?php } ?>
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Titles question

Post by admin »

The code looks ok
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Titles question

Post by tubeman »

I mean how do I add the ($_GET['page'] > 1) within this code?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Titles question

Post by admin »

replace

<title>Site order by CTR </title>

with the example code
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Titles question

Post by tubeman »

I was trying but getting syntax errors, can you please give it to me for 1 part, remaining I will figure out.
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Titles question

Post by tubeman »

I figured it out, Thanks
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Titles question

Post by admin »

Ok )
Don't forget to run script update
Post Reply