Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2007, 01:20 AM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help integrating non vB script

I got a copy of the MyMovies script (www.mj99.com) and it works great if I run it solo, but i can't seem to integrate in to a page of my forum using the instructions found here. I can get it to display the page with all of the vbulletin "wrapping", but then the script doesn't work, or I can get the script to work, but then it just displays the following on the top of the page:
Code:
$stylevar[htmldoctype] $headinclude $header $navbar
Anyone have any tips or ideas on how to integrate a non-vBulletin php script in to it's on page on my forums? Before anyone suggests it, no, I'm not interested in using an iframe. Is there a way to have everything contained in a single php file? The template is where it seems to be screwing up.

Here's the location of where I'm trying to get it working: http://www.digitallywise.com/forums/movies.php
Reply With Quote
  #2  
Old 10-04-2007, 04:52 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>
Reply With Quote
  #3  
Old 10-04-2007, 10:49 AM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's essentially the exact same guide that I linked to from Psionic Vision and I'm still having the same issues. Is there a way to make a php vbulletin integrated file without using templates? That seems to be where I'm having the issues.
Reply With Quote
  #4  
Old 10-04-2007, 11:42 AM
swrzzzz swrzzzz is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made pages developed in Smarty run OK when they are called as a page from VBA

Can you do something like that?

Steve
Reply With Quote
  #5  
Old 10-04-2007, 01:46 PM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can try, but I have virtually no experience with Smarty.

Essentially, what I'm trying to do is take the mymovies script (which you can see working great here) and integrate it in to a vbulletin page so that I can have a "movies.php" file that works the way the base script does, but is integrated with vbulletin so that it displays the header, navbar, footer, etc. This doesn't seem to be working within a template because of the php in the script.
Reply With Quote
  #6  
Old 10-04-2007, 01:52 PM
swrzzzz swrzzzz is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Sorry, I didnt mean write in smarty at all

What I meant was I have a vanilla php page (which was incidentally written in Smarty) that I have managed to get working in VBA.

You add it as a page then if you want to you can still have access to the vbulletin variables from within your code.

The main issue is picking up width and styles for the elements you display

Steve
Reply With Quote
  #7  
Old 10-04-2007, 02:45 PM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would probably work, how'd you go about integrating the vbulletin stuff in the page? Do you have an example?
Reply With Quote
  #8  
Old 10-04-2007, 03:25 PM
swrzzzz swrzzzz is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have an example at work its at home...

Go to the VBAdvanced control panel if you have it installed and do "edit page" then point the page to your php file.

You can set it to strip the <head> etc off of your php page or you can take them out of your script - its pretty clear when you get to the right part of the menu. Then your pages get displayed between the forum header and footer.

If you need to see VBulletin variables they are available but in a slightly different form

If you cant make it work I can send you some screenshots and more info, but it wont be for a couple of hours till I get home

Cheers

Steve
Reply With Quote
  #9  
Old 10-04-2007, 03:48 PM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it, still no go because the script itself has to reload, it isn't ajax. I got it working so that the form appeared on a vbulletin page, but then when you entered your zip code, it reloaded to just the php file. Really, all I need to do is figure out how to take this script and make it also a vBulletin page so that it displays the header, navbar, and footer, with the script itself in between.
Reply With Quote
  #10  
Old 10-04-2007, 04:52 PM
swrzzzz swrzzzz is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you set the pageid in links or submits back into your file

ie make links url look like {$SCRIPT_NAME}?pageid=xxxxx&whateveryouwant=myinfo

where xxxxx is your pageid you declared in VBA when you defined the page?

Steve
Reply With Quote
Reply


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 01:23 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.04657 seconds
  • Memory Usage 2,245KB
  • 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
  • (1)bbcode_code
  • (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