Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 208
Total: 208

Author Topic: Avatar Select on Register  (Read 25167 times)

0 Members and 1 Guest are viewing this topic.

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #15 on: January 12, 2007, 12:28:08 pm »
Will be away for a while so I don't have a fix for it.
Ok, thanks. Are you planning on fixing this as 102 pages of error in my logs is a tad too many !

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Avatar Select on Register
« Reply #16 on: January 12, 2007, 01:51:04 pm »
Updated the mod tell me if fixes it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #17 on: January 12, 2007, 01:53:24 pm »
Updated the mod tell me if fixes it.
Thanks !

Can you tell me what you updated as I have to manually make the fixes ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Avatar Select on Register
« Reply #18 on: January 12, 2007, 01:58:14 pm »
Open Register.template.php
Find
Code: [Select]
function getAvatars($directory, $level)
{
global $context, $txt, $modSettings;

Add After
Code: [Select]
if (!isset($context['member']['avatar']['server_pic']))
$context['member']['avatar']['server_pic'] = '';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #19 on: January 12, 2007, 02:06:50 pm »
Thanks ! Will give it a go !

Offline RWL

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • RWL
Re: Avatar Select on Register
« Reply #20 on: January 13, 2007, 04:47:48 am »
Hi guys,

Installed with no errors, now getting this.

Parse error: parse error, unexpected T_VARIABLE in .../Themes/default/Register.template.php on line 828

819: }
820:
821: // Recursive function to retrieve avatar files
822: function getAvatars($directory, $level)
823: {
824:    global $context, $txt, $modSettings;
825:    
826:    
827:    if (!isset($context['member']['avatar']['server_pic'])
828:       $context['member']['avatar']['server_pic'] = '';829:
830:    $result = array();
831:
832:    // Open the directory..


This is what I have: -

Code: [Select]
// Recursive function to retrieve avatar files
function getAvatars($directory, $level)
{
global $context, $txt, $modSettings;


if (!isset($context['member']['avatar']['server_pic'])
$context['member']['avatar']['server_pic'] = '';

$result = array();

Regards,

Wilsy.
« Last Edit: January 13, 2007, 04:51:13 am by wilsy »
RewindLancs.com Management


Offline RWL

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • RWL
Re: Avatar Select on Register
« Reply #21 on: January 13, 2007, 04:55:31 am »
Sorted,

Missing ) at the end of: -

if (!isset($context['member']['avatar']['server_pic'])

Mod package may need updating?

Regards,

Wilsy.
RewindLancs.com Management


Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #22 on: January 14, 2007, 07:50:12 am »
Now I am getting this in my error log  ???
Code: [Select]
8: Undefined index: avatar_selected
File: /web/sites/roseking/corysrus.com/smf/Themes/default/languages/Profile.english.php (before sub template - eval?)
Line: 230

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #23 on: January 17, 2007, 11:38:43 am »
 ???

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #24 on: January 19, 2007, 04:27:22 pm »
Still getting a ton of these in my error log ?

8: Undefined index: avatar_selected
File: /web/sites/roseking/corysrus.com/smf/Themes/default/languages/Profile.english.php (before sub template - eval?)
Line: 230
?action=join

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Avatar Select on Register
« Reply #25 on: January 19, 2007, 04:38:00 pm »
Open Register.template.php
Find
Code: [Select]
var selavatar = "' . $context['avatar_selected'] . '";
Change to
Code: [Select]
var selavatar = "";
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #26 on: January 20, 2007, 09:23:42 am »
Thanks ! Working so far.

Offline RWL

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • RWL
Re: Avatar Select on Register
« Reply #27 on: April 22, 2007, 12:11:25 pm »
Hi Hacks,

Is it a possibility to amend this mod so that if a user does not select an avatar then it automatically defaults to the avatar as below?



Regards,

Wilsy.
RewindLancs.com Management


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Avatar Select on Register
« Reply #28 on: April 22, 2007, 12:50:05 pm »
Yeah that would be an option that picture would need to be in your avatars folder.
And then some code in Source/Register.php would need to be changed.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: Avatar Select on Register
« Reply #29 on: April 22, 2007, 01:21:39 pm »
Hi Hacks,

Is it a possibility to amend this mod so that if a user does not select an avatar then it automatically defaults to the avatar as below?



Regards,

Wilsy.
http://www.simplemachines.org/community/index.php?topic=19500.0

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
8723 Views
Last post July 29, 2006, 07:31:24 am
by Joshsux
10 Replies
9901 Views
Last post December 19, 2006, 02:07:05 am
by buhaychat.com
1 Replies
3906 Views
Last post August 07, 2012, 09:20:18 pm
by SMFHacks
6 Replies
1777 Views
Last post September 07, 2021, 06:34:34 pm
by Rock Lee
0 Replies
5464 Views
Last post July 15, 2023, 09:33:03 pm
by jotade29

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal