vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget - Welcome User Log In/ Change To Paypal - Donations (https://vborg.vbsupport.ru/showthread.php?t=234353)

TOGUIMASTER 01-27-2010 10:00 PM

Widget - Welcome User Log In/ Change To Paypal - Donations
 
1 Attachment(s)
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.

http://img199.imageshack.us/img199/3945/demo1m.png http://img195.imageshack.us/img195/9410/demo2p.png

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

http://img195.imageshack.us/i/demo2w.png/ http://img199.imageshack.us/i/demo1m.png/

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"

Hornstar 01-28-2010 07:10 AM

Thanks, I like both of these, tagged for when I update.

TOGUIMASTER 01-28-2010 01:13 PM

This Widget is a two in one

ibeteck 01-28-2010 02:00 PM

For some strange reason if I add this widget on top of others. The other widgets go inside this one is there any way to fix this?

TOGUIMASTER 01-28-2010 02:21 PM

Quote:

Originally Posted by ibeteck (Post 1968961)
For some strange reason if I add this widget on top of others. The other widgets go inside this one is there any way to fix this?

sorry for this plz add this code in the latest down in the template vbcms_widget_welcome
HTML Code:

                                                </div>
                                        </div>
</div>


Charlie98902 01-28-2010 03:25 PM

So does a user need to log into the wiget or can they log in normally with the default login? If they login normally can they still see screen shot #2?

steve1966 01-28-2010 08:05 PM

Hi TOGUIMASTER I hope you dont mind me adding this to your good modification if so I will remove

Anyone wishing to have Username HTML Markup with this just change the above HTML Code: I take no credit

Code:

FIND:

{vb:raw bbuserinfo.username}

REPLACE with:

{vb:raw bbuserinfo.musername}


Eq4bits 01-28-2010 10:07 PM

Installed... sort of
since I've put it on a page only a particular usergroup can view, and the member has to be logged in already of course, I took out the log-in part and just have the donate stuff in the widget.

MattZ DSLR 01-29-2010 08:58 PM

Very Nice
This one is the best donation for VB4
well done

princeedward 01-30-2010 10:00 AM

nice one...can we have or make this work as forum side block? ;)

Charlie98902 01-30-2010 11:46 AM

Quote:

Originally Posted by princeedward (Post 1970361)
nice one...can we have or make this work as forum side block? ;)

You could try to use the same code and do it. Might have to change the template cache though.

steve1966 01-31-2010 02:19 PM

Thanks for the update

TOGUIMASTER 01-31-2010 02:19 PM

this Widget is Update

Charlie98902 01-31-2010 02:48 PM

Quote:

Originally Posted by Charlie98902 (Post 1969047)
So does a user need to log into the wiget or can they log in normally with the default login? If they login normally can they still see screen shot #2?

Still waiting on an answer here.

TOGUIMASTER 01-31-2010 05:58 PM

Quote:

Originally Posted by Charlie98902 (Post 1971318)
Still waiting on an answer here.

Iinitiate secion everyone can normally be at the top of the header or thtough the widget to the user login and be able to see the option of donation

messengermatt 02-02-2010 03:45 PM

Would love to see this one working on the forum widget blocks too i tried it myself but i dont know enough to make it worj :-(

princeedward 02-03-2010 02:57 PM

Quote:

Originally Posted by princeedward (Post 1970361)
nice one...can we have or make this work as forum side block? ;)

BUMP! PLEASE!:p

mfbmike 02-04-2010 07:49 PM

Installed on my website.

www.digitalsportscene.com

Works great. Thanks. Marked as installed. :)

TOGUIMASTER 02-06-2010 06:16 PM

Widget - Welcome User Log In/ Change To Paypal - Donations

RedHacker 02-06-2010 06:35 PM

Please can give me the widget without donations...?

cykelmyggen 02-06-2010 06:48 PM

Quote:

Originally Posted by RedHacker (Post 1976175)
Please can give me the widget without donations...?

I second that

Jamieinnh 02-07-2010 03:20 AM

Thanks for a Great mod! Now I can fix my header to not include the log in area!!

I did remove the paypal information and will be putting my member's PM box there when they are logged in, that along with their avatar and any other member information.

For the guys asking to remove the Paypal Donation part.. Just edit the template and remove the part of the template that calls the donation... then put in whatever you want there after the user has logged in successfully. Easy to change.

Thanks again for a great useful widget!

sixdemons 02-07-2010 05:35 AM

does anybody know how to convert this widget into a forum sideblock ?

mattcaswell 02-07-2010 01:43 PM

Okay.. so I want to add this, but nowhere in my V4.0 does it allow me to follow this path:

Admin CP -> Styles and Templates -> CREATE NEW TEMPLATE

I have create new style...

Am I supposed to add a new template to each style that I want to have this mod?

So I added the code to the Widget in configure widget, but I can't see it on my CMS home page. refresh, clear CMS cache everything. What am I overlooking? Anyone?

Brew 02-13-2010 03:29 AM

Quote:

Originally Posted by mattcaswell (Post 1976639)
Okay.. so I want to add this, but nowhere in my V4.0 does it allow me to follow this path:

Admin CP -> Styles and Templates -> CREATE NEW TEMPLATE

I have create new style...

Am I supposed to add a new template to each style that I want to have this mod?

So I added the code to the Widget in configure widget, but I can't see it on my CMS home page. refresh, clear CMS cache everything. What am I overlooking? Anyone?

I am in the same boat here. I see no link to making a new template in the Style Manager.

Are there more instructions that need to be added?

messengermatt 02-13-2010 09:59 AM

Quote:

Originally Posted by Brew (Post 1981165)
I am in the same boat here. I see no link to making a new template in the Style Manager.

Are there more instructions that need to be added?

Still hoping this is going to be made into a forum side block, i tried it myself and it went wrong

Brew 02-13-2010 02:09 PM

The instructions left out the fact you must add a new template for each style you have.

But, this is a really nice widget and I hope the dev will update it to include a forum block.

Cheers!

nomoreturn 02-14-2010 04:12 PM

installed but login tab not working

Lestat78 06-19-2010 10:29 AM

Widget will not shown in vb4.0.4
Does anyone knows why?

lubbie 06-22-2010 05:39 PM

Take it out and in again.

mickknutson 06-23-2010 12:21 PM

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

WeMovie.co.uk 07-13-2010 01:32 PM

^^ Same.

Removing for now.

Tenth Doctor 07-17-2010 11:10 AM

Not working in vb 4.0.4. when is it going to be updated to work on 4.0.4/5

surfer2124 08-04-2010 11:30 PM

Quote:

Originally Posted by mickknutson (Post 2058083)
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

eantunes 08-09-2010 05:21 AM

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

utahraves 08-16-2010 05:28 AM

Not working on 4.0.6

intensecool 08-19-2010 07:18 AM

How to place this on a non vbulletin page.. Any help..!!

Goonie 09-27-2010 04:19 PM

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???

goowa 09-29-2010 01:55 PM

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.

R4Z0R49 10-06-2010 09:27 AM

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


All times are GMT. The time now is 09:33 PM.

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.01400 seconds
  • Memory Usage 1,880KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete