Advertisement:

Author Topic: TinyPortal  (Read 714385 times)

bloc

  • Guest
Re: TinyPortal
« Reply #20 on: February 12, 2005, 01:15:12 PM »
Also, in some places, this menu "block" (sorry, I dont know how to call it) gets BIG...... can I stop set it a size so it wont get bigger in some lare thread and other places



(sorry for my english)

Look in the TPadmin section - general settings. there you can set the width of both the left "blocks" bar, and the right. Experiment with whats is best.

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,938
  • Gender: Male
Re: TinyPortal
« Reply #21 on: February 12, 2005, 01:26:35 PM »
To be fair to Bloc the portal is Beta and it tells you clearly to make sure you have backup copies of your sources etc.

Backup is your friend!  ;)

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: TinyPortal
« Reply #22 on: February 12, 2005, 01:39:18 PM »
Bloc, the portal is great. I just installed it on my forum.  :)

Nice work. I really like it.  ;)
Dev Consultant
Former SMF Doc Coordinator

Offline maufonseca

  • Jr. Member
  • **
  • Posts: 197
  • "I have fury!!" ~ Fawful
Re: TinyPortal
« Reply #23 on: February 12, 2005, 01:45:49 PM »
But I think what I have to change is the height...... the widht is ok

bloc

  • Guest
Re: TinyPortal
« Reply #24 on: February 12, 2005, 03:35:58 PM »
I see. Hm, I may have to see your index.template.php file to answer that...in the default theme , is it same problem there? Or just in the custom one(s)?

bloc

  • Guest
Re: TinyPortal
« Reply #25 on: February 12, 2005, 03:39:19 PM »
For those who can't get the shoutbox to work..this is what you need to change - it was a line that was forgotten on my part:

- Open up index.php in the root folder of the forum and find:

               
Code: [Select]
                'tpadmin' => array('TPortalAdmin.php', 'TPortalAdmin'),
                'forum' => array('BoardIndex.php', 'BoardIndex'),

..then add this line right under those:
Code: [Select]

                'tpmod' => array('TPmodules.php', 'TPmodules'),

Offline maufonseca

  • Jr. Member
  • **
  • Posts: 197
  • "I have fury!!" ~ Fawful
Re: TinyPortal
« Reply #26 on: February 12, 2005, 04:35:52 PM »
Yeah, it looks good in the default them, because the default theme dont have that background under the blocks


ohh, and thanks for the shoutbox modifications :D

Offline SOTG Marine

  • Semi-Newbie
  • *
  • Posts: 11
Re: TinyPortal
« Reply #27 on: February 12, 2005, 06:34:10 PM »
I'm sorry, maybe I'm not understanding this mod, ... how do I modify what appears on the front page?


I just get this:

                                                                                                            Pages:
There are no articles in this section yet.


Can anyone help?

Offline maufonseca

  • Jr. Member
  • **
  • Posts: 197
  • "I have fury!!" ~ Fawful
Re: TinyPortal
« Reply #28 on: February 12, 2005, 06:40:39 PM »
go to TP Admin and you can chose what do you want to see in the homepage

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: TinyPortal
« Reply #29 on: February 12, 2005, 06:43:10 PM »
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.

Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #30 on: February 12, 2005, 06:47:11 PM »
Great work, Bloc. As a mod writer, I took a look at your code and have some suggestions:

  • The id and version in package-info.xml and tinyportal.mod don't match, they should.
  • The id in package-info.xml should not include the version number.
  • The uninstall is not complete. You should remove the files you added when installing, also reverse the mod actions. Examples:
Code: [Select]
<remove-file name="$themedir/images/divider.gif" />
<modification format="boardmod" type="file" reverse="true">tinyportal.mod</modification>
[li]Replacing files like you do with index.php, Load.php and index.template.php, will make many other mods not work anymore. Use the script in code only for what you can't do with the mod file, like db stuff. If you want the mod to do advanced things, the XML format, rather than the Boardmod one, may cover your needs. Try to make your mod as compatible with others as possible.[/li]
[li]Leave file extensions .php, .bak will show the content of the file in most servers.[/li]
[li]Why do you use the mod file to change the files you just put with tp_install.php?[/li]
[li]For indentation use tabs instead of spaces.[/li]
[li]The tpadmin.gif button doesn't look like the rest.[/li]
[/list]

I didn't go over the actual code, so I don't have much to comment on that. I hope you find these observations useful to help you improve your mod, which I think is a great way of using SMF. :)
« Last Edit: February 12, 2005, 07:08:08 PM by Anguz »
Cristián Lávaque http://cristianlavaque.com

bloc

  • Guest
Re: TinyPortal
« Reply #31 on: February 12, 2005, 07:03:59 PM »
Thank you, Anguz. There were many good points here, I will go through them and improve the mod as much as I can. I admit the package side of it isn't ..ideal. So any help is appreciated. :)

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #32 on: February 12, 2005, 07:06:28 PM »
Cool. ;)

Let me know when you post the updated mod so I take a look at it. :)
Cristián Lávaque http://cristianlavaque.com

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: TinyPortal
« Reply #33 on: February 12, 2005, 07:10:56 PM »
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.



I can't unistall, for these errors...
Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

bloc

  • Guest
Re: TinyPortal
« Reply #34 on: February 12, 2005, 07:26:57 PM »
Tiny Portal v0.2beta

Un-installing...

Warning: copy(tp-index.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 7
failed.
Warning: copy(tp-load.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 11
failed.
Warning: copy(tp-template.txt): failed to open stream: No such file or directory in /home/cmhip/public_html/foro/Packages/temp/tp_un_install.php on line 15
failed.Deleting tables....
All done.

TinyPortal is now un-installed.



I can't unistall, for these errors...

yes, I am sorry for that. Have you read what i wrote here ? http://www.simplemachines.org/community/index.php?topic=27642.msg213187#msg213187

bloc

  • Guest
Re: TinyPortal
« Reply #35 on: February 12, 2005, 07:32:53 PM »
Great work, Bloc. As a mod writer, I took a look at your code and have some suggestions:

  • The id and version in package-info.xml and tinyportal.mod don't match, they should.
  • The id in package-info.xml should not include the version number.
  • The uninstall is not complete. You should remove the files you added when installing, also reverse the mod actions. Examples:
Code: [Select]
<remove-file name="$themedir/images/divider.gif" />
<modification format="boardmod" type="file" reverse="true">tinyportal.mod</modification>
[li]Replacing files like you do with index.php, Load.php and index.template.php, will make many other mods not work anymore. Use the script in code only for what you can't do with the mod file, like db stuff. If you want the mod to do advanced things, the XML format, rather than the Boardmod one, may cover your needs. Try to make your mod as compatible with others as possible.[/li]
[li]Leave file extensions .php, .bak will show the content of the file in most servers.[/li]
[li]Why do you use the mod file to change the files you just put with tp_install.php?[/li]
[li]For indentation use tabs instead of spaces.[/li]
[li]The tpadmin.gif button doesn't look like the rest.[/li]
[/list]

I didn't go over the actual code, so I don't have much to comment on that. I hope you find these observations useful to help you improve your mod, which I think is a great way of using SMF. :)

I have corrected the things you suggested..but there was one thing I did not understand:

"Why do you use the mod file to change the files you just put with tp_install.php?"

What file(s) do you mean here..? I have removed the copy part of tp_install.php to just do mysql. Was it these files you were referring to?

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: TinyPortal
« Reply #36 on: February 12, 2005, 07:33:36 PM »
thanks, EXELLENT PORTAL bloc :P !!!!!!!!!
Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #37 on: February 12, 2005, 07:38:11 PM »
I have corrected the things you suggested..but there was one thing I did not understand:

"Why do you use the mod file to change the files you just put with tp_install.php?"

What file(s) do you mean here..? I have removed the copy part of tp_install.php to just do mysql. Was it these files you were referring to?

Yes. Actually I was saying that first you replaced the files and then modified them, but looking at it again, you were first modifying and the replacing them. Nevermind, I'll take a look at the new version and post in a moment what I find. :)
Cristián Lávaque http://cristianlavaque.com

bloc

  • Guest
Re: TinyPortal
« Reply #38 on: February 12, 2005, 07:40:23 PM »
uhm..there is no new version as of yet..I will correct some other things first.

But I will let you know of course. ;)

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: TinyPortal
« Reply #39 on: February 12, 2005, 07:43:06 PM »
Heh, you haven't uploaded the new file yet. Sorry, I thought you had already. I'll check back in a moment then. :)
Cristián Lávaque http://cristianlavaque.com