can i actually edit a forum page?

Discussion in 'PHP' started by drew68, Aug 8, 2006.

  1. #1
    hi all...

    question...can i add an image and add google adsense to a forum page?

    this is the forum...

    http://www.pdrforum.com/index.php

    is it possible and if so is it the index.php file that i would be editing?

    i was asked to add an image and google ads on there.

    thanks in advance...

    drew
     
    drew68, Aug 8, 2006 IP
  2. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #2
    I am sure you can, you would be editing template files.
     
    dcristo, Aug 8, 2006 IP
  3. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    yea...i see 3 different template folders and there all php files...wondering if anyone knew exactly which file i would have to edit...i'm not a php guru...i've tackled php as far as editing them for awhile now so it's not like i've never seen any of this stuff before...but this is quite the challenge being that it's a forum rather than just a website...
     
    drew68, Aug 8, 2006 IP
  4. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just do one thing. Backup all the files you think you are going to edit. Just copy them to a safe location before monkeying around with them.

    Or better yet, make a local installation of the forum on your system. Test out the templates and edit them on your own system so nobody will see if you mess up :D

    Thomas
     
    coderlinks, Aug 8, 2006 IP
  5. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #5
    lol...good call...i usually do...i call it like index_backup or index1 or something of that nature...but the problem is..i have NO idea..none whatsoever one which file i should touch or even where...cuz i have no clue! lol!
     
    drew68, Aug 8, 2006 IP
  6. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'd recommend running your own copy for testing purposes. A good place to start might be Themes/default/index.template.php
     
    Gordaen, Aug 8, 2006 IP
  7. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #7
    ok i'll give that a shot right now...thanks guys for the heads up...
     
    drew68, Aug 9, 2006 IP
  8. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #8
    im trying to add an image above the forum section at the very top...where in the php file do i add the image? i don't know where...could you guys tell me where?

    www.pdrforum.com

    need help :(
     
    drew68, Aug 9, 2006 IP
  9. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #9
    does anyone know how to add an image to a forum page?

    all i'm trying to do is add a header image at the top...is this feasible? i've looked at almost every index.php file...and index.template.php file and i don't see anywhere where i can add one image header at the top...anyone know?
     
    drew68, Aug 11, 2006 IP
  10. dastuff

    dastuff Peon

    Messages:
    475
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I don't use SMF but just see what file is your main template... If you were to view source on the page you should find similarities between the two...

    Then all you have to do is go down to the body portion and add the code to the top... php still is html at heart, so even though you can't code in php if you can read html you should be able to figure out which page is which.

    If worse comes to worse goto the SMF support forums and they'll be able to direct you to the exact file you need. They probably have a tutorial on how to incorporate adsense into your forums (in multiple places too)

    Good Luck
     
    dastuff, Aug 11, 2006 IP
  11. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #11
    cool..thank you dastuff.

    i'll give that a shot...thank you!
     
    drew68, Aug 11, 2006 IP