Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Widget - Welcome User Log In/ Change To Paypal - Donations Details »»
Widget - Welcome User Log In/ Change To Paypal - Donations
Version: 1.02, by TOGUIMASTER TOGUIMASTER is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.x Rating:
Released: 01-27-2010 Last Update: 01-30-2010 Installs: 92
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

2 Widget in 1

This Widget contains the option to register and log in on the page and after the log in it gives you the option of PayPal Donations.



How To Install
  1. Download the attached zip file, extract it.
  2. Upload it's contents to your forum root.

Create New Widget
  1. ADMIN CP > vBulletin CMS > Widgets > Create New Widget
  2. Widget Type: Static HTML
  3. Title: Welcome
  4. Description: Widget for Welcome User and PayPal Donations.

Configure your Widget
  • Enter the Template Name - vbcms_widget_welcome_user

Create a New Template
  • Admin CP > Styles & Templates > Style Manager > Add New Template
    • Title - vbcms_widget_welcome_user
    • Enter Template Code
HTML Code:
<div class="cms_widget">
	<div class="block">
		<div class="cms_widget_header">
		<h3><img title="{vb:raw widget_title}" src="images/cms/widget-login.png" alt="" /> {vb:raw widget_title} {vb:raw bbuserinfo.musername}</h3>
		</div>
		<div class="cms_widget_content" align="center">
		<vb:if condition="$show['member']">
			<ul class="isuser">
<div align="center">If you like our website and want to give something back, you can make a donation. All donations are Welcome.
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
  <div>
 <input type="hidden" name="cmd" value="_xclick" />
 <input type="hidden" name="business" value="XXXXX@PaypalEmail.com" />
  <input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="currency_code" value="USD" />
  <input type="hidden" name="tax" value="0" />$ 
  <select name="amount">
    <option value="5.00">5.00</option>
    <option value="10.00">10.00</option>
    <option value="15.00">15.00</option>
    <option value="20.00">20.00</option>
    <option value="25.00">25.00</option>
  </select>
  </div>
<br />
Select a preferred amount of the donation, and then click the donate button.
<br /><br />
<fieldset>
<input type="image" src="images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />
</fieldset>
   </form>
</div>
<li><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}')">{vb:rawphrase log_out}</a></li>
</ul>
<vb:else />
<ul class="nouser">
	<li>
	<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<form 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})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
If this is your first visit, and you are not registered already, please click the register link below to proceed.
<a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a>
<br /><br />
<input type="text" class="textbox default-value" name="vb_login_username" id="navbar_username" size="24" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" onfocus="if (this.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; this.style.color='#828282';}"/>
<br /><br />
<input type="password" class="textbox default-value" tabindex="102" name="vb_login_password" id="navbar_password" size="24" onfocus="this.style.color='black';" /><p></br>
						</div>
					</div>
				</fieldset>
				<div id="remember" class="remember">
					<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label></div>
<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
				<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" />
			</form>	
		</li>
			</ul>
		</vb:if>
						</div>
					</div>
</div>
[high]Attention: Change [s]XXXXX@PaypalEmail.com[/s] and [s]www.YourSiteHere.com[/s] in the Template Code[/high]

Add Widget to a Page
  • ADMIN CP > vBulletin CMS > Layout manager > Edit
    • Insert the Welcome widget and place it in the right or left



Don't forget to mark as Installed.



Last Update:

Fix: Error widget on top of others

Update: Username HTML Markup in the Welcome "Thanks this for steve1966"

Download Now

File Type: zip Widget - Welcome User Paypal - Donations.zip (19.7 KB, 578 views)

Screenshots

File Type: png demo1.png (65.9 KB, 0 views)
File Type: png demo2.png (99.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 06-23-2010, 12:21 PM
mickknutson's Avatar
mickknutson mickknutson is offline
 
Join Date: Jan 2004
Location: Tahoe City California
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed the directions, and have no content in my widget, but have changed the template name as described.

I am using VB 4.0.4
Reply With Quote
  #33  
Old 07-13-2010, 01:32 PM
WeMovie.co.uk WeMovie.co.uk is offline
 
Join Date: Mar 2010
Location: UK
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ Same.

Removing for now.
Reply With Quote
  #34  
Old 07-17-2010, 11:10 AM
Tenth Doctor's Avatar
Tenth Doctor Tenth Doctor is offline
 
Join Date: Oct 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working in vb 4.0.4. when is it going to be updated to work on 4.0.4/5
Reply With Quote
  #35  
Old 08-04-2010, 11:30 PM
surfer2124 surfer2124 is offline
 
Join Date: Sep 2009
Location: NJ
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mickknutson View Post
I followed the directions, and have no content in my widget, but have changed the template name as described.

I am using VB 4.0.4
+1 on this as well. I had this working on 4.03 and now there is nothing in 4.05. Uninstalling untill it's updated
Reply With Quote
  #36  
Old 08-09-2010, 05:21 AM
eantunes eantunes is offline
 
Join Date: Aug 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why does the widget only works on the sidebars. I want it in the main part of the window, but it doesn't work. Can anyone help me please?

I can place it there but the login doesn't work
Reply With Quote
  #37  
Old 08-16-2010, 05:28 AM
utahraves's Avatar
utahraves utahraves is offline
 
Join Date: May 2007
Location: Utah
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working on 4.0.6
Reply With Quote
  #38  
Old 08-19-2010, 07:18 AM
intensecool intensecool is offline
 
Join Date: Feb 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to place this on a non vbulletin page.. Any help..!!
Reply With Quote
  #39  
Old 09-27-2010, 04:19 PM
Goonie's Avatar
Goonie Goonie is offline
 
Join Date: Jul 2010
Location: UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your instructions you don't say that the html code needs to go into the widgets html section? I followed your instructions and the widget didn't appear. Then I put the code into the widget and it now works.
Was I supposed to create a new template in my style or is this a mistake???
Reply With Quote
  #40  
Old 09-29-2010, 01:55 PM
goowa goowa is offline
 
Join Date: Feb 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure why, but I was having same problem in 4.0.7
Made template, but didn't show up.
On a whim, I tried Goonie's suggestions of also copying template html into widget html section and now it works.
Don't know if this is the way its supposed to be done or not.
Reply With Quote
  #41  
Old 10-06-2010, 09:27 AM
R4Z0R49 R4Z0R49 is offline
 
Join Date: Oct 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update for 4.0.7

How To Install

1. Download the attached zip file, extract it.
2. Upload it's contents to your forum root.


Create New Widget

1. ADMIN CP > vBulletin CMS > Widgets > Create New Widget
2. Widget Type: PHP Direct Execution
3. Title: Welcome
4. Description: Widget for Welcome User and PayPal Donations.


Configure your Widget

* Enter the Template Name - vbcms_widget_welcome_user


Create a New Template

* Admin CP > Styles & Templates > Style Manager > Add New Template
o Title - vbcms_widget_welcome_user
o Enter Template Code

Code:
<div class="cms_widget">
	<div class="block">
		<div class="cms_widget_header">
		<h3><img title="{vb:raw widget_title}" src="images/cms/widget-login.png" alt="" /> {vb:raw widget_title} {vb:raw bbuserinfo.musername}</h3>
		</div>
		<div class="cms_widget_content" align="center">
		<vb:if condition="$show['member']">
			<ul class="isuser">
<div align="center">If you like our website and want to give something back, you can make a donation. All donations are Welcome.
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
  <div>
 <input type="hidden" name="cmd" value="_xclick" />
 <input type="hidden" name="business" value="XXXXX@PaypalEmail.com" />
  <input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="currency_code" value="USD" />
  <input type="hidden" name="tax" value="0" />$ 
  <select name="amount">
    <option value="5.00">5.00</option>
    <option value="10.00">10.00</option>
    <option value="15.00">15.00</option>
    <option value="20.00">20.00</option>
    <option value="25.00">25.00</option>
  </select>
  </div>
<br />
Select a preferred amount of the donation, and then click the donate button.
<br /><br />
<fieldset>
<input type="image" src="images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />
</fieldset>
   </form>
</div>
<li><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}')">{vb:rawphrase log_out}</a></li>
</ul>
<vb:else />
<ul class="nouser">
	<li>
	<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<form 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})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
If this is your first visit, and you are not registered already, please click the register link below to proceed.
<a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a>
<br /><br />
<input type="text" class="textbox default-value" name="vb_login_username" id="navbar_username" size="24" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" onfocus="if (this.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; this.style.color='#828282';}"/>
<br /><br />
<input type="password" class="textbox default-value" tabindex="102" name="vb_login_password" id="navbar_password" size="24" onfocus="this.style.color='black';" /><p></br>
						</div>
					</div>
				</fieldset>
				<div id="remember" class="remember">
					<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label></div>
<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
				<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" />
			</form>	
		</li>
			</ul>
		</vb:if>
						</div>
					</div>
</div>
Attention: Change XXXXX@PaypalEmail.com and www.YourSiteHere.com in the Template Code

Add Widget to a Page

* ADMIN CP > vBulletin CMS > Layout manager > Edit
o Insert the Welcome widget and place it in the right or left


Just swaped the widget type from Static HTML to PHP Direct Execution
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 10:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05150 seconds
  • Memory Usage 2,373KB
  • Queries Executed 27 (?)
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)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete