News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Center My banner!

Started by MATTEK, April 13, 2010, 07:54:01 PM

Previous topic - Next topic

MATTEK

My forum is Powered by SMF 2.0 RC2 . I can't seem to center my customer banner. Any ideas?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jakob Fel

Put this before the code: <center>
Put this after the code: </center>

If that doesn't work, let me know.
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

MATTEK

Quote from: Joquan Productions on April 13, 2010, 09:50:37 PM
Put this before the code: <center>
Put this after the code: </center>

If that doesn't work, let me know.

What code? I've simply inserted a link in the spot that for a banner link. Do I put that around it?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jakob Fel

Here is the code you would need, but you need to put your own link in it.

<center><img src='http://example.com/example/img'</center>


Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

MATTEK

#4
Ok. So, I put that in and it didn't work.

Here's where I'm putting it.

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

I'm using the default curve theme.

I was going to try and edit the index.css sheet but I can't find the correct spot to enter the code you've given me. Should I do this through my ftp?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jakob Fel

Well, you have the right place to place a link, but to center it, you would need to do it in the index.css. I have a mod for my sites that has headers and footers. The Headers and Footers mod allows HTML codes to be put above the site, or below it. Unfortunately, I never have had experience with basic SMF, because I always use smfforfree.com to make my sites. Sorry I couldn't help more.  :(
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

MATTEK

If I upload my index.css file and give someone the banner link will they edit the file for me?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jakob Fel

Hmm... I am not so sure that would be a good idea. For one, you could get an exact replica of your site, run by someone else; two, whoever edits it, may ruin it. There are other reasons, but they aren't as critical.

Edit: clarified some of the original message
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

rd

index.css won't give someone an exact replica of the site >.< I think you are a bit misinformed. It's the database and site folders that really matter.

Also, if someone "ruins" it then it can still be easily fixed if you upload an un ruined version. Anyways, just attach your index.css and template.index.php, I am sure someone will do the edits for you. 

MATTEK

Thanks. I've attached them in the Help Wanted forum. Hopefully it's done by the time I wake up or I wont be able to upload it for a few days.  :'(
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jakob Fel

Quote from: Royalduke on April 19, 2010, 10:47:18 PM
index.css won't give someone an exact replica of the site >.< I think you are a bit misinformed. It's the database and site folders that really matter.

Also, if someone "ruins" it then it can still be easily fixed if you upload an un ruined version. Anyways, just attach your index.css and template.index.php, I am sure someone will do the edits for you.

I meant they could copy your index. I forgot about backups as well, for I never really use .css pages, because my forum came with all the mods needed for what I am doing.
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

MATTEK

Quote from: Royalduke on April 19, 2010, 10:47:18 PM
index.css won't give someone an exact replica of the site >.< I think you are a bit misinformed. It's the database and site folders that really matter.

So long as I don't upload an entire folder - just the index.css file I'm good to go?

Unless they screw me by editing it wrong. But that's solved by uploading an unscrewed one, correct?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

kat

In your theme's index.template, find this line:


   // Define the upper_section toggle in JavaScript.




Immediately before that, add this:


<a href="http://www.yourforumURL.com/index.php">
<center><img style="margin-top:6px" border="0" src="/Banner.gif" width="800" height="90" alt="yourforum" title="yourforum" /></a></center>




altering the URL, "yourforum" and "Banner.gif", to suit.


Banner.gif will need to be in the root of your forum.


Clicking the banner will take you to your homepage.

MATTEK


Quote from: Kat on April 20, 2010, 03:20:23 PM
In your theme's index.template, find this line:


   // Define the upper_section toggle in JavaScript.




Immediately before that, add this:


<a href="http://www.yourforumURL.com/index.php">
<center><img style="margin-top:6px" border="0" src="/Banner.gif" width="800" height="90" alt="yourforum" title="yourforum" /></a></center>




altering the URL, "yourforum" and "Banner.gif", to suit.


Banner.gif will need to be in the root of your forum.


Clicking the banner will take you to your homepage.

Awesome. I'm pretty sure I understand except do I upload 'Banner.gif' to Themes/images or do I upload it to the main directory? You said Root, which I think means main directory, but I'm still a newb and need to make sure. Thank you very much.


Also...can you recommend a good .php editor program?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

kat

The root of your forum, is where settings.php is.


I use Textpad. I know others swear by notepad++, I think it is.


Programmer's Notepad's damned good, too.


Especially the portable version. ;)

MATTEK

Quote from: Kat on April 20, 2010, 03:33:52 PM
The root of your forum, is where settings.php is.


I use Textpad. I know others swear by notepad++, I think it is.


Programmer's Notepad's damned good, too.


Especially the portable version. ;)

Awesome. I'll do this when I get home. Thanks again.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

kat

No sweat!


I know this is v1.1.11, but the banner will look like the one I have, here:


http://www.tlakoc.org.uk

MATTEK

Quote from: Kat on April 20, 2010, 03:41:01 PM
No sweat!


I know this is v1.1.11, but the banner will look like the one I have, here:


http://www.tlakoc.org.uk

Great. I'll ler you know if it works. Also I have a question.

Is there a benefit to using 1.1.11 rather than 2.0 RC3 besides the fact that 2.0 3 is still a release candidate?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

kat

Heh... Well, it's one of those "Whatever's best for you" things, innit?


v2.x has bugs in it, whereas v1.1.11 is tried and tested.


Actually, I prefer v1.1.11 over v2, anyway.

Advertisement: