Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2012, 09:01 AM
desi-boy's Avatar
desi-boy desi-boy is offline
 
Join Date: Nov 2008
Location: France
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default looking for registration widget ...

hello friend's

i need a registration widget for CMS..

Any Idea ..

Thnxxxx
Reply With Quote
  #2  
Old 12-17-2012, 09:36 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a modified version of the login box that I'm using in my site.

1.- Build a HTML block and add the code:
HTML Code:
<vb:if condition="$show['member']">
	<table align="right" cellspacing="0" cellpadding="0" border="0" style="font-size: 9pt;">
		<tr>
			<td colspan="2" style="padding-top:5px; text-align:center;">
				{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}
			</td>
		</tr>
		<vb:if condition="$notifications_total">
			<tr>
				<td colspan="2" style="padding-top:5px; text-align:center;">
					<a class="emailnotify" href="usercp.php{vb:raw session.sessionurl_q}">
					<font color="#003399"><b>{vb:raw notifications_total}</b></font></a>
				</td>
			</tr>
		</vb:if>
		<tr>
			<td width="50%" style="padding-top:5px; text-align:center;">
				<a href="usercp.php{vb:raw session.sessionurl_q}"><img border="0" src="images/usercp.png" alt=""></a>
			</td>
			<td width="50%" style="padding-top:5px; text-align:center;">
				<a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">
				<img border="0" src="images/logout.png" alt=""></a>
			</td>
		</tr>
	</table>
<vb:else />
	<form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
	<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
	<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
	<input type="hidden" name="do" value="login" />
	<input type="hidden" name="vb_login_md5password" />
	<input type="hidden" name="vb_login_md5password_utf" />
	<table cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td class="logincell">
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td><img border="0" src="images/username.png" alt=""></td>
						<td>
							<input type="text" class="logininput" name="vb_login_username" id="navbar_username" accesskey="u" tabindex="101" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="logincell">
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td><img border="0" src="images/password.png" alt=""></td>
						<td>							
							<input type="password" class="logininput" tabindex="102" name="vb_login_password" id="navbar_password" />
							<input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="logincell">
				<table align="center" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td>
							<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" />
						</td>
						<td width="2"><img border="0" src="images/spacer.png" width="5"></td>
						<td>
							<img border="0" src="images/remember.png" alt="">
						</td>							
						<td width="5"><img border="0" src="images/spacer.png" width="5"></td>							
						<td>
							<input type="image" tabindex="104" src="images/login.png" accesskey="s" />							
						</td>
						<vb:if condition="$show['registerbutton']">
							<td width="5"><img border="0" src="images/spacer.png" width="5"></td>
							<td>
								<a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">
								<img border="0" src="images/register.png"></a>
							</td>
						</vb:if>
					</tr>
				</table>
			</td>
		</tr>
	</table>	
	</form>
</vb:if>		
2.- Upload the attached icons to your images/ directory

3.- Open additional.css (even if I prefer to add them to vbulletin.css) and add:
HTML Code:
td.logincell {
	border: 1px solid #DDDDDD;
	padding: 2px;
}

input.logininput {
	border: 0;
        width: 60px;
}
a.emailnotify 
{
	display: block;
	background: #FFFFFF url(images/email.png);
	width: 26px;
        height:26px;
        text-align: center;
}
4.- Add the widget to your layout

Chris
Reply With Quote
  #3  
Old 12-17-2012, 11:55 AM
desi-boy's Avatar
desi-boy desi-boy is offline
 
Join Date: Nov 2008
Location: France
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnxxx Christ....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06946 seconds
  • Memory Usage 2,216KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete