Jump to content

[SOLVED] A simple code problem :: PLEASE HELP!!!


PcGeniusProductions

Recommended Posts

Hi there. Please don't laugh when I ask for help on something this simple, but i really have no clue. I have tried, and kept recieving errors.

 

This code Displays "Site Name: Page Name"

I want it to display "Page Name | Site Name"

Here is the code:

 

<title>".SITENAME.(defined("e_PAGETITLE") ? ": ".e_PAGETITLE : (defined("PAGE_NAME") ? ": ".PAGE_NAME : ""))."</title>\n";

 

Can someone help me please?

Thanks in Advance.

Link to comment
https://forums.phpfreaks.com/topic/87951-solved-a-simple-code-problem-please-help/
Share on other sites

Don't make 2 threads first of all, this looks really confusing (which CMS is this from?), anyway I'll give it a shot:

 

<title>".(defined("e_PAGETITLE") ? e_PAGETITLE." | " : (defined("PAGE_NAME") ? PAGE_NAME." | ")).SITENAME."</title>\n";

 

Give that a try, but I'm not promising anything :P

themistral: That code did not change anything. Thank for the reply however.

PHP Monkeh: I got this error:

 

Parse error: syntax error, unexpected ')' in /home/pcgenius/public_html/e107_themes/templates/header_default.php on line 89

 

I am using "e107" CMS.

 

Any Ideas?

I truly am speechless...  ??? I usually go for the logical way of fixing this sort of thing, but This totally stumped me... Yes it works fine. Thank you so much, I tried to swap them around a bit in chunks, but naturally, it failed terribly.  :(

 

Never mind, I am not that good at hard coding. Thanks for your help, and you don't know how much better this will be for the search engine results. it will look much better. Thanks again.

Very Best Ragards, from Reece.  ;)

 

Thanks to everyone who has helped on this thread.  ;D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.