LEO Forum Links Question
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCPG-BB (forum)
Author Message
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: LEO Forum Links Question
Posted: Thu Apr 30, 2009 6:25 pm
Reply with quote

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
View user's profile
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Thu May 07, 2009 6:13 pm
Reply with quote

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
View user's profile
rlgura
1000+ Posts Club


Joined: Mar 27, 2006
Posts: 1148
Location: Cleveland, OH USA

PostPost subject: Re: LEO Forum Links Question
Posted: Thu May 07, 2009 8:02 pm
Reply with quote

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
View user's profile Visit poster's website
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: LEO Forum Links Question
Posted: Fri May 08, 2009 3:16 pm
Reply with quote

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 

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Sun May 31, 2009 4:56 pm
Reply with quote

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 Smile


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
View user's profile
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Sun May 31, 2009 8:51 pm
Reply with quote

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
View user's profile
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Thu Jun 04, 2009 5:03 pm
Reply with quote

no one ? Embarassed

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
View user's profile
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: LEO Forum Links Question
Posted: Thu Jun 04, 2009 8:56 pm
Reply with quote

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
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Thu Jun 04, 2009 9:05 pm
Reply with quote

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 Smile


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
View user's profile
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: LEO Forum Links Question
Posted: Thu Jun 04, 2009 9:08 pm
Reply with quote

Worked?
_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: LEO Forum Links Question
Posted: Thu Jun 04, 2009 9:48 pm
Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCPG-BB (forum) All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.6167 seconds with 16 DB Queries in 0.0836 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy