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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2003, 06:47 PM
Crazy Pete Crazy Pete is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help in migrating a site to PHP from HTML

Hey folks,

I did a search on this and couldn't find any relevant threads, and I apologize if this is in the wrong section so feel free to move it.

What I need help with basically is in how to go about converting my current static (HTML) website into a more dynamic PHP/MySQL-driven site.

My main problem right now is if I want to add anything to the site, for example any links to another site page off the main one, I have to update 20 pages instead of just inserting one line.

Basically I need to know how to get started in converting my site over to PHP and how much work is involved in it, along with any good resources you'd want to pass along. Thanks very much for any help!

On a side note, I would publish the URL here for people to get an idea of what I'm doing, but I can't right now because we're in the process of switching hosts, so it most likely wouldn't work.
Reply With Quote
  #2  
Old 04-26-2003, 01:25 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need a CMS solution. I'm working on one now. Need more info?
Reply With Quote
  #3  
Old 04-26-2003, 05:08 PM
Crazy Pete Crazy Pete is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that would rock! Thanks.
Reply With Quote
  #4  
Old 05-03-2003, 05:50 AM
Crazy Pete Crazy Pete is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still looking for more info on this.
Reply With Quote
  #5  
Old 05-03-2003, 07:00 AM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well if it helps, first divide you site into some main sections ie. left column, header, right column, main. then make the header, left and right column trhee different php pages, and then on index.php include them and wherever you want, then check to see what "action" equals (from the header [ex www.vbulletin.org?action=showthread] you get the idea) and if it equals anything besides "main.php" make it include that page

if this doesn't make sense tell me and i'll try to explain better
Reply With Quote
  #6  
Old 05-07-2003, 04:26 AM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to use custom vbulletin templates on my forum.

I can go into forum/admin and make the new template, but what is the command to initialize it?

For instance, if I use code that has: $demotemplate in it, nothing will show because its just an unnamed variable, right?

I need to say something like: $demotemplate = (query or query to database where template is stored)

Thats what I'm really looking for, what query do I use to find info from the templates created in the forum/admin?

I think this would also solve Crazy Pete's problem, as it sounds like he wants to move his info to templates as well.
Reply With Quote
  #7  
Old 05-07-2003, 05:42 AM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look through the vb code, it'll be something with eval(gemtemplate) etc...it'll have more than that, but it has that and the dooutput() stuff
Reply With Quote
  #8  
Old 05-07-2003, 01:19 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this?

Code:
eval( 'dooutput( "' . gettemplate( 'home' ) . '" );' );
There has to be more to it, right? Do I need to include the template name in the top of the page with all the others?

Code:
$templatesused = 'home,home_articlebit,home_articlelink,home_welcomeguest,home_welcomeuser,';
I tried just the eval and the eval with adding it in the templatesused but no luck. If possible could you show an example?

Thanks for your input, and I hope this helps Crazy Pete as well.
Reply With Quote
  #9  
Old 05-07-2003, 02:32 PM
Crazy Pete Crazy Pete is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that would probably help me as well. Thanks, leviw.
Reply With Quote
  #10  
Old 05-07-2003, 02:35 PM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could also use Logician's webtemplates hack. It's very good for having a site integrated with vBulletin.

Craig
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 08:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13050 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
  • (2)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