MadKad |
06-20-2006 05:42 PM |
OK great Mod I have installed and clicked :D, here are some things I would like to tell others just incase they hevent been said before,
I added the links to my User CP and my Quick Links list, to add your links to the Quick Links list just do as follows:
Open Template > navbar
Find:
Code:
$vbphrase[whos_online]</a></td></tr></if>
After Add:
Code:
<if condition="$show['createuserpagelink']"><tr><td class="vbmenu_option"><a href="userpage.php?$session[sessionurl]do=create">Create Your Userpage</a></td></tr></if>
<if condition="$show['edituserpagelink']"><tr><td class="vbmenu_option"><a href="userpage.php?$session[sessionurl]do=edit">Edit Your Userpage</a></td></tr></if>
And thats it you will add the links needed after the Who's Online.
Now for my other part the user page I found a Bug this is more for the great maker of this Mod, There was some code missing and it made errors with the rating section, Now I didnt fix it fully I just made it so the drop down box worked, but couldnt get the text "Rate this page" on where it should be. Here is my code:
HTML Code:
$stylevar[htmldoctype]
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td class="tcat" width="25%">Views: $pageviews</td><td class="tcat" width="50%" align="middle">
<a href="private.php?do=newpm&u=$userinfo[userid]">Send a Private Message to $userinfo[username]</a>
</td>
<if condition="$canrate">
<td class="tcat" id="rate" nowrap="nowrap" width="25%" align="right"><a href="#rate">$vbphrase[rate_userpage]</a>
<script type="text/javascript"> vbmenu_register("rate"); </script>
</td>
<else />
<td class="tcat" nowrap="nowrap" width="25%">
<img src="$stylevar[imgdir_rating]/rating_$rating.gif" border="0">
</td>
</if>
</tr>
</table>
<if condition="$show['popups']">
<div class="vbmenu_popup" id="rate_menu" style="display:none">
<form action="userpage.php" method="post">
<input type="hidden" name="do" value="rate">
<input type="hidden" name="userid" value="$userinfo[userid]">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[rate_userpage]<a name="goto_threadrating"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="rating" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="rating" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="rating" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="rating" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="rating" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
</table>
</form>
</div>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="50%" align="left">
<if condition="$showmodlink">
<a href="userpage.php?do=killpage&ownerid=$userinfo[userid]">Delete This Page</a> <a href="userpage.php?do=edit&userid=$userinfo[userid]">Edit This Page</a><else /> </if>
</td>
<td class="alt2" width="50%" align="right">
<a href="userpage.php?do=report&userid=$userinfo[userid]">Report This Page</a>
</td>
</tr>
<tr><td class="alt1" width="100%" colspan="2">
$pagedata
</td>
</tr>
</table>
$shouthtml
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td align="left" class="tcat">$lastupdate</td>
<td align="right" class="tcat">
<if condition="$showeditlink"><a href="userpage.php?do=edit">Edit Your Page</a><else /><if condition="$showcreatelink"><a href="userpage.php?do=create">Create Your Page</a></if></if>
<if condition="$showmodlink"> <a href="userpage.php?do=moderate&userid=$userid">Moderate This Page</a></if>
</td></tr>
<tr><td width="100%" colspan="2" class="alt1" align="center"><span class="smallfont">Powered by <strong>Custom Userpages</strong> by <strong> <a href="http://www.eaforums.com/forums/">Amy Anuszewski</a><strong></span></td></tr>
</table>
I cant remember fully what I changed lol it was yesterday and thats a long time ago for me, these are all in the userpage template, if anyone is having problems copy and paste that code if you like :)
One more thing, on the userpage_edit template I changed that around a little so that I could add some rules to the page to make it less empty and so my members do as there told :D this is the code and what I did on the userpage_edit template:
HTML Code:
$stylevar[htmldoctype]
<if condition="!is_browser('webtv')">
<form action="userpage.php?do=doedit" method="post" enctype="multipart/form-data" onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 0)">
</if>
<input type="hidden" name="userid" value="$userid">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1">
<strong>Page Content</strong> <br /> $messagearea
</td>
<!-- Mad Kad's addon -->
<td rowspan="2" class="alt2" width="400" valign="top">
<strong>Page Rules</strong><br />
Page rules type here
</td>
<!-- Mad Kad's addon -->
</tr>
<tr>
<td align="right" class="alt2">
<input type="submit" name="submit" value="Save" />
</td>
</tr>
</table>
</form>
I know that it meens you have to add text in your template but I like the idea of the rules where people can see them :) and I would love to also get a link next to the users posts when they have a userpage :banana:
|