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)

Freesteyelz 05-06-2006 10:00 PM

Postbit_Legacy REVERSED Layout 1 v.1.0
 
==============================
==============================
"Postbit_Legacy REVERSED Layout 1" by Freesteyelz
Version: 1.0

Re-Inspired By: Ricky6039's thread: https://vborg.vbsupport.ru/showthread.php?t=114862

Thank Yous: Ricky6039, Boofo and Chris M
==============================
==============================


Description:
The posbit_legacy is displayed in reverse. For fluid and fixed-width layouts.

Here's an idea that was re-inspired by Ricky6039's thread. It was a layout I did in UBB back in the day (2001) and now releasing it for vB. This is the first layout in the series. Future releases may come depending on requests, capability and energy. :D


Examples:
See attachments below.


What to expect?:
- Thread/Post title is displayed in place of Post Date.
- Post Date and Username are displayed in place of Thread/Post title.
- The user popup menu will display only in the first Username (left column). The second username link will go straight to user's profile.
- Replies will display just left of post #.
- User Online Status and User ID are displayed in the Username column.
- Online Status, Report Bad Post and IP images are replaced with text for a cleaner look.
- Message/Signature and User's info are bordered.


Requirements:
vB versions 3.5.3+ (3.5.4 should work; 3.5 versions possibly but I haven't tried it.)


Assumptions:
That you are editing the Default vB Style or at least using the Default vB Style as a Parent Style.

Can it work for custom styles? Yes. You may, however, need to re-work some of the codes for the layout to display properly. I successfully did this on several custom templates. Since many of us are using different styles I thought it would be better to use the Default vB Style for the instructions.


PLEASE!!!
Read the instructions carefully. Take your time when editing.

This is a template edit with quite a few steps so pace yourself. :)


Browsers Tested:
Internet Explorer & Firefox


Supported:
I'll try to answer your questions the best I can. Please click install to notify you if any changes are made.


Instructions:
Download the .zip file, extract and read the instructions.


If you use this mod click the https://vborg.vbsupport.ru/ link for any updates via e-mail. Thank you.



Attachements in order:
1. posbit_legacy 100%
2. posbit_legacy 770px
3. postbit_legacy menu 770px

Rickie3 05-07-2006 05:00 AM

sorry didnt read,cant wait to test this out

Freesteyelz 05-07-2006 05:01 AM

I just uploaded it now. :)

I was in the process of creating the thread.

Ricky6039 05-07-2006 05:18 AM

Thanks again Freesteyelz for your time to do this

william5 05-07-2006 05:21 AM

Thanks allot! I'll try this out :D

*clicks install

Freesteyelz 05-07-2006 05:26 AM

Please remember to go through the instructions thoroughly and slowly. Just the slightest miss of code can mess it up.

Click the "Install" only if you are satisified and use the mod. :)

Quote:

Originally Posted by Ricky6039
Thanks again Freesteyelz for your time to do this

NP. Thank you for re-inspiring the design. I didn't know it was something people was interested in. :)

VBUsers 05-07-2006 07:12 AM

i get the done but with errors on page. what could it be?

this is the error i get. please help

line: 158
car: 2
Error: 'This.controlobj.' is null or not an object
code: 0
url: http://www.thenextelforums.com/showt...782&styleid=73

Freesteyelz 05-07-2006 07:13 AM

What are the exact errors you're receiving?

VBUsers 05-07-2006 07:37 AM

Quote:

Originally Posted by Freesteyelz
What are the exact errors you're receiving?

its the little exclamtion point on the bottom left of my IE. i posted the error above your post. im not sure if its a space in the code or where. but i followed it 4 times and still the same thing.

Freesteyelz 05-07-2006 07:49 AM

Quote:

Originally Posted by lowandloudinc
i get the done but with errors on page. what could it be?

this is the error i get. please help

line: 158
car: 2
Error: 'This.controlobj.' is null or not an object
code: 0
url: http://www.thenextelforums.com/showt...782&styleid=73

That error is from the vbulletin_menu.js file but I'm unable to replicate it. It doesn't look like it's coming from my modification.

By any chance did you install vBShout?

VBUsers 05-07-2006 07:56 AM

yes i have vbshout but its disabled. should i completly remove it? or the template edits if any are the cause?

ok i uninstalled the shout and the im online product i had disabled and it fixed my issue. thank you very much great hack.

Freesteyelz 05-07-2006 08:05 AM

NP. I think Zero Tolerance released an update for the vBShout fix. You may want to check it out. :)

Thank you for clicking Install. :classic:

apn3a 05-07-2006 08:18 AM

Thanks for sharing sir. I love that alternative design!!!

*clicks install

GamerJunk.net 05-07-2006 02:30 PM

What if I wanted 2 postbit boxes? 1 on each side?

Similiar to a portal layout. Of course I would display other info not repeat the info.

Holidazed 05-07-2006 05:23 PM

This is cool. However, I would like to see is swap from left to right on every other post in the thread. Can this be done?

Snake 05-07-2006 05:40 PM

Thanks, this looks nice.

VBUsers 05-07-2006 05:55 PM

is there a way we can make it an option to go back and forth? like with posbit and postbit legacy. i had some memebers ask that so there it is.

Freesteyelz 05-08-2006 12:34 AM

Quote:

Originally Posted by apn3a
Thanks for sharing sir. I love that alternative design!!!

Thanks. :) While I've enjoyed the style for years and so have my members/guests, it can take some getting used to since most people use the conventional layout. The majority of the comments I've received was that having the post in the left column made reading easier.

Quote:

Originally Posted by RasMasta
What if I wanted 2 postbit boxes? 1 on each side?
Similiar to a portal layout. Of course I would display other info not repeat the info.

A three column? Yes, that's possible. What type of info will the 2nd postbit box contain?

Quote:

Originally Posted by bitg
This is cool. However, I would like to see is swap from left to right on every other post in the thread. Can this be done?

While I haven't tried that I'm sure that's possible. Though, I think it would make reading less enjoyable to your users.

Quote:

Originally Posted by Lil Ripsta
Thanks, this looks nice.

Thank you. :)

Quote:

Originally Posted by lowandloudinc
is there a way we can make it an option to go back and forth? like with posbit and postbit legacy. i had some memebers ask that so there it is.

Yes. While there is a plugin mod here at vB.org take a look at this post by Freddie Bingham, a vB Developer.

*In order for it to work you will need to go to your vB Options --> Style & Language Settings and set postbit_legacy to "No". The postbit (Top) will be the default view for the user. For postbit_legacy view, users can go to their User CP and change the value to "Left". :)

Holidazed 05-08-2006 01:35 PM

Quote:

Originally Posted by Freesteyelz
Quote:
Originally Posted by bitg
This is cool. However, I would like to see is swap from left to right on every other post in the thread. Can this be done?

While I haven't tried that I'm sure that's possible. Though, I think it would make reading less enjoyable to your users.

Well, that is one opinion I suppose. I disagree with you on this.

Freesteyelz 05-08-2006 10:56 PM

This is true. I actually thought about that for the vertical postbit view since all text are aligned left anyway. :)

GamerJunk.net 05-12-2006 10:58 PM

Freestylez...the second box would be for gaming stuff on my site. I would display the users contact information for each type of console.

How could this be done?

Freesteyelz 05-13-2006 12:40 AM

Ahh...I see. You'll utilize the left and right sides to the User's profile and information bits; the middle column will contain the post? While what you're asking is another modification I can give you a general idea on how to accomplish what you want.

First, can you please give me in detail what will be contained in the left column and then the right column. If it's not a complicated edit I can give you the instructions in this thread.

GamerJunk.net 05-13-2006 01:42 AM

On the left side the basic standard postbit info

On the right side it would be Field X probably about 8 of them all with if conditions.

Freesteyelz 05-14-2006 12:25 AM

In the instructions where it states:

Code:

Find (the key here is to look for the start <td> and end </td> tags):
Skip it.

Then when you see this:

Code:

----------
AFTER add:
----------
<!-- / MESSAGE COLUMN -->
<!-- USER COLUMN -->

Remove the codes between the <td> and </td> tags. Then add the Profile Field bits with conditionals something like:

Code:

<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>

Then when you see the instruction:

Code:

-------------
Replace with:
-------------
<!-- MESSAGE BUTTONS -->

In that code replace this:

Code:

        <if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[left]">
        <else />
        <td class="alt1" align="$stylevar[left]">
        </if>

With:

Code:

        <if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[left]" colspan="2">
        <else />
        <td class="alt1" align="$stylevar[left]" colspan="2">
        </if>

I haven't tested it but it should work. All I added in the last step is the colspan.

You may of course need to tweak the change of codes to your standards. I hope it gives you a starting point. :)

GamerJunk.net 05-14-2006 06:50 PM

I get this error message when saving

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected '<' in /home/********/public_html/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 178

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Freesteyelz 05-14-2006 10:19 PM

Ooops. I forgot to add the ending quote. The above code where it says:

Code:

<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>

Change it to:

Code:

<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>

See if that helps. :)

GamerJunk.net 05-17-2006 04:40 PM

haha thanks that works! But it's not as pretty as I thought it would be :(

Freesteyelz 05-17-2006 11:25 PM

It can be. Show me what you have now and we'll think something up.

*Again, this isn't part of the modification for anyone else who is wondering what we're doing. :D

Bubble #5 05-20-2006 08:52 PM

Quote:

Originally Posted by Freesteyelz
this isn't part of the modification for anyone else who is wondering what we're doing.

