TinyPortal

Development => Support => Topic started by: hebxi1 on November 13, 2007, 02:44:44 AM

Title: Hide panels when on a custom page
Post by: hebxi1 on November 13, 2007, 02:44:44 AM
I created a custom page by copying Memberlist ... basically does the same thing but lists different info that's pulled from Custom Profile Fields.  It's called with action=gslist, but that's about as fancy as I get - I don't know how to link it up to the Who's Online stuff or anything.

What I want is to hide the panels when viewing this page, just like I do on the Memberlist.  I know that's an option when using articles, but I just couldn't get it to show correctly that way.

I think the simplest way of doing this would be to have my custom template check for the Memberlist TP settings ... can someone point me in the right direction for doing that?

Thanks a ton in advance!
Title: Re: Hide panels when on a custom page
Post by: IchBin on November 13, 2007, 03:59:40 PM
A quick search will of course always find the answer....

http://www.tinyportal.net/index.php?topic=13031.msg108852#msg108852
Title: Re: Hide panels when on a custom page
Post by: hebxi1 on November 14, 2007, 12:02:32 AM
oy ... thanks ... I really did search! Must have not used the right combo  :(
Title: Re: Hide panels when on a custom page
Post by: wilsy on December 25, 2007, 10:14:50 AM
Quote from: HEB XI 1 on November 13, 2007, 02:44:44 AM
I created a custom page by copying Memberlist ... basically does the same thing but lists different info that's pulled from Custom Profile Fields.  It's called with action=gslist, but that's about as fancy as I get - I don't know how to link it up to the Who's Online stuff or anything.

What I want is to hide the panels when viewing this page, just like I do on the Memberlist.  I know that's an option when using articles, but I just couldn't get it to show correctly that way.

I think the simplest way of doing this would be to have my custom template check for the Memberlist TP settings ... can someone point me in the right direction for doing that?

Thanks a ton in advance!

Hi Heb,

Would you be willing to share this code?

Regards,

Wilsy.
Title: Re: Hide panels when on a custom page
Post by: Smoky on December 25, 2007, 12:35:12 PM
hey wilsy:


Quotehttp://www.tinyportal.net/index.php?topic=13031.msg108852#msg108852

all you had to do was look at the link. Merry Christmas  ;)
Title: Re: Hide panels when on a custom page
Post by: G6Cad on December 25, 2007, 06:09:15 PM
Smoky, i think wilsy meant the code the topicstarter used for his custom memebrs list. Not the answer posted by IchBin.
Title: Re: Hide panels when on a custom page
Post by: Smoky on December 25, 2007, 07:49:54 PM
Im sorry G6, but i thought he was asking Heb???  :-\ i must have gotten confused again..
Title: Re: Hide panels when on a custom page
Post by: wilsy on December 25, 2007, 09:46:21 PM
Quote from: G6 on December 25, 2007, 06:09:15 PM
Smoky, i think wilsy meant the code the topicstarter used for his custom memebrs list. Not the answer posted by IchBin.

Hi G6!

Yes, I was - Merry Xmas!

Quote from: Smoky on December 25, 2007, 07:49:54 PM
Im sorry G6, but i thought he was asking Heb???  :-\ i must have gotten confused again..

Hi Smoky,

Yes, I was. Heb is the topic starter - Merry Xmas!

Regards,

Wilsy.
Title: Re: Hide panels when on a custom page
Post by: hebxi1 on December 25, 2007, 10:18:47 PM
To be honest, I don't mind sharing, but I really can't tell ya how I got to the end result ... this was the fruit of a week long marathon run trying to get the code to show what I wanted, with the help of the guy who wrote the Custom Profiles Mod that I'm using.  Which, by the way, is not the officially recognized mod from SMF, but rather the one found here (http://wgnrs.dynalias.com/smf/customprofile.html).

I'm not sure if there's some kind of copyright issue with "redistributing" these files ... since I copied from the default template I don't think there is?  If I'm wrong, feel free to remove the attachment!  Otherwise enjoy, but please don't ask me for help - I really couldn't code my way out of a wet paper bag.

Edit: apparently it's not kosher to share the 2 files ... I don't have time to go thru and share all the edits I made, so - sorry - hope those who already got it enjoy it and good luck to those who are trying!
Title: Re: Hide panels when on a custom page
Post by: Dragooon on December 26, 2007, 02:57:57 AM
Since in the header, it is clearly stated this is copyright to SimpleMachines, you cannot re-distribute them.
Title: Re: Hide panels when on a custom page
Post by: hebxi1 on December 26, 2007, 03:11:06 AM
It's my understanding that if I use the default files as a basis for my own, then I am free to share them, especially if credit is given where due.  When using other people's files as a basis, I am required to get their permission before sharing.

Can we get an official TP/SMF clarification on this one?
Title: Re: Hide panels when on a custom page
Post by: Dragooon on December 26, 2007, 03:12:53 AM
You can re-distribute the template files AFIAK. But you can't re-distribute the Source files.
Title: Re: Hide panels when on a custom page
Post by: G6Cad on December 26, 2007, 06:51:29 AM
Dragooon is correct, you can share your code edits MADE to the file/s , but not the complete SMF package or any of the source files.