PDA

View Full Version : Newsscript to vBulletin (External script)


wilth
20 Jul 2001, 09:30
Hy there,

we have a self-written newssystem and wanted to use our forum as archive and discussion place for news. So I wrote a little php script which creates a new thread for every newsitem. It's not a big deal:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And we need a php function html2vb which converts the html to vbCode:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Of course you need to add str_replace for all of your vbCodes.

Hope someone is helped with that :). The best is that you don't need to modify your vBulletin source.

See it in action: http://lionsource.com

NORRITT
20 Jul 2001, 12:33
well done! :)

NORRITT
20 Jul 2001, 12:34
damn sorry for this double posting ... IE 6 beta, I hate it ;)

Xenon
20 Jul 2001, 15:05
tststs, einer von Gamigo :) sieht gut aus :)

for all: well done :)

Shane
21 Jul 2001, 17:30
I did exactlly the correct thing, and it didn't work. :-/

jarvis
21 Jul 2001, 20:41
Okay, I've really been wanting to get something like this. I'm not so interested in the thread creation part of this hack, but I am really wanting to link to my threads from my home page and be able to display information like the following:

"News article here"

20 comment(s) Last post by Jarvis

I would think that there is a line of code from this hack that I should be able to use and just manually put in the forumid and thread strings, but my question is, where would I have my MySQL user information to pull this data. My main page is HTML-based, but PHP-parsed. I'm a bit nervous about embedding my user information in my homepage. Can this or any other hack do what I am asking?

Newbie questions I'm sure, but any help is greatly appreciated!!!

Thanks!!

:)

NORRITT
21 Jul 2001, 22:22
pernaps there is a better hack to realise that.

look here: http://www.vbulletin.com/forum/showthread.php?threadid=12324

jarvis
21 Jul 2001, 22:54
Thanks NORRITT,

I do use that LastXX hack but not in that way. If you go to my site at www.mhogaming.com and see where I have "Discuss this Post" after each news story, I would like to replace it with the above mentioned references to vB itself.

Thanks again, hopefully there is an easy way to do this. :)

-Jarv

Dark_Wizard
21 Jul 2001, 23:31
Try this...
http://www.vbulletin.com/forum/showthread.php?s=&threadid=21875

jarvis
22 Jul 2001, 02:59
Hmmm... I'll ask again on that thread, but didn't get any reply to it a week ago.

Thanks...