View Full Version : Miscellaneous Hacks - T-VBhoroscopes Addon -daily updated content
lebanon
09-23-2006, 10:00 PM
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/dailyhoroscopes.php?sign=aries
If you use this and wish to recieve support please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=127387)
Keyser S?ze
09-23-2006, 11:22 PM
pretty neat, would it be possible for it to read your birthday and put ur horascope in ur profile?
lebanon
09-23-2006, 11:23 PM
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
DementedMindz
09-23-2006, 11:38 PM
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.
Keyser S?ze
09-23-2006, 11:46 PM
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
lebanon
09-23-2006, 11:48 PM
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
Gripemaster
09-23-2006, 11:56 PM
*INSTALLED* Thank you! Very nice. :)
dodgeboard.com
09-24-2006, 12:43 AM
How can I add this to vBa CMPS?
ah man Lebnanon..
atlast u changed ur mind ..:)
thanx to release it here...
Allan
09-24-2006, 05:22 AM
Good idea :)
exist it for French version ?
Ajavas
09-24-2006, 08:50 AM
:) Nice Addon! Installed.
Would be nice in dutch to....:rolleyes:
Barakat
09-24-2006, 10:05 AM
nice one
project-Buckfas
09-24-2006, 10:40 AM
Nice mod. Installed, thanks
Snake
09-24-2006, 10:50 AM
Wow Thanks!
joffer
09-24-2006, 01:45 PM
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
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
exit;
}
// ################################################## ######################
// ######################### START MAIN SCRIPT AND WRITE TO TXT ###########
// ################################################## ######################
$signs = array("aries","Taurus","gemini","cancer","leo","virgo","libra","scorpio","sagi","capricorn","aquarius","pisces");
function gethoroscope($sign) {
$url = "http://www.tchatting.com/horoscopes/".$sign.".php";
@$string = implode("", file("$url"));
//$string = str_replace("\n","",$string);
$string = trim($string);
$filename = './dailyhoroscopes/'.$sign.'.txt';
// Let's make sure the file exists and is writable first.
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'w+')) {
echo "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $string) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}
echo "Success, wrote ($string) to file ($filename)";
fclose($handle);
} else {
echo "The file $filename is not writable";
}
}
for($i=0;$i<12;$i++) {
gethoroscope($signs[$i]);
}
?>
warnmar10
09-24-2006, 03:21 PM
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.
COBRAws
09-24-2006, 04:29 PM
Spanish version?
lebanon
09-24-2006, 06:50 PM
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.
Sorry i have not mentioned any chmoding , because by default webservers would accept php read/write commands owned by user to his own user directories unless further restrictions applied from your host such as in your case !
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,.
COBRAws
09-26-2006, 10:06 PM
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,.
So we would be fetching a feed from another feed? Is there a way so we can program this to fetch any FEED we want?
Thank you.
kofoid
09-26-2006, 10:12 PM
And the most famous question.... will this run on 3.5.4?
bada_bing
09-27-2006, 01:46 AM
Do you happen to know how to make this work on vbadvance?
TheBlackPoet
09-27-2006, 02:17 AM
you took me to another level with this buddy... i installed it.. ran the cron..and whoa!! so big ups to ya!!
ang2el
09-27-2006, 03:00 AM
Do we have to update about daily horoscopes?
zooki
09-27-2006, 11:18 AM
cool.
oberheimhaven
09-27-2006, 11:38 AM
Fopen? Not sure about this install nothing happened any suggestions I know rookie<<
thxs
MarkAnthony
bada_bing
09-27-2006, 02:30 PM
Ive installed this but I dont see the cron job entry in my Scheduled Task manager.
Also is there a vbadvance module for this?
oberheimhaven
09-27-2006, 06:56 PM
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
lebanon
09-27-2006, 07:28 PM
So we would be fetching a feed from another feed? Is there a way so we can program this to fetch any FEED we want?
Thank you.
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
oberheimhaven
09-27-2006, 07:46 PM
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
I done install note for note I click to read nothing to read?? Any Plz suggestions???
lebanon
09-27-2006, 08:10 PM
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.
oberheimhaven
09-27-2006, 08:35 PM
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
Zowners
09-27-2006, 11:51 PM
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. :=)
lebanon
09-28-2006, 12:16 AM
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 )
oberheimhaven
09-28-2006, 12:55 AM
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/forums/dailyhoroscopes.php?sign=capricorn Nothing???
bada_bing
09-28-2006, 01:16 AM
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
bada_bing
09-28-2006, 01:19 AM
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
Zowners
09-28-2006, 01:37 AM
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?
Sarver
09-28-2006, 07:15 AM
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.
oberheimhaven
09-28-2006, 05:31 PM
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.
lebanon
09-28-2006, 06:42 PM
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 ...
oberheimhaven
09-28-2006, 06:53 PM
Its off Awwwwwwwww how do i fix that Im sorry I found that it is turned off???? Thanks for helping me you know u didnt but I do appreciate all the great effort, now how do i fix?? ANYONE lol
thxs mate
MarkAnrhony
lebanon
09-28-2006, 08:55 PM
if you have a root access to your domain then u can edit it from php.ini
if you do not but still are allowed for custom php input in your htaccess
you could try adding :
php_value allow_url_fopen 1
(into your .htaccess file ) or try 'On' instead of '1'
if neither solutions worked, let me know, i can substitue the fopen usage with curl which could be as much good and should work too.
oberheimhaven
09-28-2006, 08:59 PM
Nope didnt work Im so sorry mate for all the hassle
lebanon
09-28-2006, 09:08 PM
its okey, i didnt suppose u have permissions when u explained the problem,
Hopefully tomorrow ill rewrite the cron job file and send it to you .
regards
oberheimhaven
09-28-2006, 09:09 PM
Well thank you very much appreciated!!!! Indeed!!!
lebanon
09-28-2006, 09:17 PM
well u currently please try to create a simple file
test.php
put this in it :
<?
$url = "http://www.tchatting.com/horoscopes/aquarius.php";
@$string = implode("\n", file("$url"));
echo $string;
?>
let me know if it returns a result ...
oberheimhaven
09-28-2006, 09:27 PM
well u currently please try to create a simple file
test.php
put this in it :
<?
$url = "http://www.tchatting.com/horoscopes/aquarius.php";
@$string = implode("\n", file("$url"));
echo $string;
?>
let me know if it returns a result ...
Me??? Whats this for??? I tried everything you told me to do with any other hack it was a simple plug and play? Why is this any different I mean if its going to create a hassle for ya Im sorry
click Uninstall ;-(
lebanon
09-28-2006, 09:49 PM
Requirements:
php fopen on
- > every hack has requirements if u didnt meet them that doesnt make the hack anymore complex, i only tried to give u an alternative because i was online, nevermind anyway !
oberheimhaven
09-29-2006, 01:11 AM
Im not all that great with .php files Im rookie and all my 50 hacks installed were fairly follow simple directions plug and play sorry wasnt being rude if it sounded that way sorry mate its just Im not savey with php
oberheimhaven
09-29-2006, 01:15 AM
Requirements:
php fopen on
- > every hack has requirements if u didnt meet them that doesnt make the hack anymore complex, i only tried to give u an alternative because i was online, nevermind anyway !
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.
From my Host mate!!
lebanon
09-29-2006, 07:31 PM
oberheimhaven , that solves the problem , so i will later on update a file with Curl functions instead of fopen, which will give u same results and all you have to do is replace the cron file then.
Ill update the attachment later , i just dont have time this hour so maybe later tonight or tomorrow :)
regards
oberheimhaven
09-29-2006, 07:50 PM
Thanks mate!!!! for doing this not ur fault great hack its my host wont allow thank you again send paypal i will donate for the trouble!!!
lebanon
09-30-2006, 01:41 AM
Thanks for the offer but its okey, am doing this in my free time no more.
You can download the second attachment now , and replace the gethoroscopes.php file in your cron folder , and this should work since your host said it would :) regards
oberheimhaven
09-30-2006, 04:49 PM
Thanks for the offer but its okey, am doing this in my free time no more.
You can download the second attachment now , and replace the gethoroscopes.php file in your cron folder , and this should work since your host said it would :) regards
B E A Ufitullllllllllll are u sure no donate? I will, thanks mate That worked right on!! Once again thank you for the awesome hack your understanding and the extra work to get this to work for me =priceless!!
Thxs
MarkAnthony
angkor408
09-30-2006, 07:48 PM
For some reason, when I click on the sign it show blank. It seem is not update.
Here my link:
http://www.khmerclub.org/dailyhoroscopes.php?sign=libra
lebanon
09-30-2006, 08:11 PM
angkor408 , did u check if fopen is ON ? if its not on , download the second attachment and replace gethoroscopes.php in ur cron folder.
Then for the first time , u must RUN the cron Manually OR wait till its cron excute time ...
angkor408
09-30-2006, 08:37 PM
Hi Labanon, thank for your respond. Where can I turn fopen option to ON? Is that in my Vbulletin option? Under Schedule task manager I dont see anything that say " CRON" Do I have to manually add new task?
Also I had download the this file "gethoroscopes.php" but I got a blank page when I go to http://www.khmerclub.org/gethoroscopes.php
Here what I have in my schedule task Manager:
Hourly Cleanup
User Promotions
Event Reminder
Thread Views
Hourly Cleanup
Attachment Views
Restore Temporarily Banned
Daily Statistics Log
Happy Birthday Email
Subscriptions
Daily Digest
Activation Reminder Email
Weekly Digest
Does this work for VB 3.5? Maybe that he issue.
lebanon
09-30-2006, 09:52 PM
well it should work yes , but i did specify in the cron that it should require 3.6 as minimal version .
So here is what i advice u to do to insure it works both ways.
First
Do upload the second attachment and replace the gethoroscopes.php file in ur cron folder.
Second , in cron manager , scheduled tasks , Manually add a cron
every day , at hour 6 , minute 10
disable logging if u dont need it
in the path section replace tha last .php with gethoroscopes.php
and click apply , then do RUN the task first time manually to verify it worked .
After that the rest should go automatic.
angkor408
09-30-2006, 10:02 PM
Lebanon, Thank for your help. Under my schedule task manager >>>> I had edit in the path section replace tha last .php with gethoroscopes.php it's working. Than You. :)
http://www.khmerclub.org/dailyhoroscopes.php
bada_bing
10-05-2006, 12:44 PM
well it should work yes , but i did specify in the cron that it should require 3.6 as minimal version .
So here is what i advice u to do to insure it works both ways.
First
Do upload the second attachment and replace the gethoroscopes.php file in ur cron folder.
Second , in cron manager , scheduled tasks , Manually add a cron
every day , at hour 6 , minute 10
disable logging if u dont need it
in the path section replace tha last .php with gethoroscopes.php
and click apply , then do RUN the task first time manually to verify it worked .
After that the rest should go automatic.
I have done this exacly and the cron ran with no errors but when I go to view a horoscope no data is being populated... What now?
lebanon
10-05-2006, 12:58 PM
when u run the scheduled task manually , would u mind copy pasting ther esults here ?
bada_bing
10-05-2006, 01:46 PM
Never mind figured it out.. It was a permissions issue
Any idea how to made this a block for vbadvance?
project-Buckfas
10-20-2006, 07:10 PM
I have had this working great since I installed it shorty after its release. I'm just wondering is there any way I could pull the horoscopes from a different site?
If not I'll stick with what I got cause manual aint an option!
lebanon
10-20-2006, 07:29 PM
I have had this working great since I installed it shorty after its release. I'm just wondering is there any way I could pull the horoscopes from a different site?
If not I'll stick with what I got cause manual aint an option!
you can use vbhoroscopes v1 thats obtained for licensed members on my site only and gets horoscopes from astrology.com
LostOne
10-22-2006, 04:39 AM
I am a newbie at this but my members are really interested into having the horoscope installed.
I uploaded both the vbhoroscope folder and the addon daily/updatecontent/ and I can't seem to make it work.
The horoscope is the only of the two that shows up in my manager.
When I do the run command I get this:
cron_horoscopes
Warning: main(/home/whedonve/public_html/forum/./includes/cron/gethoroscopes.php) [function.main]: failed to open stream: No such file or directory in /admincp/cronadmin.php on line 108
Warning: main() [function.include]: Failed opening '/home/whedonve/public_html/forum/./includes/cron/gethoroscopes.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/cronadmin.php on line 108
Done
The address where it supposedly shows from my file manager is here:
http://www.whedonverseandbeyond.net/forum/includes/vbhoroscopes/vbhoroscopes/Forum/includes/cron/gethoroscopes.php
But it appears blank.
It seems that my file has too many folders before getting to the meat and bone in comparison to yours.
Again I am a newbie, can I have a more detailed set of installation information?
Sorry for the hassle and thanks in advance.
And how do I add the daily update again?
SparKeh
11-16-2006, 12:12 AM
excellent hack! all working well here!
I was hoping to add a link in breadcrumbs under private messages saying "view your horoscope" or something, and once clicked it automatically takes the user to dailyhoroscopes.php?sign=gemini for example. How would I get the code to work out the users star sign from their date of birth?
thepub
01-19-2007, 04:03 PM
I installed and when run in sccheduled tasks, I get this message :
cron_horoscopes
The file ./dailyhoroscopes/aries.txt is not writableThe file ./dailyhoroscopes/taurus.txt is not writableThe file ./dailyhoroscopes/gemini.txt is not writableThe file ./dailyhoroscopes/cancer.txt is not writableThe file ./dailyhoroscopes/leo.txt is not writableThe file ./dailyhoroscopes/virgo.txt is not writableThe file ./dailyhoroscopes/libra.txt is not writableThe file ./dailyhoroscopes/scorpio.txt is not writableThe file ./dailyhoroscopes/sagittarius.txt is not writableThe file ./dailyhoroscopes/capricorn.txt is not writableThe file ./dailyhoroscopes/aquarius.txt is not writableThe file ./dailyhoroscopes/pisces.txt is not writable
Done
here http://theneighborhoodpub.com/dailyhoroscopes.php I get this:
Warning: main(./dailyhoroscopes/nosign.txt) [function.main]: failed to open stream: No such file or directory in /dailyhoroscopes.php on line 83
Warning: main(./dailyhoroscopes/nosign.txt) [function.main]: failed to open stream: No such file or directory in /dailyhoroscopes.php on line 83
Warning: main() [function.include]: Failed opening './dailyhoroscopes/nosign.txt' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /dailyhoroscopes.php on line 83
what did I do wrong?
Installed and working well .. thanks lebanon
Clicked install
project-Buckfas
01-20-2007, 09:46 AM
You need to set permissions (chmod) to 777
I installed and when run in sccheduled tasks, I get this message :
here http://theneighborhoodpub.com/dailyhoroscopes.php I get this:
what did I do wrong?
Konstantinos
01-20-2007, 12:46 PM
so the daily horoscope is updated from your site ? i assume by this way it can only be dispayed in english
thepub
01-20-2007, 04:23 PM
:confused: what is chmod and where do I find it?
lebanon
01-20-2007, 05:41 PM
Let me try to get answers one by one ,
LastOne , for some reason the path to the cron seems wrong
...public_html/forum/./includes/cron/ge...
Go to your scheduled tasks and manually fix the path , it should point to forum/includes without the dot in the middle, fix the path and it should be fine.
Thepub , seems a permission issue, most servers allow writing data by files since the user owns the directory, u should consult ur host on your permissions however here is common solutions : make sure u uploaded the 0 bytes txt files included or create the txt files manually before writing into them
ie : create leo.txt scorpio.txt etc ..
Then try chmod 777 * in that folder using telnet or using an ftp client it could work too you just connect using for example cuteftp , hightlight the txt files , right click and checkmark read/write/excute .
Konstantinos , actually yes they only are available in english , however, they can using a php code passed to google or bablefish translator then achieved by your server but its up to you to count on the "automatic translation" services
regards
thepub
01-22-2007, 12:25 AM
oh my I am lost :confused:
PoetJA-1975
02-12-2007, 05:09 AM
http://www.tchatting.com is down :( - does this mean T-VBhoroscopes is down as well???
Jacquii.
http://www.tchatting.com is down :( - does this mean T-VBhoroscopes is down as well???
Jacquii.
Yep .. mines been down for a few days now.
PoetJA-1975
02-12-2007, 07:23 AM
hmmmm - wonder who LEBANON gets the horoscope content from?
Jacquii.
:confused: what is chmod and where do I find it?
Click here (https://vborg.vbsupport.ru/showthread.php?t=94220) and all will be revealed :up:
lebanon
02-12-2007, 02:32 PM
well yeah , the hack is down but only till tomorrow !
It will be functioning as normally , as i have been traveling back to my home country abd a problem occured on the server, am fixing it and am relocating the site to my secondary server too.
It shouldnt happen again , anyway sorry for the inconvience caused to this hack users !
in 24 hours it should be back to normal !
project-Buckfas
02-12-2007, 05:45 PM
Thanks Lebanon. I was wondering what was up!
PoetJA-1975
02-12-2007, 07:52 PM
I too was wondering what was up - ALSO thanx for the update and the BRILLIANT modification. I read an interesting article about having horoscope content on websites. 1/3 or the visitors logon ONLY to read their horoscopes... The other 2/3 stay to see other content on the site...
So when I had someone ask me about the horoscope mod - there's a bit of concern naturally :P
Anyway - if you don't mind me asking - where & how do you get the horoscope content?
Again - Thanx! Very nice hack ;)
Jacquii.
TheBlackPoet
02-14-2007, 05:21 PM
the site is down.. my members are freaking out... i had no idea they looked at the horoscopes so seriously
PoetJA-1975
02-16-2007, 03:54 AM
the site is down.. my members are freaking out... i had no idea they looked at the horoscopes so seriously
LOL - I know what you mean...
Anyway all off the topic and such - NICE SITE! Just got through browsing a bit - love the default skin ;)
Jacquii.
project-Buckfas
02-16-2007, 05:05 PM
Any idea on when this will be back up?
blind-eddie
02-17-2007, 03:55 AM
lol...I installed this.....read through the post.....changed this .....changed that.....still wont show text when you hit a sign.........then to this page to see what else would fix it and the dang site is down......... lmao
TheBlackPoet
02-17-2007, 04:09 AM
its a really good hack when it was working... if its not up by monday... i'll have to take it off my site... and that'll suck
blind-eddie
02-17-2007, 04:13 AM
wierd...I ran rcon & get this.....still wont show text...I went to files via ftp...& they are empty???
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
project-Buckfas
02-17-2007, 11:03 AM
I'm guessing the hack is somewhat online, but there is no info to write to those files. I have been getting the same. I love this hack, it would be a shame to have to uninstall.
blind-eddie
02-17-2007, 01:12 PM
I will find another feed, or manualy do it daily.....
blind-eddie
02-17-2007, 01:36 PM
Ok, Their site is up.....Last night I added text to one of the dailyhoroscopes/leo.txt, This morning I looked at leo & it was empty...so rcon is working ,but nothing rewrote to it. I am going to try 1 more thing....brb
PoetJA-1975
02-17-2007, 02:18 PM
I will find another feed, or manualy do it daily.....
Tchatting has been down for some time now... If you find another feed - please let us know :)
Jacquii.
blind-eddie
02-17-2007, 02:25 PM
They are back up.....
project-Buckfas
02-17-2007, 07:05 PM
The mod isn't yet though
blind-eddie
02-17-2007, 07:11 PM
I can have rss feeds for horoscopes, but I would still have to manualy update each 1...
PoetJA-1975
02-17-2007, 07:35 PM
One reason why this modification is more popular than others is because you DON'T have to update manually...
Anyway - I'll be happy when it's functional :)
Jacquii.
blind-eddie
02-18-2007, 10:47 PM
It functions,but, I now get this in every sign.
http://worldwideclassifieds.us/forum/images/oops.bmp
apiasto
02-19-2007, 06:21 AM
can't wait for it to work, i am getting the same massege like that
AMG021
02-23-2007, 05:06 PM
this is not working for me anymore PLease HELP!
working fine again :D
blind-eddie
02-23-2007, 05:36 PM
They stopped feeds
I guess it is not supported anymore and will have to uninstall it.
blind-eddie
02-23-2007, 09:05 PM
I am trying to get it to work with other sources, till than I manually update.
PoetJA-1975
02-23-2007, 10:40 PM
I actually found a similar modification. I've customized it for my Forum so it includes a nice little popup script I got from Dynamic Drive... It wasn't easy (but then again I'm not much of a coder) but I'm sure YAWL can do something similar. Our horoscopes page: http://jpicforum.info/view.php?pg=horoscopes
Link to the modification: https://vborg.vbsupport.ru/showthread.php?t=136719&highlight=horoscopes
Jacquii.
I actually found a similar modification. I've customized it for my Forum so it includes a nice little popup script I got from Dynamic Drive... It wasn't easy (but then again I'm not much of a coder) but I'm sure YAWL can do something similar. Our horoscopes page: http://jpicforum.info/view.php?pg=horoscopes
Link to the modification: https://vborg.vbsupport.ru/showthread.php?t=136719&highlight=horoscopes
Jacquii.
Not really, Nice Job.
PoetJA-1975
02-24-2007, 12:42 AM
Not really, Nice Job.
what you don't like? :(
Anyway just thought to share, as I was missing this particular horoscope mod too...
Jacquii.
RichieBoy67
02-24-2007, 06:32 PM
Is it down again??
Great mod but it is too hard having to rely on another site like this.... Sorry, gotta uninstall...
what you don't like? :(
Anyway just thought to share, as I was missing this particular horoscope mod too...
Jacquii.
Contriar, I do like.
Must have fat fingered a key. Was going to do the same thing you did tonight.
Good job and nice idea.
PoetJA-1975
02-25-2007, 03:31 AM
Contriar, I do like.
Must have fat fingered a key. Was going to do the same thing you did tonight.
Good job and nice idea.
Thanx :o ---- I used the horoscope hack (https://vborg.vbsupport.ru/showthread.php?t=136719&highlight=horoscopes) - Logicians WebTemplates (https://vborg.vbsupport.ru/showthread.php?t=103076&highlight=Logicians+Web+Templates) and a script from Dynamic Drive and did a little editing of the templates to get the finished product.
I'm glad you like - also look forward to seeing yours ;)
Jacquii.
apiasto
02-28-2007, 01:29 AM
now its working thnx alot, good work
KevNJ
03-02-2007, 03:41 PM
*clicks install*
works perfectly on 3.6.5 without any problems using the cURL gethoroscopes.php file in the second zip file.
thank you!
vbreal
03-21-2007, 08:51 PM
is this working for anyone? stopped for me a while back
lebanon
03-22-2007, 08:47 AM
if the fopen version doesnt work for u, download the second zip and replace the file, the Curl is almost installed at every host.
nascimbeni
04-11-2007, 12:20 AM
I am new to php so I might do something wrong however when I try to run here is what I am getting ( I am running 3.6.5) :
cron_horoscopes
Fatal error: Call to undefined function curl_init() in C:\wamp\www\includes\cron\gethoroscopes.php on line 13
PS : I manually copied the gethoroscopes.php function in the cron directory - is that right ?
Paolo
http://my.lifeinitaly.com
rjmjr69
04-11-2007, 03:02 AM
Is it just me or does this box pop up when you view this thread? And only this one
https://vborg.vbsupport.ru/external/2007/04/15.jpg
How is this even possible. I know I have no spyware or anything that would cause ONE thread on a particular forum show this
lebanon
04-11-2007, 01:47 PM
nascimbeni, your php looks like installed without curl , have you tried checking by putting a php file lets say info.php , with <? phpinfo(); ?> inside it and run the script and check if you either have fopen On or Curl ( you need at least one of them to use one of the two versions provided)
rjmjr69 ,its surely only happening to you, maybe the spyware is triggered using some keyword listed here, else it would have been happening to all of us no ?
nascimbeni
04-12-2007, 04:09 PM
[QUOTE=lebanon;1224969]nascimbeni, your php looks like installed without curl , have you tried checking by putting a php file lets say info.php , with <? phpinfo(); ?> inside it and run the script and check if you either have fopen On or Curl ( you need at least one of them to use one of the two versions provided)
Thanks lebanon for the fast answer. I just started working with php and to be honest I have no idea what the above means.
I will do some research and get back to you in a week or 2
( I downloaded a zip file with curl but I could not fine the way to install it )
Paolo
lebanon
04-15-2007, 12:29 PM
nascimbeni, u cant install curl urself, here is what you should do
You should email your hoster and ask him if possible to either allow url_fopen to ON , or to recompile php with Curl , both are quite used and its rare to find a host the does not provide neither one of them.
Nothing hurts if you at least ask your hoster for now.
as for the above , its simple , open a notepad type this :
<? phpinfo(); ?>
close and save it to file called info.php
now upload that file to your website and open it using ur browser, then CTRL+F to find keywords : fopen ,and/or curl
bazzup
04-19-2007, 05:51 PM
Installed works a dream thankyou
GizmoPhreak
04-21-2007, 12:18 PM
Real nice mod..thanks a lot :)
sinistergaming
05-22-2007, 04:03 PM
i just installed this and it works great thanks !!!!
Is There a vbcmps module for this ?
The Geek
05-22-2007, 05:21 PM
Hey, kind of cool :) Im not using the main page (yet), just whipped up a hook to stick it in the members page. It selects which one to show based on their birthdate (if its there)
http://www.salongeek.com/members/the%2Bgeek.html
Thanks!
sinistergaming
05-22-2007, 06:40 PM
hmm is that in the members profile page ?
that would be a killer thing to have under the birthdate
edenx
05-23-2007, 12:15 AM
I want horoscopes in Spanish, do I have any chance for this?
In the last day or so, I have been receiving the following error when I click on any of the signs and am unable to retrieve horoscopes:
Not Found
The requested URL /horoscopes/virgo.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.37 Server at tchatting.com Port 80
I did notice that tchatting.com appears to be undergoing some maintenance which may account for the disruption.
:confused:
lebanon
06-21-2007, 01:03 PM
is it still happening ? this could have happened if for any reason your site when running the cronjob could not connect to my website.
You can rerun the cronjob manually from scheduled tasks and that should fix it.
Or wait till the next task to rerun itself.
Jimandbob
06-21-2007, 02:50 PM
It seems to be working ok for me :)
Devil Woman
07-12-2007, 06:32 PM
I have just recently installed this and gone to test it but when I click on a sign there is no horoscope there it is just blank, I have just gone to see if the same problem is coming from the source site http://www.tchatting.com/forum/dailyhoroscopes.php and the same problem is on there.
Any help is appreciated
Thanks.
lebanon
07-13-2007, 03:00 PM
Devil woman, true , this error occured today due a server write failure on my server, without further technical details, the error is fixed and the feed is running smoothly as ever.
( all users who were denied the feed for this day should rerun the cron manually ), or wait till its next run.
Devil Woman
07-13-2007, 06:47 PM
Hi thanks for that, I have just re-run the cron for the horoscopes and this is what I got
The file ./dailyhoroscopes/aries.txt is not writableThe file ./dailyhoroscopes/taurus.txt is not writableThe file ./dailyhoroscopes/gemini.txt is not writableThe file ./dailyhoroscopes/cancer.txt is not writableThe file ./dailyhoroscopes/leo.txt is not writableThe file ./dailyhoroscopes/virgo.txt is not writableThe file ./dailyhoroscopes/libra.txt is not writableThe file ./dailyhoroscopes/scorpio.txt is not writableThe file ./dailyhoroscopes/sagittarius.txt is not writableThe file ./dailyhoroscopes/capricorn.txt is not writableThe file ./dailyhoroscopes/aquarius.txt is not writableThe file ./dailyhoroscopes/pisces.txt is not writable
Still nothing is showing when I click on a horoscope either, woud maybe reinstalling the hack help?
Thanks
Devil Woman
07-18-2007, 06:08 PM
No worries about the above I have now sorted this had to change the chmod to 777 on the dailyhoroscopes folder in the ftp aswell as all the files inside the dailyhoroscopes files, re-ran the cron and is now all working and installed :)
Thanks.
Code Monkey
09-24-2007, 05:10 AM
This no longer seems to be working. All horoscopes are only showing a "1";
dodgeboard.com
09-24-2007, 04:33 PM
I having problems at our site as well. The text files are showing "0" filesize and there is nothing in them. The source site (tchatting.com) seems to be working fine.
Devil Woman
09-24-2007, 05:29 PM
I am having a problem with the horoscopes showing aswell but all deffinetly seems to be working at tchatting.com
Any help is appreciated.
wizardan
09-24-2007, 06:11 PM
Ditto to the above three posts.
For about four days, now I guess.
Code Monkey
09-24-2007, 10:04 PM
I am having a problem with the horoscopes showing aswell but all deffinetly seems to be working at tchatting.com
Any help is appreciated.
You can see them there but if you look in his text file directory they old.
Endurer
09-25-2007, 02:00 AM
Not working here, displays a blank page.
kylek
09-25-2007, 10:07 PM
And today also no horoscopes showing.
Endurer
09-26-2007, 02:07 PM
Guess I'll take it off of my board till the developer provides a fix.
YMMOT
09-26-2007, 07:15 PM
I would stay away from products from this devloper. Tchatting.com, this developer's site, has thousands of stolen posts, threads and users from a diesel site. There are several people that are up in arms about it.
vBulletin.org is supposed to be looking into the hacks written by this guy. unfortunately they don't feel the need to warn people
kylek
09-27-2007, 03:55 AM
Uninstalling, think I found something better.
When I click on any of the horoscope signs, all I see in the box where the horoscope is supposed to display is "1".
When I manually execute the cron job from CP, I get the following:
cron_horoscopes
Success, wrote (1) to file (./dailyhoroscopes/aries.txt)Success, wrote (1) to file (./dailyhoroscopes/taurus.txt)Success, wrote (1) to file (./dailyhoroscopes/gemini.txt)Success, wrote (1) to file (./dailyhoroscopes/cancer.txt)Success, wrote (1) to file (./dailyhoroscopes/leo.txt)Success, wrote (1) to file (./dailyhoroscopes/virgo.txt)Success, wrote (1) to file (./dailyhoroscopes/libra.txt)Success, wrote (1) to file (./dailyhoroscopes/scorpio.txt)Success, wrote (1) to file (./dailyhoroscopes/sagittarius.txt)Success, wrote (1) to file (./dailyhoroscopes/capricorn.txt)Success, wrote (1) to file (./dailyhoroscopes/aquarius.txt)Success, wrote (1) to file (./dailyhoroscopes/pisces.txt)
Done
Which would seem to explain, at least, why I see the "1" in the horoscope display box.
I did visit the author's site and his version seems to be displaying the horoscopes fine.
edenx
09-27-2007, 10:27 PM
Can this be translated?
lebanon
09-29-2007, 10:13 AM
YMMOT , i think the issue was cleared. and as for vb staff i trust their judgment :)
edenex , they use feeds i ave which are in english, translating them could be done using google service i suppose but will require further coding.
Devil Woman
09-29-2007, 06:45 PM
Thanks for the heads up all, I will be taking this off my board asap, does anyone know if there is anything similar or better out there for a replacement?
Thanks
Endurer
09-29-2007, 08:52 PM
Lebanon, are you going to provide a fix?
DieselMinded
09-29-2007, 09:16 PM
Lebanon has been compliant with removing the stolen then sold to him data
Chachacha
09-30-2007, 07:06 AM
Ok, I've installed this modification correctly. I've chmodded all of the files and folders to 777, I've gone to the task manager and manually ran the cron_horoscopes task, I've checked to make sure that fopen is on (and it is)... but no matter what I do, nothing will make it work. When I click on a sign, nothing shows up. Here is the message I get when I run the task...
-----------------------------------------------------------------------------------------------
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
-------------------------------------------------------------------------------------------------
What could possibly be wrong here?
vb version 3.6.4
Endurer
09-30-2007, 05:17 PM
I think the guys at astrology.com have changed the pages from where we used to fetch the feed.
Chachacha
09-30-2007, 05:59 PM
I think the guys at astrology.com have changed the pages from where we used to fetch the feed.
It still works on tchatting.com.
Endurer
10-01-2007, 03:46 PM
Maybe he is doing it manually. The php horoscopes class doesn't work anywhere on the web anymore.
IMPAQ
10-01-2007, 06:28 PM
This mod is such a disappointment. :(
Chachacha
10-02-2007, 02:37 AM
This mod is such a disappointment. :(
Agreed. I guess I'll have to uninstall it. :(
Endurer
10-05-2007, 05:20 PM
I got mine working.. basically I used a new class. If anyone needs it then let me know and I'll release it here.
Redlee
10-05-2007, 07:59 PM
I got mine working.. basically I used a new class. If anyone needs it then let me know and I'll release it here.
How can I get it to work? I'm kinda new at this. :)
blind-eddie
10-05-2007, 10:45 PM
I want it please.
dollyvarden
10-12-2007, 05:25 PM
We could really use this fix, thank you!!
kylek
10-12-2007, 05:26 PM
Yes please!!
bazzup
10-12-2007, 05:35 PM
yep from me too :up:
blind-eddie
10-19-2007, 04:20 PM
How can I get it to work? I'm kinda new at this. :)
You dont, you delete it & find one that is supported....
tigrattack
11-20-2007, 05:00 PM
I wanted to install this, but then I read the comments here and decided against it.
tigrattack
11-21-2007, 12:35 PM
Well I thought about it and installed it anyway...
You can easily link to any horoscope site you like...
Unzip the vbhoroscopes.zip and upload all the files to their appropriate locations on your server.
Open gethoroscopes.php, find a site you want to link to (preferably one that only has the horoscope text when you click on any of the signs.
Click on one of the signs, aka 'Aries'...block and copy the url for that page, paste it in the gethoroscopes.php replacing the url link from this original site for that sign.
When you've completed all, save the php, upload it to the includes/cron directory on your server, and run the cron in scheduled tasks in your acp.
That's it, you're linked.
Konstantinos
12-20-2007, 09:28 AM
Well I thought about it and installed it anyway...
You can easily link to any horoscope site you like...
Unzip the vbhoroscopes.zip and upload all the files to their appropriate locations on your server.
Open gethoroscopes.php, find a site you want to link to (preferably one that only has the horoscope text when you click on any of the signs.
Click on one of the signs, aka 'Aries'...block and copy the url for that page, paste it in the gethoroscopes.php replacing the url link from this original site for that sign.
When you've completed all, save the php, upload it to the includes/cron directory on your server, and run the cron in scheduled tasks in your acp.
That's it, you're linked.
yeah but this will incude also templates and ads from the other site while we want only the horoscope TEXT
LadyHoney
02-07-2008, 07:24 PM
sadly uninstalling.. hopefully support or a new product will be available
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.