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)
-   -   Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!) (https://vborg.vbsupport.ru/showthread.php?t=145187)

Tralala 05-02-2007 02:58 PM

Quote:

Originally Posted by magnus (Post 1239272)
.. let's see if that fixes it.

It did not. :(

magnus 05-02-2007 03:23 PM

Quote:

Originally Posted by Tralala (Post 1239788)
It did not. :(

Uh... ok. Well, enough messing around, change the Hook Location for the plugin above to usercp_start (instead of usersub_start). Let's just nip this sucker right in the bud..

Tralala 05-02-2007 05:20 PM

Quote:

Originally Posted by magnus (Post 1239810)
Uh... ok. Well, enough messing around, change the Hook Location for the plugin above to usercp_start (instead of usersub_start). Let's just nip this sucker right in the bud..


Okay, well, now I no longer get the error... the UserCP page loads fine... which is obviously a step in the right direction. :up:

But, unfortunately, I'm back where we started in that the expand/collapse button that appears in the title of the subscribed threads doesn't actually do anything. Clicking on it has no effect. It still works fine in the regular forum view, though.


I do also see the same thing that was mentioned earlier, with regards to spoilers and my particular spoiler BB code. When clicking on the expand/collapse button in regular forum view, if the post that is revealed has a spoiler in it, the state of that spoiler is set to "show" instead of "hide." The spoiler button works fine, mind you. It's just that it should default to "hide" the spoilerized text rather than show it... just like it appears in the regular post.

Here is my BB replacement code, if that helps any:

PHP Code:

<div style="margin:5px 20px 20px 20px">
  <
div class="smallfont" style="margin-bottom:2px">
   <
input type="button" value="Show" style="width:50px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.value=='Show') {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.value='Hide';} else {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display='none'; this.value='Show';}">
  </
div>
  <
div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
    <
div style="display: none;">{param}</div>
  </
div>
</
div

FWIW, I am running vBulletin 3.6.4 on this particular forum.

magnus 05-02-2007 05:42 PM

Quote:

Originally Posted by Tralala (Post 1239918)
Okay, well, now I no longer get the error... the UserCP page loads fine... which is obviously a step in the right direction. :up:

But, unfortunately, I'm back where we started in that the expand/collapse button that appears in the title of the subscribed threads doesn't actually do anything. Clicking on it has no effect. It still works fine in the regular forum view, though.


I do also see the same thing that was mentioned earlier, with regards to spoilers and my particular spoiler BB code. When clicking on the expand/collapse button in regular forum view, if the post that is revealed has a spoiler in it, the state of that spoiler is set to "show" instead of "hide." The spoiler button works fine, mind you. It's just that it should default to "hide" the spoilerized text rather than show it... just like it appears in the regular post.

Here is my BB replacement code, if that helps any:

PHP Code:

<div style="margin:5px 20px 20px 20px">
  <
div class="smallfont" style="margin-bottom:2px">
   <
input type="button" value="Show" style="width:50px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.value=='Show') {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.value='Hide';} else {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display='none'; this.value='Show';}">
  </
div>
  <
div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
    <
div style="display: none;">{param}</div>
  </
div>
</
div

FWIW, I am running vBulletin 3.6.4 on this particular forum.

Would it be possible for you to make me a temporary account on your forum and PM me the details? I'd like to check this out first hand if possible.

Tralala 05-02-2007 09:43 PM

Quote:

Originally Posted by magnus (Post 1239931)
Would it be possible for you to make me a temporary account on your forum and PM me the details? I'd like to check this out first hand if possible.

Sure. I'm assuming you'll need it to be an admin account? Happy to send you details via PM.

I'd just want to time it appropriately so I enable the mod during the precise time you're available to log in. (If I leave it on, I'll get a slew of questions from my members dying to know about the new feature, and I'm just not ready for that. :D )

aggiefan 05-03-2007 01:08 AM

I had to disable this because some of our users (actually a very small few were getting an error when they tried to access the usercp)

Quote:

Fatal error: Call to undefined function fetch_coventry() in C:\AGGIEFANS\WEB\forums\usercp.php(500) : eval()'d code on line 16

Any clue to what this is? We have the latest version installed so im guessing its not a issue thats been fixed.

It was also documented here which is where i found out that it was this addon which was causing it: http://www.myhattiesburg.com/forums/...d.php?p=233020

magnus 05-03-2007 01:35 AM

Ok, apparently this is less isolated than I thought. I'm going to dive into this with force tomorrow and get a fix out.

Sorry guys!

nymyth 05-03-2007 11:31 AM

this is sweetass...thanks a lot for this....having no problems so far

Peace

beduino 05-03-2007 03:04 PM

Hi Magnus!
A suggestion, maybe useful.
If you remember [a few posts before] i talk about a 'mystery' - whith 2 images [+] etc.
The problem [as you said] is fixed, but this make me a ideia.
A hack [new one] with the first AND the last post. :D
Then the user with click in first [+] see the first post and, click in second [+] read the last post.

It's sound possible? Or useful?
[your hack is working here ]
A great day,
Joao Barroca
aka beduino

LockeAG 05-03-2007 05:38 PM

Hey Magnus I will wait for the correction for the Usergroups and then we can continue with the little issue of the SPILER TAG...

Thanks again!


All times are GMT. The time now is 04:04 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.01521 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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