TinyPortal

Development => Support => Topic started by: darkstar3 on May 08, 2007, 02:42:43 PM

Title: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: darkstar3 on May 08, 2007, 02:42:43 PM
Hello,

i wrote it already in the german forum, but I don't think that I will get a fast answer there.
I use the Joomlahacksbridge together with Joomla, SMF and TP.

If I change the theme with the THEME-Module, TP send me to:
/forum/index.php?option=com_smf&Itemid=29;theme=21

but if the bridge should work properly, i must be send to:
/homepage/index.php?option=com_smf&Itemid=29;theme=21

It's the same with the shoutbox, only with:
/forum/index.php?option=com_smf&Itemid=29 and
/homepage/index.php?option=com_smf&Itemid=29


And don't ask why using TP and Joomla ;-)

Thanks for Help!


Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: IchBin on May 09, 2007, 01:17:12 AM
Well I personally don't know anyone who uses Joomla. You're probably better off asking some people at SMF that use joomla or people at the joomla boards.
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: darkstar3 on May 09, 2007, 12:39:54 PM
OK, I will make a Topic in the Joomlaforum too.
But I think the main question of the problem can you answer me:

In which PHP-File TP says how the Shoutbox and the Theme-Changer work?

Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: Saiboogu on May 09, 2007, 12:50:26 PM
Not to criticize your choice in site design, but can I ask if there is a particular reason you are trying to use Joomla + SMF + TP? I used to run my site as Joomla + SMF bridged, and admittedly I was a big Joomla fan ... But I got tired of maintaining two totally different software suites. TP gave me everything I needed to drop Joomla and make my site SMF only. Any chance you could do something similiar?
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: darkstar3 on May 09, 2007, 01:19:36 PM
Hey, I wrote don't ask why using TP and Joomla!  ;)
OK, I will try to explain it with my bad school-english.

Joomla is the best free solution for a professional homepage.
I can't realize the Homepage that I want to have with TP, there aren't the components that I need.

My site is a community & fansite that includes Game-Information, a fanshop, Directory listings, photo galleries, blogs and free user homepages served via Joomla Components. The center of the community is the forum (realized by SMF bridged to Joomla with Community Builder for registration/login, profiles etc.).
Because the forum don't work well in a wrapper, I use TP so that the forum looks like the homepage, and I can connect Forum and Homepage easily with the menu on the left.
On TP I show community-news, and I dont want to miss the Template Changer and Shoutbox.
I want that the Forum don't look (too much) separated from the Homepage without using a wrapper.

Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: Saiboogu on May 09, 2007, 10:30:44 PM
Your English is better than my reading comprehension; I missed that line in your first post. :) Sounds like you are using Joomla to it's fullest - sounds impressive. Kudos. Can I have a link to check it out?
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: G6Cad on May 09, 2007, 10:47:49 PM
Quote from: terabyte on May 09, 2007, 12:39:54 PM
OK, I will make a Topic in the Joomlaforum too.
But I think the main question of the problem can you answer me:

In which PHP-File TP says how the Shoutbox and the Theme-Changer work?



That would be the themes/default/TPortalblocks.template.php and /Sources/Tportal.php
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: bloc on May 10, 2007, 01:55:38 AM
I agree that joomla is indeed one of the better CMS out there - the sheer popularity show that. TP is dependant on SMF, therefore you can't really compare. But TP was made to make the use of joomla un-needed for smaller sites. ;) Since many start out with a forum, its logical to keep it, but expand it to do more.

Anyway..shoutbox use $scripturl to redirect..and that is filled with the path to the forums index.php, so you need to insert something different in those files G6 lists up.
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: darkstar3 on May 10, 2007, 01:25:58 PM
I don't know much about php, but I don't think that "$scripturl" is the problem.
All the other TP-Moduls work great, and "Show older Shouts" have also the right url.


Search , Change and Shout! have all one thing together: They use type="submit"
And this type="submit" should be the problem.
Can I replace it with something other (that use "$scripturl" ) ?
With my PHP knowledge I can't replace it without help :'(

@Saiboogu: I can give you the link, but the homepage isn't completed for a long time yet.  ::)


Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: bloc on May 10, 2007, 07:07:45 PM
If you don't know about php, then why do you say its not $scripturl lol? :) Of course it is that.The link the shoutbox sends you to after saving the shout, is the PATH TO YOUR FORUM, not to Joomla homepage. Because the bridge rewrites any SMF links..but NOT any TP links.

One more reason to not have two portals/CMS running at once really.
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: darkstar3 on May 10, 2007, 07:26:58 PM
I don't understand why things like

<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a></span>

and

<div style="text-align: center; margin-top: 5px; " class="smalltext"><a href="',$scripturl,'?action=tpmod;sa=shoutbox;shouts='.$context['TPortal']['show_shoutbox_archive'].'">',$txt['tp-showshouts'],' ',$context['TPortal']['show_shoutbox_archive'],'</a></div>';

work how they shoud (with using scripturl! ) and things like


          echo '<input style="margin-top: 4px;" class="smalltext" type="submit" name="shout_send" value="'.$txt['shout!'].'">';


not  ;)

Ok, then I have to wait for a answer from Joomlahacks.
But in a big community like the one from Joomla I don't get as much help as here  ::)
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: Crip on May 10, 2007, 07:27:18 PM
...  ;D
Title: Re: Joomla + SMF + Tinyportal: Changing the theme/Using Shoutbox
Post by: Crip on May 10, 2007, 07:28:59 PM
you need to learn smf, Tp..then Jalloopa.