Author Topic: Registration age 18+ and new member widget question.  (Read 4198 times)

fernon

  • Confirmed Member
  • **
  • Posts: 9
  • Karma: +0/-0
Registration age 18+ and new member widget question.
« on: June 29, 2012, 06:20:20 AM »
Hi guys.

As the title says ive got a question about the registration form.

Do you guys know how to put an extra field (like the "I agree" field) with Im 18+.

My second question is how to put extra information into the "new members" widget. I want to show which country/state the members are from. The only thing that shows up now is the persons name, if he/she is online, and if its a male of female.

Regards,

Fernon

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1006
  • Karma: +56/-7
Re: Registration age 18+ and new member widget question.
« Reply #1 on: June 29, 2012, 08:17:01 PM »
For the first question, I was thinking that you could just go into skins_site/def/join.html
look for this line content and modify or duplicate:
 
   <dl>
      <dt>&nbsp;</dt>
      <dd class="full-width"><input type="checkbox" name="agree" id="agree" value="1" {output.agree} tabindex="51" /> I agree to {tplvars.sitename}'s <a class="content-link simple" rel="external" href="{tplvars.relative_url}tos.php">terms of services</a>.</dd>
   </dl>
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3139
  • Karma: +211/-7
    • Maverick Webworks
Re: Registration age 18+ and new member widget question.
« Reply #2 on: June 29, 2012, 09:16:09 PM »
Marble is right, this is the easiest way to do it.

You can just change the wording shown below in RED to  .....

I verify that I'm at least 18 and agree to the

   <dl>
      <dt>&nbsp;</dt>
      <dd class="full-width"><input type="checkbox" name="agree" id="agree" value="1" {output.agree} tabindex="51" /> I agree to {tplvars.sitename}'s <a class="content-link simple" rel="external" href="{tplvars.relative_url}tos.php">terms of services</a>.</dd>
   </dl>

Also make sure that you include in your TOS that members must be at least 18 to join the site.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1006
  • Karma: +56/-7
Re: Registration age 18+ and new member widget question.
« Reply #3 on: June 29, 2012, 09:30:01 PM »
I don't have an answer for the 2nd question though. I have mine set on the featured members widget which is essentially the same as the new members. When I hover over the members, I can see their location.
Is this one of Maverick's page designs that you have?
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3139
  • Karma: +211/-7
    • Maverick Webworks
Re: Registration age 18+ and new member widget question.
« Reply #4 on: June 30, 2012, 12:21:37 AM »

The second question in regards on how to show which country/state the members are from in the "new members" widget, this will require some advanced CSS skills.

In your content.css file if you locate the following code, the very bottom section shown in BLUE is what's hiding the extra info such as where a member is from.

/* Small user list used in widgets */

* html .list_small {
   margin-left: -6px;
   width: 720px;
   height: 1%;
}
.list_small {
   width: 720px;
   margin-left: -6px;
   padding: 0 0 5px;
   list-style-type: none;
   overflow: hidden;
}

   .list_small li {
      float: left;
      width: 110px;
      margin-left: 10px;
      text-align: center;
   }

   .list_small li.first {
      margin: 0;
      clear: both;
   }

   .list_small li p {
      display: none;

   }

However it will require a lot more than just allowing the extra info to display, it will also require quite a bit of other CSS work to restructure the widget so it displays properly. Far too much work for me to do it for you and supply all the required code. If you have advanced CSS skills and are willing to invest the time you will eventually figure it out.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

JohnHarper

  • Active Member
  • ***
  • Posts: 79
  • Karma: +6/-0
    • SocialGratis.com
Re: Registration age 18+ and new member widget question.
« Reply #5 on: July 01, 2012, 01:41:06 AM »
I want to do this as well. I am hoping all I have to do is change up some sizes of the box holding the content.

fernon

  • Confirmed Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: Registration age 18+ and new member widget question.
« Reply #6 on: July 01, 2012, 02:05:21 PM »
Thanks for the replies! Appreciate it!!! :D And where could I delete some lines in the widget? For example: "Last online" and "Seeking"

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3139
  • Karma: +211/-7
    • Maverick Webworks
Re: Registration age 18+ and new member widget question.
« Reply #7 on: July 02, 2012, 12:57:48 AM »
The user (member) results are produced from the following file ...
skins_site\def\static\result_user.html

You must be careful about editing this file as all user results are produced from this file, including the search results, therefore if you edit or delete any info from this file it will effect all widget and search results that pertain to user (member) results.

IMPORTANT NOTE: If for whatever reason you do decide to edit the result_user.html file you will need to regenerate your skin in the admin in order for it to take effect.

In summary, in order to have only certain user info display in a widget you need to do it via css by using the display: none; property in the index.css file.

There's different ways to accomplish this, one would be by adding a unique class to each one of the following in the user_results.html file ...
   <p class="info"><span>{profile.f2_label}</span>: {profile.f2}</p>
   <p class="info"><span>{profile.f3_label}</span>: {profile.f3}</p>
   <p class="info"><span>{profile.f4_label}</span>: {profile.f4}</p>
   <p class="info"><span>Last online</span>: {inject.last_online}</p>

For example you could do something like this for the Last Online ...
<p class="info last_online"><span>Last online</span>: {inject.last_online}</p>

Then in your index.css file you'd add something like this ...
Code: [Select]
#widg_new_members .last_online {
     display: none;
}

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

fernon

  • Confirmed Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: Registration age 18+ and new member widget question.
« Reply #8 on: July 02, 2012, 02:01:40 AM »
Thanks!

fernon

  • Confirmed Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: Registration age 18+ and new member widget question.
« Reply #9 on: July 15, 2012, 05:23:15 AM »
Thanks but i cant figure out how to remove the country label. You cant just "display:none;" the profile.f4_label right?

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3139
  • Karma: +211/-7
    • Maverick Webworks
Re: Registration age 18+ and new member widget question.
« Reply #10 on: July 15, 2012, 08:53:41 AM »
Option #1 - You'd need to include a class to the SPAN tag in the skins_site\def\static\result_user.html file and also move the colon into the span, like this ...

   <p class="info"><span>{profile.f2_label}</span>: {profile.f2}</p>
   <p class="info"><span>{profile.f3_label}</span>: {profile.f3}</p>
   <p class="info"> <span class="hidden">{profile.f4_label}:</span> {profile.f4}</p>
   <p class="info"><span>Last online</span>: {inject.last_online}</p>

Then in your index.css file you include something like this ...
Code: [Select]
#widg_new_members span.hidden {
     display: none;
}



Option #2 - the easiest way would be to just remove it from the skins_site\def\static\result_user.html file ...
   <p class="info"><span>{profile.f2_label}</span>: {profile.f2}</p>
   <p class="info"><span>{profile.f3_label}</span>: {profile.f3}</p>
   <p class="info"><span>{profile.f4_label}</span>: {profile.f4}</p>
   <p class="info"><span>Last online</span>: {inject.last_online}</p>

So it's like this ...
Code: [Select]
   <p class="info"><span>{profile.f2_label}</span>: {profile.f2}</p>
   <p class="info"><span>{profile.f3_label}</span>: {profile.f3}</p>
   <p class="info">{profile.f4}</p>
   <p class="info"><span>Last online</span>: {inject.last_online}</p>

This 2nd option will remove the 'country' label from appearing in all widgets that show user results, including the search results.

IMPORTANT NOTE: whenever you edit the result_user.html file you need to regenerate your skin in the admin in order for it to take effect.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.