vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Extra space in postbit (https://vborg.vbsupport.ru/showthread.php?t=308804)

mathforum 02-23-2014 07:38 PM

Extra space in postbit
 
Hello all,

I have finally figured out an issue that has been bugging me for months! I couldn't get images from a custom add-on to show in PMs but somehow today it came to me. :)

The only remaining problem is styling. The way this is working is I've edited the template code for the add-on to the following (very short):

PHP Code:

<!-- show ranks -->
<if 
condition="$post[showuserranks]">

<
dl class="userinfo_extra">
<
div style="padding-bottom: 5px;">
<
dt>Thanks</dt> <dd>{vb:raw post.vbseo_likes_outtimes</dd>    

<
dt>Awards</dt> <dd>$post[userranks]</dd>
</
dl>
</if>
<!-- /
show ranks --> 

Here is what a PM postbit looks like now:
https://vborg.vbsupport.ru/external/2014/02/12.png

There is some extra space between "Thanked" and "Awards", most likely due to the fact that I have two separate <dl> blocks - the one in the postbit legacy template and the one above. It is rendering as two separate blocks.

Any ideas how I can fix this?

Lynne 02-23-2014 08:02 PM

It's a CSS issue. When dealing with CSS issues, it is impossible to tell what is going on from just an image. It is easier to use a tool like firebug to view the CSS and see what is happening. So, can you please supply a link and a test username/password, if needed, to see the problem.

mathforum 02-23-2014 08:47 PM

Sent you a PM with URL and account information to log in. I am starting to think that I'm not going about this correctly but I'll wait. The box that I'm concerned with in the postbit contains images from v3 arcade and YARS, which starts to get into registering variables and other template stuff that I'm not able to work with yet. I'll write the developer of the mod as well.

--------------- Added [DATE]1393205211[/DATE] at [TIME]1393205211[/TIME] ---------------

Lynne has confirmed that it's a CSS issue related to styling the last block in the add-on template. It opens and closes another <dl> tag and my CSS is set to display as blocks for this element. Is there a way to reference CSS but override certain parameters inline? Maybe if I can use span somehow then it can sneak into the first block and not make a new one.

Seven Skins 02-24-2014 07:35 AM

If I get the link of the site/thread where you are having this issue then I may be able to help.

mathforum 02-24-2014 08:52 AM

PM sent. :) If any progress is made or someone gives me helpful advice, I will definitely post about it in this thread for others to use in the future.


All times are GMT. The time now is 10:00 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.01534 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete