vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   news2vb - Moreover news headlines to vBulletin discussion thread (https://vborg.vbsupport.ru/showthread.php?t=36174)

Cloud-Warrior 03-18-2002 08:30 AM

Weird, seems to work for my forum - what's your URL?

Cloud-Warrior 03-19-2002 08:01 AM

Yeah it's strange that the icon is not being shown properly in your threadlisting Erwin, did you use an ID number that is shown via PHPMyAdmin - it may not be the same as the icon name - e.g. my iconid 37 corresponds to icon14.gif.

No icon is being set, I guess to solve the broken image at least you can set the iconid to 0 (none will appear). This is what is being shown in your threadlisting

PHP Code:

<img src="" alt="" width="15" height="15" border="0"

Word Wrap Bug

Another thing to note is that you may notice a break occuring somewhere in the middle of the Discuss URL or the Discuss text - you will either have to set your Word Wrap to a large value or else to 0 to stop this.

Erwin 03-19-2002 09:20 AM

Quote:

Originally posted by Cloud-Warrior
No icon is being set, I guess to solve the broken image at least you can set the iconid to 0 (none will appear). This is what is being shown in your threadlisting

Changing iconid to "0" fixed it. The default icon shows up now which is what I want anyway!


Quote:

Another thing to note is that you may notice a break occuring somewhere in the middle of the Discuss URL or the Discuss text - you will either have to set your Word Wrap to a large value or else to 0 to stop this. [/B]

I changed Word Wrap to "0" and it fixed that problem too.


Thanks!


I am now trying to get my crontab to work - it is not working for some reason.

This is my cron command line:

Code:

0 0 * * *  wget -O /dev/null "http://www.mysite.com/forum/news2vb.php?jaction=postnews&jpassword=mypassword&jcategory=Whatever%2520news&jforum=1&jtitle=My+News"
I would expect it to run every 24 hours at midnight server time, but it hasn't for some reason. (I have replaced the site, password and forum details with something else for obvious reasons).

Any ideas?

Cloud-Warrior 03-19-2002 09:35 AM

I can't see anything wrong with that crontab, maybe try changing it to 59 23 to see what happens. I noticed your posts are occuring at 8.25 which doesn't match up to midnight by any stretch of the imagination...

Erwin 03-19-2002 09:43 AM

No, I am doing those news inserts manually... the crontab ain't working! :(

I'll try your suggestion...

Is there another way I can set up crontab to do this?

Cloud-Warrior 03-19-2002 10:20 AM

Maybe you need to specify the full path to wget... Try a whereis wget. Alternatively you can use lynx if it is installed, in your crontab you'd probably do something like (specifying the full path to lynx as well):

0 7 * * * TERM=vt100 /path/to/lynx -source "http://..." >> /dev/null

I've added one or two things to the Post News output, modified file at the top.

Erwin 03-19-2002 10:35 AM

Aha!!!

I have lynx, and I use that to run my USENET crontab, so there you go, this is going to work - I did try it with yours, but I did not put the TERM variable in.

Will let you know if it does work.

Downloaded and using the new news2vb.php file - the output is heaps better! Thanks!

Just one small bug:

You have $yourvbdir at the top but $yourvburl in the code.

Change the $vbdir to $vburl or vice versa for the "Discuss" links to work. :)

Thanks heaps!

Cloud-Warrior 03-19-2002 11:29 AM

Actually I think it should now say yourvburl in both, I'm guessing it was yourvbdir in version 1.0. Either way, glad it's working - time to move to Full Hacks I think.

Wayne Luke 03-19-2002 02:25 PM

I installed this and plan on making a few changes to make it more robust and more suited to my needs. Thanks.

Cloud-Warrior 03-19-2002 03:06 PM

Thanks Wayne, if you think any of the changes should be implemented for all installers, please let me know.


All times are GMT. The time now is 02:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02428 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete