View Single Post
  #1100  
Old 06-20-2006, 05:42 PM
MadKad's Avatar
MadKad MadKad is offline
 
Join Date: Mar 2006
Location: UK
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK great Mod I have installed and clicked , 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>&nbsp;<a href="userpage.php?do=edit&userid=$userinfo[userid]">Edit This Page</a><else />&nbsp;</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">&nbsp;&nbsp;<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 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:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01135 seconds
  • Memory Usage 1,842KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete