Archive for howtodoit.myfastforum.org Walkthough guides for myfreeforum phpbb 2 forums
 


       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Symon

Latest Members List Portal

This guide will enable you to have a Latest Members Portal.


An example of a finished product can be see below.




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 MEMBERLIST then (if you do then IGNORE The Steps 1-5)

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

Now you see a screen like this





2.Add MEMBERLIST 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]

cms_memberlist.tpl

Now copy this code into that file

Code:
<form method="post" action="{S_MEMBERLIST_MODE_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
   
     <td align="right" nowrap="nowrap"><span class="genmed">{S_MEMBERLIST_HIDDEN}{L_SELECT_SORT_METHOD}:&nbsp;{S_MEMBERLIST_MODE_SELECT}&nbsp;&nbsp;{L_ORDER}&nbsp;{S_MEMBERLIST_ORDER_SELECT}&nbsp;&nbsp;
      <input type="submit" name="submit" value="{L_SUBMIT}" class="liteoption" />
      </span></td>
   </tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <th height="25" class="thCornerL" nowrap="nowrap">#</th>
     <th class="thTop" nowrap="nowrap">&nbsp;</th>
     <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
     <th class="thTop" nowrap="nowrap">{L_EMAIL}</th>
     <th class="thTop" nowrap="nowrap">Karma</th>
     <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
     <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
     <th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
   </tr>
   <!-- BEGIN memberlist -->
   <tr>
     <td class="{memberlist.ROW_CLASS}" align="center"><span class="gen">&nbsp;{memberlist.ROW_NUMBER}&nbsp;</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center">&nbsp;{memberlist.PM_IMG}&nbsp;</td>
     <td class="{memberlist.ROW_CLASS}" align="center"><span class="gen"><a href="{memberlist.U_VIEWPROFILE}" class="gen">{memberlist.USERNAME}</a></span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberlist.EMAIL_IMG}&nbsp;</td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberlist.KARMA}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberlist.JOINED}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberlist.POSTS}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center">&nbsp;{memberlist.WWW_IMG}&nbsp;</td>
   </tr>
   <!-- END memberlist -->
   <tr>
     <td class="catBottom" colspan="8" height="28">&nbsp;</td>
   </tr>
  </table>
  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="right" valign="top"></td>
   </tr>
  </table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr>
   <td><span class="nav">{MEMBER_LIST_PAGE_NUMBER}</span></td>
   <td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{MEMBERLIST_PAGINATION}</span></td>
  </tr>
</table></form>



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

Click on MEMBERLIST

You will now see this screen.




You now need to Copy this portal and rename it. to do this follow the guide below

1.In Name put LATESTMEMBERLIST

2. In Title put Latest Members

3. In Profile field put user_regdate


4. Fill out the rest how you wish

When you have finished it may look like this



Now click on Create New Portal


You should now have set this up correctly.

Now Where To Add It

Most likely you would add this to cms_index_body.tpl


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


cms_index.tpl


And place this code where you want it to appear.

Code:

{MYFF.LATESTMEMBERLIST}


So it may look like this




Code:
<tr>
        <td colspan="1" width="150" height="25" class="topictitle" nowrap="nowrap">{MYFF.LATESTMEMBERLIST}</td>
     </tr>

   <tr>
        <td colspan="1" width="150" height="25" class="topictitle" nowrap="nowrap">{MYFF.ANNOUNCE show_results="topics"}</td>
     </tr>


You can even set it up to appear on a special web page like below.

http://funnyworld.myfreeforum.org/latestmemberlist.html

And that is the basic guide finished.



The following guide is for those that wish to add more than one portal or wish to enhance it, or place in a webpage.



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

Click on LATESTMEMBERLIST

Ok now change the name from LATESTMEMBERLIST to LATESTMEMBERLIST1

And then click on Create New Portal

Now change the settings to your new portal following the steps above eg change name from Latest Members to Newer members.

Repeat the steps above for how many new portals you want.

To place them on your site use the following code

Code:
{LATESTMEMBERLIST1} {LATESTMEMBERLIST2}
each new portal change the number by 1 and then change the code by 1

To place in a webpage is very simple

1. Goto admin panel -- 6. Web Pages -- Edit Web Pages



Now click on Web Page in the top left hand corner

Enter the details if you are not sure what to put then please read

http://howtodoit.myfreeforum.org/...component=content&topicid=651

Now click on source

And enter

Code:
{MYFF.LATESTMEMBERLIST}


Save Page


Ok all that done you should have a basic Latest members portal so how do you add or take away things.

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]

cms_latestmemberlist.tpl


You will see a code like below , advanced users will be able to take out or add other machos in to suit their needs


Code:
<form method="post" action="{S_MEMBERLIST_MODE_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
   
     <td align="right" nowrap="nowrap"><span class="genmed">{S_MEMBERLIST_HIDDEN}{L_SELECT_SORT_METHOD}:&nbsp;{S_MEMBERLIST_MODE_SELECT}&nbsp;&nbsp;{L_ORDER}&nbsp;{S_MEMBERLIST_ORDER_SELECT}&nbsp;&nbsp;
      <input type="submit" name="submit" value="{L_SUBMIT}" class="liteoption" />
      </span></td>
   </tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <th height="25" class="thCornerL" nowrap="nowrap">#</th>
     <th class="thTop" nowrap="nowrap">&nbsp;</th>
     <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
     <th class="thTop" nowrap="nowrap">{L_EMAIL}</th>
     <th class="thTop" nowrap="nowrap">Karma</th>
     <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
     <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
     <th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
   </tr>
   <!-- BEGIN memberlist -->
   <tr>
     <td class="{memberlist.ROW_CLASS}" align="center"><span class="gen">&nbsp;{memberlist.ROW_NUMBER}&nbsp;</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center">&nbsp;{memberlist.PM_IMG}&nbsp;</td>
     <td class="{memberlist.ROW_CLASS}" align="center"><span class="gen"><a href="{memberlist.U_VIEWPROFILE}" class="gen">{memberlist.USERNAME}</a></span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberlist.EMAIL_IMG}&nbsp;</td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberlist.KARMA}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberlist.JOINED}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberlist.POSTS}</span></td>
     <td class="{memberlist.ROW_CLASS}" align="center">&nbsp;{memberlist.WWW_IMG}&nbsp;</td>
   </tr>
   <!-- END memberlist -->
   <tr>
     <td class="catBottom" colspan="8" height="28">&nbsp;</td>
   </tr>
  </table>
  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="right" valign="top"></td>
   </tr>
  </table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr>
   <td><span class="nav">{MEMBER_LIST_PAGE_NUMBER}</span></td>
   <td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{MEMBERLIST_PAGINATION}</span></td>
  </tr>
</table></form>


It is important to remember that if you remove anything form the title line you must remove it form the data line and the same if you add a new field you must add a title and then add the data.Examples are below The data should always be found under [/code]begin memberlist[/code]

Title

Code:
 <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>


Data

Code:
   <td class="{memberlist.ROW_CLASS}" align="center"><span class="gen"><a href="{memberlist.U_VIEWPROFILE}" class="gen">{memberlist.USERNAME}</a></span></td>




Title
Code:
  <th class="thTop" nowrap="nowrap">Karma</th>


Data

Code:
<td class="{memberlist.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberlist.KARMA}</span></td>


You can of course change where you wish each field to be, by placing the codes after each section, but remember they must match.

It is no good placing the first code which controls the title say before
Code:
<th class="thTop" nowrap="nowrap">{L_EMAIL}</th>
, and then placing the second code that controls the Data after
Code:
 <td class="{memberlist.ROW_CLASS}" align="center">&nbsp;{memberlist.WWW_IMG}&nbsp;</td>
.

An example of an enhanced code is like this

http://funnyworld.myfreeforum.org/latestmemberlist1.html


And that Is HOWTODOIT

       howtodoit.myfastforum.org Forum Index -> Portal Hacks
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum