vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - [CM] Post Bubble (Sharp, Rounded & Different Colors) (https://vborg.vbsupport.ru/showthread.php?t=286678)

ChiNa 08-14-2012 10:00 PM

[CM] Post Bubble (Sharp, Rounded & Different Colors)
 
1 Attachment(s)
This was brought to you by ChiNa-Man


First of all I am a free soul, So if one of you guys decided to post this on another forum or a website, I would be appreciated if you give some CREDITs to the Developer simply typing his name: Credits to: ChiNa-Man, and do not CHANGE or DELETE the ORIGINAL CONTENT! Thank you!

:::::::::::::::::::::::::::::::::::::::::::::


Notice, This mod was configured on vB 4.2 Only!


Hey Guys, I have tried to make this to a Product, I must admit it was a bit harder than I expected, but I figured out if we could do this without changing the Default Template, and just add the code instead it will be a lot better, because then you have much more options to change Color of the Background, and choosing another Tip https://vborg.vbsupport.ru/external/2012/08/27.png in different colors!


Example Image
https://vborg.vbsupport.ru/external/2012/08/28.png


So lets get started:

I will first add 2 Different codes for the Post Bubble! One with Sharp Corners, and the other one with Rounded Corners!

We will do this tutorial with the Sharp Cornered, And keep in mind that it has 2 Parts!

Now we need to find the POST Variable or POST Code in your Postbit_Legacy Template! We have to WRAP our code arround the code in the Postbit_Legacy, so every post will be showen inside the BUBBLE!

Step 1: Go to your ADMINCP area, Click on Styles & Templates, and now you will see your Template name, click on the DropDown Menu to the right of your Template, and choose Edit Template.

You should now be in the template area, now look for Postbit Templates, and then click on "postbit legacy" (This code is for Pos

Step 2: Find the code below inside the postbit legacy template.

Code to find:
Code:

<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>


Now, add our code PART 1: right below:


Code to add:
Code:

<div id="1" style="float:left; z-index: 1; position: Absolute;">
<br><img src="images/purple.png">
</div>
<div style="z-index: 25; padding: 11px;">
<fieldset style="background: #ffffff;
border:2px solid #9F54FF;
margin:1px 3px 3px 1px; padding:7px;
-moz-border-radius: 11px;
border-radius: 8px;
box-shadow: 0 0 1em #9F54FF;
-webkit-border-radius:8px;
position: relative;">



Now in same Template, Find the last part of the code:


Code to Find :

<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>


Now add the Part 2 of the code below to close our Wrapper:

Code to add below:
Code:

</fieldset>
And we are done, Now if you look up in our code, I have marked one of the lines with RED COLOR! Thats the PATH to the TIP your going to use! Now dont forget to upload one of the TIP Images in your forums "images" folder! If you dont know what the TIP is, then this is the TIP => https://vborg.vbsupport.ru/external/2012/08/27.png Download the "Extras.zip" file that I have attached below, you will find all the images for the TIPS and also many diffrent codes and COLORS inside the file!

Follow the Tutorial Below for more and exact info!
And make sure to Click on Installed, for further support or help!



Extra Tutorial & Changes


Ok I will now add both of the codes, basicly the full code to the Sharp and Round Cornered Post Bubble

Code 1 (Sharp Cornered)
Code:

<div id="1" style="float:left; z-index: 1; position: Absolute;">
<br><img src="images/purple.png">
</div>
<div style="z-index: 25; padding: 11px;">
<fieldset style="background: #ffffff;
border:2px solid #9F54FF;
margin:1px 3px 3px 1px; padding:7px;
-moz-border-radius:8px;
box-shadow: 0 0 1em #9F54FF;
-webkit-border-radius:8px;
position: relative;"> POSTBIT CODE HERE </fieldset>




Code 2 (Round Cornered)
Code:

<div id="1" style="float:left; z-index: 1; position: Absolute;">
<br><img src="images/purple.png">
</div>
<div style="z-index: 25; padding: 11px;">
<fieldset style="background: #ffffff;
border:2px solid #9F54FF;
margin:1px 3px 3px 1px; padding:7px;
-moz-border-radius: 11px;
border-radius: 8px;
box-shadow: 0 0 1em #9F54FF;
-webkit-border-radius:8px;
position: relative;"> POSTBIT CODE HERE </fieldset>


So the code is simple, all we did was we added the code from postbit legacy, inside OUR code! Where it says "POSTBIT COD HERE"!
I just explained it in 2 Parts:!

Now if you see I have marked the parts that can be edited with a color!

https://vborg.vbsupport.ru/external/2012/08/73.png

Red:
Path to your TIP image
Blue: Post Bubble Background Color
Lime Green: Color for the Border
Orange: Post Bubble Shadow


ProFifaLeagues 08-15-2012 06:56 PM

Your bringing some nice stuff to V bulletin mate Keep up the great work as I hope there is many more like us who are loving it!!!

ChiNa 08-15-2012 07:04 PM

Thank you PRO, Amazing to hear it from someone like you mate! Glad to hear, And please let me know if you had any problem durring the installation, and it goes to any of my mods,,,

You keep up your amazing mood bro.. Thanks for commenting and your support!

qpurser 08-16-2012 12:34 PM

Thanks. Looks really nice.

Just a quick question:
In your extras.zip file you have 3 folders:

extras - Tips (Dark Theme) - Tips (Light Theme)

but then in the extras folder you have again Tips (Dark Theme) and Tips (Light Theme)
Are those just duplicates or do they have a different purpose?

ChiNa 08-16-2012 02:27 PM

Hi qpurser, Thanks for noticing, that was just an extra folder, somehow i have packed that too.. So if you notice there is a folder 3 Folders, Extras , Dark and Light theme, Just DELETE the folder EXTRAS folder!

I have now updated the Extras.zip!!

Thanks a lot Q, I dont want people to get confused, so use the Light and Dark folder in the front, and not in the EXTRAS folder, or just download the new package, so you dont get confused! And thanks for always clikcking install, this showes your support which I am greatfull to see!

qpurser 08-16-2012 02:37 PM

1 Attachment(s)
Welcome.
Really enjoy your mod's. They give that little extra touch to the looks of the forum.
As an example
Besides yours here I am using also another mod here called "thumbs up/down"
By placing his code into yours the display from the postings even got better as it was before.
Look at the screenshot:

thecore762 08-16-2012 11:14 PM

Very nice sir!

ChiNa 08-25-2012 02:35 PM

Amazing Job Q.... Glad to see ! I always enjoy see your comments..

Syria BoY 08-25-2012 03:26 PM

Good work Dear came at the right time

GamerPerfection 08-26-2012 08:39 AM

Installed, thanks, working on mine: http://www.gamerperfection.com/xbox-...ss-fights-850/


All times are GMT. The time now is 10: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.01164 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_code_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
  • (10)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