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 |
#32
|
||||
|
||||
Quote:
|
#33
|
|||
|
|||
Quote:
PHP Code:
|
#34
|
|||
|
|||
Oh, or "dateline" of course!
Thanks for your help, Logician! _till |
#35
|
|||
|
|||
Pretty simple to add this NEWS HACK
Great instruction........ _____________________________________ For those who would like to add there site to my search engine the URL is http://swf-empire.com |
#36
|
|||
|
|||
i have it installed and it's working well but i seem to be running into an issue marking a post as news:
-i have specified myself as being able to post news along with one other person. -i can mark a post as news using the [news][/news] including my posts i have made in the past. -i CANNOT mark other member's posts as news. I include the news codes but it does not show up on the homepage. -i had the other person able to post news post a thread and then i tried to mark it as news and it didnot pull this either. so is this correct? i must post the post in the forum myself to be able to mark it as news? what i wanted to do was go thru the forums and find post that were interesting and drag these to the homepage regardless of who originally made the post. i figure i can do this by allowing everyone to post news in the config file but i would prefer to avoid this if possible. thank you for the hack! frank |
#37
|
||||
|
||||
Frank the owner of the post that has been tagged with [news] tag must be recognized as a news poster in options of the hack. So you cant edit someone's post and insert news tag to drag that news into your main page (UNLESS that person is allowed to post news).
Unfortunately it cant be otherwise:The hack can not know who inserted the tags, you or the post owner so it just checks the post owner's news permission if it runs into a [news] tag in a post. Possible solutions: a) as you figured it out, you can grant all news posting rights (or disable to option to grant it to everybody). Of course this is not recommended but it is not so bad as it looks because most people wouldnt know how to post news even if they are granted this privilage in the options. b) You can reply the thread yourself and use [summary] tag in this thread. So forum reader wouldnt know about the hidden news message in your post, but with summary tag you can drag any message text as you like to your main page. eg. you can put other users messages in between your summary tags. In my board I personally prefer to use summary tags to make a thread news thread. Hope this helps a bit.. |
#38
|
|||
|
|||
yea i decided to do just that..reply and then use summary tags...only VERY minor issue i noticed with this is that if the thread is more than 1 page..and i reply and the reply is on the "nth" page..then the homepage link is to my reply rather than the first page of the thread...even if i use the linkme tag...i guess this way is more flexible for the news poster.
what i didnt notice in your reply is the case in which there's two people allowed to post news in the config file. one of these people posts into the forum WITHOUT using any tags. the other person then goes and adds the tags into the post previously made by the other individual. i.e. post A originated without news tags in post - news poster 1 news poster 2 adds news tags to post A post A does not get dragged to news page OH i just remembered one other thing i wanted to ask you! the message at the bottom of the page that says "Time to compile news .xxx secs" i have run time set to "0" but it is still showing the message. Oh yea one more thing the phpheader.php file seems to include alot of sensitive server info/pw...is this safe? i haven't a clue...im still trying to figure out how to use vbcodes :dead: thanks again! frank |
#39
|
||||
|
||||
Quote:
Quote:
* Does the post have news tags? * Does the post owner has rights to use these tags? So please double check the post owner (not the one who edited) is granted news posting priviliges in the options part. And make sure other restrictions do not apply to that post. Say if you set to have 5 news in your main page and if it is 6th, it may not be dragged. (Edit: Also check caps of the name. For example if the user's name in db is FRANK and if you configured it in the options as Frank, it wont work) I dont think there is bug here but if you are sure, please let me know and I'll check. Quote:
Quote:
Besides it's not the only sensitive .php file in your server. Check yourboard/admin/config.php. Logician |
#40
|
||||
|
||||
MINOR BUG FIX
Here is a small bug fix. Please fix it if you installed the hack prior to the date of this message. The option to enable/disable news compilation time does not work (always on) if you dont fix it. (minor issue). After the fix you will be able to disable its display by setting the variable to 0. Thx to frank for reporting this. Edit phpheader.php, find: PHP Code:
Replace it as PHP Code:
Edit newsconfig.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#41
|
|||
|
|||
$run_time = (string)substr(($time_end - $time_start),0,6);
i noticed this line above the if {$run_time} line do i have to change that line to $run_time_config={string....? nevermind, the fix got rid of the message! THANK YOU! frank ps i am using vb 2.2.6 and the hack is working fine for me. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|