TinyPortal

Development => Support => Topic started by: Cartis on October 15, 2009, 08:34:28 AM

Title: Adding blocks in action pages?
Post by: Cartis on October 15, 2009, 08:34:28 AM
Link to my site: http://www.goldenhillspelaren.se
SMF version: SMF ver. 1.1.8
TP version: TP ver. 1.0.6 beta 2
Theme name and version: mesh114
Mods installed: Treasury and SMF Gallery Lite
Related Error messages: There is something wrong in my code that shows an error in Internet Explorer, but that is not the main reason for this post. If you find it - let me know.


I want to add some of the TP blocks from the front page to action pages like /index.php?action=foretag (http://www.goldenhillspelaren.se/index.php?action=foretag)
And I really don't have a clue how to do this.

There must be an answer to this on the site, but I just can't find it.
Title: Re: Adding blocks in action pages?
Post by: Zetan on October 15, 2009, 10:36:48 AM
Hi Cartis. Each block does have the option of where to display it throughout your site.

Title: Re: Adding blocks in action pages?
Post by: Cartis on October 15, 2009, 11:20:36 AM
No. There is no such option. This is what I have in that area:
QuoteChoose where the block should appear.
Actions:
Display on all pages and sections

Frontpage
All Forum related sections
Board Index
Recent
Show unread
Unread replies
Profile
My Messages
Calendar
Admin
Login
Logout
Register
Post
Stats
Search
Memberlist

Boards:
Display on all boards

AIK Hockey
Allt möjligt
Silly season
Insamling
Golden Hill-spelaren
Christopher Heino-Lindberg
För ledningen
   
Articles:
AIK - Bofors 4 - 0 25/1 länkar
.....

Article categories:
Gammalt stöd
Stöd AIK
   
Languages:
english
swedish
I cannot find any custom actions.

Edit: Even if I mark "Display on all pages and sections" there are no blocks on the custom pages.
Title: Re: Adding blocks in action pages?
Post by: Renegd98 on October 15, 2009, 11:45:41 AM
Custom actions ( format: action1,action2)

Should be an area at the bottom of the Choose where the block should appear. [Show] [Hide]
Title: Re: Adding blocks in action pages?
Post by: G6Cad on October 15, 2009, 11:52:23 AM
He is using the old beta2 TP,

You need to update to beta4 to have these options
Title: Re: Adding blocks in action pages?
Post by: Cartis on October 15, 2009, 11:55:23 AM
OK. Thanks, G6.
Unfortunatly the update seems to be difficult as it shows that almost all files in the automatic installation failed. :(
Title: Re: Adding blocks in action pages?
Post by: Zetan on October 15, 2009, 06:05:55 PM
Ah.. sorry about that, I forgot that this was a more recent feature.

If you are getting many errors when trying to upgrade, you will need to manually upgrade the installation. There are Doc's on how to do this at the TP Doc's site:
http://docs.tinyportal.co.uk/index.php?action=forum

It may seem daunting at first, but if you take your time and follow the steps carefully, you shouldn't have any problems.

Make sure you are using the SMF default theme when upgrading.. also make sure you are following the correct documentation for the versions you have installed/upgrading to.

Title: Re: Adding blocks in action pages?
Post by: Cartis on October 15, 2009, 08:44:47 PM
Sorry if this is a totally different question, but which files are changed between:
TinyPortal v.1.0.6 beta 2
and
TinyPortal v.1.0 beta 4

Do I have to uninstall the old one, because there are already changes done to some files that seems to be the same in both versions?
If I uninstall the old one and install the new one, will my blocks disappear?
Title: Re: Adding blocks in action pages?
Post by: Renegd98 on October 15, 2009, 08:52:20 PM
There are many changes betwene the versions.  You best bet is to uninstall the old version ans attempt to install the new version thru the package manager.  if you are unable to do that then follow the instructiosn for a manual install provided by Zetan.

You will not lsoe the blocks you created as the data is kept in the database.
Title: Re: Adding blocks in action pages?
Post by: Cartis on October 16, 2009, 12:28:13 AM
Thanks for all the help. After a lot of work I now have upgraded and have the "Custom actions" field in the block edit pages.
But I still cannot get the blocks in the custom pages.

I want a block in page:
http://www.goldenhillspelaren.se/index.php?action=privatpersoner

so I just wrote: "privatpersoner" in the "custom actions" field in the block. What did I do wrong?
Title: Re: Adding blocks in action pages?
Post by: Zetan on October 16, 2009, 08:40:41 AM
It's not one I've used often, but try:

?action=privatpersoner

[Edit] I've been testing this a little, you have the format correct: privatpersoner,test1,test2

I've added a temporary Upper block in our test site Search page, "Test Actions":

http://www.tinyportal.net/index.php?action=search

Although this is an option from the Action list by default, I haven't selected the Search as a page to display the block, instead I have added it as a Custom action and it displays in the same place.

Have a look at the other settings for TP, there may be a conflicting issue somewhere, without looking myself.. it's hard to guess what.