Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
<?=cn_title(); ?>
Goto page 1, 2  Next
 
Reply to topic    Forum Index » Help View previous topic
View next topic
<?=cn_title(); ?>
Author Message
Yoshiii



Joined: 29 Feb 2008
Posts: 58

Post <?=cn_title(); ?> Reply with quote
This shows the title but also in front the name of your website?

Something like: WEBSITE >> TITLE

How can i change this so it doesn't show the website, but something i want (or nothing)?
Wed Apr 30, 2008 10:01 am View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
<?=cn_title(); ?> grabs the name you wrote in your System Settings for 'Title of Homepage'

Anyways, to avoid this you can either blank that line out OR (for best results) just put this in your full story template at the top...

Code:
<title>{title} at My Site DOT COM!!!</title>


I use that method on Scott Dizzle.com cause for some reason I can't use <?=cn_title(); ?> anymore so that's how I fixed it Smile

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu May 01, 2008 4:58 am View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Re: <?=cn_title(); ?> Reply with quote
Yoshiii wrote:
How can i change this so it doesn't show the website, but something i want (or nothing)?


Open plugins/etc.php and change this:
Code:
$result[] = $config_home_title;


to this:
Code:
$result[] = 'Whatever';

Thu May 01, 2008 9:57 am View user's profile Send private message
Yoshiii



Joined: 29 Feb 2008
Posts: 58

Post Reply with quote
Thnx Very Happy
Thu May 01, 2008 8:21 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
haha lots of diff ways to solve that Smile I didn't even know FI-DD's method.. what's that do?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu May 01, 2008 10:06 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
It's replacing directly in the plugin the website's title with whatever you want.

I guess your approach produces invalid html because you are using the <title> tag outside of the <head> tag. But as long as it's working who cares about validation... Cool
Tue May 06, 2008 6:45 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
ah i see

Quote:
who cares about validation.


I'm glad to hear you say that lol.. I care.. but only as much as is practical.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Sat May 10, 2008 5:47 pm View user's profile Send private message Visit poster's website AIM Address
GuillaumeF



Joined: 13 May 2008
Posts: 4

Post Re: <?=cn_title(); ?> Reply with quote
Yoshiii wrote:
This shows the title but also in front the name of your website?

Something like: WEBSITE >> TITLE

How can i change this so it doesn't show the website, but something i want (or nothing)?


I try these two methods, but I can't show you I want...

Now : TITLE >> WEBSITE

I want : WEBSITE >> TITLE

Do you have and idea ?
Tue May 13, 2008 2:22 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
It's setup that way by default.

Write the name of your site in System Settings, then use <?=cn_title(); ?> in your <title></title> and it should show up YOUR SITE >> TITLE OF CONTENT

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue May 13, 2008 6:56 pm View user's profile Send private message Visit poster's website AIM Address
webbber



Joined: 15 May 2008
Posts: 61

Post Reply with quote
I couldnt use <?=cn_title(); ?> before,now I do, You just got to activate it in the plugins options.
Then you can use
Code:
<title>Mysite.com <?=cn_title(); ?></title>

that's it.
Sun Jun 01, 2008 10:22 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Yes, and include head.php at the top of your page, always.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Mon Jun 02, 2008 7:16 am View user's profile Send private message Visit poster's website AIM Address
robp07



Joined: 15 Jun 2008
Posts: 21

Post Reply with quote
Hi,

How do I change the << in the title to a - or any other character?

Cheers.
Mon Jun 30, 2008 2:54 pm View user's profile Send private message
webbber



Joined: 15 May 2008
Posts: 61

Post Reply with quote
robp07 wrote:
Hi,

How do I change the << in the title to a - or any other character?

Cheers.


something like this ?:

Code:
<html><head><title>Mywebite.com: <?=cn_title(); ?></title></head>

I dunno if this iswhat You mean dude.Anyways,
best regards.
Mon Jun 30, 2008 5:11 pm View user's profile Send private message
robp07



Joined: 15 Jun 2008
Posts: 21

Post Reply with quote
I mean like:

This is one of my page titles using the <?=cn_title(); ?>
Quote:
oneBoro Emnes To Boro, If The Price Is Right « News : Middlesbrough FC : Boro : MFC


I want to remove the << from the page title to a dash - so it will be
Quote:
oneBoro Emnes To Boro, If The Price Is Right - News : Middlesbrough FC : Boro : MFC

Mon Jun 30, 2008 10:36 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
You can change the desired sign directly in your code.

Use something like this: <?=cn_title('-'); ?>
Fri Jul 04, 2008 1:50 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.