TinyPortal

Development => Support => Topic started by: hetal on May 12, 2010, 03:45:05 PM

Title: Shoutbox Help
Post by: hetal on May 12, 2010, 03:45:05 PM
Hi,

I'm really new to TP and I was trying out to see if I can create shoutbox, I was able to create the shotbox but however I was not able to see anything in it...I looked around for as much as help I can get but I did not find out what it was that I'm doing wrong...therefore, I'm attaching the image file...I would appreciated if some one can help me out here.

also when I click on admin > tinyportal > View shout it gives me following error

Fatal error: require_once() [function.require]: Failed opening required '/home/patelh/domains/warcraft-source.com/public_html/board/tp-files/tp-modules/TPShout/Sources/TPShout.php' (include_path='.:/usr/local/lib/php') in /home/patelh/domains/warcraft-source.com/public_html/board/Sources/TPmodules.php  on line 83
Title: Re: Shoutbox Help
Post by: IchBin on May 13, 2010, 12:02:33 AM
What version of TP are you using? What version of SMF? Did you look to see if the file that it is pointing to (TPShout.php) is where it is looking for it?
Title: Re: Shoutbox Help
Post by: hetal on May 13, 2010, 01:30:25 AM
Using TinyPortal 1.0 beta 5-1

with SMF 2.0 RC2...

and I dont know how to look for that file or where to look for it...
Title: Re: Shoutbox Help
Post by: Ken. on May 13, 2010, 02:19:21 AM
Quote from: hetal on May 13, 2010, 01:30:25 AM
Using TinyPortal 1.0 beta 5-1

with SMF 2.0 RC2...

and I dont know how to look for that file or where to look for it...

Hi hetal, welcome to TinyPortal.

IchBinâ„¢ or one of our code specialists may be able to help you with this current question, but in the meanwhile... 
If you're new to SMF/TP then you'll need to start by learning some of the basics on how to find files and how the various elements work together so that you can achieve the layout you desire. A really good place to start is the Docs here on TP and those that you'll find on SMF.

For your question on the shoutbox, there are sections on blocks as well as modules. (the shoutbox is a module)
Here are the Docs pages for TP:
TinyPortal Doc's Board (http://www.tinyportal.net/help/index.php)
Title: Re: Shoutbox Help
Post by: IchBin on May 13, 2010, 05:12:07 AM
This error:
QuoteFailed opening required '/home/patelh/domains/warcraft-source.com/public_html/board/tp-files/tp-modules/TPShout/Sources/TPShout.php

is telling you it cannot find the file located on your sever. Look at the path then go into your server viewing using an FTP client or with the file manager (if you have cpanel), and look to see if the TPShout.php file is located there. If not, that will answer the question of why you are having a problem. You may have to get the file from the TP zip file located in the same place, and upload it to the path specified.
Title: Re: Shoutbox Help
Post by: hetal on May 23, 2010, 08:25:37 PM
OK so I believe I got the files in there but still when I turn on the shoutbox it just displays same image as I attached in my 1st post as above. Good part is it does not give me error any more...Oh and sorry for the late reply been busy :P


Note: As told me to check on docs on reply. I did follow the steps but :O I do not see where is says block type shout...do you think I'm missing more files ? If so please help me!
Title: Re: Shoutbox Help
Post by: IchBin on May 23, 2010, 08:51:58 PM
For the block type it has to be "TP Module". Then you select the module (shoutbox) that you want to show.
Title: Re: Shoutbox Help
Post by: hetal on May 23, 2010, 10:04:45 PM
Well I was able to create block with those settings but here check out my screen shot it does not give you no space to write text into...
Title: Re: Shoutbox Help
Post by: IchBin on May 23, 2010, 11:01:28 PM
Errors in the smf log? Errors in your server log?
Title: Re: Shoutbox Help
Post by: ZarPrime on May 24, 2010, 06:48:23 AM
hetal,

I just looked at your site.  Do you see those 2 asterisks in the upper right of the image you attached to your last post?  Those are broken images.  This indicates that you didn't get a full install of TinyPortal for some reason because those images are missing.  After looking at your site, I can see that there are other broken images as well.  This could have been due to a permissions problem on your site.  If the images are missing, there are other things that could be missing as well, including some of the files needed to make the Shoutbox work.  I would advise you to extract the TinyPortal archive to a temp folder on your computer and go through the common folder and the SMF2RC2 folder and make sure that all the files in those folder have been uploaded to the proper location on your site.  The missing images will be located in the \common\Themes\default\images\tinyportal folder of the archive.

ZarPrime
Title: Re: Shoutbox Help
Post by: hetal on May 24, 2010, 08:48:51 PM
OK I'm gone get on that, but I have few question before I do this tho..will tinyportal work with smf rc3? and before I replace those files can I just uninstall the tinyport and upload the files and try to reinstall the whole thing ?

Thank you guys so much for all the help.
Title: Re: Shoutbox Help
Post by: ZarPrime on May 25, 2010, 04:16:03 PM
Yes, TP 1.0 beta 5-1 works fine with SMF 2.0 RC3 but then  I can see that you already made the switch. O0  However, your images are still missing.  Did you first install TinyPortal to the default SMF (core) theme?  That is important.

ZarPrime
Title: Re: Shoutbox Help
Post by: hetal on May 25, 2010, 10:27:52 PM
Well so far I have most of the things back in line but still not the shout box! Can you please help to get this one on ?

What I had done is I upgraded smf with large upgrade pack and now tinyportal is working great and also I can see the shoutbox image getting better but still can not enter any text in it...I'm attaching file below to show my progress...

Title: Re: Shoutbox Help
Post by: IchBin on May 25, 2010, 10:32:27 PM
I don't see any shoutbox in your picture.
Title: Re: Shoutbox Help
Post by: hetal on May 25, 2010, 10:58:09 PM
Oh Its one with no title...I just did not name the blocks to shoutbox.
Title: Re: Shoutbox Help
Post by: ZarPrime on May 25, 2010, 11:46:49 PM
hetal,

Please make sure that, under TP Admin --> Modules, the "TP Simple Shout (Admin)" is turned "On".  Secondly, can you look at the Block Edit screen for the Shoutbox block and make sure that the "type:" is "TP Module" and that the TP Shout radio button below that is selected.

Also, it appears that something is definitely wrong with your Front Page.  I can tell because the SMF and TP Copyrights are missing at the bottom.  This is usually because you have a block turned on that is using custom code in it or an article with bad code.  Do you have any blocks turned on that aren't showing up on the FP?

ZarPrime
Title: Re: Shoutbox Help
Post by: hetal on May 26, 2010, 07:26:45 PM
OK I did make sure that it was like you had told me to do so and I think that is what I have been doing...but still no go !  :down:


Now with front page what I had done is turn off all the block and turn back on one by one but until I got to the Shoutbox block every thing was good...So as I believe its the shoutbox block...So now I tried create block on different side I think it was left side but it still dose same thing. Please help me before I go  :uglystupid2: heheh

And I really thank you guys putting up with me problem here. :)
Title: Re: Shoutbox Help
Post by: IchBin on May 26, 2010, 08:11:03 PM
If you'd like, create a temp admin account and send me a PM. I'll take a look as soon as I can. At this point, I wouldn't be able to tell you what the problem is without looking at it.
Title: Re: Shoutbox Help
Post by: hetal on May 28, 2010, 01:59:32 AM
OK done deal I have send you the info in PM...
Title: Re: Shoutbox Help
Post by: IchBin on May 28, 2010, 04:14:36 PM
It looks like you have this error now in your SMF log.
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull

You need to go into your database and look at all the table collations. You'll see a column that shows you what each tables collation is set to. You'll need to make sure they are all the same.
Title: Re: Shoutbox Help
Post by: hetal on May 28, 2010, 07:50:05 PM
Thanks for looking into this...

With your reply I was totally lost on how to fix this problem but I guess this is SMF problem which is causing by some database table not being correct ?  Did I get that right ?
Title: Re: Shoutbox Help
Post by: IchBin on May 28, 2010, 08:03:47 PM
Do you have access to phpMyAdmin in your control panel for your host?

I don't know if I would consider it an SMF problem. It could be just a database setting that creates a certain collation if the collation is not specified. The collation is what character set the table is using. So if the software you're using doesn't specify a collation, it could automatically use a default setting. And then if you install something that sets a different collation setting, you get the illegal mix of collations error.

Make a backup before you make any changes. If you'd like to try this, here's how. If you have access to phpMyAdmin go into it, and click on your database in the left column. From there you should see something like the attached image #1. Just select the row you need to change by checking the checkbox on the left of the row. Then click the "Operations" tab after selecting the row. Then take a look at image2 attached. You change the collation to match your other tables, and then click go.  Then end, life is good. :)
Title: Re: Shoutbox Help
Post by: hetal on May 29, 2010, 12:03:23 AM
I tired to follow your steps on it but it looks like it does not change I even tired one at a time but still it stays in utf8_unicode_ci so most of them are in that type...
Title: Re: Shoutbox Help
Post by: IchBin on May 29, 2010, 12:10:03 AM
Ask your host if they are restricting permission or something.
Title: Re: Shoutbox Help
Post by: hetal on May 29, 2010, 03:07:21 AM
Well he said he never did restrict any permission on my phpadmin would be kind to have look at it if send you info...
Title: Re: Shoutbox Help
Post by: IchBin on May 29, 2010, 08:01:56 PM
Sure, I'll take a look if you need. Go ahead and PM me the info.
Title: Re: Shoutbox Help
Post by: hetal on May 29, 2010, 09:58:55 PM
Done let me know if you have any problem with login-in
Title: Re: Shoutbox Help
Post by: IchBin on May 30, 2010, 02:03:27 AM
Ok, I've changed all the collations. This did not fix it. I'm not 100% sure why, but I think it is because your database is set to default ut8_unicode_ci. Thus when a query is run, if character set is not supplied when needed, it defaults to the wrong one since SMF/TP is using utf8_general_ci. My only suggestion at this point would be to ask your host if they can change the default for the mysql server to uft8_general_ci. I highly doubt they will do it, but hey it's worth a shot IMO. Other than that, I'm betting you'll have to change each table, and each row to use ut8_unicode_ci. This will be a tedious task at best. It'll probably take you an hour at least to go through each table to change it.

--edit--
Unless of course, your host would be willing to run the queries to change all those tables and rows to utf8_unicode_ci for you. :)
Title: Re: Shoutbox Help
Post by: hetal on May 30, 2010, 04:09:49 AM
Thank You so much ! I would have no idea how to do all that so I guess I have to depend on my host...If not I will have to deal with no shoutbox! :(


Ones again thank you so much for going one step extra to help me... :angel:
Title: Re: Shoutbox Help
Post by: Joe B on May 30, 2010, 08:11:34 AM
you can do it yourself by clicking on the browse button of the file you want to change the collation then go to operations and change it there. It will take awhile