TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 192
  • Total: 192

Need a little assistance

Started by gmlong, March 23, 2008, 11:06:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gmlong

I am using an "iframe shoutbox" that I paid for since my yshout box was using to many server resources.

Here is the code below.  The one thing I am having problems with is how to get the code to populate the member name automatically from the database.  The site I got the shoubox provided the TP code below.  However,  I cannot get the name to populate.

Any assistance is appreciated.

global $user_info;

// Edit configurations

$shoutbox = 'http://www.shoutmix.com/?limogal'; // URL of shoutbox
$width = '100%';
$height = '300'; // without the % sign, value will be in pixels.
$border = 0; // 0 for none, 1 for border.

// Do not edit below this line

echo '
<iframe src="' . htmlspecialchars($shoutbox) . '&name=' . htmlspecialchars($user_info['name']) . '" width="' . $width . '" height="' . $height . '" frameborder="' . $border . '" scrolling="auto">
<a href="' . htmlspecialchars($shoutbox) . '">View shoutbox</a>
</iframe>';


P.S.  I tried changing this to match the database name to ($user_info['memberName']) but it still did not work.

G6Cad

How to use that paid shoutbox script is for the people you got it from to explain to you.
We support tinyportal here, not how to fetch calls from the dtabase to scripts we dont even build here.

Ken.

It always pays to read the directions and the shoutbox site seems to have a good how-to on installing to SMF/TP.  ;)

http://www.shoutmix.com/main/help.php?view=Guides/smf_tp
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

gmlong

#3
Ken... if you read my message above, you will see that I did follow the directions as posted on the site you referenced.  However, the code does not work properly.  I only asked for a little assistance.

I find it somewhat offensive when I ask a question and then I feel belittled for asking.

Thank you for taking the time to reply.

Quote from: Ken. on March 23, 2008, 11:25:46 PM
It always pays to read the directions and the shoutbox site seems to have a good how-to on installing to SMF/TP.  ;)

http://www.shoutmix.com/main/help.php?view=Guides/smf_tp

Ken.

The reply was not intended to belittle you, rather it was meant as a reminder that generally speaking and in most cases the original source is the best source.

Specifically in this case the instructions posted on the shoutbox site calls for placing the code in a php block, while in your post you mentioned that you were trying to use it in an iFrame.
And the whole point is that if you want to use the code in a manner thats not listed in the instructions on their site then you need to ask there because they wrote the code.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

gmlong

If you look at the code above, which is a direct cut and paste from the site your referenced (where I got the code), it is an IFrame.  I am using it in a TP php block.


Quote from: Ken. on March 24, 2008, 01:21:48 AM
The reply was not intended to belittle you, rather it was meant as a reminder that generally speaking and in most cases the original source is the best source.

Specifically in this case the instructions posted on the shoutbox site calls for placing the code in a php block, while in your post you mentioned that you were trying to use it in an iFrame.
And the whole point is that if you want to use the code in a manner thats not listed in the instructions on their site then you need to ask there because they wrote the code.



JPDeni

The only thing we would be able to tell you is what Ken said -- to read and follow the instructions. Since you have done that, it would appear that the instructions are faulty. It's doubtful that anyone here has experience with the script that you're dealing with, so the only other thing we can suggest now is to ask those who wrote the instructions to help you out.

gmlong

Thank you JP... we have been writing back and forth with the owner of this script.  He made several suggestions, none of which work.  My last resort was to come here and see if any of the script experts at TP would be kind enough to look at it and see what could be changed to make it a viable script.

Thanks

Quote from: JPDeni on March 24, 2008, 01:41:05 AM
The only thing we would be able to tell you is what Ken said -- to read and follow the instructions. Since you have done that, it would appear that the instructions are faulty. It's doubtful that anyone here has experience with the script that you're dealing with, so the only other thing we can suggest now is to ask those who wrote the instructions to help you out.

This website is proudly hosted on Crocweb Cloud Website Hosting.