Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: how to change logo snews with my image?  (Read 429 times)

soke

  • Newbie
  • *
  • Karma: 0
  • Posts: 1
how to change logo snews with my image?
« on: February 20, 2012, 04:29:00 AM »

iam newbie.
i do learning about snews tutorial,
someday i want to change logo on header snews , i tyr find this image
but not found?  ???

nothing file image on folder snews..
what i must do??

plis help me, & thank's  ;D
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: how to change logo snews with my image?
« Reply #1 on: February 20, 2012, 07:42:35 PM »

Hi Soke... welcome to sNews!
As far as I can remember, there is no sNews logo hard-coded in the official sNews 1.7 download package's index.php (template) file. However, there is an sNews logo included in the root/images folder.

If you wanted to display the logo in an article or a page, you would do that by inserting an HTML string in your article or page text. You would do the same steps for any image you want to insert in an article or page once you have uploaded your image into the images folder.
When creating or editing an article or page:
1) Put your cursor in the Editor textarea where you want the image to be inserted.
2) Click the "Image" button under "Insert" below the Editor textarea.
3) In the URL field that comes up, type in the relative URL (not a full one with http://) to the image.
    In this case, it would be images/logo.gif
4) In the next field that comes up, insert the alternative text, in this case sNews Logo.
    You should then see this string inserted in your textarea where your cursor was:
    <img src="images/logo.gif" alt="sNews Logo" />
5) Save your new or edited article or page, then view it on the Home page (or wherever it is).

If you want to use an image in your template, you can do that in one of two ways.
1) You can hard-code it in your style.css file for any element (division class or id, or for a heading like h1, h2, h3, etc)
2) You can hard-code it within the HTML in your index.php (template) file wherever you want it to display.
« Last Edit: February 20, 2012, 07:45:34 PM by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: how to change logo snews with my image?
« Reply #2 on: March 01, 2012, 12:15:58 PM »

great key, :D
Logged
“Fifty years of programming language research, and we end up with C++?”