Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

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

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

excuse me while i simply paste my readme file with a few additions:

------------------------------------------------------------
Newspro vBulletin Integration Beta 1
Written by Jon 'Ratorasniki' Naiman
For http://www.tribalwar.com/

Demo: http://www.tribalwar.com (and http://www.tribalwar.com/forums respectively - look for posts with the News: prefix)

Download: http://www.tribalwar.com/rat/npa_vbgen/npa_vbgen.zip

Bugs/Comments/Upgrades/Suggestions/Hatemail
can go to ratorasniki@tribalwar.com
------------------------------------------------------------

-What it does-

This is an addon for Newspro which once properly configured will
take the news you've just submitted, and add a thread to your
vBulletin forums. It was inspired by a previous hack we had in
place to do the same thing for our old UBB. It is however fairly
different from its counterpart..

-What it doesnt do-

This addon does not add a link to your new thread at the bottom
of your post. It probably never will, either unfortunately. There
isnt a whole lot i can do, since i dont want to spend too much more
time on this silly little thing.

-What it needs-

Newspro - untested on all versions, but it works for me..
vBulletin - again, its untested. its a beta for a reason
users username for both Newspro and vBulletin must be the same
(ie. my NP name is Ratorasniki, and so is my vB name)
user must be logged into the forum, as it gets the users
password from the users cookie - this also means cookies must
be set for the entire domain, not just the directory
newspro admin must first set up the settings in Newspro's
advanced settings tab - for point of reference my settings
are:
vBPrefix: News:
vBurl: http://www.tribalwar.com/forums
vBnpurl: http://www.tribalwar.com/newspro
newspro setting 'Autobuild news on submit' (or something worded similarly) must be set to True (or On)

-Installation-

While this is slightly more involved then most newspro hacks, you
shouldnt have any problem with it.

Upload npa_vbgen.pl, npvbgen.cgi, and npvbgeninclude.txt to your
newspro directory. CHMOD npa_vbgen.pl to be readable from the web
and npvbgen.cgi to be readable, and writable from the web. also
npvbgeninclude.txt should be readable from the web.

Log into Newspro and go to Advanced Settings, scroll down untill
you get to vBPrefix, and fill in the 3 settings for this addon.

Open up newspro.cgi in a text editor (make a backup if you are
squeamish :P), find:

Code:
	unless ($SilentBuild) {
		&NPHTMLHead($Messages{'Build_Title'});
		print $Messages{'Build_Message'};
underneath it add:

Code:
# added vbgen link
print " <a href=\"npvbgen.cgi\">Add this news to the forums</a>.";
# done
upload newspro.cgi, overwriting the old one. hopefully this wont void
your warantee

Log back in to Newspro, and build news. If your server doesnt blow up
then you should be presented with a new link on the Your news has been
built page, stating 'Add this news to the forums'. Clicking it now
should result in a message of "This function is only available after
submitting news". This means you're all set. If you get any other message
or an error, you've developed a problem somewhere, and im not really sure
how you managed to do that

-The Last Bit-

keep in mind when you use this that i basically just threw it together and
once it was functional i left it (save for a few features so people dont have
to go swimming thru my code to change vars). also, yes i know it is a really
cheap way of getting it to work, but hell - it works, dont complain. i guess
thats about it. enjoy.

----------------------------------------------

something of note, i realize this is a vB forum, and this is a newspro hack, but i do think its fitting here as well as in the NP forums.

[Edited by Ratorasniki on 12-20-2000 at 07:24 PM]

Show Your Support

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

Comments
  #2  
Old 12-20-2000, 10:49 PM
Guest
 
Posts: n/a
Default

V-G-T Thanks Rat!!
Reply With Quote
  #3  
Old 12-20-2000, 11:48 PM
Guest
 
Posts: n/a
Default

w0000000000000000000000000000000000ttttttttttttttt tttttttttttttttttt age.
Reply With Quote
  #4  
Old 01-14-2001, 01:17 AM
Guest
 
Posts: n/a
Default

I got error when click the add this news to forum

Then I read back the server error log and have the following erros

[Sun Jan 14 11:15:48 2001] [error] (8)Exec format error: exec of /home/adrian/public_html/newspro/npvbgen.cgi failed
[Sun Jan 14 11:15:48 2001] [error] [client 192.168.103.11] Premature end of script headers: /home/adrian/public_html/newspro/npvbgen.cgi

anybody can help me ?
Reply With Quote
  #5  
Old 01-14-2001, 06:32 AM
Guest
 
Posts: n/a
Default

i didnt account for perl directories other than /usr/bin/perl so if, for instance your server's perl is in /usr/local/bin/perl you will have to open up npa_vbgen.pl and find this line:

Code:
$newshtml = qq~#!/usr/bin/perl
and replace it with:

Code:
$newshtml = qq~#!/usr/local/bin/perl
if the server is having problems executing the script, that may be the cause. sorry about the problem, but i didnt intend this to be a public thing when i wrote it to begin with

i might actually fix it up and release a new version, since ive made some improvements (notably linking to forum threads, as a Comments>> link [it works, but its got a few odd bugs i'd like to fix first ])
Reply With Quote
  #6  
Old 01-15-2001, 04:30 AM
Guest
 
Posts: n/a
Default

cool, i'll need this.......for my new site hopefully i'll be able to launch it in a few days

it's gonna make it so much easier, now i don't have to post in the news and the forum thx d00d
Reply With Quote
  #7  
Old 05-25-2001, 07:21 PM
krohn krohn is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work on vbulletin 2.0?
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 10:44 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.04165 seconds
  • Memory Usage 2,252KB
  • Queries Executed 20 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_onlinestatus
  • (7)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete