Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need help with coding something....
Old 08-24-2007, 09:03 PM Need help with coding something....
Junior Talker

Posts: 4
Name: Corey
Trades: 0
Alirght guy's I'm in need up some help. I'm only an HTML newby so I thought I come here to get some help! Alright here's my question. http://www.cockytalk.com/video.php The forum has images inside the title bars (The ones that say 200s, 1980s etc.) Where do I need to insert the code so I can display images like that...http://www.tigerpawtalk.com/videos.php.

Quote:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="750" height="50" align="center">
<tr>
I know it has to go somewhere in there (Please correct me if I'm wrong.) What's the code I need to insert to display the image and, where do I need to put it?
SpartanTiger81 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2007, 09:11 PM Re: Need help with coding something....
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
It doesn't look like they've done anything special. They've just added the image into a table cell. The hard part I know is that vBulletin isn't going to show you things quite the same way the source code shows it since you'll be dealing with vBulletin's php variables.

You'll have to find the place in the vB code where you want your image to be and then create a new row in the table. Inside the row will probably just be a single table cell that contains your image.

<tr>
<td><img src="path-to-your-image" /></td>
</tr>

Where you place the image depends on your design. It looks like your design is still in progress so it's hard to tell you exactly where in the code to place the above code.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-24-2007, 09:13 PM Re: Need help with coding something....
brandrocker's Avatar
Experienced Talker

Posts: 30
Name: CONFIDENTIAL
Location: India
Trades: 0
Yes, as told by Vangogh





__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by brandrocker; 08-24-2007 at 09:21 PM.. Reason: Misunderstanding...
brandrocker is offline
Reply With Quote
View Public Profile Visit brandrocker's homepage!
 
Old 08-24-2007, 09:19 PM Re: Need help with coding something....
Junior Talker

Posts: 4
Name: Corey
Trades: 0
Quote:
Originally Posted by vangogh View Post
It doesn't look like they've done anything special. They've just added the image into a table cell. The hard part I know is that vBulletin isn't going to show you things quite the same way the source code shows it since you'll be dealing with vBulletin's php variables.

You'll have to find the place in the vB code where you want your image to be and then create a new row in the table. Inside the row will probably just be a single table cell that contains your image.

<tr>
<td><img src="path-to-your-image" /></td>
</tr>

Where you place the image depends on your design. It looks like your design is still in progress so it's hard to tell you exactly where in the code to place the above code.
http://www.tigerpawtalk.com/videos.php It worked only it's very ugly. How do I push it to the far left and change the color of the row? Sorry I'm very new to this stuff.
SpartanTiger81 is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 09:47 PM Re: Need help with coding something....
Junior Talker

Posts: 4
Name: Corey
Trades: 0
Anyone?
SpartanTiger81 is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 10:15 PM Re: Need help with coding something....
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Corey you have to be a little more patient especially on weekends. It gets slow around here sometimes. I think I spoiled you by answering so fast before.

I'm not seeing the images at the moment. Did you take them out? Were you placing them above the (Place videos here) text?

How far were they from the left? Is your image cropped tight to how you want it to display? The image should by default be aligned to the left. It looks like the table cells have been giving a padding of 4px all around in the css. Was the image just slightly off the left edge? If so then it's probably the padding that's causing the issue.

What I would do is assign a class to the table cells that will have the image. Your code would look like

<td class="image-heading">

You can give the class most any name you want. Then you'll have to find where the css file is and add

td.image-heading {padding: 0}

Again you can give the class a name of you're choosing, but it will need to be the same in the html and the css. That should work assuming it was the 4px that were the problem.

I think the background color is being controlled in the PHP. I'm guessing a little, but I think where the PHP is creating the table cells it has code to give every other row a different background color. You probably don't want to change that though since there might be places where you do want that alternating color in the forum.

What you can do is add to the css above

td.image-heading {padding: 0; background-color:#fff}

which should make the background color of these specific cells white. You can obviously change the background-color to the color of your choice.

Hopefully that all works.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-24-2007, 10:24 PM Re: Need help with coding something....
Junior Talker

Posts: 4
Name: Corey
Trades: 0
Quote:
Originally Posted by vangogh View Post
Corey you have to be a little more patient especially on weekends. It gets slow around here sometimes. I think I spoiled you by answering so fast before.

I'm not seeing the images at the moment. Did you take them out? Were you placing them above the (Place videos here) text?

How far were they from the left? Is your image cropped tight to how you want it to display? The image should by default be aligned to the left. It looks like the table cells have been giving a padding of 4px all around in the css. Was the image just slightly off the left edge? If so then it's probably the padding that's causing the issue.

What I would do is assign a class to the table cells that will have the image. Your code would look like

<td class="image-heading">

You can give the class most any name you want. Then you'll have to find where the css file is and add

td.image-heading {padding: 0}

Again you can give the class a name of you're choosing, but it will need to be the same in the html and the css. That should work assuming it was the 4px that were the problem.

I think the background color is being controlled in the PHP. I'm guessing a little, but I think where the PHP is creating the table cells it has code to give every other row a different background color. You probably don't want to change that though since there might be places where you do want that alternating color in the forum.

What you can do is add to the css above

td.image-heading {padding: 0; background-color:#fff}

which should make the background color of these specific cells white. You can obviously change the background-color to the color of your choice.

Hopefully that all works.

I'm placing them where you see the red x's. I want them to the far left like the site I showed you in the first post. I'm having a little bit more trouble moving the "Baseball Highlights" table underneath the "Video Of the Week" table. I assigned both of them to the left but the "Baseball Highlights" only go that far!
SpartanTiger81 is offline
Reply With Quote
View Public Profile
 
Old 08-25-2007, 04:41 PM Re: Need help with coding something....
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Corey are the images where you want them now? I see them to the right side, but they look good. It looks like you've made a lot of progress since last night too.

If you do still want them more to the left you just need to change the align="right" to align="left" in the table cells where the images are. I'm thinking you like them where they are now, but just in case that's the change you would need to make.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Need help with coding something....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27984 seconds with 12 queries