Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow 'Un-logged in User' add Username to "Contact Us" message - helps find account Details »»
Allow 'Un-logged in User' add Username to "Contact Us" message - helps find account
Version: 1.00, by Quarterbore Quarterbore is offline
Developer Last Online: Aug 2020 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 03-29-2006 Last Update: Never Installs: 12
Template Edits
 
No support by the author.

I have found myself receiving quite a few e-mails from people that can not log into my forums (not activated, forgot password, computer issues, etc.) and often the e-mail I get through the vBulleting "Contact Us" lists the username as "Unregistered".

This very simple template modification allows Members that are not logged in to provide their username making it much easier for me to look at their account and fix any problems. If the user leaves the User Name blank the e-mail comes through with the default "Unregistered". If the user is logged into the system then their real username is always provided.


Requires: One template change
Time required: less then a minute

--------------------------------------------------------------------------

Open Template: contactus

Find:
Code:
					<td>
						$vbphrase[your_name] :<br />
						<input type="text" class="bginput" name="name" value="$name" size="50" />
					</td>
				</tr>
After Add:

Code:
				<tr>
					<td>
						$vbphrase[username] on forums :<br />
						<input type="text" class="bginput" name="username" value="$username" size="50" />
					</td>
				</tr>
Attached are images that show the before and after for a user that is not logged in.

Following is the e-mail we get from the unmodified page when a user is not logged in:

Quote:
The following message was sent to you via the Forums Contact Us form by NAME.

--------------------------------

I forgot my password. Please email.
Thanks

--------------------------------

Referring Page: http://www.myforums.com/
IP Address: ###.###.###.###
User Name: Unregistered
User ID: 0
Now, if the member types in their User Name into the user name field (When they are not logged in) I get the following:

Quote:
The following message was sent to you via the Forums Contact Us form by NAME.

--------------------------------

I forgot my password. Please email.
Thanks

--------------------------------

Referring Page: http://www.myforums.com/
IP Address: ###.###.###.###
User Name: Quarterbore
User ID: 0
Also note, the system uses the User Name for users that are logged so if they use the Contact Us page and they enter a bogus User Name the e-mail that is received contains the User Name from system, for example:

Quote:
The following message was sent to you via the Forums Contact Us form by Quarterbore.

--------------------------------

I am logged in but I entered User name as "nobody"

--------------------------------

Referring Page: http://www.myforums.com/
IP Address: ###.###.###.###
User Name: Quarterbore
User ID: 1
I added two more screen shots from a second of my forums where I have just added this and sent myself a test e-mail... Obviously my Name in my forums is "Ken" and User Name is "Quarterbore" (See 3rd and 4th screen shots)

Show Your Support

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

Comments
  #2  
Old 03-30-2006, 05:53 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should add... I was trying to get the UserName to self populate in the "User Name" field like "Your Name" and "Email Address" does but I couldn't figure that out yet...

I hope this helps save someone else some time trying to hunt down the unlogged-in members!

p.s. This post is reserved
Reply With Quote
  #3  
Old 03-30-2006, 11:25 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea.. you may want to add 'Un-logged in' to the title somewhere, because Users' names will come thru automatically if they are logged in.
Reply With Quote
  #4  
Old 03-31-2006, 06:33 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mini hack!
Reply With Quote
  #5  
Old 03-31-2006, 08:43 AM
manutdvn manutdvn is offline
 
Join Date: Jul 2005
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. I will install. Thank you.
Reply With Quote
  #6  
Old 04-17-2006, 12:11 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
Reply With Quote
  #7  
Old 04-19-2006, 12:49 AM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. Clicks Install. Installed as soon as I saw it.

I modified the code so that it only shows the name-entry box when the user is not logged on, and tweaked the text shown above the box a bit:
Code:
                                <if condition="$bbuserinfo['userid'] ==0">
                                <tr>
					<td>
						If a registered $vboptions[bbtitle] user, $vbphrase[username] on forums :<br />
						<input type="text" class="bginput" name="username" value="$username" size="50" />
					</td>
				</tr>
                                </if>
Reply With Quote
  #8  
Old 10-18-2006, 09:58 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone asked me about this hack... I have not hacked my 3.6.2 forums yet to include this but I will try to verify it still works soon!
Reply With Quote
  #9  
Old 12-04-2006, 11:24 AM
navjotjsingh navjotjsingh is offline
 
Join Date: Feb 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked on vb 3.6.4 forums too! Its Great!
Reply With Quote
  #10  
Old 04-11-2007, 03:36 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by makaiguy View Post
Very nice. Clicks Install. Installed as soon as I saw it.

I modified the code so that it only shows the name-entry box when the user is not logged on, and tweaked the text shown above the box a bit:
Code:
                                <if condition="$bbuserinfo['userid'] ==0">
                                <tr>
					<td>
						If a registered $vboptions[bbtitle] user, $vbphrase[username] on forums :<br />
						<input type="text" class="bginput" name="username" value="$username" size="50" />
					</td>
				</tr>
                                </if>
Installed .........

Thank you......

Regards,
Badger
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:32 PM.


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.04729 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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