The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Logician NEWS: Drag Any Message to Your Main Page Details »» | |||||||||||||||||||||||||||
Logician NEWS: Drag Any Message to Your Main Page
Developer Last Online: Nov 2023
This is a news script which will drag vb forum messages from your vb db to your non-vb main page/news page. There are a lot of good news script around but I needed a highly customizable main page news script with some special features and wrote it myself. I'm using it in my site's main page for a long time, but I was just too lazy to write installation/help documents to share it here, sorry!
FEATURES: * This script simply pulls forum messages which you marked as "news" from your vb database and post them in your non-vbulletin (main/other) page. * You can mark messages as "NEWS" in any forum you want (including private forums). You dont need to restrict your news to a specific forum. * You can drag any message to your main page, regardless of its date. So news is NOT supposed to be the most recent messages in your board. * You do NOT have to carry the whole message to your main page as news. You can import it all or simply take some part of it. So eg. you can drag a message's the first paragraph to your news page and link the thread for "Read More". * Moreover you can insert invisible custom NEWS text which will be dragged to your main page to your board messages, but not shown in the original forum thread. So your original thread message and news text on your main page can be different than eachother. * You can have sticky news in your main page (even if they are not sticky in your forum). * News does NOT need to be the first message in the thread. You can tag any reply message as news and pull it to your main page either. * Script parses ALL of your message icons/smilies (including your custom add-ons) and some of the important vBCode like: [url] [email] [img] [b] [i] [u] * You can specify which members may post news. * You can form your News' title seperately, apart from of the original thread/message title. * You can set maximum number of news shown in your main page. * You can set maximum number of characters that all shown news should not exceed. Some messages can be long and some can be short and if you set a character limit, the script will automatically compile enough news from your database to fit your web page's relevant part according to the limit you set. * You can enable/disable: News Poster Name News Date News Read Number News 'Send to a Friend' Link Comment number/Add comment button/Last commenter Will viewing news increase the original thread's view count or not News is sticky or not for ALL your news INDIVIDUALLY. * All news tags are invisible in the original thread. So forum readers do not notice any difference when you tag a message as news. * Dragging a message to your main page as news is as simple as inserting a hidden [news]Title of My News[/news] tag to your forum message. Well, these features are what I needed in my news script, so it should suffice to you too! It's an easy to install script and will work with ALL vbulletin versions because it's an add-on, not a hack. I can give support as much as I have time, but please ask here, not via email or PM. If you use the script, please click INSTALL. If you post the URL of your news page after installation, you can help other users see the script in action in different pages and in custom designs, thank you! Logician Show Your Support
|
Comments |
#142
|
||||
|
||||
Quote:
|
#143
|
|||
|
|||
SVTBlackLight01, I visited your forum and saw that you got a great forum and the nice news in front page with picture. Are you attaching the picture manually using HTML editor? Is the news using this hack?
|
#144
|
||||
|
||||
Yes, the news section on the front page is manually edited. I had switched to this hack for a while because I liked having the views, posts etc. I wanted to have the pictures, though so I switched back to what I have now.
|
#145
|
|||
|
|||
That's a nice site. Please check your PM also.
|
#146
|
|||
|
|||
great hack, will it work on vb3?
/me tries but oops we get a problem mySQL error:Table 'deadlyf_PUB.post' doesn't exist which it clearly does, is there a way to sort this or will this not work with vb3? |
#147
|
|||
|
|||
Hack looks great. However Im having a small problem?
Im getting these error messages: Notice: Use of undefined constant threadid - assumed 'threadid' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 64 Notice: Use of undefined constant lastpost - assumed 'lastpost' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 67 Notice: Use of undefined constant lastposter - assumed 'lastposter' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 68 Notice: Use of undefined constant forumid - assumed 'forumid' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 69 Notice: Use of undefined constant open - assumed 'open' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 70 Notice: Use of undefined constant views - assumed 'views' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 71 Notice: Use of undefined constant replycount - assumed 'replycount' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 72 etc. The new table loads, but is preceded by those errors. Any help? Thanks, /DJ |
#148
|
|||
|
|||
BTW heres lines 52-72 if that helps:
$news = array(); while($tableLine = mysql_fetch_assoc($cekilen_news)) { $tmpTableArray = array($tableLine); $news = array_merge($news, $tmpTableArray); } } // Getting thread information for news articles for ($i=0; $i<$news_number; $i++) { $cekilecek_thread_id=$news[$i][threadid]; $cekilen_thread=mysql_query("select lastpost, lastposter, forumid, open, views, replycount from thread where threadid=$cekilecek_thread_id"); if (mysql_error()) {echo "mySQL error:"; echo mysql_error(); exit;} $news[$i][lastpost]=mysql_result($cekilen_thread,0, "lastpost"); $news[$i][lastposter]=mysql_result($cekilen_thread,0, "lastposter"); $news[$i][forumid]=mysql_result($cekilen_thread,0, "forumid"); $news[$i][open]=mysql_result($cekilen_thread,0, "open"); $news[$i][views]=mysql_result($cekilen_thread,0, "views"); $news[$i][replycount]=mysql_result($cekilen_thread,0, "replycount"); //getting forum name |
#149
|
||||
|
||||
it is because of error reporting settings of your PHP installations. Adding:
PHP Code:
should fix the problem.. Or you can ask your server admin and make him disable NOTICE errors in php.ini but my solution is easier.. |
#150
|
|||
|
|||
I really appreciate the quick reply! Hack rocks, and support rocks!
Thanks again. /DJ |
#151
|
|||
|
|||
hey hey... i don't agree...
the notice say that these constant are undefined, so it will assume their name... look at this... Quote:
Quote:
btw, disable the error on production site is the general rule, instead use an error log... but let's think... if somewhere in the app, there's some constant named [threadid] defined before this code line... i'm sure it will mess up the result... every parser error messages are bad... [notice] is just not as bad as [error] ^_^ |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|