Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2005, 04:04 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-24-2005, 10:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What goes wrong with the popups? You get an error message. Can you post examples of some code that goes wrong?
Reply With Quote
  #3  
Old 03-24-2005, 11:47 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to look, but your DB is throwing errors. Sorry.
Reply With Quote
  #4  
Old 03-24-2005, 11:49 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 03-24-2005, 11:51 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://members.metallifukinca.com/index.php?" target="_blank">http://members.metallifukinca.com/index.php?</a>
Reply With Quote
  #6  
Old 03-24-2005, 11:54 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-24-2005, 12:01 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tend to look around. If the back end aint right, can't trust the front end.
Reply With Quote
  #8  
Old 03-24-2005, 12:56 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 03-24-2005, 01:39 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would happen if you changed it to "./oldfan/0019.html"
Reply With Quote
  #10  
Old 03-25-2005, 03:39 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
What would happen if you changed it to "./oldfan/0019.html"
nothing
thanks for trying
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:04 PM.


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.04315 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete