TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 196
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 168
  • Total: 168

TP Dummy Mod

Started by KapaBG, February 14, 2008, 01:31:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KapaBG

this is hacking work to add full features custom mod with good integration in TinyPortal.
goal: make empty stub or template for right way to inject custom module in TP.

for good coding style, mod must have standard and short name: TP Dummy Mod and dummy
template will be install as standard SMF module, but through validating version SMF and TinyPortal as minimum. have standard stub for readme, make own directory tp-dummy and one table in db {tp_prefix}dummy

template will be present as standard item in TinyPortal administration menu Dummy (at left) with three tabs Setting, Permissions, Suggestion, etc item in TinyPortal Modules tab

currently, template design make for SMF 1.1.4 and TP 0.9.3
DummyMod initial version is 0.9  ;)

Package Name: TP Dummy Mod
Package Version: 0.9 beta

Installation Instructions for SMF version: 1.1.4
Readme file: readme.txt
PHP script to execute: install.php
Modification file: modification.xml
Files Installed
  • TPdummy.php will be copied to $sourcedir
  • TPdummyAdmin.template.php will be copied to $themedir
  • TPdummyManager.template.php will be copied to $themedir
  • TPdummyAdmin.english.php will be copied to $themedir/languages
  • TPdummy.png will be copied to $imagesdir
  • package-info.xml will be copied to $boarddir/tp-dummy
Directories Installed
  • tp-dummy will be copied to $boarddir

Uninstallation Instructions
  • PHP script to execute: uninstall.php
  • Modification file: modification.xml
Directories deleted
  • $boarddir/tp-dummy will be deleted
Files deleted
  • $sourcedir/TPdummy.php will be deleted
  • $themedir/TPdummyAdmin.template.php will be deleted
  • $themedir/TPdummyManager.template.php will be deleted
  • $themedir/languages/TPdummyAdmin.english.php will be deleted
  • $imagesdir/TPdummy.png will be deleted


Note: it is my eight msg ;D

Smoky

very nice Grand Duke!!  :D im sure you will have a few (if not a lot) of people that will play with this.. thanks!!  ;)

Dragooon

1.......In TP 1, None of SMF/TP file modifying will be required if you use its module manager
2.......It is not necessary to HAVE a uninstall.php file
3.......Neither it is to modify Profile.php
4.......You forgot /Themes/default/languages/TPdummy.english.php
5.......It is not necessary to have a Image file.
6.......Whats the purpose of tp-dummy folder?

KapaBG

#3
1.......well, todo in ver.1.0 too
2.......uninstall.php for clear all steps of Dummy :) but may be uninstall move to install
3.......Profile.php - TP have own settings for user
4.......TPdummy.english.php and russian :) + utf8
5.......Image file for right place to other featured modules. will be using in copyright tab for example
6.......tp-dummy folder for right place and right permission

comments welcome! and code or attach

Dragooon

2........Uninstall.php is not always necessary, since sometimes people uninstall for upgrading or just cleaning.
3........It depends on what kind of Module you are making, not that it will be always required
4........What!! What about other languages :p
5........Well, It depends as you said, same with 6.

KapaBG

#5
3.......need explore all TP with 3d: portal, module, user measures  O0

readme.txt showing before installation
TP DummyMod v0.9beta for SMF 1.1.4 and TinyPortal v0.983
..............................................................................

This is empty stub, right example, mod template for integration in TinyPortal.
Once installed, visit the admin panel under TinyPortal.
There you will find a link for Dummy and own item in Modules tab.

Visit for more information to
http://www.tinyportal.net/index.php?topic=22008.0

..............................................................................
TP Rocks!!! Yeah!!!

G6Cad

One not from your code.
I dont think it's appropiate for you to use this sites name as author for your code.
I rather see your own name and site as it's you that make this code and not this community.

We stand for our stuff and you for your stuff.

KapaBG

#7
G6, right. but author not want a make private support :) removed

Dragooon

Now that you know the in and out, why not make a good Module out of it?

Zetan

Quote from: Grand Duke on February 15, 2008, 07:48:26 AM
i'm genius :)

Oh purlease... Galileo never even called himself that  :buck2:

This website is proudly hosted on Crocweb Cloud Website Hosting.