vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Postbit_Legacy REVERSED Layout 1 v.1.0 (https://vborg.vbsupport.ru/showthread.php?t=114968)

Bubble #5 05-21-2006 09:05 PM

Quote:

Originally Posted by Freesteyelz
Ahh. Let me know how it goes.

So far, so good ;)

I really haven't had time to test it thoroughly though as I'm smack in the middle of designing a new skin :surprised:

Freesteyelz 05-21-2006 09:43 PM

I'm glad that (so far) it's working. If the fix becomes true then we can blame the faulty display on vB developers for missing the "px". Hehe. :D

Bubble #5 05-21-2006 11:46 PM

Well it's doing it again :bunny: Another thing that we noticed is that the username menu doesn't work, which might have something to do with it. We're looking at that part now.

Freesteyelz 05-21-2006 11:54 PM

In post #34 you removed the Username code that used the popup menu. The Username at the right doesn't use it. :)

Bubble #5 05-22-2006 12:08 AM

No we are using that code and it still doesn't work. The full code from the default skin is:

Code:

<div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
</div>


Freesteyelz 05-22-2006 12:20 AM

It won't work if the left column Username with the <div> tag is in the code. In post #34 you removed the Username bit but you may have left the <div> tag there.

Code:

                <!-- POST DATE & USERNAME -->
                        <div id="postmenu_$post[postid]">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                        <!-- USERNAME -->
&nbsp;by&nbsp;<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                        <!-- / USERNAME -->
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        </div>
                <!-- / POST DATE & USERNAME -->

The bolded code should also be removed for post #34 and #45 to work properly.

Only one, same <div> ID tag will work at a time.

Bubble #5 05-22-2006 12:44 AM

Quote:

Originally Posted by Freesteyelz
Only one, same <div> ID tag will work at a time.

Yes that fixed that part :banana: Thank You! BTW, the over sized user column problem, it's not always the first post. Sometimes it's every other post, and some times it's a random post (for example; post 1,2 4... are fine but #3 is over sized). It's a new forum so I know no other hacks are conflicting with this one. Also, I just learned that it doesn't matter who makes the posts (admin or member). When viewed from the admin account the problem always shows up. I may install a test forum later where you will be able to log in and see this problem for yourself, just in case you're thinking that I'm drunk on Scotch ;)

Freesteyelz 05-22-2006 01:03 AM

Nah. Frankly, I appreciate the input. It's all about helping each other as your signature correctly states. :)

I have been stripping down the code and looking for any hints of a problem. I am focusing on the Admin account since that seems to be where you're experiencing the problem.

Bubble #5 05-22-2006 01:11 AM

Quote:

Originally Posted by Freesteyelz
I am focusing on the Admin account since that seems to be where you're experiencing the problem.

Yeah it's something to do with the admin account. Only difference offhand that I can see is the checkbox and the IP code. I will check tomorrow to see if moderators have the problem too. I'm guessing yes, but I'll post back either way for you :bunny:

Freesteyelz 05-22-2006 01:16 AM

Hmm. I wonder...

Try replacing this:

Code:

                <td class="thead" style="font-weight:normal;text-align:right;vertical-align:middle">
<strong>$vbphrase[replies]: $thread[replycount]</strong>&nbsp;

With this:

Code:

                <td width="175px" class="thead" style="font-weight:normal;text-align:right;vertical-align:middle">
<strong>$vbphrase[replies]: $thread[replycount]</strong>&nbsp;

And replace:

Code:

<!-- / MESSAGE BUTTONS -->
<!-- IP & REPORT POST -->
        <td class="alt2" align="$stylevar[right]">

And replace it with:

Code:

<!-- / MESSAGE BUTTONS -->
<!-- IP & REPORT POST -->
        <td width="175px" class="alt2" align="$stylevar[right]">

I've set all right postbit (right) columns to 175px width. Since I'm not getting the problem as you are can you let me know if that helps?

Bubble #5 05-22-2006 05:14 PM

Quote:

Originally Posted by Freesteyelz
I've set all right postbit (right) columns to 175px width.

Actually, to my surprise, I think that may have fixed it :bunny: One thing is for certain, the page now loads 3 times quicker. I'll let you know if the problem creeps back ;)

THANK YOU :)

Freesteyelz 05-22-2006 10:05 PM

NP. :classic: Let me know if the issue arises again. :)

GamerJunk.net 05-23-2006 09:42 PM

Here is what the double layout looks like.

Bubble #5 05-23-2006 09:49 PM

Quote:

Originally Posted by RasMasta
Here is what the double layout looks like.

Can't wait to start on our next skin. That will work out incredibly good for it :banana:

GamerJunk.net 05-23-2006 09:59 PM

See what I would want is the gradient to stretch all the way over same with the space where the quote button is. That way it is symetrical. Also make the sides thinner so the actual area where you post is larger.

Here is the code for my postbit with the double post for anyone who wants to do a quick try of how it would look on their site..

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <if condition="$show['announcement']">
                <td class="thead" style="font-weight:normal" colspan="2">
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                </td>
        <else />
                <td class="thead" style="font-weight:normal" $post[scrolltothis]>               
                <!-- MESSAGE TITLE -->
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <!-- / icon and title -->
                </if>
                        <!-- / MESSAGE TITLE -->                               
                </td>
                <td class="thead" style="font-weight:normal;text-align:right;vertical-align:middle">
<strong>$vbphrase[replies]: $thread[replycount]</strong>&nbsp;
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
                        <if condition="$show['inlinemod']">
                                <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                        </if>
                </td>
        </if>
</tr>
<tr valign="top">
        <td class="alt2" width="175">
                       
                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>
                       
                        <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
               
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>
                       
                        <div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>                                       
               
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]">
        <else />
        <td class="alt1" id="td_post_$post[postid]">
        </if>
       
                <!-- POST DATE & USERNAME -->
                        <div id="postmenu_$post[postid]">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                        <!-- USERNAME -->
&nbsp;by&nbsp;<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                        <!-- / USERNAME -->
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        </div>
                <!-- / POST DATE & USERNAME -->
               
<div class="alt2" style="width:97%;margin:0 auto;padding:3px;text-align:left;border:1px solid #000000">
               
                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->
       
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                <br /><HR>
<fieldset><legend>$post[username]'s Sig:</legend>$post[signature]</fieldset>                        </div>
                <!-- / sig -->
</div>
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
        </td>
<!-- / MESSAGE COLUMN -->
<!-- USER COLUMN -->
        <td width="175" class="alt2" style="text-align:center">
                       
<div class="smallfont">
<if condition="$post['fieldx']">
  $post[fieldx]<br />
</if>
<if condition="$post['fieldy']">
  $post[fieldy]<br />
</if>
<if condition="$post['fieldz']">
  $post[fieldz]<br />
</if>
</div>
               
        </td>
<!-- / USER COLUMN -->
</tr>
<tr>
        <!-- MESSAGE BUTTONS -->
        <if condition="$show['moderated']">
<td class="alt2" align="$stylevar[left]" colspan="2">
<else />
<td class="alt1" align="$stylevar[left]" colspan="2">
</if>
                <!-- controls -->
                <if condition="$post['editlink']">
                        <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
                <if condition="$post['forwardlink']">
                        <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                </if>
                <if condition="$post['replylink']">
                        <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                </if>
                <if condition="$show['quickreply'] AND !$show['threadedmode']">
                        <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                </if>
                <if condition="$show['moderated']">
                        <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                </if>
                <!-- / controls -->
        </td>
<!-- / MESSAGE BUTTONS -->
<!-- IP & REPORT POST -->
        <td class="alt2" align="$stylevar[right]">
                <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
                <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_bad_post]</a></if>
                $post[iplogged]
                &nbsp;
        </td>
<!-- / IP & REPORT POST -->
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->

<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->


Freesteyelz 05-24-2006 02:19 AM

To stretch out the gradient change colspan="2" to colspan="3". I think you'll have to do that twice. As for cleaning the 3-column layout it shouldn't be a problem. :)

GamerJunk.net 05-24-2006 04:01 AM

So how else can we clean it up?

GamerJunk.net 05-24-2006 04:11 AM

Btw it looks worse using colspan="3"

Freesteyelz 05-24-2006 06:44 AM

Ooops. Yeah, with colspan="3" it assumes you have 4 columns and not 3 as you do. My bad. :D

As for the cleaning up I can fiddle around with it. I'm kinda working on something at the moment but I'll do it soon after. :)

GamerJunk.net 05-31-2006 09:33 PM

Anything yet?

Freesteyelz 06-01-2006 03:22 AM

Unless something urgent comes up I'll work on it this weekend. :)

GamerJunk.net 06-05-2006 03:47 AM

Sweet thanks.


All times are GMT. The time now is 01:27 PM.

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.01502 seconds
  • Memory Usage 1,877KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete