vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PluhNews 1.5 (https://vborg.vbsupport.ru/showthread.php?t=21875)

keely 04-11-2002 02:07 AM

Ok First Let me say I'm a newbie so please be gentle. Ok that being said I have the info coming into my PluhHeadlines.php & PluhNews.php files fine. I want to have this information come up in a table 1 cell for the headline and the next cell with the 1st post to come up with who posted and to read more, reply to article. I have seen this done just not sure where to put it in my HTML and how do i create the SSI or the connection to the database. Any help would be greatly aprceiated.
thanks in advance
Keely

www.ding60.com

PS also running front pages and not sure there is a way to do do...i warned you i'm a newbie :)

Lanigironu 04-11-2002 02:50 AM

Quote:

Originally posted by Vivi Ornitier
When I try to install it I get an error on line 50 which is...
PHP Code:

$linkcode "$forumspath/showthread.php?threadid=".$threadid"; 


Did you specify the path correctly?

GuruXL 04-11-2002 04:37 PM

Code:

Fatal error: Failed opening required './global.php' (include_path='.:') in /path/to/forums/PluhNews.php on line 5
that's the error i get when i try to include PluhNews.php on the front index page which is located at the root directory. i've seen some post about this problem too but i don't quite get the solution, or if there was a solution posted at all -_-. I can sure use some help here thanks.

note* i edited the path in the code, but it points to the right place. privacy ^^.

GuruXL 04-11-2002 07:47 PM

Can someone help me? i really want to use this script and i have no idea what went wrong.

TECK 04-11-2002 08:16 PM

can you post those lines (1 through 10)? i will tell you what is wrong.

GuruXL 04-11-2002 09:16 PM

Code:

<?php
//PluhNews 1.5 released under GNU GPL Licence version 2.0 (see copying.txt file for more info)
//Set your permissions in your control panel to make sure that only YOU and who you specify can post news. Otherwise, everyone and their dog can register and post in your news forums, thus posting where your news will appear. But for this script to work it's extra magic, be sure your members can reply to your news posts.


require('./global.php');
require("./PluhConfig.php");
require("./admin/config.php");

//scroll down to edit the HTML for the news
//**********************

//Start the goodies (please do not edit to goodies unless you know what you are doing

//include the header
include("./PluhHeader.txt");

well that's the first few lines of PluhNews.php, what i want to do is include the news in one of my main pages in the root directory. but the global keeps getting in the way :(

GuruXL 04-11-2002 09:21 PM

i don't know what i did now, but it works if i directly go to PluhNews.php, however, if i try to include PluhNews.php from the root directory (where my main files are), i don't get an error, but a blank page...

GuruXL 04-12-2002 11:34 PM

I fixed the errors hehe :)

but now, for the character limit addon. how do i make it so that the "read more" only show up if it exceeds the character limit?

Lethal 04-22-2002 08:34 AM

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");


Lethal 04-22-2002 07:53 PM

Anyone?


All times are GMT. The time now is 09:08 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.01623 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete