Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2005, 06:51 AM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default 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.
Reply With Quote
  #2 (permalink)  
Old 01-20-2005, 10:40 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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;

Quote:
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
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
Reply With Quote
  #3 (permalink)  
Old 01-20-2005, 02:52 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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 :)
Reply With Quote
  #4 (permalink)  
Old 01-20-2005, 02:57 PM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
  #5 (permalink)  
Old 01-20-2005, 03:33 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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.
Reply With Quote
  #6 (permalink)  
Old 01-20-2005, 03:39 PM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
  #7 (permalink)  
Old 01-20-2005, 03:44 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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. :(
Reply With Quote
  #8 (permalink)  
Old 01-20-2005, 03:49 PM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
  #9 (permalink)  
Old 01-20-2005, 03:51 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

I Deep13,

I can't find the .htaccess file within the root. So forum continues to read, "400 Internal Issue."
Reply With Quote
  #10 (permalink)  
Old 01-20-2005, 04:08 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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
Reply With Quote
  #11 (permalink)  
Old 01-21-2005, 12:36 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
  #12 (permalink)  
Old 01-21-2005, 07:45 AM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

Deep13,

The URL for the links is here:
http://www.phpbb.com/phpBB/viewtopic.php?t=110836

url for the EasyCMS is here: http://www.phpbbhacks.com/download/1411

As I said, I am trying to remove the sports-forums from both as well as the ID's.

Example: for the EasyCMS one of the sub-categories would read, http://www.domainname.com/baseball-cards-blogs.php

For the links it would read:

http://www.domainname.com/baseball-cards-directory.php

currently the links hack is installed as:
http://www.domainname.com/sports-forums/links.php

Not sure how to change all this.

Thanks
Reply With Quote
  #13 (permalink)  
Old 01-21-2005, 07:51 AM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

Deep13,

The URL for the links is here:
http://www.phpbb.com/phpBB/viewtopic.php?t=110836

url for the EasyCMS is here: http://www.phpbbhacks.com/download/1411

As I said, I am trying to remove the sports-forums from both as well as the ID's.

Example: for the EasyCMS one of the sub-categories would read, http://www.domainname.com/baseball-cards-blogs.php

For the links it would read:

http://www.domainname.com/baseball-cards-directory.php

currently the links hack is installed as:
http://www.domainname.com/sports-forums/links.php

Not sure how to change all this.

Thanks
Reply With Quote
  #14 (permalink)  
Old 01-21-2005, 07:55 AM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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 :)
Reply With Quote
  #15 (permalink)  
Old 01-21-2005, 12:00 PM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
  #16 (permalink)  
Old 01-21-2005, 01:42 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

Hi deep13,

It worked. Thanks.

How about for the links mod? http://www.phpbb.com/phpBB/viewtopic.php?t=110836
Reply With Quote
  #17 (permalink)  
Old 01-21-2005, 01:48 PM
WebProWorld New Member
 

Join Date: Dec 2004
Posts: 16
ultbaseball RepRank 0
Default

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.
Reply With Quote
  #18 (permalink)  
Old 01-24-2005, 12:06 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

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
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0