• Welcome to Simple Machines Community Forum. Please login or sign up.
October 16, 2021, 07:30:46 AM

News:

Join the Facebook Fan Page.


TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

FragaCampos

Hello.
I'm still using TinyPortal v1.0 beta 4 with SMF 1.1.12 and i'm having two errors that are filling my log:
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: public_html/Themes/default/languages/TPShout.portuguese.php (main sub template - eval?)
Line: 414


and

2: Invalid argument supplied for foreach()
File: public_html/Themes/default/languages/TPShout.portuguese.php (main sub template - eval?)
Line: 15


Any idea about what might be causing this?

IchBin™

Can you use this mod to enable/disable eval() to see if you get a more specific error?
http://custom.simplemachines.org/mods/index.php?mod=2054
IchBin™        TinyPortal

FragaCampos

Hi IchBin™ and thanks a lot for answering.
I did what you told and it seems the problem stems from a hack i did sometime ago.
It doens't have nothing to do with TinyPortal, but you can find it here.

Cheers.

IchBin™

Cool. Thanks for letting me know the problem.
IchBin™        TinyPortal

anto74

I'm sorry for this stupid question and for my poor english: now i have TP 5beta-1, for upgrade to TP RC1 i must only install the RC1 package? I don't uninstall TP 1beta5-1?
In installaton test i have only two file modified...it's possible?

Thanks
Antonio

DarioBros

There's a small bug in the search function ( yoursite.com/index.php?action=search ) with smf 1.1.11 (now 1.1.12) and TPRC1:
Even if "Downloads Manager" is disabled, in that page there is a link to search inside downloads.

I've modified TPsubs.template.php to hide it, searching
<span class="topslice"><span></span></span>
<p style="margin: 0; padding: 0 1em;">
<a href="' . $scripturl. '?action=tpmod;sa=searcharticle">' . $txt['tp-searcharticles2'] . '</a> |
<a href="' . $scripturl. '?action=tpmod;dl=search">' . $txt['tp-searchdownloads'] . '</a>';


and replacing with:
<span class="topslice"><span></span></span>
<p style="margin: 0; padding: 0 1em;">';
if (allowedTo('tp_dlmanager'))
echo '
<a href="' . $scripturl. '?action=tpmod;sa=searcharticle">' . $txt['tp-searcharticles2'] . '</a> |';
                        if (allowedTo('tp_articles'))
echo ' <a href="' . $scripturl. '?action=tpmod;dl=search">' . $txt['tp-searchdownloads'] . '</a>';
     


Is this the right way to fix it?

IchBin™

Well, there's no permission for just using search. The permission you use in your code there is for a user who has TP download manager permissions. It would probably be better to just check if the downloads manager is turned on or not.

if($context['TPortal']['show_download']==0)
IchBin™        TinyPortal

latch

Hi, attempt to apply TinyPortal is failing.

List of all installs:
SMF v1.1.12
SMF Gallery Lite v3.0.2
Default Avatar v1.3
- End List

Version of TinyPortal attempting to apply: v1.101

Errors encountered:
9.    Execute Modification    ./Themes/default/index.template.php    Test failed
10.    Execute Modification    ./Themes/babylon/index.template.php    File not found

I was initially using the Full Down theme when trying to install Tiny Portal which caused errors 9 and 10 so switched to Default theme.
Errors 9 and 10 persist.
Is there a way to overcome these two errors so I can apply this Mod?
-Latch

IchBin™

TinyPortal is searching for code in those files that has either been modified by a previous mod, or modified by you. If I were you, I would do this:

1. Backup files and database
2. Install the mod and proceed even with those 2 errors reported.
3. Click the parse link on the mod page, and follow the manual instructions for modifying those files.
IchBin™        TinyPortal

FragaCampos

Hello again.
Now that i've cleaned the error log, i'm left with two very old errors that i've never been able to solve.
Here they are:
2: Invalid argument supplied for foreach()
File: /home/docspt/public_html/Themes/default/TPortal.template.php
Line: 15


and

8: Undefined index: boardnews
File: public_html/Themes/default/TPortal.template.php
Line: 15


It's nothing serious nor urgent, since the forum has no problems, but i would like to get rid of these.
Thanks once more.

IchBin™

Can you do what I posted in this message and let me know what the errors say after that?
http://www.simplemachines.org/community/index.php?topic=27642.msg2866238#msg2866238
IchBin™        TinyPortal

FragaCampos

I still have that mod installed and the messages don't change  :-\

Don't know if this helps, but these errors are only made by guests and always in pairs, when one happens, the other also happens.

IchBin™

Is it the link in your signature? You are 2 versions of TP behind. There has been a beta4 and an RC1 version of TP since then. A lot of bugs were fixed by Bloc since then. I'd update and see if the same errors exist.
IchBin™        TinyPortal

FragaCampos

Yes it is. But no problem, it's nothing serious. I'll update to RC1 when i update my SMF to 2.0. That way i can make all the needed changes at the same time.

Thanks anyway.

IchBin™

Updated for SMF 2 RC4. Post if there's any problems.
IchBin™        TinyPortal

Sabre™

December 07, 2010, 02:19:33 AM #955 Last Edit: December 07, 2010, 02:27:32 AM by Sabre™
Good work IchBin 8)

Found a very small error. Nothing serious, but thought I'd bring it to light.
You're not in the TP credits
Developer
Bjoern "Bloc" Kristiansen

TP Team
JPDeni, Ianedres, Freddy888, Ken, Lesmond, ZTN, ZarPrime, Renegd98, Crip, Agridoc and lurkalot.

TP Friends
Xarcell, Fussilet,nokonium, StormLrd, RebelRose, Ray, Max, Thurnok, Dragooon, eld^kar, PhilH, Maya, Moocat, Rasyr, gerrymo, BorgBOB, redone, Aku, Anunlike, Tuxie, deniz, feline, and eeek.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


IchBin™

Strange... wonder how my name got removed. I haven't even touched the credits. Oh well, I'll fix it up for the next release. Thanks for the heads up!
IchBin™        TinyPortal

crustybum

Hi, i am having problems getting an RSS feed in one of the blocks...can anyone guide me through..?  i am on 1.1.12

Thanks

IchBin™

Have you tried other feeds? Some times feeds have errors in them and will not display. You can try a feed from the TP chat board on the support site to see if it works. This link worked for me.

http://www.tinyportal.co.uk/index.php?action=.xml;board=9;type=rss
IchBin™        TinyPortal

crustybum

No good....just getting nothing...stumped

Advertisement: