PDA

View Full Version : Miscellaneous Hacks - T-VBhoroscopes Addon -daily updated content


lebanon
24 Sep 2006, 00:11
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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=127387)

Keyser Söze
24 Sep 2006, 00:22
pretty neat, would it be possible for it to read your birthday and put ur horascope in ur profile?

lebanon
24 Sep 2006, 00:23
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
24 Sep 2006, 00:38
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
24 Sep 2006, 00:46
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
24 Sep 2006, 00:48
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
24 Sep 2006, 00:56
*INSTALLED* Thank you! Very nice. :)

dodgeboard.com
24 Sep 2006, 01:43
How can I add this to vBa CMPS?

Zia
24 Sep 2006, 04:46
ah man Lebnanon..

atlast u changed ur mind ..:)
thanx to release it here...

Allan
24 Sep 2006, 06:22
Good idea :)

exist it for French version ?

Ajavas
24 Sep 2006, 09:50
:) Nice Addon! Installed.

Would be nice in dutch to....:rolleyes:

Barakat
24 Sep 2006, 11:05
nice one

project-Buckfas
24 Sep 2006, 11:40
Nice mod. Installed, thanks

Snake
24 Sep 2006, 11:50
Wow Thanks!

joffer
24 Sep 2006, 14:45
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
24 Sep 2006, 16:21
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
24 Sep 2006, 17:29
Spanish version?

lebanon
24 Sep 2006, 19:50
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
26 Sep 2006, 23:06
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
26 Sep 2006, 23:12
And the most famous question.... will this run on 3.5.4?

bada_bing
27 Sep 2006, 02:46
Do you happen to know how to make this work on vbadvance?

TheBlackPoet
27 Sep 2006, 03:17
you took me to another level with this buddy... i installed it.. ran the cron..and whoa!! so big ups to ya!!

ang2el
27 Sep 2006, 04:00
Do we have to update about daily horoscopes?

zooki
27 Sep 2006, 12:18
cool.

oberheimhaven
27 Sep 2006, 12:38
Fopen? Not sure about this install nothing happened any suggestions I know rookie<<
thxs
MarkAnthony

bada_bing
27 Sep 2006, 15:30
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
27 Sep 2006, 19:56
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
27 Sep 2006, 20:28
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
27 Sep 2006, 20:46
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
27 Sep 2006, 21:10
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
27 Sep 2006, 21:35
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
28 Sep 2006, 00:51
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
28 Sep 2006, 01:16
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
28 Sep 2006, 01:55
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
28 Sep 2006, 02:16
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
28 Sep 2006, 02:19
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
28 Sep 2006, 02:37
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
28 Sep 2006, 08:15
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
28 Sep 2006, 18:31
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
28 Sep 2006, 19:42
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
28 Sep 2006, 19:53
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
28 Sep 2006, 21:55
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
28 Sep 2006, 21:59
Nope didnt work Im so sorry mate for all the hassle

lebanon
28 Sep 2006, 22:08
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
28 Sep 2006, 22:09
Well thank you very much appreciated!!!! Indeed!!!

lebanon
28 Sep 2006, 22:17
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
28 Sep 2006, 22:27
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
28 Sep 2006, 22:49
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
29 Sep 2006, 02:11
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
29 Sep 2006, 02:15
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
29 Sep 2006, 20:31
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
29 Sep 2006, 20:50
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
30 Sep 2006, 02:41
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
30 Sep 2006, 17:49
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
30 Sep 2006, 20:48
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
30 Sep 2006, 21:11
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
30 Sep 2006, 21:37
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
30 Sep 2006, 22:52
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
30 Sep 2006, 23:02
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
05 Oct 2006, 13:44
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
05 Oct 2006, 13:58
when u run the scheduled task manually , would u mind copy pasting ther esults here ?

bada_bing
05 Oct 2006, 14:46
Never mind figured it out.. It was a permissions issue

