Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-07-2000 Last Update: Never Installs: 0
 
No support by the author.

I dont understand how everyone else has done it but I cant get anywhere with mixing HTML with PHP in order to display the hacks like:
http://animeboards.com/index2.php3

I tried to put one of those hacks in a table and I get a pharse error.

The way I done it is via:
<html>
<?php
include("something.php");
?>
</html>

for each hack to display.


Adding things on via Frontpage just stops the code from working.

Can anyone help me out?

Current page is at: http://vboard.co.uk/index.php
with no HTML now and looks messy.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-07-2000, 02:05 PM
Guest
 
Posts: n/a
Default

in the index2.php3 file i have this before the

<html> tag

Code:
<?
 require("/home/usr1/www.animeboards.net/htdocs/forums/admin/config.php");
 require("/home/usr1/www.animeboards.net/htdocs/phpads/config.inc.php3"); 
 require("/home/usr1/www.animeboards.net/htdocs/phpads/view.inc.php3"); 
 require("/home/usr1/www.animeboards.net/htdocs/phpads/acl.inc.php3");
 chdir("/home/usr1/www.animeboards.net/htdocs/forums"); 
 require("/home/usr1/www.animeboards.net/htdocs/forums/global.php");  
?> 
<html>
<head>
<title>Animeboards Forums</title>
not sure if that's your problem - of course you can leave out the ones referring to phpads if you don't use phpads on the index page
Reply With Quote
  #3  
Old 10-07-2000, 02:36 PM
Guest
 
Posts: n/a
Default

Didn't work at all.

Only this works for me:
<?php
include("totalmembers.inc.php");
include("newestmember.inc.php");
include("activetopics.php");
?>

If I add anything on it! It will not work at all.
Reply With Quote
  #4  
Old 10-07-2000, 04:26 PM
Guest
 
Posts: n/a
Default

im sure this isnt a parse error you are getting. How about giving us the exact error you get.

~Chris
Reply With Quote
  #5  
Old 10-07-2000, 05:34 PM
Guest
 
Posts: n/a
Default

This is a html/php code that is used at: http://www.vboard.co.uk/index.php

<html>

<head>
<title>vBoard</title>
</head>

<?php&nbsp;
<table border="1" width="100%">
<tr>
<td width="50%">
include("totalmembers.inc.php");&nbsp;</td>
<td width="50%">
include("newestmember.inc.php");</td>
</tr>
</table>
<p>&nbsp;include("activetopics.php");
?></p>
<html/>


You will see this error:
Parse error:
parse error in /home/jordan32/web/index.php on line 8

Line 8 happens to be a bit of HTML!
Reply With Quote
  #6  
Old 10-07-2000, 06:04 PM
Guest
 
Posts: n/a
Default

woah dude, helps if you use PHP correctly...

Code:
<html> 

<head> 
<title>vBoard</title> 
</head> 
&nbsp; 
<table border="1" width="100%"> 
<tr> 
<td width="50%"> 
<?php include("totalmembers.inc.php"); ?>&nbsp;</td> 
<td width="50%"> 
<?php include("newestmember.inc.php"); ?></td> 
</tr> 
</table> 
<p>&nbsp;<?php include("activetopics.php"); ?></p> 
<html/>
Reply With Quote
  #7  
Old 10-07-2000, 06:26 PM
Guest
 
Posts: n/a
Default

Thanks Ed

Everything is working!!!
I wonder if i can get by now.
Reply With Quote
  #8  
Old 10-07-2000, 08:25 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by vBoard.co.uk


The way I done it is via:
<html>
<?php
include("something.php");
?>
</html>

I knew this wasnt the case because the example here would never throw a parse error.

oh well

~Chris
Reply With Quote
  #9  
Old 10-09-2000, 04:06 PM
Guest
 
Posts: n/a
Default

If your using frontpage, use the tags:

<SCRIPT language="php"> instead of <?php

and </script> instead of ?>

frontpage will recognize the tags and not put the code as HTML.

what you would get would be:

<SCRIPT language="php">
include("something.php");
</script>
Reply With Quote
Reply

Thread Tools

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 02:37 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.09280 seconds
  • Memory Usage 2,255KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)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
  • 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