vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Converting html/JavaScript to php? (https://vborg.vbsupport.ru/showthread.php?t=78672)

oldfan 03-24-2005 04:04 AM

Converting html/JavaScript to php?
 
I'm trying to intergrate my trading page with my vB3 http://www.metallifukinca.com/oldfan/ by using "INSTANT TXT/ HTML/ JAVA FORUM INTEGRATION Version 1.2 for vBulletin 3.x.x by Dr Erwin Loh "
Everything works fine, but the popup windows I created using JavaScript.
Anyone help me out ?

Thanks

Marco van Herwaarden 03-24-2005 10:45 AM

What goes wrong with the popups? You get an error message. Can you post examples of some code that goes wrong?

noppid 03-24-2005 11:47 AM

I tried to look, but your DB is throwing errors. Sorry.

Marco van Herwaarden 03-24-2005 11:49 AM

Quote:

Originally Posted by noppid
I tried to look, but your DB is throwing errors. Sorry.

Not for me now. Even the popups seem to work normal.

What where you trying when you got the DB error?

noppid 03-24-2005 11:51 AM

<a href="http://members.metallifukinca.com/index.php?" target="_blank">http://members.metallifukinca.com/index.php?</a>

Marco van Herwaarden 03-24-2005 11:54 AM

Didn't try the forum, only tried the supplied link.

Quote:

Invalid SQL: SELECT postid FROM vb3_attachment WHERE filename = 'VIP_ONLY - Greensboro '97 Pt. 2.torrent'
mysql error: You have an error in your SQL syntax near '97 Pt. 2.torrent'' at line 1
Looks like an addslashes is needed here. If you don't do that it might also be vulnerable to SQL-injections.

Edit: A starting point to get in without errors: http://members.metallifukinca.com/fo...aysprune=&f=18

noppid 03-24-2005 12:01 PM

I tend to look around. If the back end aint right, can't trust the front end.

oldfan 03-24-2005 12:56 PM

sorry, I had a database error :(

I'm trying to make this page
http://members.metallifukinca.com/ht...file=test.html
look and act like this page
http://www.metallifukinca.com/oldfan/
Meaning I want the links when clicked, they open up

This is the code
Quote:

<a href="JAVASCRIPT:;"
onclick="MM_openBrWindow('0019.html','set','scroll bars=yes,resizable=yes,width=550,height=430,top=0, left=0')">001
9</a></font></TD>
I tried changing it to this
Quote:

<a href="JAVASCRIPT:;"
onclick="MM_openBrWindow('http://www.metallifukinca.com/oldfan/0019.html','set','scrollbars=yes,resizable=yes,wid th=550,height=430,top=0,left=0')">001
9</a></font></TD>
but the new window won't open.

sorry for the confussion and thanks for the help

Marco van Herwaarden 03-24-2005 01:39 PM

What would happen if you changed it to "./oldfan/0019.html"

oldfan 03-25-2005 03:39 AM

Quote:

Originally Posted by MarcoH64
What would happen if you changed it to "./oldfan/0019.html"

nothing :(
thanks for trying


All times are GMT. The time now is 05:27 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.01287 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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