Advertisement:

Author Topic: TinyPortal  (Read 761737 times)

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1140 on: February 24, 2011, 02:37:12 PM »
Ok, here you go
SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1141 on: February 24, 2011, 03:02:09 PM »
One thing you need to do is use a good editor. Whatever editor you are using is adding extra lines and stuff all over the place. That is probably the reason you can't find the code. Use the search feature to search for lines instead of just going to the line numbers I specified. File attached, and removed all the extra lines your editor added.
« Last Edit: February 24, 2011, 04:26:07 PM by IchBin™ »
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1142 on: February 24, 2011, 03:27:31 PM »
One thing you need to do is use a good editor. Whatever editor you are using is adding extra lines and stuff all over the place. That is probably the reason you can't find the code. Use the search feature to search for lines instead of just going to the line numbers I specified. File attached, and removed all the extra lines your editor added.

Thanks it's just that I got one error on your update.

Parse error: syntax error, unexpected T_IF in /home/dfbarrac/public_html/Sources/TPdlmanager.php on line 1

I had to upload a back up for it
SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1143 on: February 24, 2011, 04:26:55 PM »
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1144 on: February 24, 2011, 04:41:25 PM »
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?

I'm still getting an error of

Unknown column 'dlm.authorID' in 'field list'
File: /home/dfbarrac/public_html/Sources/TPdlmanager.php
Line: 408

and No I'm not using MAC, I windows notepad. Are you telling me I have to edit the file that your sending me or ?...

SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1145 on: February 24, 2011, 04:51:58 PM »
Your install must of not worked then. The file you attached is the file from the TP install for SMF1.1.x. You need to upload all the files for the RC4 install. Follow the manual instructions from the mod page when clicking parse for your verison of SMF. You'll likely then need to make the edits to the new files that have been uploaded as well.
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1146 on: February 24, 2011, 05:04:01 PM »
Then I'm lost now. I did upload all the files in the RC4 in the root folder. Just like it says to do.

Let me try uploading all the file for TP in the RC4 folder again and see what happens.

SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1147 on: February 24, 2011, 05:07:22 PM »
Well some how or another it didn't overwrite the files. You can see the SMF version at the very top of the file you attached.

--edit--

I would highly suggest you don't use windows notepad. It does nothing but screw stuff up. If you would like to try out a free version of a nice text editor, give Notepad++ a try. It's 100x better than windows notepad.
« Last Edit: February 24, 2011, 05:23:12 PM by IchBin™ »
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1148 on: February 24, 2011, 05:33:46 PM »
Updated the post above. Try the file again. I think there was something screwy with the line formatting. Are you opening your files on a Mac?

I'm still getting an error of

Unknown column 'dlm.authorID' in 'field list'
File: /home/dfbarrac/public_html/Sources/TPdlmanager.php
Line: 408

and No I'm not using MAC, I windows notepad. Are you telling me I have to edit the file that your sending me or ?...

Well some how or another it didn't overwrite the files. You can see the SMF version at the very top of the file you attached.

--edit--

I would highly suggest you don't use windows notepad. It does nothing but screw stuff up. If you would like to try out a free version of a nice text editor, give Notepad++ a try. It's 100x better than windows notepad.

Ok I check that and I tried to update each one at a time.

I started with RC1 and updated all the way to RC4. and nothing I tried seems to want to update my version of TP. It's stuck on RC1

If I try and uninstall TP will that remove all the tables and what I all ready have setup. For some reason. the updates are not working.

UPDATE:

Modification Packages
TinyPortal    1.102  <<-- I don't think that's right. Wrong version.


« Last Edit: February 24, 2011, 05:36:57 PM by bigjoe11a »
SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1149 on: February 24, 2011, 05:47:36 PM »
1.102 is the internal version. It's the correct one for the latest TP install.

No I'm not telling you to edit the files that I attached.

RC1 is the latest version of TP, there's no need to do anything else. If you still have the same error, it is because your file is not updating or not getting overwritten when you upload it. authorID only works in SMF1.x. As you can see if you compare the lines that your error is on in both the SMF1 and SMF2 install, you can see they are totally different.

SMF1
Code: [Select]
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.created, dlm.screenshot, dlm.filesize,
SMF2
Code: [Select]
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.author_id as authorID, dlm.created, dlm.screenshot, dlm.filesize,
See the differences between the authorID parts? You need to upload the files again and then verify that those files have all been overwritten.
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1150 on: February 24, 2011, 05:59:32 PM »
I just check. all the files in all the folders say the same thing at he top.

So RC1, RC2, RC3 and RC4 all have the label at the top. So I'm confused

/******************************************************************************
* TPortal.php                                                                   *
*******************************************************************************
* TP version: 1.0 RC1                                                                                                      *
* Software Version:           SMF 2.0                                                                                      *
* Software by:                Bloc (http://www.tinyportal.net)                                                      *
* Copyright 2005-2010 by:     Bloc (bloc@tinyportal.net)                                                         *
* Support, News, Updates at:  http://www.tinyportal.net                   *
*******************************************************************************/
SMF Forums http://www.df-barracks.com Where gamers go.

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1151 on: February 24, 2011, 06:01:00 PM »
1.102 is the internal version. It's the correct one for the latest TP install.

No I'm not telling you to edit the files that I attached.

RC1 is the latest version of TP, there's no need to do anything else. If you still have the same error, it is because your file is not updating or not getting overwritten when you upload it. authorID only works in SMF1.x. As you can see if you compare the lines that your error is on in both the SMF1 and SMF2 install, you can see they are totally different.

SMF1
Code: [Select]
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.created, dlm.screenshot, dlm.filesize,
SMF2
Code: [Select]
$request = tp_query("SELECT dlm.id, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.author_id as authorID, dlm.created, dlm.screenshot, dlm.filesize,
See the differences between the authorID parts? You need to upload the files again and then verify that those files have all been overwritten.

Ok, I'll try again.
SMF Forums http://www.df-barracks.com Where gamers go.

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1152 on: February 24, 2011, 06:29:10 PM »
well I tried to upload all the files in the RC4 folder and it said it over wrote every thing. and it still says TP RC1. So I don't know what to do.

SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1153 on: February 24, 2011, 07:23:00 PM »
It SHOULD say TP1RC1. What it should NOT say at the top of your files is SMF1.x if you are using SMF2.x. If you are still having the error, please post the error again so that I can make sure it didn't change, and also post the file.
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1154 on: February 24, 2011, 07:41:59 PM »
It SHOULD say TP1RC1. What it should NOT say at the top of your files is SMF1.x if you are using SMF2.x. If you are still having the error, please post the error again so that I can make sure it didn't change, and also post the file.

This is a tpdlmanager.php file. The one I have in the RC4 folder in the you sent me. ok, It says SMF 2.0 and TP version: 1.0 RC1. I got theses files from TinyPortal10rc1.zip from the download from the main mod downloads section.

/******************************************************************************
* TPdlmanager.php                                                                   *
*******************************************************************************
* TP version: 1.0 RC1                                                                                                      *
* Software Version:           SMF 2.0                                                                                      *
* Software by:                Bloc (http://www.tinyportal.net)                                                      *
* Copyright 2005-2010 by:     Bloc (bloc@tinyportal.net)                                                         *
* Support, News, Updates at:  http://www.tinyportal.net                   *
*******************************************************************************/

Ok, This is what the problem is
1)
<p>Downloads:</p><p>If you don't see a file, sample or tool you need. Please ask us. I'm sure my staff will help you in some way. <br></p><p><br></p><p><br></p>

The one above is the same problem I had before. This is what all users see when they click on downloads. This is the header for the downloads section,

2)
The 2nd problem is the guests. that can still see blocks. If I log in and create a new block. and then I display the portal index. You should be able to see the block. How ever when the premissions for the guests is removed. The guests can still see the block. If you remove the premissions for Ungroup Groups. then guests can not see the block

I hope a some more details to give you an idea of what the problem is. There's only 2.

SMF Forums http://www.df-barracks.com Where gamers go.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1155 on: February 24, 2011, 08:31:14 PM »
Ok, so you are not experiencing the error that you posted, now you are back to the problems that I have already posted. To fix the guest access you make these changes to your files:
http://www.simplemachines.org/community/index.php?topic=27642.msg2947765#msg2947765

To fix the download manager description you open Sources/TPdlmanager.php file.

Find this code:
Code: [Select]
    // load the dlmanager frontpage
    if($context['TPortal']['dlaction']=='')
    {

Add this after that code:
Code: [Select]
        if($context['TPortal']['dl_wysiwyg'] == 'bbc')
            $context['TPortal']['dl_introtext'] = parse_bbc($context['TPortal']['dl_introtext']);
        else
            $context['TPortal']['dl_introtext'] = html_entity_decode($context['TPortal']['dl_introtext']);
IchBin™        TinyPortal
Coding Guidelines       

Offline bigjoe11a

  • Sr. Member
  • ****
  • Posts: 851
  • Gender: Male
  • My Name is Joe, and I code in PHP and C#
    • Delta Force Barracks
Re: TinyPortal
« Reply #1156 on: February 24, 2011, 09:19:35 PM »
That's why I was having so many problems. I fount out why and fix it and I changed the options you wanted me to change. and it all works.

Thanks IchBin.

See this is what I fount out. The files that I had on the server were not being updated or could I over write them when I uploaded them. and I have no idea why. So what I had to do was delete all my backups and download the root folder again. Then I made a copy of that and fount that the files I was using were for SMF 1.1.x. So then I copied the newer files over and edited them. Then I reuploaded the changed files and well it works.

Thank you very much. That's one I owe you.

Joe
SMF Forums http://www.df-barracks.com Where gamers go.

Offline reinner

  • Semi-Newbie
  • *
  • Posts: 71
Re: TinyPortal
« Reply #1157 on: February 25, 2011, 08:45:45 AM »
Hi,

I installed this mod. Icons does not display anymore in my theme and in the default them.
I need help Please. What should I do? I can give test admin account if needed.

Good day to all

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: TinyPortal
« Reply #1158 on: February 25, 2011, 09:58:42 AM »
Right click on the icon and look at the location of where the icon is supposed to be. Go to that location in your FTP client. If the icon is not there, and it is a TP icon, then pull it out of the zip and put it where it needs to be.
IchBin™        TinyPortal
Coding Guidelines       

Offline serlokjolms

  • Semi-Newbie
  • *
  • Posts: 30
Re: TinyPortal
« Reply #1159 on: February 25, 2011, 08:14:43 PM »
excellent portal, but i have a problem

i can't enter to portal from www.mysite.com, only can enter from www.mysite.com/forum (smf 2 rc5)

what can i do?