vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Compose External Javascript (https://vborg.vbsupport.ru/showthread.php?t=59776)

dede1 01-06-2004 09:24 PM

very nice :)

Bernd Glasstett 01-06-2004 10:44 PM

Quote:

Originally Posted by eva2000
nice script you got there :)

seems what ever is generated when used on a web site generates a javascript error in IE 6.0.2800.1106

Code:

  Error: 'threads[...].title' null or not an object
  Code: 0


Ok, this bug is confirmed. Problem will be: There is no way using the Javascript to verify, whether there are as much threads in this forum or not, because this would require a database-query. What would be possible is making such a query before the script generates the code. If there that much threads -> go on. If not, get the number of threads and use this as a value for maximum-threads.

BUT: This would not help, if after the creation of the JS-code, there would be less threads (through deletion) than priorly confirmed in the forum. So... we need to find a way to eliminate the JS-error, rather than making a workaround in the PHP-file. I might have an idea, but will look into it tomorrow err - today, as it is already 01:46 a.m. here in Germany ;)

Interesting: Mozilla doesn't have problems with the Javascript. Oh well... MSIE ... Nah, I don't say more :D

gldtn 01-07-2004 02:01 AM

Had no javascript errors here with Monzilla and neither with I.E. There is only one thing bugging me.. the delay to update the threads.. I get new threads in the forum but sometimes it don't even updates it for some reason.

Bernd Glasstett 01-07-2004 07:17 AM

This might be because ot the JS being cached. Adding the following code to your Header might help:

Code:

<meta NAME="revisit-after" CONTENT="0 days">
 <meta http-equiv="expires" content="0">
 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">


gldtn 01-07-2004 02:23 PM

+K for you, too bad Karma is not turned on in this forum :/. Its working flawless now, thanks to you..

Oh.. one more question, not sure if this is possible due to the limitation on the external.php, but is there a way to get the topics to update when there is a new reply to it.. rather than only when a new topic is posted?

Bernd Glasstett 01-07-2004 03:53 PM

At this moment this is not possible and would require hacking the external.php - but comes time, comes solution :D

Bernd Glasstett 01-07-2004 05:32 PM

Here we go: On our new developing system, my co-coder Ypsfanpage.de optimized the code, redrucing some clutter and got rid of the bug in the JS on MSIE. So here we go with version 1.0.2 :)

Work is in progress for the following features (which will then be version 1.0.3):
- Having some predefined styles at hand - for the ones who have problems coding ;)

Bernd Glasstett 01-07-2004 08:00 PM

Now, version 1.0.3 is online. We added three pre-defined styles - which you can change on composeexternal.php if you wish. The download is now bigger and containing previews of the pre-defined styles.

Work is in progress for the following feature (which will be in version 1.0.4):
- Adding the possibility to generate the code for a specific forum changing forumdisplay-template and adding a new point to the forum-tools popup-menu.

Bernd Glasstett 01-09-2004 07:48 AM

Latest installment: version 1.0.4, which offers direct support of forumdisplay and navbar-templates, giving you instructions how to integrate it in these templates. We had to change our template and the php-file a bit, so please redownload the package.

The next release will be a while away, as we are now working on the conversion of our big production-board. But the support of course continues and should there be any bugs, we will eliminate them of course :)

eva2000 01-10-2004 09:38 PM

for some reason i keep getting 'threads.. is undefinied' on first load of page but if i hit ctrl+F1 it loads the threads on external page ? i.e. at http://animeboards.com/showthread.php?t=55535 the 3 example sites i used all don't show threads on first load only on refresh


All times are GMT. The time now is 09:34 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.04465 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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