News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TinyPortal

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

Previous topic - Next topic

bloc

Quote from: maufonseca on February 12, 2005, 01:09:53 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.

redone

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!  ;)

codenaught

Bloc, the portal is great. I just installed it on my forum.  :)

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

maufonseca

But I think what I have to change is the height...... the widht is ok

bloc

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

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:

               
                'tpadmin' => array('TPortalAdmin.php', 'TPortalAdmin'),
                'forum' => array('BoardIndex.php', 'BoardIndex'),


..then add this line right under those:


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

maufonseca

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

SOTG Marine

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?

maufonseca

go to TP Admin and you can chose what do you want to see in the homepage

[darksteel]

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

Anguz

#30
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:

<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. :)
Cristián Lávaque http://cristianlavaque.com

bloc

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. :)

Anguz

Cool. ;)

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

[darksteel]

Quote from: [darksteel] 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.



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

Quote from: [darksteel] on February 12, 2005, 07:10:56 PM
Quote from: [darksteel] 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.



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

Quote from: Anguz 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:

<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?

[darksteel]

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

Anguz

Quote from: Bloc on February 12, 2005, 07:32:53 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

uhm..there is no new version as of yet..I will correct some other things first.

But I will let you know of course. ;)

Anguz

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

Advertisement: