| Author |
Message |
Yoshiii
Joined: 29 Feb 2008 Posts: 58
|
|
<?=cn_title(); ?> |
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
<?=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...
 |  | <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 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu May 01, 2008 4:58 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
Re: <?=cn_title(); ?> |
|
 |  | 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:
 |  | $result[] = $config_home_title; |
to this:
 |  | $result[] = 'Whatever'; |
|
|
| Thu May 01, 2008 9:57 am |
|
 |
Yoshiii
Joined: 29 Feb 2008 Posts: 58
|
|
|
| Thu May 01, 2008 8:21 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
haha lots of diff ways to solve that I didn't even know FI-DD's method.. what's that do?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu May 01, 2008 10:06 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
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... 
|
|
| Tue May 06, 2008 6:45 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
ah i see
 |  | 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
last update: 07-22-08: 8:30 pm |
|
| Sat May 10, 2008 5:47 pm |
|
 |
GuillaumeF
Joined: 13 May 2008 Posts: 4
|
|
Re: <?=cn_title(); ?> |
|
 |  | 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 |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Tue May 13, 2008 6:56 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 61
|
|
|
|
I couldnt use <?=cn_title(); ?> before,now I do, You just got to activate it in the plugins options.
Then you can use
 |  | <title>Mysite.com <?=cn_title(); ?></title> |
that's it.
|
|
| Sun Jun 01, 2008 10:22 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
Yes, and include head.php at the top of your page, always.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Mon Jun 02, 2008 7:16 am |
|
 |
robp07
Joined: 15 Jun 2008 Posts: 21
|
|
|
|
Hi,
How do I change the << in the title to a - or any other character?
Cheers.
|
|
| Mon Jun 30, 2008 2:54 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 61
|
|
|
|
 |  | Hi,
How do I change the << in the title to a - or any other character?
Cheers. |
something like this ?:
 |  | <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 |
|
 |
robp07
Joined: 15 Jun 2008 Posts: 21
|
|
|
|
I mean like:
This is one of my page titles using the <?=cn_title(); ?>
 |  | 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
 |  | oneBoro Emnes To Boro, If The Price Is Right - News : Middlesbrough FC : Boro : MFC |
|
|
| Mon Jun 30, 2008 10:36 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
You can change the desired sign directly in your code.
Use something like this: <?=cn_title('-'); ?>
|
|
| Fri Jul 04, 2008 1:50 pm |
|
 |
|