vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Widget Trouble - PHP Direct Coding (https://vborg.vbsupport.ru/showthread.php?t=258663)

bluebare 02-10-2011 05:34 PM

Widget Trouble - PHP Direct Coding
 
1 Attachment(s)
Could some one please assist me with this problem. I have a php code to display a mumble voice server status. But something is wrong. It keep throwing the status viewer outside the Widget box at the top of the main page.
http://www.stealth-ops-team.com/widget_not_working.jpg


Have have attached the .txt document with the coding. I am not PHP friendly but would really like to get this operational and in the correct spot.

Please Help

Lynne 02-10-2011 06:05 PM

You cannot echo the output. You MUST assign it to variable $output.

Creating an HTML or PHP Widget

bluebare 02-18-2011 04:11 PM

Ok, the last response did not help. As I said in the above message, I know nothing about PHP, and the link you provided says at the bottom of the page,

Quote:

"If you need help writing the code for one of these widgets, you should request help over on vbulletin.org, the modification site."
Well I am posting at vbulletin.org.......So here we are back to square one, I need HELP!!

Lynne 02-18-2011 05:28 PM

You need to change all your echo statements in your code to be assigned to $output. Put this at the top of your code:

PHP Code:

$output ''

Then change all echo statements to be assigned to $output. Instead of this:
PHP Code:

echo '<div id="mumbleViewer">'

Do this:
PHP Code:

$output .= '<div id="mumbleViewer">'

Then see if it works.

If you need somebody to actually do the whole thing for you, instead of just help you to do it, then you should be posting in either the Unpaid or Paid Requests forum. This is the Programming help forum where we help you to do it yourself.

Jamey 03-30-2011 03:29 AM

Did you get it working?


All times are GMT. The time now is 10:07 AM.

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.01091 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete