Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2006, 08:09 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default i need some help understanding templates

Yeah, i'm no advance skinner as of yet but i've made a really nice skin but i would like to add template edits to add images underneith things like the Whats going on box and forums....my dilemma is, i do not understand how to fully use templates, anyways what i'd ike to know is a simple tutorial i can understand that will help me make sence of how to add template changes so i can add images in certain areas of the forums....all the tutorials i've looked through don't have what i'm looking for and to me i can't seem to get my head around.

anyways heres what i want to do....i want to use template edits to add this image to my forums in certain area's:



now on skins usually theres a code you use called Repeat X-left....now i know my image is WAY to big so i'll cut it down to about 30 pixels wide, so using the repaet code would extend the image all the way across the page untill it reaches the other end of the forums....correct?

what i need to know is what codes i can use now i've uploaded it to my server in which templates and where. i would really appreciate it if someone could give me an example code i could work from since i'm not very good at this...i'm a n00b to coding.

basically i want the end product to look like this:



could someone please point me in the right direction as i'm lost as to how to do it.

much appreciated and thanks in advance guys!
Reply With Quote
  #2  
Old 10-30-2006, 08:42 PM
SmashinYoungMan SmashinYoungMan is offline
 
Join Date: Nov 2004
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the forumhome vBshout template, try adding this just before the </tbody> tag.

HTML Code:
<tr>		
<td width="100%" height="50" style="background: url($stylevar[imgdir_misc]/yourimage.gif) repeat-x top left;">
&nbsp;
</td>
</tr>
Upload the image to the misc image directory, and rename the "yourimage.gif" to whatever the name of your image is. I made the height attribute "50" because that's the height of your image. Adjust it to whatever you need, depending on your image's final size.

Hope this does the trick for you!
Reply With Quote
  #3  
Old 10-31-2006, 09:12 AM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much i shall try this out when i get home, so this can be used for all the template i wish to add an image to?

many regards
Neo
Reply With Quote
  #4  
Old 10-31-2006, 11:56 AM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=124576" target="_blank">Skinning: Understanding A Template-Based System</a>
Reply With Quote
  #5  
Old 10-31-2006, 04:16 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did look at that tutorial but i was confused and it didn't tell me what i needed to know. thanks for trying, Smashinyoungman has answered my question and i understand now. thank you for your help ^_^

EDIT: upon trying that code it did work BUT only added one third of the image once....

EDIT: don't worry i figured it out, if i put 100% it wouldn't work but if i put 932 then it works.

thanks guys.
Reply With Quote
  #6  
Old 10-31-2006, 05:09 PM
SmashinYoungMan SmashinYoungMan is offline
 
Join Date: Nov 2004
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad...I neglected to add the colspan attribute to that bit of code. It needs a column span of 2. Here is the updated code:

HTML Code:
<tr>		
<td width="100%" height="50" colspan="2" style="background: url($stylevar[imgdir_misc]/yourimage.gif) repeat-x top left;">
&nbsp;
</td>
</tr>
To answer your other question, this bit of code will work in most templates where you want to place the image. It will generally be placed below the final </tr> tag, just above the closing </table> or </tbody> tags. The colspan attribute will also need to be tweaked or removed, depending on the template (or managed using an <if> statement to deal with optional columns such as the moderator column).

There are other ways to do it, of course. You may opt to put the image code in its own table, or in a div. Setup a test theme and play around with the code I've given you, or try different approaches if you like. Best of luck!
Reply With Quote
  #7  
Old 11-01-2006, 11:21 AM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much, your guidance is very helpful and i'll do what you said about experimenting, the way you've explained this is easy to understand and i've learnt from it. thanks alot my good friend. much appreciated!

-Neo
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04247 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete