Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
T-VBhoroscopes Addon -daily updated content Details »»
T-VBhoroscopes Addon -daily updated content
Version: 1.00, by lebanon lebanon is offline
Developer Last Online: Jan 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.1 Rating:
Released: 09-23-2006 Last Update: Never Installs: 76
 
No support by the author.

This is a quick vb-horoscopes feature to add to your forum.
I just made this and tested it on my forum, working fine as shown demo below

Requirements:
php fopen on
ADDED : IF fopen is not ON on your webserver , download the second zip file called gethoroscopes.php and replace the one in your cron folder with this one that uses Curl instead of fopen.
Installation :
-Upload the files to their respective locations
-Install the product using the VBulletin product manager
Your done !

You can test your script directly by going to your scheduled task
and using "RUN NOW" you should see the script output and then you
can go check your page at http://urforum/dailyhoroscopes.php


License :
- Your are allowed to query our website using the cronjob once everyday
Leave on default installation and you will not be breaking any rule, or only change the HOUR and MINUTE of runtime.
- You can freely modify the template the way you wish, all you need is
to leave the $result reference where you want it for the script to function
I will also appreciate if you share us with your modified template !

- You are required to keep the copyright text in your template, however if
you prefer to remove it, you can only do that after contacting me and recieving permission to do so ( free of charge ofcourse )

DEMO
http://www.tchatting.com/forum/dailyhoroscopes.php
or choose a sign
http://www.tchatting.com/forum/daily...php?sign=aries

If you use this and wish to recieve support please click INSTALL

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 09-27-2006, 08:35 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did still nothing to read???? I click on the scope nothing comes up to read??? next> thxs

cron_horoscopes

Success, wrote () to file (./dailyhoroscopes/aries.txt)Success, wrote () to file (./dailyhoroscopes/taurus.txt)Success, wrote () to file (./dailyhoroscopes/gemini.txt)Success, wrote () to file (./dailyhoroscopes/cancer.txt)Success, wrote () to file (./dailyhoroscopes/leo.txt)Success, wrote () to file (./dailyhoroscopes/virgo.txt)Success, wrote () to file (./dailyhoroscopes/libra.txt)Success, wrote () to file (./dailyhoroscopes/scorpio.txt)Success, wrote () to file (./dailyhoroscopes/sagittarius.txt)Success, wrote () to file (./dailyhoroscopes/capricorn.txt)Success, wrote () to file (./dailyhoroscopes/aquarius.txt)Success, wrote () to file (./dailyhoroscopes/pisces.txt)
Done
Reply With Quote
  #33  
Old 09-27-2006, 11:51 PM
Zowners Zowners is offline
 
Join Date: Dec 2005
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem with having to chmod several files before it would work...so I hope I didn't hit your site more than once. And also the cron didn't work today. Will I have to do this manually once a day? And finally...what does this mean: php fopen on? How would I go about this? Maybe if I do or fix this the cron will work? Otherwise I love astrology/this mod. :=)
Reply With Quote
  #34  
Old 09-28-2006, 12:16 AM
lebanon lebanon is offline
 
Join Date: Jan 2005
Location: Lebanon
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oberheimhaven , try chmodding the files in dailyhoroscope/*.txt to 755 or 777 , depending on ur host configuration, i have em 755 but are writable by user so it works fine .
fopen , to check for it , either put a php file with this is it :
<? phpinfo(); ?>
and open it in browser , go to allow_url_fopen and see if its On or Off .
Or if u dont want to create the file , in ur admincp , and in the last tab u will find a php info page ready for you, check there.

Zowners : am not counting hits not, it doesnt really bother me for now, but if this had too many subscribers it will start to , because the files are updated one time aday so its useless to grab them more than once a day ! , while for testing porpuses its accepted and it will show on my logs that they are not repeated daily ( cron times will appear as same times repeatedly )
Reply With Quote
  #35  
Old 09-28-2006, 12:55 AM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lebanon
oberheimhaven , try chmodding the files in dailyhoroscope/*.txt to 755 or 777 , depending on ur host configuration, i have em 755 but are writable by user so it works fine .
fopen , to check for it , either put a php file with this is it :
<? phpinfo(); ?>
and open it in browser , go to allow_url_fopen and see if its On or Off .
Or if u dont want to create the file , in ur admincp , and in the last tab u will find a php info page ready for you, check there.

Zowners : am not counting hits not, it doesnt really bother me for now, but if this had too many subscribers it will start to , because the files are updated one time aday so its useless to grab them more than once a day ! , while for testing porpuses its accepted and it will show on my logs that they are not repeated daily ( cron times will appear as same times repeatedly )

Or if u dont want to create the file , in ur admincp , and in the last tab u will find a php info page ready for you, check there.


Im so sorry What am I checking for?? I chmod still nothing They are there but nothing opens Im running 3.6.0 this will work correct?? I will keep working on her thanks for the reply

Is there no control for this in admin cp???? I have done everything i know to do and nothing it comes up however when clicked on for horoscope ziltch??

http://www.musiciansquarters.com/for...sign=capricorn Nothing???
Reply With Quote
  #36  
Old 09-28-2006, 01:16 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lebanon
if the cron have not been ran yet, you might want to run it manually the first time, go to scheduled tasts and on cron_horoscope click run now.
also if there is an error it will show when u run the cron.
After that you wont need to do it.
I looked several times and there is not con job called cron_horoscope I tried to add a cron manually but when I do that I get an error
Reply With Quote
  #37  
Old 09-28-2006, 01:19 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lebanon
Well , yes ur fetching a feed from my feeds , now depending on the nature of the feeds and that its only 1 time per day its not a problem for me or my server . Yet , if you want to fetch ur own feed, ill be glad to explain it and set the feed directly on your feed when u prvt msg me with the feed u want to adjust the horoscopes to , it wont take more than 10-20 minutes to set it for a different source .

- ang2el : no the cron will auto update the horoscopes for you daily, thats what is it for .

- kofoid : it should run without a problem, the template and custom page coding are almost the same since there are no advanced requests so i havent tested it but am positive it should work fine.

- bada_bing : The cron is called cron_horoscopes it runs daily 1 time.

as for vbadvanced i havent implemented this to it , but i suppose it would be fine to do so with minimal work , we have the source and we have the signs each in a seperate txt , so what are you suggesting exactly ? Random Sign ? or links to signs or ...?
oberheimhaven : you have to link it anywhere you link to , the file to link to is www.yourforum.tld/dailyhoroscopes.php

hope i didnt miss any question ... regards
As to vbadvance I would like a miniture version of all the signs contained withing a block so I can display this hack on my portal
Reply With Quote
  #38  
Old 09-28-2006, 01:37 AM
Zowners Zowners is offline
 
Join Date: Dec 2005
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lebanon
Zowners : am not counting hits not, it doesnt really bother me for now, but if this had too many subscribers it will start to , because the files are updated one time aday so its useless to grab them more than once a day ! , while for testing porpuses its accepted and it will show on my logs that they are not repeated daily ( cron times will appear as same times repeatedly )
Well I don't think it went through until I had all the dir chmod...so that's good. But I added it yesterday & checked on it all day...it never updated itself. I did so manually not long ago. Will I have to do this manually once per day? It's ok if I do I just need to know so I don't do it manually then it suddenly work/do it twice on you. I'm trying very hard to respect your wishes.

And I never knew what php fopen on meant. I did everything else & this thing seems to be working fine other than the cron. Did the fact I didn't do anything about this php fopen on cause the automatic cron to fail?
Reply With Quote
  #39  
Old 09-28-2006, 07:15 AM
Sarver Sarver is offline
 
Join Date: Aug 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, i'm havin the same problem.. no horoscope is showing up. I'm just wondering.. do i have to manually type in the horoscopes myself? .. i hope not lol.

Anyways, hope someone can help out lol.

Dave.
Reply With Quote
  #40  
Old 09-28-2006, 05:31 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same deal huh??? Hey it loaded fine No horoscopes I croned I have done everything I possible know how to do?? Still no horoscopes any ideal let me know If i find out will do the same I have installed 3.6.0 but nothing ;-(

From my host
The PHP option allow_url_fopen would normally allow a programmer to open, include or otherwise use a remote file using a URL rather than a local file path. For security reasons, DreamHost has disabled this feature; however, a feature-rich alternative exists in the form of the bundled cURL library, and you can always get around the problem by compiling your own version of PHP.
Reply With Quote
  #41  
Old 09-28-2006, 06:42 PM
lebanon lebanon is offline
 
Join Date: Jan 2005
Location: Lebanon
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oberheimhaven,
please check the link
http://www.yousite/urforum/admincp/index.php?do=phpinfo
in PHP CORE section
find value of
allow_url_fopen (should be) On On

as for the rest of questions, ofcourse you should not update anything daily, if the first time u run the cron manually it succeeds , then surely next time it will succeed with no doubt and nothing ever u should do from ur side after that ! ....
There is no reason at all for the cron to run manually successfully and not run in background successfully too !
Yes also the horoscopes should run on vb 3.6.0 too ,

bada-king if u dont see the cron , are u sure u did import the xml product file ? it should create the cron for u automatically ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04847 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete