The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple newsportal / thread overview to add to your board... Details »» | |||||||||||||||||||||||||||
Simple newsportal / thread overview to add to your board...
Developer Last Online: Nov 2023
Okay, this isn't really a hack, since you don't have to modify any vb-files really, but I figured this was the best place to make it public anyhow. I found it rather useful myself, so I figured others might, too.
Last update: April 28th, 2003! ** Update summary: ** The bug that could occur due to MySQL stupidity has been fixed. Version 2 of the Newsportal script is now attached in this post, you can simply overwrite the newsportal.php on your site with the one from the attached zipfile to upgrade. From now on, no more vB files need to be adjusted nor do you have to make any database changes. If you've already done all that due to the mysql-bug in a previous stage of this hack, you can just leave it like that, it won't do any harm. If you're intent on 'cleaning' your files again, let me know if you can't get it done yourself. Q&A: What does this 'hack' do? http://www.kurafire.com/newsportal.php That's a live example of the fully functional version of the Hack (version 2). I think it speaks for itself. The amount of newsposts & threads on the right is set in a variable at the beginning. Is this hack hard to install? Absolutely not. You upload the newsportal.php, you add the new templates (see zipfile), and you place a link to newsportal.php wherever you want it on your site. That's it. You don't have to modify any vB files, nor your database. Does this hack include my style and everything? Yes, the newsportal page will use your headinclude, header, footer and style-colors (pagebgcolor, tableouterwidth, linkcolor, etc.) and all these settings are easily configureable. You just edit the templates like you're (hopefully) used to with all the normal vB Templates. Version 2: The newsportal script now uses 2 queries to get the necessary information for your News posts. One for all thread info and the postid's of the starting posts, and one for the pagetext (ie. post contents) of all those postid's. You can use 2, 20 or 200 newsposts, that won't matter, it'll always be 2 queries (though I discourage using more than 20 newsposts ). ^_^ That's it, you're all done. Have fun with the newsportal! ^_^ Show Your Support
|
Comments |
#122
|
|||
|
|||
I'm getting this error when I try to include the news on a non-forum page. I already removed the $header and $headinclude statements from the newsthreads template, as I don't need them on the other page. When I'm already logged in and browsing the forums, everything's fine, but if I just hit the homepage (where the news in included) first, I get this error...
Warning: Cannot modify header information - headers already sent by (output started at /home/pete/public_html/index.php:44) in /home/pete/public_html/forums/admin/functions.php on line 1753 |
#123
|
||||
|
||||
this hack is a standalone, not usable as a portable hack.
If you want to include it, you'll just have to copy - paste the code for JUST THE NEWS stuff only, and hook that up into your non-forum page script. |
#124
|
|||
|
|||
Quote:
Secondly, I just tested by logging on as a Guest, and it still shows me threads from my Mod forum only on the latest threads... So, I think changing the query of ading some condition based on usergroupid seems like the only choice. Thanks for the help anyway, Tigga |
#125
|
||||
|
||||
Quote:
Just outta curiosity, but did you check that too? Did you install any hack that involved your forums listing or the forum table? Or something with Host masks etc. ? SOMETHING that might've altered your permissions structure to work differently from most boards? Cos it works for everyone else, the permission section... |
#126
|
||||
|
||||
Quote:
|
#127
|
||||
|
||||
Quote:
Yeah, and it works for everyone else, and it's (I think) mostly the same section of code to check for permissions as is used in vB's own files... :/ |
#128
|
|||
|
|||
Quote:
Fatal error: Call to a member function on a non-object in /home/pete/public_html/testindex.php on line 117 The line in question is... $newsql = $DB_site->query("SELECT t.threadid as tid, t.title as ttitle, t.replycount as treply, t.postusername as user, t.postuserid as userid, t.dateline as dateline, MIN(p.postid) as postid FROM thread t LEFT JOIN post p USING (threadid) WHERE forumid=$newsforum GROUP BY t.threadid ORDER BY t.threadid DESC LIMIT $newslimit"); |
#129
|
||||
|
||||
that means you're not using the vBulletin engine in your non-forum page.
(I think) |
#130
|
|||
|
|||
is there no way to make it so it doesnt have to be in the /forums/ directory? I use individual team pages on my Intranet and I would like to use this script for each team but so far havent figured out how
|
#131
|
|||
|
|||
Quote:
The problem was that in the catagory, I set it that Registered users and guest cant see the catagory alltogether. But I hadnt set the Forum permissions. After I went and set it, the problem dissappeared! Now the newsportal works like a charm, which I am using as my home page portal... This is my favourite hack! Thanks KuraFire... Now my profile says that this is my fav hack too |
#132
|
||||
|
||||
Cheers, Robink, glad you got it working
mossyuk -> it doesn't really have to be in your forums/ directory. Mine isn't. However, it's necessary that you adjust your vB engine/code so that it can do non-vB pages retaining vB styles. |
#133
|
|||
|
|||
What files would you have to edit to do that kurafire?
|
#134
|
||||
|
||||
I don't remember, really... at least global.php but you might also have to edit functions.php and some more files, I dunno...
|
#135
|
|||
|
|||
If I understand correctly, you're trying to run the page or code in a folder other then the forums folder. If so try the PHP chdir() fucnction in the php page to get there.
|
#136
|
||||
|
||||
i don't know if this has been answered or not but, is there anyway to put in the person's avatar with their post? =) that would make this thing perfect!!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|