Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 04-06-2010, 09:54 AM
suciuvlad suciuvlad is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Customizing vbulletin forum

Hello,

After i succeeded in creating a login/register from my main website i faced another problem. How do i add php to the template?

The website and the forum are on the same domain and use the samedatabase. I have edited the COMMON vbulletin template so that it has a visual style more similar to the website. The problem is that currently the navigation is static(i have only added html and css) but i need to query the database somehow and get the navigation from the database(i have added a pages table). I cant do that since i dont know how to add php to the templates.

I have attached a picture.
Attached Images
File Type: jpg pic1.jpg (89.9 KB, 0 views)
Reply With Quote
  #2  
Old 04-07-2010, 07:40 AM
suciuvlad suciuvlad is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

common guys... anyone?
Reply With Quote
  #3  
Old 04-07-2010, 10:28 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
How do i add php to the template?
Short answer: You can't

What exactly do you want to acomplish by "using PHP in a template"?
Reply With Quote
  #4  
Old 04-07-2010, 11:48 AM
suciuvlad suciuvlad is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Andreas,

As i was saying i wraped the forum in a div that it's styled to match my websites design. To do that i edited the common templates(Header, Headinclude and Footer).
If you look at the screenshot you can see that it works(as expected) but the thing is the navigation of my website it's database driven. Therefore i want to replace the currently added html (for the navigation) with html generated by php.

Regards,
Vlad.
Reply With Quote
  #5  
Old 04-09-2010, 09:34 AM
suciuvlad suciuvlad is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so...?
Reply With Quote
  #6  
Old 04-11-2010, 07:55 PM
suciuvlad suciuvlad is offline
 
Join Date: Mar 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got more responses from open-source products rather then paid ones
Reply With Quote
  #7  
Old 04-11-2010, 08:10 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should just open a support ticket. Its faster than posting on these forums. I usually post my questions on these forums and feel its an "added bonus" in case maybe someone will answer my question as often no one ever answers . But yah support ticket is more direct.
Reply With Quote
  #8  
Old 04-11-2010, 08:14 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

deleted the standard tabs, by disabled their respective plugins.
then add you own with one of the 5-8 tab modificaitons availible..

i ewen made one myself that adds navigation from DB via the plugin system.
https://vborg.vbsupport.ru/showthread.php?t=232224

And to ansver your other question, to run php
you either create a php file and run the templates in that not the other way around.
OR
create a plugin and run your php in there, but still render templates via php not other way around..

I know for a fact you can modify the layout anyway you want.
exsample : http://www.evisystems.org/?styleid=10 <-- NOT xhtml firendly its a build test.

default i run : http://www.evisystems.org/?styleid=8 <-- its just normal, more appealing.


EDIT : yes support tickets, usually faster than here..
vbulletin.org have died lately here on the forums, and alot of forum trolls have appeared.
so i guess the trolls came with the cms upgrade, and the great coders who responded help left for something else.
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 11:30 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.06544 seconds
  • Memory Usage 2,241KB
  • Queries Executed 14 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete