Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ajax Thread (1stPost) Preview 1.5 Gold Details »»
Ajax Thread (1stPost) Preview 1.5 Gold
Version: 1.5 Gold, by SkyCatcher SkyCatcher is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 02-03-2007 Last Update: Never Installs: 101
Uses Plugins Template Edits
Additional Files  
No support by the author.

I have abandoned this modification as I find myself lacking time to do any additional modifications to get it 100% stable.

I would highly recommend that you check out this hack by magnus, as this one seems to be 100% AND looks great. I fell in love with it so I am using it myself

The only thing it doesn't do is give you a preview of the attachments, so you're welcome to keep the attachments part of this hack and use it in conjunction with magnus' hack.

I may just rewrite the attachments part of this hack and re-release it as a standalone.


Here is the link to his modification:

Collapsable First Post using AJAX (or Last Post!)
https://vborg.vbsupport.ru/showthread.php?t=145187


-Sky-

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 02-16-2007, 11:21 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by talenak View Post
I have the exact same problem as lovelypk. I added the code under $navbar but I don't really understand how this works so I don't know HOW that is supposed to tell me if all the requirements are being met.

Help?
Ewww! Custom skin that doesn't use the default configuration!!! lol (sorry, not a bad skin, just a big problem for you )

It looks like you're not using threadicons at all so the problem is that you have 1 too many columns being spanned.

Since you've already added the new code....


IN FORUMDISPLAY
=============

Find (or the original):
Code:
<if condition="$show['threadicons'] && !is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
                <td class="thead" colspan="3">&nbsp;</td>
        <else />
<if condition="$show['threadicons'] && is_member_of($vbulletin->userinfo, $postpreviewusergroups) || $vbulletin->options[ajaxpostpreview_enable] == 0 || in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))">
                <td class="thead" colspan="2">&nbsp;</td>
	<else />
		<td class="thead">&nbsp;</td>
	</if></if>
	
	<td class="thead" width="100%">


Try replacing with:
Code:
<if condition="$show['threadicons'] && !is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
                <td class="thead" colspan="2">&nbsp;</td>
        <else />
<if condition="$show['threadicons'] && is_member_of($vbulletin->userinfo, $postpreviewusergroups) || $vbulletin->options[ajaxpostpreview_enable] == 0 || in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))">
                <td class="thead" colspan="1">&nbsp;</td>
	
	</if>
	
	<td class="thead" width="100%">
and see if that works. If it doesn't work, send me your forumdisplay template via PM and I'll have a look at how it's spanning the columns.
Reply With Quote
  #123  
Old 02-16-2007, 11:25 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed the column span to 2, it fixes the column smushing, but the preview doesn't work, it doesn't work when it's smushed either.

The only preview is the default gray box of text.

(sorry missed that there were other changes, this is all very fun with a 3 year old shoving legos in my face )


OK I get this

Quote:
The following error occurred when attempting to evaluate this template:

The conditional on line 55 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.


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.
Reply With Quote
  #124  
Old 02-16-2007, 11:30 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by talenak View Post
I changed the column span to 2, it fixes the column smushing, but the preview doesn't work, it doesn't work when it's smushed either.

The only preview is the default gray box of text.
Check to make sure all the files are uploaded to the appropriate directories, that you've made the change to the header template to include the js and css files, and that you've imported the product.

If all that holds true, see if there is a wordwrap issue in the threadbit template for the changes you've made (ie the formatting, making sure there are no spaces where there shouldn't be). Internet Explorer does a good job of telling you about JS errors in the lower left hand corner with a yellow warning triangle. You shouldn't be getting an error there.


EDIT: Just to be sure.... you are holding the mouse over the very left arrow of the very left hand column correct? It used to be activated hovering over the mouse, but now it's over the little arrow thingy in the left column.
Reply With Quote
  #125  
Old 02-16-2007, 11:37 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got everything in the right place, and I use FireFox. I tried with the mouse over the arrows. I've read this whole dang thread from the first post to the last to see if someone else had the same problem and had worked it out
Reply With Quote
  #126  
Old 02-16-2007, 11:39 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, and I just saw what the point of that code was:
Icons: True
Not in Excluded Group: True
Mod Enabled: True
Forum Not Excluded: True
Reply With Quote
  #127  
Old 02-16-2007, 11:42 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by talenak View Post
Oh, and I just saw what the point of that code was:
Icons: True
Not in Excluded Group: True
Mod Enabled: True
Forum Not Excluded: True
um.... *gives up*

Can you set me up with a useraccount at the forums from the screenshots so I can take a look? Just a regular user able to use the hack.
Reply With Quote
  #128  
Old 02-16-2007, 11:44 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Give me a minute and I'll PM you.
Reply With Quote
  #129  
Old 02-17-2007, 01:41 AM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed.
Reply With Quote
  #130  
Old 02-17-2007, 10:35 AM
Dotterbart Dotterbart is offline
 
Join Date: Jan 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know it probably has something to do with the css.style but since I am all new to this I dont know better.

How can i get rid of the white borders to the left, right and bottom?!
Reply With Quote
  #131  
Old 02-17-2007, 01:34 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dotterbart View Post
I know it probably has something to do with the css.style but since I am all new to this I dont know better.

How can i get rid of the white borders to the left, right and bottom?!
That has to do with how your style variables are setup.

Go to the adminCP > styles > manage styles

Then select one of the styles and edit the style variables.

The second number $stylevar[spacersize] is what determines how big the border is (just like it does on your regular forum index page.


The color is decided by the css.page background variable when you edit the css options for a style also. (For styles with a gradient background you can also choose transparent and you won't see the borders.


By changing these you'll be changing the way your forum looks so you may have to come up with a compromise for both to look good.


I may tinker with the templates to see if there is any other way of doing it.
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 02:31 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.06204 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete