How to add a logo

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

How to add a logo

Post by smurfy »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

How do I add my logo to show on all pages, on top of mboard ? I know nothing about php and would be thankful if you could send the relevant code and where to stick it.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to add a logo

Post by Klemen »

You can add logo HTML code to the bottom of "header.txt" file.

Something like:

Code: Select all

<img src="http://website.com/logo.gif" width="120" height="60" alt="Logo" />
(change URL to your own logo url and width/height values)


Note that only new posts will be affected, the old ones still will not show the logo.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

Thanks Klemen. I will test that code when the board is installed on my server... but how do I get the logo to show on the old posts?
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

Hi Klemen, please can you have a look at my board http://www.thearrogantasshole.net I have tried to add my logo but the template is no longer functioning properly ?
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

I have uploaded my logo to board but it is not showing on this page http://www.thearrogantasshole.net/msg/15.html Please can you tell me why ?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to add a logo

Post by Klemen »

You seem to have deleted mboard.php file from the server?

Try uploading original mboard.php again.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

Hi Klemen, yes it seems that some one deleted the file but I have uploaded it and the website is back up. However, the logo remains missing on this page http://www.thearrogantasshole.net/msg/15.html how do I rectify this ?

Thanks so much.
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

... Also, I have noticed that the board is using my hosts email address even though I have added my email on the setup file? How do I resolve this ?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to add a logo

Post by Klemen »

I get a "page not found" error when I try to open your website or the page you mention.

Also, like said, note that any changes to the header.txt file will only show in *new* posts, not existing ones. To modify existing ones you would have to manually modify html files inside the "msg" folder.

The email address you entered is the address where notifications will be sent to - the "from" email address is usually controlled by php configuration. You can however try this and see if it helps:
1. open mboard.php in an editor
2. change

Code: Select all

mail($settings['admin_email'],'New forum post',$message);
to

Code: Select all

mail($settings['admin_email'],'New forum post',$message,"From: you@yourmail.com");
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

Apologies Klemen, I have had to reset my IP to point to my hosting account and will have to wait till it propagates.

Thank you for the information which I will try out once my website is properly loading... is it difficult to come up with a script that can work within my server that will add the logo automatically to the pages?
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

... The problem is that I have no understanding of this kind of stuff :O(

It would be great if you could do more to improve the script to make it more managable on the front and backend.
smurfy
Posts: 19
Joined: Wed Jan 16, 2013 11:22 pm

Re: How to add a logo

Post by smurfy »

Is it Ok if I also add a copyrights message on the footer... It will not crash the board ?

I see that you do not have a contacts form. I would like to add a contact form to my board. Can you recommend me a nice simple contact form?

The mBoard is a lovely little script and exactly what I was looking for my website !
Locked