Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #31  
Old 01-15-2015, 02:04 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks andrew,

Works great on my vb4 forum within forum blocks, just paste as is and it picks up all the class names....but for the life of me can't figure out how to implement it on my vb3 forum....
even tried an iframe to capture it from my vb4 site but all it showed was the raw code.
Reply With Quote
  #32  
Old 01-15-2015, 07:57 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Thanks again Andrew!!!
Reply With Quote
Благодарность от:
CAG CheechDogg
  #33  
Old 01-16-2015, 02:38 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OUTL4W View Post
thanks andrew,

Works great on my vb4 forum within forum blocks, just paste as is and it picks up all the class names....but for the life of me can't figure out how to implement it on my vb3 forum....
even tried an iframe to capture it from my vb4 site but all it showed was the raw code.
Where do you want it on your forum?
Reply With Quote
  #34  
Old 01-16-2015, 07:05 AM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewSimm View Post
Where do you want it on your forum?
Would like to see it on ForumHome and vbadvanced.

i don't own the vb3 server and the owner is always traveling....I tried creating a plugin pointing to my site:
PHP Code:
ob_start();
   include(
'http://mysite.com/status/consolestatus2.php');
   
$console ob_get_contents();
ob_end_clean(); 
but I get:
PHP Code:
HP User Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../global.php(400) : eval()'d code on line 401

PHP User Warning: include(http://mysite.com/status/consolestatus2.php) [function.include]: failed to open stream: no suitable wrapper could be found in ..../global.php(400) : eval()'d code on line 401

PHP User Warning: include() [function.include]: Failed opening 'http://mysite.com/status/consolestatus2.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in ..../global.php(400) : eval()'d code on line 401 
So I'm thinking its a server configuration issue.....
Reply With Quote
  #35  
Old 01-17-2015, 02:53 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OUTL4W View Post
Would like to see it on ForumHome and vbadvanced.

i don't own the vb3 server and the owner is always traveling....I tried creating a plugin pointing to my site:
PHP Code:
ob_start();
   include(
'http://mysite.com/status/consolestatus2.php');
   
$console ob_get_contents();
ob_end_clean(); 
but I get:
PHP Code:
HP User Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in ..../global.php(400) : eval()'d code on line 401

PHP User Warning: include(http://mysite.com/status/consolestatus2.php) [function.include]: failed to open stream: no suitable wrapper could be found in ..../global.php(400) : eval()'d code on line 401

PHP User Warning: include() [function.include]: Failed opening 'http://mysite.com/status/consolestatus2.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in ..../global.php(400) : eval()'d code on line 401 
So I'm thinking its a server configuration issue.....
Are your sites on separate servers?
Reply With Quote
  #36  
Old 01-17-2015, 10:01 AM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewSimm View Post
Are your sites on separate servers?
Yeah...I guess, hence the configuration error? Will this work like it should, on vb3, once the file is uploaded to server? Then place $console wherever I want it to show up?
Reply With Quote
  #37  
Old 01-17-2015, 12:51 PM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OUTL4W View Post
Yeah...I guess, hence the configuration error? Will this work like it should, on vb3, once the file is uploaded to server? Then place $console wherever I want it to show up?
Well lets first make sure it will work on your server.

Put the following in a php file and upload to your server. The only difference is I am echo'ing out the $output and putting everything in between the php tags. If it shows with this then it isn't a server issue. If it doesn't show then we need to make sure that server can use "file_get_contents"

PHP Code:
<?php

error_reporting
(E_ERROR);

$PSN_url 'http://support.us.playstation.com/app/answers/detail/a_id/237/';
$PSNhtml file_get_contents($PSN_url);
$PSNdom = new DOMDocument();
@
$PSNdom->loadHTML($PSNhtml);
$PSNxpath = new DOMXPath($PSNdom);
 
//PSN Query
$PSN_query "/html/body[@id='scea_body']/div[@id='wrap']/div[@class='boxshadow']/div[@id='main']/div[@id='search_main_box']/div[@id='rn_PageContent']/div[@id='rn_AnswerTop']/h1[@id='rn_Summary']";

$PSN_rows $PSNxpath->query($PSN_query);
 
//PSN Status
foreach ($PSN_rows as $PSN_object){
    
$PSNstatus =  $PSN_object->childNodes->item(0)->nodeValue;
}
$PSNstatus str_replace('PSN Status:'''$PSNstatus);

$XBOX_url 'http://support.xbox.com/en-US/xbox-live-status';
$XBOXhtml file_get_contents($XBOX_url);
$XBOXdom = new DOMDocument();
@
$XBOXdom->loadHTML($XBOXhtml);
$XBOXxpath = new DOMXPath($XBOXdom);
 
//Xbox Social And Gaming
$XBOXSocialAndGaming_query "/html/body[@id='DocumentBody']/div[@id='bodycolumn']/div[@id='BodyContent']/div[@class='liveStatusPage']/div[2]/ul[@class='core']/li[@id='SocialandGaming']/div[@class='item']/h3";
$XBOXSocialAndGaming_rows $XBOXxpath->query($XBOXSocialAndGaming_query);
 
//Xbox Social And Gaming loop
foreach ($XBOXSocialAndGaming_rows as $XBOXSocialAndGaming_object){
    
$XBOXSocialAndGamingStatus =  $XBOXSocialAndGaming_object->childNodes->item(1)->nodeValue;
}


//Xbox Live Core Services
$XBOXLiveCore_query "/html/body[@id='DocumentBody']/div[@id='bodycolumn']/div[@id='BodyContent']/div[@class='liveStatusPage']/div[2]/ul[@class='core']/li[@id='XboxLiveCoreServices']/div[@class='item']/h3";
$XBOXLiveCore_rows $XBOXxpath->query($XBOXLiveCore_query);
 
//Xbox Live Core Status
foreach ($XBOXLiveCore_rows as $XBOXLiveCore_object){
    
$XBOXLiveCoreStatus $XBOXLiveCore_object->childNodes->item(1)->nodeValue;
}

$output "
<style>
.xboxtitle {
    font-weight:600;
}
.xboxstatus a{
    color:#107C10;
}
.psntitle {
    font-weight:600;
}
.psnstatus a{
    color:#665cbe;
}
</style>
<span class='psntitle'>PSN Status:</span><span class='psnstatus'> <a href='https://support.us.playstation.com/app/answers/detail/a_id/237/'>" 
.
 
$PSNstatus "</a></span><br /><br /><span class='xboxtitle'>XBOX Status:</span><span class='xboxstatus'><a href='http://support.xbox.com/en-US/xbox-live-status'> " $XBOXSocialAndGamingStatus "</a></span><br /><br /><span class='xboxtitle'>XBOX Live Core Status: </span><span class='xboxstatus'><a href='http://support.xbox.com/en-US/xbox-live-status'>" $XBOXLiveCoreStatus "</a></span>"

echo 
$output;

 
?>
Reply With Quote
Благодарность от:
CAG CheechDogg
  #38  
Old 01-18-2015, 06:49 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Andrew
The owner is traveling so I just tried the <iframe src from my server and works perfectly....I would give you another like but it seemed I exceeded the limit of giving you "luvin's" ---(no homo). Anyways just using the iframe to get the stylings correct ...then I'll have owner upload to server.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #39  
Old 01-18-2015, 09:54 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OUTL4W View Post
Thanks Andrew
The owner is traveling so I just tried the <iframe src from my server and works perfectly....I would give you another like but it seemed I exceeded the limit of giving you "luvin's" ---(no homo). Anyways just using the iframe to get the stylings correct ...then I'll have owner upload to server.
I gave him the like for you !!
Reply With Quote
  #40  
Old 01-19-2015, 02:06 AM
AndrewSimm AndrewSimm is offline
 
Join Date: Sep 2006
Location: Atlanta, GA
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, has anyone come across any other issues?
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT. The time now is 02:45 PM.


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

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete