vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Ajax Thread (1stPost) Preview 1.5 Gold (https://vborg.vbsupport.ru/showthread.php?t=138461)

SkyCatcher 02-10-2007 06:39 PM

Quote:

Originally Posted by RMS-Chef (Post 1179315)
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.

RMS-Chef 02-10-2007 06:50 PM

Quote:

Originally Posted by SkyCatcher (Post 1179316)
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?

SkyCatcher 02-10-2007 07:01 PM

Quote:

Originally Posted by RMS-Chef (Post 1179326)
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

lovelypk 02-10-2007 07:13 PM

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.

SkyCatcher 02-10-2007 07:20 PM

Quote:

Originally Posted by lovelypk (Post 1179342)
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?

lovelypk 02-10-2007 07:33 PM

Quote:

Originally Posted by SkyCatcher (Post 1179345)
Did you do BOTH Forumdisplay template edits?

Yes, i did.

SkyCatcher 02-10-2007 07:53 PM

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.

JohnBee 02-10-2007 07:54 PM

Quote:

Originally Posted by lovelypk (Post 1179342)
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?)

JohnBee 02-10-2007 07:57 PM

Quote:

Originally Posted by SkyCatcher (Post 1179373)
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

SkyCatcher 02-10-2007 08:03 PM

bah! I meant FORUMDISPLAY, sorry :(


All times are GMT. The time now is 10:33 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.01376 seconds
  • Memory Usage 1,761KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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