Hi,
is there any way how to change Event detail site title to event name? Because of SEO.
Thank you very much
Hi, is there any way how to change Event detail site title to event name? Because of SEO. Thank you very much |
v6.1.4 shows the event name ..... |
Thank you for reply. Where should I set it? I have upgraded from 6.1.3 to 6.1.4 , but Event page titles are still same like before. Thank you very much. |
The title is whatever you name the event ..... |
I have tried to add new event, but page title in Event detail is still just "Events" :(
Any advice please?
Thank you very much for help |
Ahhhhhhha ..... you are correct. It does not show in the title bar. |
Yes, exactly... :( If someone know, how to change it, please write it here. I have tried some changes in source codes, but probably don't have got so good skill :) I have try to add this row "$title = _t("_sdating_h");" in events.php file, because in template there is something like "__title__" and source code tells it will be replaced by $title; But didn't help.. Sorry about my english, thanks to all. |
Weckho,
The reason why your code mod didn't work is simply because the events.php tells the events page how to behave, but, it does not modify the page title itself.. for example, index.php may behave differently when a member is logged on in contrast with a non-logged on member, yet that page will always have the same title.
The only way I can think of is to dig up the script that produces page titles, then locate the events page title in that script, then extend that string to contain the 'event_name_field' by it's id so that the page title is structured with 2 components, the static title and the imported title echoed from the event title entered by the user.
If you are a coder, I would be interested in seeing how you progress with this.. I don't have the fix, but will soon be working on it.. I'll keep an eye on this post and will post here is I have any success. |
Hi,
I have fix the problem! :-) Just add this two rows to file /inc/classes/BxDolEvents.php on the line 850:
(it's inside PageSDatingShowInfo function)
//SEO friendly Title
$GLOBALS['_page']['header_text'] = $aEventData['Title'];
$GLOBALS['_page']['header'] = $aEventData['Title'];
Hope it helps to other, cheers, weckho |
There is something wrong with the message above. There are again these two rows:
$GLOBALS['_page']['header_text'] = $aEventData['Title'];
$GLOBALS['_page']['header'] = $aEventData['Title'];
weckho |
Thank u very much...it works and help me!!!! |