Any idea how to made this a block for vbadvance?

project-Buckfas
20 Oct 2006, 20:10
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
20 Oct 2006, 20:29
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
22 Oct 2006, 05:39
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
16 Nov 2006, 01:12
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
19 Jan 2007, 17:03
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?

TTG
19 Jan 2007, 23:22
Installed and working well .. thanks lebanon

Clicked install

project-Buckfas
20 Jan 2007, 10:46
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
20 Jan 2007, 13:46
so the daily horoscope is updated from your site ? i assume by this way it can only be dispayed in english

thepub
20 Jan 2007, 17:23
:confused: what is chmod and where do I find it?

lebanon
20 Jan 2007, 18:41
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
22 Jan 2007, 01:25
oh my I am lost :confused:

PoetJA-1975
12 Feb 2007, 06:09
http://www.tchatting.com is down :( - does this mean T-VBhoroscopes is down as well???

Jacquii.

TTG
12 Feb 2007, 08:21
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
12 Feb 2007, 08:23
hmmmm - wonder who LEBANON gets the horoscope content from?

Jacquii.

TTG
12 Feb 2007, 08:25
:confused: what is chmod and where do I find it?

Click here (http://www.vbulletin.org/forum/showthread.php?t=94220) and all will be revealed :up:

lebanon
12 Feb 2007, 15:32
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
12 Feb 2007, 18:45
Thanks Lebanon. I was wondering what was up!

PoetJA-1975
12 Feb 2007, 20:52
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
14 Feb 2007, 18:21
the site is down.. my members are freaking out... i had no idea they looked at the horoscopes so seriously

PoetJA-1975
16 Feb 2007, 04:54
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
16 Feb 2007, 18:05
Any idea on when this will be back up?

blind-eddie
17 Feb 2007, 04:55
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
17 Feb 2007, 05:09
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
17 Feb 2007, 05:13
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
17 Feb 2007, 12:03
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
17 Feb 2007, 14:12
I will find another feed, or manualy do it daily.....

blind-eddie
17 Feb 2007, 14:36
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
17 Feb 2007, 15:18
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
17 Feb 2007, 15:25
They are back up.....

project-Buckfas
17 Feb 2007, 20:05
The mod isn't yet though

blind-eddie
17 Feb 2007, 20:11
I can have rss feeds for horoscopes, but I would still have to manualy update each 1...

PoetJA-1975
17 Feb 2007, 20:35
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
18 Feb 2007, 23:47
It functions,but, I now get this in every sign.
http://worldwideclassifieds.us/forum/images/oops.bmp

apiasto
19 Feb 2007, 07:21
can't wait for it to work, i am getting the same massege like that

AMG021
23 Feb 2007, 18:06
this is not working for me anymore PLease HELP!



working fine again :D

blind-eddie
23 Feb 2007, 18:36
They stopped feeds

tcs
23 Feb 2007, 19:53
I guess it is not supported anymore and will have to uninstall it.

blind-eddie
23 Feb 2007, 22:05
I am trying to get it to work with other sources, till than I manually update.

PoetJA-1975
23 Feb 2007, 23:40
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: http://www.vbulletin.org/forum/showthread.php?t=136719&highlight=horoscopes

Jacquii.

tcs
24 Feb 2007, 01:23
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: http://www.vbulletin.org/forum/showthread.php?t=136719&highlight=horoscopes

Jacquii.

Not really, Nice Job.

PoetJA-1975
24 Feb 2007, 01:42
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
24 Feb 2007, 19:32
Is it down again??

Great mod but it is too hard having to rely on another site like this.... Sorry, gotta uninstall...

tcs
25 Feb 2007, 01:14
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
25 Feb 2007, 04:31
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 (http://www.vbulletin.org/forum/showthread.php?t=136719&highlight=horoscopes) - Logicians WebTemplates (http://www.vbulletin.org/forum/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
28 Feb 2007, 02:29
now its working thnx alot, good work

KevNJ
02 Mar 2007, 16:41
*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
21 Mar 2007, 21:51
is this working for anyone? stopped for me a while back

lebanon
22 Mar 2007, 09:47
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
11 Apr 2007, 01:20
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
11 Apr 2007, 04:02
Is it just me or does this box pop up when you view this thread? And only this one

https://www.vbulletin.org/forum/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
11 Apr 2007, 14:47
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
12 Apr 2007, 17:09
[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
15 Apr 2007, 13:29
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
19 Apr 2007, 18:51
Installed works a dream thankyou

GizmoPhreak
21 Apr 2007, 13:18
Real nice mod..thanks a lot :)

sinistergaming
22 May 2007, 17:03
i just installed this and it works great thanks !!!!

Is There a vbcmps module for this ?

The Geek
22 May 2007, 18:21
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
22 May 2007, 19:40
hmm is that in the members profile page ?
that would be a killer thing to have under the birthdate

edenx
23 May 2007, 01:15
I want horoscopes in Spanish, do I have any chance for this?

Mys
18 Jun 2007, 03:27
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
21 Jun 2007, 14:03
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
21 Jun 2007, 15:50
It seems to be working ok for me :)

Devil Woman
12 Jul 2007, 19:32
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
13 Jul 2007, 16:00
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
13 Jul 2007, 19:47
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
18 Jul 2007, 19:08
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
24 Sep 2007, 06:10
This no longer seems to be working. All horoscopes are only showing a "1";

dodgeboard.com
24 Sep 2007, 17:33
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
24 Sep 2007, 18:29
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
24 Sep 2007, 19:11
Ditto to the above three posts.
For about four days, now I guess.

Code Monkey
24 Sep 2007, 23:04
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
25 Sep 2007, 03:00
Not working here, displays a blank page.

kylek
25 Sep 2007, 23:07
And today also no horoscopes showing.

Endurer
26 Sep 2007, 15:07
Guess I'll take it off of my board till the developer provides a fix.

YMMOT
26 Sep 2007, 20:15
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
27 Sep 2007, 04:55
Uninstalling, think I found something better.

Mys
27 Sep 2007, 22:28
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
27 Sep 2007, 23:27
Can this be translated?

lebanon
29 Sep 2007, 11:13
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
29 Sep 2007, 19:45
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
29 Sep 2007, 21:52
Lebanon, are you going to provide a fix?

DieselMinded
29 Sep 2007, 22:16
Lebanon has been compliant with removing the stolen then sold to him data

Chachacha
30 Sep 2007, 08:06
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
30 Sep 2007, 18:17
I think the guys at astrology.com have changed the pages from where we used to fetch the feed.

Chachacha
30 Sep 2007, 18:59
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
01 Oct 2007, 16:46
Maybe he is doing it manually. The php horoscopes class doesn't work anywhere on the web anymore.

IMPAQ
01 Oct 2007, 19:28
This mod is such a disappointment. :(

Chachacha
02 Oct 2007, 03:37
This mod is such a disappointment. :(

Agreed. I guess I'll have to uninstall it. :(

Endurer
05 Oct 2007, 18:20
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
05 Oct 2007, 20:59
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
05 Oct 2007, 23:45
I want it please.

dollyvarden
12 Oct 2007, 18:25
We could really use this fix, thank you!!

kylek
12 Oct 2007, 18:26
Yes please!!

bazzup
12 Oct 2007, 18:35
yep from me too :up:

blind-eddie
19 Oct 2007, 17:20
How can I get it to work? I'm kinda new at this. :)


You dont, you delete it & find one that is supported....

tigrattack
20 Nov 2007, 18:00
I wanted to install this, but then I read the comments here and decided against it.

tigrattack
21 Nov 2007, 13:35
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
20 Dec 2007, 10:28
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
07 Feb 2008, 20:24
sadly uninstalling.. hopefully support or a new product will be available