Actually I think this is a GREAT idea and the possibilities on how to use it are endless :bunny:

Don't you have to change the size of the post message box, or am I missing something? :surprised:

Bubble #5 05-20-2006 10:40 PM

Under certain circumstances this does NOT display correctly in Firefox. Works good in Safari though....

With Firefox, when there is one post (original thread post) or 3 or more posts it works in Firefox, BUT if there are two posts then the first post becomes too large and doesn't render correctly :(

(see screenshot).

Freesteyelz 05-21-2006 01:11 AM

Quote:

Originally Posted by Bubble #5
Actually I think this is a GREAT idea and the possibilities on how to use it are endless



Don't you have to change the size of the post message box, or am I missing something?


Does that occur every time the postbit loads or on some occasions? I ask because the screenshots I provided in my first post displays the modification with two posts. Sometimes browsers upon refresh will do funky stuff; it generally occurs with Table layouts.


-------------


Quote:

Originally Posted by Bubble #5
Actually I think this is a GREAT idea and the possibilities on how to use it are endless :bunny:

Don't you have to change the size of the post message box, or am I missing something? :surprised:

You shouldn't have to, unless you've defined the width for the message area like I did with my forum. Everything is so precise that 1 pixel off will mess my layout.

Bubble #5 05-21-2006 03:04 AM

Quote:

Originally Posted by Freesteyelz
Does that occur every time the postbit loads or on some occasions?

Everytime, as long as it's A)the latest version of Firefox, and B)one or two posts are in the thread.

IE and Safari 2.0 do not show this problem.

Freesteyelz 05-21-2006 03:42 AM

I'll run some tests again...

Bubble #5 05-21-2006 04:29 PM

Here's an update: Upon further testing it does also show this problem when the initial thread is made (one post) in Firefox. Refreshing seems to take care of it BUT it needs to be refreshed everytime there is one or two posts so it's not a browser problem. Three or more posts do not seem to show this problem. Something in the code isn't being rendered properly the first time the page gets loaded. We removed this code as it was redundant anyway and it seems to help a little when there is one post.

Code:

<!-- USERNAME -->
&nbsp;by&nbsp;<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- / USERNAME -->

If we find anything else we'll post in this thread ;)

Ricky6039 05-21-2006 06:33 PM

Hmm thats strange that your having this trouble using FireFox i use both IE and firefox and everything works fine no matter how many posts there is in the thread

Bubble #5 05-21-2006 07:22 PM

What version are you using, and is it on a PC or Mac? If Mac, PPC or Intel?

Also, it seems to have something to do with the admin account, as regular members don't see it.

Haven't tested mod accounts yet.

Freesteyelz 05-21-2006 08:21 PM

I and several of my members ran numerous tests and came up with nothing conclusive with the code. Before editing the code, clear all of your Internet cache and see if the problem still exists. If it does then try the following below:

The Usercolumn, which the code switches from left to right, is nearly identical to vB's default code which uses the "175" for its width. See if by changing it to "175px" will help. It that doesn't help then, just as an experiment, in the Usercolumn, where you see:

Code:

  <div class="smallfont alt1" style="width:150px;margin:0 auto;padding:3px;text-align:left;border:1px dashed #000000">
Temporarily change that to:

Code:

  <div class="smallfont">
When we tested it, using the newly edited or mod code, didn't affect the layout either way. If there is a bug in the code we haven't been able to pinpoint it yet.

Quote:

Originally Posted by Bubble #5

Code:

<!-- USERNAME -->
&nbsp;by&nbsp;<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- / USERNAME -->


The above code, while not necessary, is the Username that uses the popup menu. The Username at the right, when clicked, takes the user straight to the poster's profile bit. Whether it's used or not it shouldn't affect the overall code.

Bubble #5 05-21-2006 08:45 PM

Quote:

Originally Posted by Freesteyelz
several of my members

Your members won't see this because they are not logged in as the original admin...

Quote:

clear all of your Internet cache
We already tried this yesterday. Didn't help :(

Quote:

If there is a bug in the code we haven't been able to pinpoint it yet.
We just installed Firefox on two other computers and it happens there too. Both PC and Mac, when Firefox 1.5.3 is used and logged in as the Admin. Maybe this is a 3.5.4 issue.

Bubble #5 05-21-2006 08:55 PM

Quote:

Originally Posted by Freesteyelz
See if by changing it to "175px" will help.

This 'may' have fixed it....

Freesteyelz 05-21-2006 08:56 PM

Edited: Ahh. Let me know how it goes. :)

I wanted to cover all basis so I asked some of my members for assistance. I was logged in as the admin. You never know sometimes. :)


All times are GMT. The time now is 05:49 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.01542 seconds
  • Memory Usage 1,849KB
  • 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
  • (12)bbcode_code_printable
  • (18)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
  • (40)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