vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Javascript problem (https://vborg.vbsupport.ru/showthread.php?t=176418)

ishare 04-19-2008 05:17 PM

I did all of them. But nothing changed. :(

I even changed the <a href="javascript:;"> as <a href="#" onclick="aFunction();return false;"> but its still same. vBulletin convert that link. In status bar, the link should appear as javascript but it appears as http://www.dwshare.com/javascript<b></b>:;

There is something inside the showthread.php which cause this problem. But what ?

I will lost my mind due to this problem...

Lynne 04-19-2008 06:14 PM

Did you ever make the change regarding the id tag? That will screw things up. I'm not sure if it will change the link like that, but it will screw up your javascript call. You might as well get that problem out of the way so that the main problem is more isolated.

Oh, something else..... on your test.php page (or whatever you called it), add all the same "require_once" files (add them one-by-one) at the top as in the showthread.php page. See if that changes things. Go through the rest of the showthread page and see if other files get called into the page also and try adding those.

ishare 04-20-2008 11:55 AM

I did everything. I did remove and re-enter all the script lines in showthread template.
But nothing changed.
The link should appear as "javascript:;" on status bar, but it appears as "http://www.divx-world.com/javascript<b></b>;"

I even tried to changed the current link ("javascript:;") as "#". Then the link appears as "http://www.dwshare.com/showthread.php?p=42632#". And when you click this link, it goes top of the page and tabs doesnt working.

Lynne 04-20-2008 02:24 PM

Not the showthread template, the showthread.php page. That is when your tabs are broken. So, go through showthread and add the files one by one and see if you can get your test page to 'break'. Like:
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/class_postbit.php');

Add those at the top under
require_once('./global.php');

See if you then get the funny url. You need to find out what is making the url go weird and the only way to do it is to add this stuff one by one. Add in all the hook lines so that it includes your hacks and see if that breaks it. Just keep adding stuff from the showthread.php page into your test.php page until it breaks.

ishare 04-20-2008 02:45 PM

Before i start try to solve this problem, i had totally 125 hair on my head. And now finally i have about 10. :(

I did try all the scripts given in below website.
http://webtecker.com/2008/03/31/list...ab-navigation/

But none of them worked. Ok some of them worked but with many style problems.
The best script is Yahoo YUI. But i did not understand how to put the code into showthread. Its too complicated. At least for a dummy as i am.

The tab panel in current vBulletin profile page is also very nice. But i dont know how to use them. Do you have any idea about where these files located ? Or do you know how can we use it as a html post in showthread ?

If not, then i'm done! I will just continue with old way. And i will never use tab panel scripts again...

Regards

Lynne 04-20-2008 02:52 PM

Ah, don't give up! But, perhaps if you are frustrated, put it off until you are ready to tackle it again. I think it's a cool idea, although very specific to only a few forums who would need something like that.

As for the tabs on the profile page, there is this: [How-to] Add more tabs to the vB 3.7 profile pages That may help a little bit. I have successfully added tabs to the profile page on my test site, so I do know that works.


All times are GMT. The time now is 08:42 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.01433 seconds
  • Memory Usage 1,729KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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