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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2006, 02:36 AM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Using css in a non VB page?

I am not the best at html/php but based on what I found searching I have gotten quite far I just have two more issues I hope someone could help with.

I was hoping to use my VB CSS with this page I wrote since I included the navbar and footer. I also tried to manually add the colors to the <body> tag but then the page didn't work, I presume due to the javascript.

Worse case (2nd problem) how can I format the navbar to fit the screen, it is about 120% too large so I have horizontal scroll bar on my browser.

I would post the link but it's an adult site so I would prefer to send it by PM.

Thanks in advance

PHP Code:
<?php 
chdir
('/***/forum/');  
require_once(
'./global.php'); 
eval(
'$navbar = "' fetch_template('navbar') . '";'); 
print 
$headinclude
print 
$header
print 
$navbar
?> 
<html> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<head> 
<title>Learn Spanish</title>
<style type="text/css" id="vbulletin_css"></style>
</head> 
<body>
<script language="javascript" src="http://www.donquijote.org/ext/cont/free_pdd.js.asp"> </script> <br><center><a href="http://www.donquijote.org" target="_NEW">Learn Spanish with don Quijote </a></center> 
<script language="javascript" src="http://www.donquijote.org/ext/cont/free_lesson.js.asp"> </script> <br><center><a href="http://www.donquijote.org" TARGET="_new">Learn Spanish with don Quijote </a></center> 
</body> 
</html> 
<?php 
eval('$footer = "' fetch_template('footer') . '";'); 
print 
$footer
?>
Reply With Quote
  #2  
Old 04-17-2006, 05:03 AM
SixteenOhNine SixteenOhNine is offline
 
Join Date: Apr 2006
Location: Tennessee
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it not be easier to create a page powered by vBulletin as opposed to combining hard-coded PHP and HTML into a single page? There is a wonderful tutorial on how to do just that below .

https://vborg.vbsupport.ru/showthread.php?t=98009


Worth a read and may help you, in addition to lightening your load.
Reply With Quote
  #3  
Old 04-17-2006, 11:06 AM
Toneboy's Avatar
Toneboy Toneboy is offline
 
Join Date: Oct 2003
Location: Scotland
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks as if you're not linking to a css file.

Your header should begin something like this:
PHP Code:
<?php 
chdir
('/***/forum/');  
require_once(
'./global.php'); 
eval(
'$navbar = "' fetch_template('navbar') . '";'); 
print 
$headinclude
print 
$header
print 
$navbar
?> 
<html> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<head> 
<title>Learn Spanish</title>
<LINK rel=stylesheet type=text/css href=http://www.yourdomain.com/styles/style.css>
</head> 
<body>
Personally I swept up the css generated in vBulletin and made that into a separate .css file. Works fine with other pages on my site.
Reply With Quote
  #4  
Old 04-17-2006, 08:07 PM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SixteenOhNine
Would it not be easier to create a page powered by vBulletin as opposed to combining hard-coded PHP and HTML into a single page? There is a wonderful tutorial on how to do just that below .

https://vborg.vbsupport.ru/showthread.php?t=98009


Worth a read and may help you, in addition to lightening your load.
Completely missed that thread.

Thank you very much, worked perfectly!
Reply With Quote
  #5  
Old 04-17-2006, 09:48 PM
SixteenOhNine SixteenOhNine is offline
 
Join Date: Apr 2006
Location: Tennessee
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TomasDR
Completely missed that thread.

Thank you very much, worked perfectly!
No problem, thought it would be a bit easier seeing as you could simply update from the Admin CP instead of having to re-upload so many HTML pages.
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 09:02 AM.


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.03866 seconds
  • Memory Usage 2,206KB
  • 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_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete