Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2008, 06:27 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template Edit Disabling Inline Editor

Trying to add a wrapper around the postbit, but I'm running into a problem with the inline editor not working on anything but the top post of a thread. Everything else opens in the full editor. I imagine it has something to do with the conditional I'm using, but strangely enough, it's only when I remove the bottom half of the wrapper that the Quick Edit works fine.

Could I possible be using the wrong conditional for my needs? Here's the opening and closing code for the wrapper. I only need the opening tag for the DIV if it's not the topmost post of the thread. I have the opening DIV tag for the top post already defined in the SHOWTHREAD template. I've tried putting this in the postbit and in the postbit_wrapper and a combination of both, but nothing solves my problem.

Code:
 
<if condition="!$GLOBALS['FIRSTPOSTID']">
<else />
<div>
  <b class="djdarkcorner">
  <b class="djdarkcorner1"><b></b></b>
  <b class="djdarkcorner2"><b></b></b>
  <b class="djdarkcorner3"></b>
  <b class="djdarkcorner4"></b>
  <b class="djdarkcorner5"></b></b>
</if>
 
  <b class="djdarkcorner">
  <b class="djdarkcorner5"></b>
  <b class="djdarkcorner4"></b>
  <b class="djdarkcorner3"></b>
  <b class="djdarkcorner2"><b></b></b>
  <b class="djdarkcorner1"><b></b></b></b>
</div>
--------------- Added 19 Jul 2008 at 16:47 ---------------

As an addendum, it does appear to be the <if> conditional causing the problem. Removing it fixes things. However, I need the conditional to remove the opening of the wrapper, otherwise it creates a layout problem.

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

I just run into the peculiar stuff, don't I?
Reply With Quote
  #2  
Old 07-21-2008, 01:23 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apparently, it was the empty IF conditional causing the problem. I got around it by closing off the DIV in the SHOWTHREAD template, and putting just a regular opening DIV tag in the empty part of the conditional:

Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
<div>
<else />
<div>
  <b class="djdarkcorner">
  <b class="djdarkcorner1"><b></b></b>
  <b class="djdarkcorner2"><b></b></b>
  <b class="djdarkcorner3"></b>
  <b class="djdarkcorner4"></b>
  <b class="djdarkcorner5"></b></b>
</if>
Reply With Quote
Reply


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 08:29 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.06470 seconds
  • Memory Usage 2,175KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete