Thread: PluhNews 1.5
View Single Post
  #420  
Old 04-22-2002, 08:34 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok , I have installed it and everything went ok. It works fine but I can not get it to come up on my index page in my home directory when I try to include it. My index is index.php It works fine when i use SSI but not with php include. Also, I am using vBHome and just adding the html to the template. I have tried so many things but nothing is working. Here is the code from where the include is:

Code:
<center>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
        <tr>
          <td width="100%" align="center"><!-- PluhNews Begin -->
<?php include("/forums/PluhNews.php"); ?><!-- PluhNews Ends -->
</td>
        </tr>
      </table>
      </center>

That html is in my vBHome (home) template. I even tried having my home page in the same directory as PluhNews and still nothing. I don't know what is wrong. Someone help.

The link to my Pluhnews page: http://theinfected.com/forums/PluhNews.php

The link to where I want my news to be:
http://www.theinfected.com/index.php (in the center of the page.)

I have tried all of these includes but nothing happens with either of them. The SSI include works thou but I don't want to use .shtml



PHP Code:
<? include("http://theinfected.com/forums/PluhNews.php"); ?>
PHP Code:
<? include("/forums/PluhNews.php"); ?>
PHP Code:
<?php include("http://theinfected.com/forums/PluhNews.php"); ?>
PHP Code:
<?php include("/forums/PluhNews.php"); ?>
Here is the code in my PluhNews.php file where the html starts:

Code:
//<!- PluhHeader -->
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
echo "

<style fprolloverstyle>A:hover {color: #00cc00; font-family: Verdana; size=\"2\"; text-decoration: blink}
</style>
<body style=\"font-family: Verdana; size=\" link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" text=\"#999999\" bgcolor=\"#000000\">

&nbsp;<div align=\"center\">
  <center>
  <table border=\"1\" cellspacing=\"1\" width=\"472\" cellpadding=\"2\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
    <tr>
      <td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#000000\" background=\"http://www.theinfected.com/images/header4.jpg\"><font face=\"Verdana\" size=\"2\"><b><font face=\"Terminal\" size=\"1\" color=\"#00CC00\">-&gt;</font><font size=\"2\">
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$title</a></font>
<font face=\"Terminal\" size=\"1\" color=\"#00CC00\">&lt;-</font></b></font></td>
    </tr>
    <tr>
      <td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#1E1E1E\">
      <font face=\"Verdana\" size=\"2\">
      <p style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">
      Posted By </font>
      <a href=\"$forumspath/member.php?s=&action=getinfo&userid=$postuserid\"><b><font size=\"1\">$postusername</font></b></a>
      at <i>$dateposted</i></font></p>
      <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>
      <p style=\"margin-top: 0; margin-bottom: 0\"><font size=\"2\">$bericht</font></p>
      </font>
      <p align=\"center\">
      <font face=\"Verdana\" size=\"2\">
      <a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$replycount</b>$commenttext</a> Last comment 
      was by <b>$lastposter</b></font></p>
      </td>
    </tr>
  </table>
  </center>
</div>
<p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>

</body>
";

}
}

//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo "<center><a href=\"$forumspath/search.php?s=\">Search the News</a> | <a href=\"$forumspath/forumdisplay.php?s=&forumid=$newsforums\">View All News Posts</a></center>";

//end HTML edit
//**********************

//include the footer
include("./PluhFooter.txt");
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01236 seconds
  • Memory Usage 1,788KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete