vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - T-VBhoroscopes Addon -daily updated content (https://vborg.vbsupport.ru/showthread.php?t=127387)

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

Quote:

Originally Posted by lebanon
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

Quote:

Originally Posted by lebanon
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

Quote:

Originally Posted by lebanon
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

Quote:

Originally Posted by lebanon
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

Quote:

Originally Posted by project-Buckfas
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:

Quote:

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/...horoscopes.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 :
Quote:

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:

Quote:

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 01-19-2007 10:22 PM

Installed and working well .. thanks lebanon

Clicked install

project-Buckfas 01-20-2007 09:46 AM

You need to set permissions (chmod) to 777

Quote:

Originally Posted by thepub (Post 1162867)
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.

TTG 02-12-2007 07:21 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1180410)
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.

TTG 02-12-2007 07:25 AM

Quote:

Originally Posted by thepub (Post 1163560)
:confused: what is chmod and where do I find it?

Click here 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.


All times are GMT. The time now is 08:12 PM.

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

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

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

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