Archive for Walkthough guides for myfreeforum phpbb 2 forums
  Forum Index -> Portal Hacks

[STICKY] Component

Please remember to use the Editor account before making any template changes

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT

Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings

You will now see a screen that looks like this

If you do not already see a portal named FLASH then (if you do then goto Step 6)

1.Click on the Blank box icon that looks like this

Now you see a screen like this

2.Add STICKY to the name

3.And then what you want in the Title.

4. Click Create New Portal

5. Now goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the bottom in the area marked Choose Portal template File to Edit use the drop down bar and find[/b]


And add the following code

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline" align="center">
<!-- BEGIN switch_sticky_title -->
   <th colspan="1" width="150" height="25" class="thTop" nowrap="nowrap">{L_COMPONENT_STICKY}</th>
<!-- END switch_sticky_title -->

<!-- BEGIN topics_sticky -->
   <td class="row1" colspan="1" height="28"><span class="topictitle"><a href="{topics_sticky.U_LINK}">{topics_sticky.TOPIC_TITLE}</a></span></td>
<!-- END topics_sticky -->
<!-- BEGIN posts_sticky -->
   <td class="row1" colspan="1" height="28"><span class="topictitle"><a href="{posts_sticky.U_LINK}">{posts_sticky.TOPIC_TITLE}</a></span></td>
   <td valign="top" ><span class="postbody">{posts_sticky.MESSAGE}</span></td>
<!-- END posts_sticky -->


6.You Can Change The bit below in bold in admin panel --- 3. Styles --- Portal Settings --- STICKY

Search type takes a comma separated lists of post types.

0 - normal
1 - sticky
2 - announce
3 - global announce
4 - unused
5 - top
6 - archive

link controls whether links short be to forum or portal pages.


will link to forum pages.

Now you have done that you have to add something like

{MYFF.STICKY show_results="topic" link="FORUM"}

Into cms_index_body.tpl or where ever you wish it to appear Forum Index -> Portal Hacks
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum