Loading...
 
Features / Usability

Features / Usability


Re: User signature + insert blog

posts: 4656 Japan

> 1) Is it possible for a user to insert his signature on a wikipage, just like in Wikipedia? I guess it is not (at the moment) but could you at least tell me which quicklink I should use? I guess, once I'll know the quicklink I'll be able to somehow modify the code and insert a "signature" button.

You could make a new Quicktag to insert a signature, but the same Quicktags are shared by all users, so it wouldn't be possible to give each author a unique signature this way (unless you have very few authors). I haven't made any Quicktags myself yet and don't know if there are any string length or character limitations, etc.

A wiki template could be used to paste in the signature, but this would get rather cumbersome if you have many page authors, and would interfere with any other template you might want to use for the page content itself.

The ideal solution would be to store a signature in the database for each user — entered in the user prefs page — and then insert it automatically or with a checkbox every time the user is editing a wiki page or blog or forum post. But this would require modifications to the database and all the files involved. Maybe you should submit a request at dev.tikiwiki.org.

> 2) I created a blog and I want it to appear on my homepage, but I do not want my homepage to contain only the blog: it already contains text boxes, a few modules... Is that possible? Do you see what I mean?

You could make such a page by modifying the tiki-view_blog.tpl file. Normally, everything in that file is what displays the content in the center column on a blog page. It fills up the center column completely, left to right, top to bottom. If you want your index page to display the blog and other content, then modify that file accordingly — i.e., put table tags into the file that place that code into a particular cell and your other content in other cells, or use divs instead, or whatever. Just be careful to work around the blog-display functions in that file, which has lines that display the blog information at the top and then loops through a section that displays the posts.

This file should then be renamed, to something like "tiki-view_blog_modified.tpl" and then "tiki-view_blog.php" needs to be modified to point to your new tpl file. At the bottom of the php file, replace the existing "tiki-view_blog.tpl" with the name of your new tpl file, and rename tiki_view-blog.php to index2.php or something and specify that as the new index page.

-- Gary

There are no comments at this time.