TinyPortal

Development => Support => Topic started by: RSprinkel on February 02, 2008, 10:47:02 PM

Title: Integration
Post by: RSprinkel on February 02, 2008, 10:47:02 PM
Hello all,

Very new here to the Tiny Portal scene.

I have a couple of questions that I would like to ask before using the Tiny Portal.

1) How easy is it to integrate other pages into the Tiny Portal from an other scripts?
2) I noticed alot of the sites have only lefthand side blocks.  Can there also be righthand side blocks as well?  If so and the themes I am interested in do not have righthand blocks, how easy are they to add/implement?

I run a webhosting business and am looking for something that easy to use and very well laid out.  I have tried alot of other portals and some do not suite me.

Thanks much for your help in advance.

RSprinkel
Title: Re: Integration
Post by: Jpg on February 02, 2008, 11:03:29 PM
Yes you can have right sideblocks.
You can even have both at the same time or none.

Integration....well it matters what you want to integrate.
Title: Re: Integration
Post by: RSprinkel on February 02, 2008, 11:10:19 PM
THanks Jpg.

Ohh and am very sorry for posting in the Themes/General, this was a general question and I wasn't paying much attention.  ADMINS if you need to move this please do and again I do apologize again.

Ok I have billing software that I need to integrate into the site and try to make it look like it is inside the site and not outside.  Thats pretty much what I was concerned with.


RSprinkel

Again thanks.
Title: Re: Integration
Post by: Zetan on February 03, 2008, 08:53:13 AM
Moved to Support.
Have a search for iFrames if the page is external. As Jpg said, it really depends on what you are integrating. If you have a script, then paste that into an Article, it's best to switch off the WYSIWYG/FCK Editor (which ever you use) when pasting scripts.
Title: Re: Integration
Post by: RSprinkel on February 03, 2008, 10:33:55 PM
THanks ZTN for the move and again I do apologize.

Well I do have some scripts (30 of them bad boys)  So I guess my work is cut out for me, LOL. 

Not sure if it would be easier or wiser to use the IFRAME method or the Pasting the code in the actual article since there are so many scripts.

Any Suggestions?

Thanks much for your replies, very much appreciated

Ron S.
Title: Re: Integration
Post by: Zetan on February 03, 2008, 10:36:36 PM
If you can avoid iFrames.. do so, they are only useful for external sites, or content that is dificult to integrate. Personal opinion..

I like iFrames for external content, but have been keeping an eye on progress, they seem to be being phased out W3C wise.
Title: Re: Integration
Post by: RSprinkel on February 05, 2008, 02:47:32 AM
Ok after having some free time to mess with this, I am currently pulling the content from .tpl files as that is basically being called from the .php files.  I have in the Articles section checked as html.  When I enter the code I get the layout looking right but all the code is showing there instead of the actual text.  Here is a sample script:

{if $inactive}

<p>{$LANG.affiliatesdisabled}</p>

{else}

<p align="center">{$LANG.affiliatesrealtime}</p>

<p align="center"><strong>{$LANG.affiliatesreferallink}:</strong> <input type="text" size="60" value="{$referrallink}"></p>

<table align="center" class="clientareatable" style="width:50%;" cellspacing="1">
<tr class="clientareatableactive"><td width=230>{$LANG.affiliatesregdate}:</td><td>{$date}</td></tr>
<tr class="clientareatableactive"><td>{$LANG.affiliatesvisitorsreferred}:</td><td>{$visitors}</td></tr>
<tr class="clientareatableactive"><td>{$LANG.affiliatesbalance}:</td><td>{$balance}</td></tr>
<tr class="clientareatableactive"><td>{$LANG.affiliateswithdrawn}:</td><td>{$withdrawn}</td></tr>
</table>

{if $withdrawrequestsent}
<p align="center">{$LANG.affiliateswithdrawalrequestsuccessful}</p>
{else}
{if $withdrawlevel}<p align="center"><input type="button" value="{$LANG.affiliatesrequestwithdrawal}" onclick="window.location='{$smarty.server.PHP_SELF}?action=withdrawrequest'" class="button"></p>{/if}
{/if}

<p><strong>{$LANG.affiliatesreferals}</strong></p>

<table align="center" class="clientareatable" cellspacing="1">
<tr class="clientareatableheading"><td>{$LANG.affiliatessignupdate}</td><td>{$LANG.affiliateshostingpackage}</td><td>{$LANG.affiliatesamount}</td><td>{$LANG.affiliatescommission}</td><td>{$LANG.affiliatesstatus}</td></tr>
{foreach key=num item=referral from=$referrals}
<tr class="clientareatableactive"><td>{$referral.date}</td><td>{$referral.package}</td><td>{$referral.amount}</td><td>{$referral.commission}</td><td>{$referral.status}</td></tr>
{foreachelse}
<tr class="clientareatableactive"><td colspan=5>{$LANG.affiliatesnosignups}</td></tr>
{/foreach}
</table>

{if $affiliatelinkscode}
<p><strong>{$LANG.affiliateslinktous}</strong></p>
<p align="center">{$affiliatelinkscode}</p>
{/if}

{/if}


Any ideas, LOL?

Thanks much in advance, much appreciated.

Ron S.
Title: Re: Integration
Post by: IchBin on February 05, 2008, 03:00:33 AM
Where did you get this code from? Thats not PHP. This isn't any kind of code I've seen before. At least, not for SMF.
Title: Re: Integration
Post by: RSprinkel on February 05, 2008, 03:06:54 AM
I am using my billing software for my webhosting.  There is .php code (using smarty code) which pulls data from the /templates/.tpl files which is said to be the .html code.  I was told from the creators of the Billing software to copy the actual info from the .tpl files and place in where I want the page/info to be displayed.

If you would like a link to where I got this info from I will be more then happy to post it.

I know it is a BIG pain in the butt.  Not sure why or what the need is for smarty code.  Just use plain .php or .html in my thoughts.
Title: Re: Integration
Post by: Lord Anubis on February 05, 2008, 03:32:16 AM
If you want to avoid Iframes, and you are technically savvy enough give this a try.....

http://www.tinyportal.net/index.php?topic=20069.0

Very easy to integrate into other scripts and works fantastic :up:
Title: Re: Integration
Post by: RSprinkel on February 05, 2008, 03:43:27 AM
Hi Lord Anubis,

Thanks for the info, much appreciated.

Not too technically savvy on my end, but with all the info there I guess I can give it a try.  I only have a few handfuls of files to edit, LOL.  And yeah I would really like to stay away from IFRAMES.  I can use the IFRAMES and it pulls the content properly, but again I do want to stay away from them if at all possible.

Again thanks for the info :)
Title: Re: Integration
Post by: Lord Anubis on February 05, 2008, 06:21:35 AM
Your welcome Dragooon made that :)

A bit of advise: Save a original copy of all the files that you edit, so you can reload those if something goes wrong  ;)
Title: Re: Integration
Post by: RSprinkel on February 06, 2008, 09:59:39 AM
Sweet. 

Yeah I have made it a habit a few years back to start backing things up first before editing as I messed up a very important piece of code that I paid someone for and when I emailed him to ask if he had a copy of it, he wanted to charge me half of the original cost just to zip it up and email it to me.  So I learned the hard way, LOL.