![]() |
T-VBhoroscopes Addon -daily updated content
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 |
pretty neat, would it be possible for it to read your birthday and put ur horascope in ur profile?
|
havent done that yet, as i said i only did it today , and i did lack ideas :D
So here is a first idea from u ( noted ) ! regards |
Nice mod but dont like the fact that it has to query your website. What happens if your site goes down? Then the mod is useless basiclly.
|
i can understand why as it needs to be updated of course, but i do agree that can be a problem, also if u site is going slow it will make everyone elses go slow as well
|
Although this is the whole idea which is the free daily content, plus i might add a mirror website in the next day for guaranteed uptime , as i do have 3 dedicated servers i can use...
however what u said is true, u dont have to do that ! simply disable the cron And you have the choice to update your Horoscopes TXTs found in your forum/dailyhoroscopes/sign.txt . regards |
*INSTALLED* Thank you! Very nice. :)
|
How can I add this to vBa CMPS?
|
ah man Lebnanon..
atlast u changed ur mind ..:) thanx to release it here... |
Good idea :)
exist it for French version ? |
:) Nice Addon! Installed.
Would be nice in dutch to....:rolleyes: |
nice one
|
Nice mod. Installed, thanks
|
Wow Thanks!
|
A little modified code of the cronjob that parses the horoscopes i made it so u can have a function gethoroscope(signname)
If u want u can replace your gethoroscopes.php with that and itll work fine. PHP Code:
|
I had to CHMOD all the text files in forums/dailyhoroscopes before it would work... which means I hit your server three times in one day before I figured it out.
|
Spanish version?
|
Quote:
Ill add a note for that ! thank you for your note As for translations , well , the feeds i recieve are in english, ill try to setup a translator using some service like google or bablefish maybe all i can think of now , because i dont imagine daily translation would be easy unless automatic,. |
Quote:
Thank you. |
And the most famous question.... will this run on 3.5.4?
|
Do you happen to know how to make this work on vbadvance?
|
you took me to another level with this buddy... i installed it.. ran the cron..and whoa!! so big ups to ya!!
|
Do we have to update about daily horoscopes?
|
cool.
|
Fopen? Not sure about this install nothing happened any suggestions I know rookie<<
thxs MarkAnthony |
Ive installed this but I dont see the cron job entry in my Scheduled Task manager.
Also is there a vbadvance module for this? |
Stupid<< right here great hack I got it Im sorry gang brain fart
Ok I click my sign however nothing is there to read next> any suggestions??? plz back to the drawing board Mark |
Quote:
- 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 |
Quote:
I done install note for note I click to read nothing to read?? Any Plz suggestions??? |
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 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 |
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. :=)
|
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 ) |
Quote:
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??? |
Quote:
|
Quote:
|
Quote:
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? |
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. |
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. |
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 ... |
All times are GMT. The time now is 04:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|