Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Kayn Kayn is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-02-2001 Last Update: Never Installs: 59
 
No support by the author.

UPDATED! Woohoo!

I just fixed/added stuff from version 1.0!

Download the new version 1.5 if you have the old 1.0 - lots of better features.

From the readme.txt:

Quote:
This script isn't really a hack, just an external script that pulls information out of the VBulletin Database for news
or whatever reason you see fit. It's easy to install and configure, and has tons of the same features that many other
news scripts have, except you don't have to modify any Vbulletin source code (which I'm never comfortable doing
for some reason, but that's just me .

I had a really rough time finding a good, EASY news script that did what this does. I searched and found some, but
it really came down to easy installation. I didn't want to modify MySql tables or mess with the advanced Vbulletin
source (well, to me anyway). So I wrote this script. Yer.

This script was intended for VBulletin 2.0 only (I don't know if it will work with previous releases) and PHP4.

Working Demos can be found in use at http://pluh.com/forums/PluhNews.php and for headlines,
http://pluh.com/forums/PluhHeadlines.php

After you install, if at all possible, I would appreciate some credit to my script. A link to http://pluh.com
on your page before or after your news would be great. Let me know when you have it installed too - I love
seeing my stuff working on other websites!
You can check out the raw demo here for PluhNews: http://pluh.com/forums/PluhNews.php

And Headlines! http://pluh.com/forums/PluhHeadlines.php


Let me know if you like it! (Thanks Dark Wizard and Bane)

*NOTE: I will not be able to provide support for this hack, as I am extremely busy. Sorry...*

Show Your Support

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

Comments
  #412  
Old 04-11-2002, 02:07 AM
keely keely is offline
 
Join Date: Apr 2002
Location: North Carolina EST
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #413  
Old 04-11-2002, 02:50 AM
Lanigironu Lanigironu is offline
 
Join Date: Mar 2002
Location: Toronto, Canada
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #414  
Old 04-11-2002, 04:37 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ^^.
Reply With Quote
  #415  
Old 04-11-2002, 07:47 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me? i really want to use this script and i have no idea what went wrong.
Reply With Quote
  #416  
Old 04-11-2002, 08:16 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you post those lines (1 through 10)? i will tell you what is wrong.
Reply With Quote
  #417  
Old 04-11-2002, 09:16 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #418  
Old 04-11-2002, 09:21 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #419  
Old 04-12-2002, 11:34 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #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
  #421  
Old 04-22-2002, 07:53 PM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
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 12:29 PM.


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.08132 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete