Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 12-06-2008, 06:43 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out the problem, I just need to figure out the correct place to put the "alt1" and "alt2" tags. They are set up with the border and color, but just can't place them right.

I go style manager > edit templates > forum home templates > then choose the file that I'm seeing under the "view source" but it's different when I'm trying to edit the actual file.

Here is the code for "forumhome_lastpostby" where would I put the "alt2" tag?

PHP Code:
<if condition="$show['lastpostinfo']">
<
div class="smallfont" align="$stylevar[left]">
    <
div>
        <
span style="white-space:nowrap">
        <if 
condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]alt="$icon[title]border="0" /></if>
        <if 
condition="$lastpostinfo['prefix']">
            
$lastpostinfo[prefix]
            </
span><if condition="is_browser('safari')"><!--bug#24775-->&nbsp;</if>
            
<span style="white-space:nowrap">
        </if>
    <
a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a></span>
    </
div>
    <
div style="white-space:nowrap<if condition="is_browser('ie'6)">; float:$stylevar[left]</if>">
        <
phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
    </
div>
    <
div align="$stylevar[right]style="white-space:nowrap">
        
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
        <
a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]border="0" /></a>
    </
div>
</
div>
<else />
<
div class="smallfont" align="$stylevar[right]">
    
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
    <
a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]border="0" /></a>

</
div>

</if> 
Reply With Quote
  #12  
Old 12-06-2008, 07:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should not have to modify the forumhome_lastpostby template. The columns are included in the template that calls that template (look for the <td> tags around $lastpostby or whatever the call is for that template).
Reply With Quote
  #13  
Old 12-06-2008, 07:41 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry lynne, but I'm losing you.

I tried to put the <td class="alt2"> tag in various places in the "forumhome_lastpostby" template and it worked, but it just through off the rest of the tables.

I did the same thing to another template, and it worked. If you look at the site, you'll notice the background color and border on the far left where the icons are work fine, i'm just having problems how to fix the other columns.

could you please explain what you meant in a different way? i would appreciate it!
Reply With Quote
  #14  
Old 12-06-2008, 07:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You cannot just add a td tag into someplace. You need to just add the class="alt2" into *existing* td tags. It looks like you need to modify the forumhome_forumbit_level2_nopost template and add in the class. Look at this line, you have an empty place in where the class should be (highlighted in red):
Code:
<!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->
<tr align="center">
    <td class="alt1"><img src="web/statusicon/forum_old.gif" alt="" border="0" id="forum_statusicon_13" /></td>
    <td class="" align="left" id="f13">
        <div>
            <a href="forumdisplay.php?f=13"><strong>Member Welcome</strong></a>
            
        </div>
        <div class="smallfont">New to Solar Panel Talk? Come in and introduce yourself.</div>
        
        
    </td>
    <td class="" nowrap="nowrap"><!-- BEGIN TEMPLATE: forumhome_lastpostby -->

<div class="smallfont" align="left">
You need to change those to class="alt2" (alt1 would make it white, I think)
Reply With Quote
  #15  
Old 12-06-2008, 08:02 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

see i noticed that missing tag too, but when I go to the "forumhome_forumbit_level2_nopost" template it isn't there. thats why i'm confused. do you think it was named wrong?

This is what the template "forumhome_forumbit_level2_nopost" looks like:

PHP Code:
<tr>
    <
td class="tcat"><span class="smallfont">&nbsp;</span></td>
    <
td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">5<else />4</if>">
        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
        <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
        <if 
condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    </
td>
</
tr>
$childforumbits 


This is what "forumhome_forumbit_level2_post" looks like: (i added the "alt1" right there in the beginning and replaced "$rowClass" that was there previously. thats what made the background color and border work on the icons that are on the left of the table

PHP Code:
<tr align="center">
    <
td class="alt1"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/></td>
    <
td class="$rowClassalign="$stylevar[left]id="f$forum[forumid]">
        <
div>
            <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if 
condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </
div>
        <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
        <if 
condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if 
condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    </
td>
    <
td class="$rowClassnowrap="nowrap">$forum[lastpostinfo]</td>
    <
td class="$rowClass">$forum[threadcount]</td>
    <
td class="$rowClass">$forum[replycount]</td>
    <if 
condition="$vboptions['showmoderatorcolumn']">
    <
td class="$rowClass"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</
tr>
$childforumbits 
Reply With Quote
  #16  
Old 12-06-2008, 08:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolarTalk View Post
This is what "forumhome_forumbit_level2_post" looks like: (i added the "alt1" right there in the beginning and replaced "$rowClass" that was there previously. thats what made the background color and border work on the icons that are on the left of the table
This is the third line in your "forumhome_forumbit_level2_post" template:
HTML Code:
<td class="$rowClass" align="$stylevar[left]" id="f$forum[forumid]">
Change it to:
HTML Code:
<td class="alt1" align="$stylevar[left]" id="f$forum[forumid]"> 
And do similar to other columns like that.
Reply With Quote
  #17  
Old 12-06-2008, 09:23 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much for your patience and help Lynne. I got it figured out thanks to you and I also learned a ton. Thanks again!
Reply With Quote
  #18  
Old 12-06-2008, 09:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks very nice! :up:
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04270 seconds
  • Memory Usage 2,299KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete