 |

01-20-2005, 06:51 AM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
How Do I edit phpbb 2.0.11 files?
Hi,
I've changed the name of my easyCMS aricles to read, "sports-blogs.php."
That being said, I have a few questions to ask.
1. How do I edit my titles for each page within my mega tags?
Example: Currently my phpbb sports blogs main page says, Sports Forums: Sports Blogs....... I'd like to remove the Sports Forums from the title of that page and leave it as Sports Blogs.
2. How do I delete the sportsforums in the blogs url?
Example: currently it reads, http://www.domainname.com/sportsforums/sportsblogs.php
So in other words I'd like to have it read, http://www.domainname.com/sports-blogs.php
Thanks you.
|

01-20-2005, 10:40 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
Hi ultbaseball,
I hope this helps you...
here I go..
Quote:
1. How do I edit my titles for each page within my mega tags?
Example: Currently my phpbb sports blogs main page says, Sports Forums: Sports Blogs....... I'd like to remove the Sports Forums from the title of that page and leave it as Sports Blogs.
|
it seems that you want to change page title of the topic...
so page will be viewtopic.php
I am not sure this is the correct one but I just downloaded the source of of PHPBB and looked around in that file...
you can replace this code
Code:
$page_title = $lang['View_topic'] .' - ' . $topic_title;
with
Code:
$page_title = $topic_title;
You can apply mod_rewrite rule...
I am pretty new to mod_rewrite but you may try this rule..
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)\.php$ sportsforums/$1.php
give it a shot and see what happens..
Deep
|

01-20-2005, 02:52 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
Hi Deep13,
"I am pretty new to mod_rewrite but you may try this rule..
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)\.php$ sportsforums/$1.php "
Where do I complete this step?
Thanks :)
|

01-20-2005, 02:57 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
Oh i am sorry i forgot to mention it..
you have to create a file called .htaccess in root directory of forum and put that code inside that..
Regards
Deep
|

01-20-2005, 03:33 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
Hi Deep13,
"you can replace this code
Code:
$page_title = $lang['View_topic'] .' - ' . $topic_title;
with
Code:
$page_title = $topic_title;"
I tried that and still get this:
If you click my main forum page: "Sports Forums."
That is fine, BUT
If you then click say baseball cards wanted list, you still get this at the title: "Sports-Forums: View Forum- Baseball Cards Wanted List."
Also, if you click the blogs page of the phpbb 2.0.11, you still get this:
Sports-Forums: Sports Blogs.
|

01-20-2005, 03:39 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
oh then you need to edit this file..
viewforum.php
search for
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];
and replace it with
$page_title = $forum_row['forum_name'];
see if it works or not..
2nd thing about blog...
which blog software r u using?
Deep
|

01-20-2005, 03:44 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
hi deep,
I am using EasyCMS.
I added the .htaccess file to the forum root and now my entire forums including blogs and links says this,
"Internal Server Error." I can't find the .htaccess file though in the root. :(
|

01-20-2005, 03:49 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
oh remove that .htaccess from there...
I was in impression that you had that thing inside the forum..so i suggested you to put it inside the forum dir...
well it is currently 1.10AM here in india and me going to bed now..but i will def..check for the solution tmrw...
Regards
Deep
|

01-20-2005, 03:51 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
I Deep13,
I can't find the .htaccess file within the root. So forum continues to read, "400 Internal Issue."
|

01-20-2005, 04:08 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
Hi Deep13,
Just wanted to let you know the 400 Internal problem is working now. I just had to go into my control panel and delete the .htaccess file from the forum root.
Not sure why I could not delete it using FTP
|

01-21-2005, 12:36 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
problems sorted out now?
Let me know if still not...
if not then, give me the url of the EasyCMS you are using..i will download the code and check for the file where page title variable is stored..
Deep
|

01-21-2005, 07:55 AM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
Hi deep,
I'll be back in a few hours to see for your response and then I'll respond back. It's 7am here :)
|

01-21-2005, 12:00 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
to change the title of the pages for EasyCMS you need to edit file cms_view_article.php
replace
$page_title = $lang['View_article'] . ' - ' . $article_info['article_title'];
with
$page_title = $article_info['article_title'];
about the url thing..
You can use mod_rewrite rules to change the URLs but again you need change the php code inside those files so that all the links point to the URL you want...
and i think for mod_rewrite you might have to take help of the ones who are very familier with mod_rewrite..
Deep
|

01-21-2005, 01:48 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2004
Posts: 16
|
|
Hi Deep,
Sorry the easyCMS still didn't work after all.
It still says in the brower for the sports blogs(using the easycms):
"Sports Forums:: Sports Blogs- Baseball Cards Blogs."
I need to try to remove the wording: Sports Forums and Sports Blogs. BTW, baseball cards blogs is one of the sub-categories for sports blogs.
Reason for this is spam. Sports used to much in the title there.
|

01-24-2005, 12:06 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2003
Location: India
Posts: 306
|
|
Hi,
Sorry for replying late,
What you can do is...
check couple of files and search for the variable "$page_title"
The page title is stored in that variable only, so once you find it, you can remove unwanted values from that...
Deep
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|