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

Quote:
Originally Posted by RMS-Chef View Post
Thanks.

Another odd thing, I am not sure if this is related to prior template alterations but when I double click in the thread title to involk the AJAX title editting, instead of the title of the thread becoming editable the small mousover image is replaced with an edit window which has the html code for that image
HTML Code:
<IMG src="http://domain.com/images/misc/menu_open.gif" border=0>
Also when there is a soft deleted thread the display is messed up as well for that row due to colspan somewhere not lining up.
I'll have to play with the colspan.

About the editing, it's explained in the 1st post of this thread (i.e. up top) where you remove a line of code.
Reply With Quote
  #83  
Old 02-10-2007, 06:50 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SkyCatcher View Post
I'll have to play with the colspan.

About the editing, it's explained in the 1st post of this thread (i.e. up top) where you remove a line of code.
Thanks, I edited my previous post as you wrote that.

I am having trouble getting this to display to my liking though.
I would like to have the window a defined size while still remaining scrollable. Many of my threads are quite long and with auto-resize the user has to scroll the entire main window as it extends far down. If I set a defined size, the window is the proper size but there are no internal scroll bars to scroll down within that window. Am I missing something or is that a limitation?
Reply With Quote
  #84  
Old 02-10-2007, 07:01 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RMS-Chef View Post
Thanks, I edited my previous post as you wrote that.

Many of my threads are quite long and with auto-resize the user has to scroll the entire main window as it extends far down. If I set a defined size, the window is the proper size but there are no internal scroll bars to scroll down within that window. Am I missing something or is that a limitation?

You can define a set height and width here (in the JS file)

Code:
//if(params['height']) {ibox.style.height = params['height']+'px';} 
					//else {ibox.style.height = '380px';}
					ibox.style.height = '380px';

					//if(params['width']) {ibox.style.width = params['width']+'px';} 
					//else {ibox.style.width = '800px';}
Just change to
Code:
//if(params['height']) {ibox.style.height = params['height']+'px';} 
					//else {ibox.style.height = '380px';}
					ibox.style.height = '480px';

					//if(params['width']) {ibox.style.width = params['width']+'px';} 
					//else {ibox.style.width = '800px';}
Adding a set height to 480 in the example above. A scrollbar will show for the up/down scrolling if the post is taller than that.



Oh sorry, and also set:

height:45%;

in the CSS file for ibox_content
Reply With Quote
  #85  
Old 02-10-2007, 07:13 PM
lovelypk lovelypk is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After installing this addon, It mess up forum.

Have a look at it:

Attachment 60353

It only happens when i make the 'threadbit' template changes you specified in installation file.

Any help is Appreciated.
Reply With Quote
  #86  
Old 02-10-2007, 07:20 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lovelypk View Post
After installing this addon, It mess up forum.

Have a look at it:

Attachment 60353

It only happens when i make the 'threadbit' template changes you specified in installation file.

Any help is Appreciated.
Did you do BOTH Forumdisplay template edits?
Reply With Quote
  #87  
Old 02-10-2007, 07:33 PM
lovelypk lovelypk is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SkyCatcher View Post
Did you do BOTH Forumdisplay template edits?
Yes, i did.
Reply With Quote
  #88  
Old 02-10-2007, 07:53 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm. Well the problem is in the forumdisplay template. You did install the product file right?

Code:
<if condition="$show['threadicons'] && !is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
Try playing with that conditional, for some reason all of them are not returning true.

It checks:
- ThreadIcons are on
- Your Usergroup is not in the usergroups you added to the exclude list
- Makes sure the hack is turned on
- and the forumID is not in the excluded list

only if ALL those return true it sets the colspan to 3 (which is what you need here).


Add the following under $navbar in the FORUMDISPLAY template to check if all the conditions return true:

Code:
<if condition="$show['threadicons']">Icons: True
<br />
<else />
Icons: False
<br />
</if>

<if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups)">Not in Excluded Group: True
<br />
<else />
Not in Excluded Group: False
<br />
</if>

<if condition="$vbulletin->options[ajaxpostpreview_enable] == 1">
Mod Enabled: True
<br />
<else />
Mod Enabled: False
<br />
</if>
<if condition="(!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
Forum Not Excluded: True
<br />
<else />
Forum Not Excluded: False
<br />
</if>
If they're not all true, it won't span 3 columns.
Reply With Quote
  #89  
Old 02-10-2007, 07:54 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lovelypk View Post
After installing this addon, It mess up forum.

Have a look at it:

Attachment 60353

It only happens when i make the 'threadbit' template changes you specified in installation file.

Any help is Appreciated.
I get the identical results. It's obviously conflicting with another hack. (thread prefixes perhaps?)
Reply With Quote
  #90  
Old 02-10-2007, 07:57 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SkyCatcher View Post
hmm. Well the problem is in the forumdisplay template. You did install the product file right?

Code:
<if condition="$show['threadicons'] && !is_member_of($vbulletin->userinfo, $postpreviewusergroups) && $vbulletin->options[ajaxpostpreview_enable] == 1 && (!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
Try playing with that conditional, for some reason all of them are not returning true.

It checks:
- ThreadIcons are on
- Your Usergroup is not in the usergroups you added to the exclude list
- Makes sure the hack is turned on
- and the forumID is not in the excluded list

only if ALL those return true it sets the colspan to 3 (which is what you need here).


Add the following under $navbar in the forumhome template to check if all the conditions return true:

Code:
<if condition="$show['threadicons']">Icons: True
<br />
<else />
Icons: False
<br />
</if>

<if condition="!is_member_of($vbulletin->userinfo, $postpreviewusergroups)">Not in Excluded Group: True
<br />
<else />
Not in Excluded Group: False
<br />
</if>

<if condition="$vbulletin->options[ajaxpostpreview_enable] == 1">
Mod Enabled: True
<br />
<else />
Mod Enabled: False
<br />
</if>
<if condition="(!(in_array($forumid, array($vbulletin->options['ajaxpostpreview_forums']))))">
Forum Not Excluded: True
<br />
<else />
Forum Not Excluded: False
<br />
</if>
If they're not all true, it won't span 3 columns.
Icons: False
Not in Excluded Group: True
Mod Enabled: True
Forum Not Excluded: True
Reply With Quote
  #91  
Old 02-10-2007, 08:03 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bah! I meant FORUMDISPLAY, sorry
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 03:24 AM.


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.04752 seconds
  • Memory Usage 2,331KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_html
  • (7)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