Dabbles Posted March 21, 2003 Posted March 21, 2003 I am totally over my head with php, I am not a programmer of any sort, but managed to setup a phpbb via the Cpanel. Now what I would like to do is replace their logo with a link logo back to my site. I have no idea where to do this.... can anyone help? TIA, Dabs Quote
TCH-Rick Posted March 21, 2003 Posted March 21, 2003 No php required. Right click on the current logo and note the name and location. The default is logo_phpBB.gif in the /templates/subSilver/images subdirectory off of your main forum directory. Upload a new graphic with that name (I renamed the old one so I could go back if needed). It will by default link back to the main board page. Not sure how to link back to your main website. Quote
Dabbles Posted March 21, 2003 Author Posted March 21, 2003 Thanks Rick... I did that and got my logo up! Now... if I can find out how to put a clickable link up there or change the link on the logo to go back to the homepage for that website, I would be in great shape! This is the BB: http://www.desertduckflyers.com/forums/ Also... I noticed that Invision Power Board has a calendar feature which I need on another website... does PHPBB have it by chance? I have not noticed it, but I could have overlooked it easily enough. Quote
borfast Posted March 22, 2003 Posted March 22, 2003 TO change the link, find the HTML code that looks like this: ><a href="http://www.desertduckflyers.com/forums/index.php"><img src="templates/subSilver/images/logo_phpBB.gif" /></a> and change the URL text string right next to "href" in the begginning of the line. It's plain HTML, you should learn it NOTE: I'm almost falling asleep so my explanations might not be very clear. Let me know if this is the case and I'll try to make it clear. As for the calendar, I believe that phpBB does have a calendar add-on. Go to phpbb.com and look for it. Also try searching google for "phpbb calendar" or "phpbb mod". Quote
TCH-Rick Posted March 22, 2003 Posted March 22, 2003 Check out this topic for info on a calendar mod for phpBB. I did a search on the phpBB support forum and found the answer to changing the link on the logo. The borfast is right as to the code change needed. The problem I had was trying to find which file contained the code. From the phpBB forum I found that it is in a file in the /templates/subsilver directory called overall_header.tpl. It is an HTML file. You can go to the file manager in cPanel and edit it. Go down near the bottom of the file (it was line 231 in my html editor) and you will find the code that says: <td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td> Change the "{U-INDEX}" to "http://www.******" to set the link. You can also change the logo_phpBB.gif filename to whatever file you want to use for a logo. I tested it on my site and it worked fine. Note that if you use a different theme than subsilver you will have to find the file in that directory. Quote
Dabbles Posted March 22, 2003 Author Posted March 22, 2003 I can stumble through HTML code so I would reconize this if I see it, but where do I look for this? I go to the file manager and then... where?... and what file am I looking for... a index.php file? I'll look up the info on the calendar... thanks! Quote
borfast Posted March 22, 2003 Posted March 22, 2003 OK, so I was really sleepy last night and my explanation was worthless... Here's a (hopefully) better one (although Rickvz already posted it too): phpBB's templates are separated for each of the webpages' sections. You have a general template for the header, a general template for the footer and several templates for the body depending on which page you're browsing. So if you're looking at the forums index.php page, it will load the "overall_header.tpl", "index_body.tpl" and "overall_footer.tpl" templates. If you go to another page, it will load the corresponding "*_body.tpl" template and so on. These *.tpl files are stored in a directory named "templates" in the root of your phpBB installation. Inside that directory you'll find one other directory, named "subSilver". This is the directory for the "subSilver" theme. If you install other themes, you'll have to create the corresponding directories here. But for now, go inside the "subSilver" directory and take a look. You have all the template files there The one you're looking for is "overall_header.tpl". Inside, after scrolling down a little (or perhaps it's easier if you use the find command from your editor), you'll find the following code: ><td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td> You want to change the {U_INDEX} to the URL of your website (keep the "" around it). You'll probably also want to change the {L_INDEX} to some other text - this is the text that will popup if you hold the mouse cursor for a couple of seconds over the logo. There. I hope this helps you out. Quote
MRwisdom12 Posted April 4, 2003 Posted April 4, 2003 Rickvz. I saw that your in Greenville SC.. Me too.. What a small world we live in. Quote
greatfolios sysop Posted April 4, 2003 Posted April 4, 2003 Just a deeper explanation of borfast's post http://www.phpbb.com/phpBB/viewtopic.php?t=10764 I just (3weeks ago) added the calendar and it wasn't tough, I would say to do the logo link first, it's a good primer, then take on the calendar. http://www.phpbbhacks.com/viewhack.php?id=152 good luck! Mr. Bill Quote
TCH-JimE Posted April 4, 2003 Posted April 4, 2003 Hi, Just one bit of advice, back it up before you start modding it incase it all goes wrong! Jim Quote
n2access Posted May 13, 2003 Posted May 13, 2003 WOW! This forum is terrific. I have the exact same issue and with a little search, found the answer to my question right here. TCH is providing a lot of value through this board. Put me down as a reference! Jerry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.