The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Gazette

Geek Gazette GAZ is a community newsletter management system.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2009, 11:29 AM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default new users problem solved?

hi, in the past i've noticed that :
there is no way to make subscription to the newsletter to be set to YES by default for new users (i hope you understand what i mean).

Morgan, have you solved this problem?

thank you
__________________
Reply With Quote
  #2  
Old 07-13-2009, 01:50 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

If you want 'yes' checked by default upon registration, you'd need to edit the gaz_profile_sub_option template, using the following template conditional to show what you want upon registration and the default gaz_profile_sub_option template otherwise:
Code:
<if condition="THIS_SCRIPT == 'register'">
	your edits here
<else />
	default template here
</if>
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 07-14-2009, 11:09 AM
Poltergeist Poltergeist is offline
Junior Member
 
Join Date: Jan 2009
Posts: 1
Geek Gazette License Holder 
Default

Sorry but do we replace what is currently in the template with what is above or insert it somewhere in the template? What exactly should the template look like after editing it so that it is set to yes?
Reply With Quote
  #4  
Old 07-14-2009, 09:04 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Untested but like this, though you may need to tweak as desired:
Code:
<tr>
	<td width="100%" class="smallfont">$value[title]</td>
	<td style="white-space:nowrap;">
		<if condition="THIS_SCRIPT == 'register'">
			<label for="rb_1_$key"><input type="radio" name="gaz_sub[$key]" id="rb_1_$key" value="1" tabindex="1" title="$vbphrase[yes]" checked="checked" />$vbphrase[yes]</label>
			<label for=\"rb_0_$key\"><input type="radio" name="gaz_sub[$key]" id="rb_0_$key" value="0" tabindex="1" title="$vbphrase[no]" />$vbphrase[no]</label>
		<else />
			<label for="rb_1_$key"><input type="radio" name="gaz_sub[$key]" id="rb_1_$key" value="1" tabindex="1" title="$vbphrase[yes]" <if condition="$newsletteron == true">checked="checked"</if>/>$vbphrase[yes]</label>
			<label for=\"rb_0_$key\"><input type="radio" name="gaz_sub[$key]" id="rb_0_$key" value="0" tabindex="1" title="$vbphrase[no]"  <if condition="$newsletteron == false">checked="checked"</if> />$vbphrase[no]</label>
		</if>
	</td>
</tr>
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 09-09-2009, 09:04 PM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

Quote:
Originally Posted by Morgan View Post
Untested but like this, though you may need to tweak as desired:
Code:
<tr>
	<td width="100%" class="smallfont">$value[title]</td>
	<td style="white-space:nowrap;">
		<if condition="THIS_SCRIPT == 'register'">
			<label for="rb_1_$key"><input type="radio" name="gaz_sub[$key]" id="rb_1_$key" value="1" tabindex="1" title="$vbphrase[yes]" checked="checked" />$vbphrase[yes]</label>
			<label for=\"rb_0_$key\"><input type="radio" name="gaz_sub[$key]" id="rb_0_$key" value="0" tabindex="1" title="$vbphrase[no]" />$vbphrase[no]</label>
		<else />
			<label for="rb_1_$key"><input type="radio" name="gaz_sub[$key]" id="rb_1_$key" value="1" tabindex="1" title="$vbphrase[yes]" <if condition="$newsletteron == true">checked="checked"</if>/>$vbphrase[yes]</label>
			<label for=\"rb_0_$key\"><input type="radio" name="gaz_sub[$key]" id="rb_0_$key" value="0" tabindex="1" title="$vbphrase[no]"  <if condition="$newsletteron == false">checked="checked"</if> />$vbphrase[no]</label>
		</if>
	</td>
</tr>
i'm sorry morgan!
i've tried to copy and paste the code that you've written here, but after the user registration, under GAZ Subscription Options, the newsletter subscription is still set NO..
what should i do?
thanks!
__________________
Reply With Quote
  #6  
Old 09-10-2009, 06:04 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Not sure, haven't tested it, so I don't have a snippet to give you other than what I already posted. You might try adding some random text to the snippet and see what shows on screen to check whether the if or else condition is being used.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing bounced users Hornstar6969 Geek Gazette 2 06-29-2009 06:43 AM
Users unable to Rate jwashburn Geek Article and Review System 1 02-25-2009 01:46 PM
Use for French Users OlijO Geek Gazette 6 05-28-2008 03:49 PM
How can Users subscribe? Julian Geek Gazette 8 05-23-2007 06:52 AM
Users Other Articles Lizard King Geek Article and Review System 0 11-17-2005 04:40 AM


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.