Need a bit of help with php

Discussion in 'PHP' started by Rakaan, Jul 7, 2007.

  1. #1
    Hi guys,

    Small queries but I couldnt get them fixed. Hopefully someone can help me out.

    The queries are related to gamesitescript arcade site running an orange them (Available here in Freebies section)

    1) Why my stumbleupon starts with an underline? Code I am using is

    2) The no of media is shown on the 2nd line, can I make it appear on the first line?

    3) My menu column on right side is out of frame. How do I fix it?

    Any advise will be greatly appreciated.

    Thanks :)
     

    Attached Files:

    Rakaan, Jul 7, 2007 IP
  2. e39m5

    e39m5 Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This isn't really php, but replace your &nbsp; with <br>

    e39m5
     
    e39m5, Jul 7, 2007 IP
  3. robi-bobi

    robi-bobi Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1) this is probably due to <a> tag and your styling
    fast fix would be to use: <a href..... style="text-decoration:none">... at places where you don't want the underscore (it is actually underlining spaces)
    better way is to add this to your custom css, than apply the correct css class

    2) it looks like the reason is the image in the middle, try adding smaller image. This image is too big, so it 'pushes' other parts of the site away

    3) from what i see, there is no place for the numbers :)
    try to shorten some of the item, for example, instead of Other Meadia, just use Media
     
    robi-bobi, Jul 7, 2007 IP
  4. Rakaan

    Rakaan Well-Known Member

    Messages:
    256
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Thanks robi-robi.

    I can't make your solution work as described in 1. It still shows the underline next to stumbleupon for some reason.

    2) The image in the middle is a flash game so I think I'll have to reduce the size of that box. Thanks for the tip.

    3) Yup easy solution but I thought if I could stretch the theme a bit more on right side, all problems would have gone.
     
    Rakaan, Jul 7, 2007 IP
  5. robi-bobi

    robi-bobi Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    without the code we can only guess how things work
    post url here and it will be easier for us to help, after we see the code template
     
    robi-bobi, Jul 7, 2007 IP
  6. Rakaan

    Rakaan Well-Known Member

    Messages:
    256
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #6

    Attached Files:

    Rakaan, Jul 8, 2007 IP
  7. robi-bobi

    robi-bobi Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I don't have much time right now, but I will try to give you some directions
    first, we don't need the php files, since your questions are regarding the look of the site (html/css), you can remove the attached files

    1) from what I see, the solution I suggested should work. Just a sec. Yes, it works.
    try changing this:
    <a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.gamesgrip.com%2F" target="_blank">
    <img border="0" align="absmiddle" src="http://www.gamesgrip.com/images/social_icons/stumbleupon.gif"/>
    StumbleUpon
    </a>
    Code (markup):
    to this:
    
    <a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.gamesgrip.com%2F" target="_blank" style="text-decoration:none"> <img border="0" align="absmiddle" src="http://www.gamesgrip.com/images/social_icons/stumbleupon.gif"/> StumbleUpon</a><br/>
    
    Code (markup):
    as for the other questions, it is possible to change the template, you just have to play with width parameters of your tables (make backup first)
     
    robi-bobi, Jul 8, 2007 IP
  8. Rakaan

    Rakaan Well-Known Member

    Messages:
    256
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Great stuff. Got it all working.

    Cheers.

    Guess will have to put a request to hire some to fix theme for me.
     
    Rakaan, Jul 8, 2007 IP