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)

eva2000 01-11-2004 06:20 AM

Quote:

Originally Posted by eva2000
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

seems it's my browser as others can see if fine the first time ???

also would it be possible to make composexternal.php an admin only viewing page/function

Bernd Glasstett 01-11-2004 08:49 AM

Quote:

Originally Posted by eva2000
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

I checked the first site. It's loading perfectly. I checked the second site. It doesn't load. The third one loads too. But one thing is not that good: Placing the following described part of the code in the <head>-Tag. It might not get loaded right. Place it in the <body>-Tag.

HTML Code:

<script type="text/javascript" src="http://animeboards.com/external.php?forumids=3&type=js">
Try it, if it still fails to load, I will take a closer look into the JS-script. But it should work...

Bernd Glasstett 01-11-2004 08:53 AM

Quote:

Originally Posted by eva2000
also would it be possible to make composexternal.php an admin only viewing page/function

We don't plan this to do. It's designed to be used by the users in order to allow them to make the syndication as easy as possible.

If you would like to use it on your own, without adding it to the templates, then add a bookmark or favorite to your browser ;) You don't have to add a link to composeexternal.php to your site. :D

eva2000 01-11-2004 01:14 PM

Quote:

Originally Posted by Bernd Glasstett
We don't plan this to do. It's designed to be used by the users in order to allow them to make the syndication as easy as possible.

If you would like to use it on your own, without adding it to the templates, then add a bookmark or favorite to your browser ;) You don't have to add a link to composeexternal.php to your site. :D

yeah i renamed and edited the admincp/index to include your script inside

i found via website code validator some of the close tags in the javascript aren't escaped... but fixing that doesn't solve my problem - it seems to be just me as others can see it

Bernd Glasstett 01-11-2004 05:03 PM

Have you tried to put the code into the body-tag, as I said?

wacnstac 01-12-2004 12:11 AM

Quote:

Step 1:
Insert the phrases using the XML-files. There are phrases for some languages. You can of course translate them to other languages using the phrase-system. If you do so, please send me the XML-files for these translations. I will add them to this ZIP. Right now there are:
Can you explain in more detail how to do this?

Erwin 01-12-2004 12:17 AM

This is a very cool hack. :) Well done!

eva2000 01-12-2004 01:12 AM

Quote:

Originally Posted by Bernd Glasstett
Have you tried to put the code into the body-tag, as I said?

tried both ways same result for me only not seeing threads on first click with javascript error 'threads is undefined' but other members on my site see it fine

Bernd Glasstett 01-12-2004 07:02 AM

Quote:

Originally Posted by wacnstac
Can you explain in more detail how to do this?

What do you need to be explained? The insertion, the translation of the phrases, or how to export them? Or all of them ;) Just want to be sure to explain the right thing :)

Bernd Glasstett 01-12-2004 07:20 AM

Quote:

Originally Posted by eva2000
tried both ways same result for me only not seeing threads on first click with javascript error 'threads is undefined' but other members on my site see it fine

Strange thing. I tried alle examples again. This time the first two are working fine, the third produces the error. Then I tried again. This time the second one came up with the error.

So I looked into the code and found the first big problem: The code is never the same. It seems, that you have used different versions of the script. Can you please do the following:

- Use the latest version of the script on all three sites.
- And add all code produced by the script only to the body.

When you have done so, please tell it to me, and I will test all three of them again. And if the error still occurs - it doesn't do it on our testsite with the latest script - then I will try to find the error. :)


All times are GMT. The time now is 09:20 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.01550 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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