View Full Version : Converting html/JavaScript to php?
oldfan
03-24-2005, 04:04 AM
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
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.
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/forumdisplay.php?s=&daysprune=&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/html.php?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 <a href="JAVASCRIPT:;"
onclick="MM_openBrWindow('0019.html','set','scrollbars=yes, resizable=yes,width=550,height=430,top=0,left=0')">001
9</a></font></TD>
I tried changing it to this <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
What would happen if you changed it to "./oldfan/0019.html"
nothing :(
thanks for trying
oldfan
03-28-2005, 01:50 AM
bump
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.