View Full Version : Editing the title means change it to webstie title!
MemoBony
07-25-2007, 03:33 PM
It's from the begining I have a problem with the encoding of the title of the articles if I write it in Arabic and not in English. After more than a week the support team with all respect fix this problem and now I can write it in Arabic, but if I want to edit the title of any article then it will completely change to the title of the website!!! :rolleyes:
Is that not very strange?
Anyone has an idea how can I fix this problem?
Many thanks.
jasmina
07-25-2007, 05:03 PM
This is happen because of SE optimization. All you have to do is to go in template_scripts and make changes in footer. There you should delete the next part of code:
if ($title == $int_title){
$template_manager->assign($int_title, '/{TITLE}/');
}else{
$template_manager->assign($title . ' - ' . $int_title ,'/{TITLE}/');
}
and live instead the following line:
$template_manager->assign($int_title, '/{TITLE}/')
MemoBony
07-26-2007, 09:42 AM
Thanks my dear, but if I do exactly like what you wrote here then I get this error message:
Parse error: syntax error, unexpected T_VARIABLE in /home/mysite/public_html/template_scripts/footer.php on line 4
MemoBony
07-26-2007, 09:43 AM
By the way! If I change or edit anything in any article then I will get this problem, so not only if I change the title! :D
MemoBony
08-02-2007, 03:17 PM
Thanks my dear, but if I do exactly like what you wrote here then I get this error message:
Parse error: syntax error, unexpected T_VARIABLE in /home/mysite/public_html/template_scripts/footer.php on line 4
jasmina my dear, I thought you have been already answered me and we fixed already this problem :D
Now I tried to change something in an article and heey, this problem is not fixed yet! WHY my dear untill now since 6 days you didn't answer me? :(
khabaru
08-09-2007, 06:08 AM
hi, can I change the title displayed on browser bar to a static title (exmple: always my site slogan). now its displaying the name of news title. but I need to remove them and put a static slogen always on browser bar. pls tell me how to.
MemoBony
08-09-2007, 10:51 AM
(knok, knok, knok....!)
Any body here? Ladies, gentelmen of support team where are you?
Something happend? In the name of God someone answer me please!
jasmina
08-09-2007, 02:22 PM
If you still have the same error, please check the validity of the code you changed.
Each code line in PHP must end with a semicolon:
$template_manager->assign($int_title, '/{TITLE}/');
MemoBony
08-10-2007, 10:30 AM
Do you think I didn't that?
I did that sure, but anyway still what do you said do nothing.
Is this problem sooooooooooo diffecult?
shketuljko
08-10-2007, 03:49 PM
Replace this code:
if ($title == $int_title){
$template_manager->assign($int_title, '/{TITLE}/');
}else{
$template_manager->assign($title . ' - ' . $int_title ,'/{TITLE}/');
}
with this code:
$template_manager->assign($title, '/{TITLE}/');
mmm
i think you can solve this problem
if ..
1- in control panal set your Website title blank
2- edit your header.tpl
search for
<title>{TITLE}</title>
chang with
<title>::Website title::{TITLE}</title>
the website title only will apper in Home Page
in articles
the website title will be " ::Website title :: Article Title "
try this i think it will help you....
good Luck;)
MemoBony
08-11-2007, 05:11 PM
That's great to display your website title with the articles.
But the problem now is completely different, now the articles title will change to the first 43 characters from the beginning of the article with one strange character! :p
Very strange, ha?
Thank you my dear g m too much for your trying to help me.
:) ok memo .. please send me link to your website in pm
i wait you;)
MemoBony
08-13-2007, 01:53 PM
My dear I have been sent you the link of my website to your email. I hope that this will not disturb you.
Thank you.
thanks memo
you have serpriZe in your mail ;)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.