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 |
#12
|
|||
|
|||
Alright, I probably have the dumbest question ever. First, let me say this script is FANTASTIC. However, is there any way for me to make it "View 179 Times" instead of "197 Times Viewed".
I've tried to do this on my own... but always got an error... so I must of been doing somethin wrong. Anyways... THANKS FOR THE GREAT SCRIPT! |
#13
|
||||
|
||||
Quote:
$replace_text=$news[$i][views].' Times Viewed'; Replace it as: $replace_text='View '.$news[$i][views].' Times'; Enjoy.. |
#14
|
||||
|
||||
Ok, got almost everything working right. I just noticed that the time I posted the news is always the current time, so I need some help with that. I changed some return date () code, but it clearly didn't work. I want to have the time is this format (in PHP): M. jS, Y \a\\t g:i A. Can someone help me get the correct time in there?
|
#15
|
||||
|
||||
Quote:
return date ("Y-d-m H:i:s", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil)); and edit "Y-d-m H:i:s" part according to your wish.. |
#16
|
|||
|
|||
mmm ... looks very handfull ... i have a try with your hack ...
Thx a lot Logician |
#17
|
||||
|
||||
I tried that, and it returned: Dec. 31st, 1999 at 12:02 PM
|
#18
|
||||
|
||||
Quote:
|
#19
|
||||
|
||||
Quote:
|
#20
|
||||
|
||||
Quote:
1- Please double check you modified the correct line: return date ("Y-d-m H:i:s", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil)); will be: return date ("M. jS, Y \a\\t g:i A", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil)); 2- Make sure your post date is correct: News date is the date of your thread message, not the date you inserted [news] tags. So if you tag an old message as news, its news date will be old either. If these do not work: a) Give me the URL of your board message and news page so that I can check them out (Edit: Never mind I already checked them) b) Send me your phpheader.php (as you modified)(delete password), newsconfig.php and your news message's entire text (with option tags you used). You can zip them and send via pm.. Regards, Logician |
#21
|
||||
|
||||
Hi Logician,
thx for this very good script...any wish form me: - config with parameter for show only headers on site where i it wont and the completnews on a other page - colorsupport (don't work on my page) - more - button, when I have more then x-news - search the news.... :rambo: it's unbelievable, but works fine :cheeky: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|