| Author |
Message |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: LEO Forum Links Question Posted: Thu Apr 30, 2009 6:25 pm |
|
Hi
I would like to inform me it is possible to create forums toppics name to convert to the name of the topic it means that instead of dragonflycms.org/Forum...orum/f=33/ stand there (http://dragonflycms.org /Forums/CPG-BBforum) and in the same way all topics url description.
I hope that can understand what I need to do.
I would be grateful for any answers or Idea about this can be done.
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2
Last edited by dadki on Wed Jul 15, 2009 1:04 pm; edited 1 time in total |
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Thu May 07, 2009 6:13 pm |
|
Do I need for every open thread to wait several months for someone to respond to me or ask someone to answer my question like i don´t know or something like that, I am as much a problem on this site or invisible if I just wont now answer me one of the admins of this page so I can pack my things and leave this place quietly, without leaving anything for me.
Thanks
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |
rlgura


Joined: Mar 27, 2006 Posts: 1148 Location: Cleveland, OH USA
|
Post subject: Re: LEO Forum Links Question Posted: Thu May 07, 2009 8:02 pm |
|
This would be a VERY complicated change, if even at all possible.
Those numbers in the URL refer to the database entries for the forum and post IDs - without those, you can't build the sql query to retrieve the data
_________________ Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies
rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1 |
|
| Back to top |
|
 |
greenday2k


Joined: Aug 11, 2005 Posts: 484 Location: CO
|
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Sun May 31, 2009 4:56 pm |
|
greenday2k wrote:
The best Way is in the Format:
Forums/$ForumID/ForumName.html
on the .htaccess file find this
Code:
RewriteRule ^index\.html /index.php
Before Add:
Code:
RewriteRule ^Forums/([0-9]*)/([a-zA-Z0-9_]+)(/|\.html)$ Forums/viewforum/f=$1.html
thanks for that but that was not what i was searching
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Sun May 31, 2009 8:51 pm |
|
Now let me try to explain a little more my questions
I want to change the forum viewtopic page title on file so that it shows in the topic header name> sitename
After a little searching in the forums, I came to find a thread where Easlane help one of a users with the same just for article title which contains code:
Code:
if($module_name == 'News' && isset($_GET['file']) && Fix_Quotes($_GET['file']) == 'article') {
$header .= '<title>'.strip_tags($pagetitle).'</title>';
} else {
$header .= '<title>'.$sitename.(!empty($pagetitle) ? ' '._BC_DELIM.' '.strip_tags($pagetitle) : '').'</title>';
}
So now I will not have the opportunity to do the same way with forums viewtopic.php file which begins with page $ title =
I would be grateful for any help I can get.
Regards
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Thu Jun 04, 2009 5:03 pm |
|
no one ?
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |
greenday2k


Joined: Aug 11, 2005 Posts: 484 Location: CO
|
Post subject: Re: LEO Forum Links Question Posted: Thu Jun 04, 2009 8:56 pm |
|
on modules/Forums/viewtopic.php
find (near to line 421)
PHP:
$page_title = $forum_topic_data['cat_title'].' '._BC_DELIM.' '.$forum_name.' '._BC_DELIM.' '. $topic_title;
Just replace it with
PHP:
$page_title = $topic_title;
Now, on header.php find this (inside the function head):
PHP:
$header .= '<title>'.$sitename.(!empty($pagetitle) ? ' '._BC_DELIM.' '.strip_tags($pagetitle) : '').'</title>';
Replace with:
Code:
if ($module_name=='Forums'){
$header .= '<title>'.(!empty($pagetitle) ? ' '.strip_tags($pagetitle) : '').' '._BC_DELIM.' '.$sitename.'</title>'; }
else {
$header .= '<title>'.$sitename.(!empty($pagetitle) ? ' '._BC_DELIM.' '.strip_tags($pagetitle) : '').'</title>';
}
That should work. Not tested ;D but is a nice nice hack to improve google indexing of forums.
_________________ www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Thu Jun 04, 2009 9:05 pm |
|
greenday2k wrote:
on modules/Forums/viewtopic.php
find (near to line 421)
PHP:
$page_title = $forum_topic_data['cat_title'].' '._BC_DELIM.' '.$forum_name.' '._BC_DELIM.' '. $topic_title;
Just replace it with
PHP:
$page_title = $topic_title;
Now, on header.php find this (inside the function head):
PHP:
$header .= '<title>'.$sitename.(!empty($pagetitle) ? ' '._BC_DELIM.' '.strip_tags($pagetitle) : '').'</title>';
Replace with:
Code:
if ($module_name=='Forums'){
$header .= '<title>'.(!empty($pagetitle) ? ' '.strip_tags($pagetitle) : '').' '._BC_DELIM.' '.$sitename.'</title>'; }
else {
$header .= '<title>'.$sitename.(!empty($pagetitle) ? ' '._BC_DELIM.' '.strip_tags($pagetitle) : '').'</title>';
}
That should work. Not tested ;D but is a nice nice hack to improve google indexing of forums.
Thank you very much for the help greenday2k
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |
greenday2k


Joined: Aug 11, 2005 Posts: 484 Location: CO
|
Post subject: Re: LEO Forum Links Question Posted: Thu Jun 04, 2009 9:08 pm |
|
Worked?
_________________ www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
dadki


Joined: Dec 17, 2007 Posts: 158
|
Post subject: Re: LEO Forum Links Question Posted: Thu Jun 04, 2009 9:48 pm |
|
greenday2k wrote:
Worked?
yes it works perfectly as I would like to have it.
dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) xp/2.0.1/5.0.45/4.4.7/9.2 |
|
| Back to top |
|
 |