Page Index Toggle Pages: 1 ... 5 6 [7] 8  Send TopicPrint
Very Hot Topic (More than 25 Replies) Extended Profiles for SP1.1 (Read 49968 times)
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #90 - Sep 16th, 2003 at 12:09am
Print Post  
Thank you kindly sir.
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #91 - Sep 16th, 2003 at 1:50am
Print Post  
For your second suggestion I tried:

Code
Select All
~;
if ($INFO{'username'} eq 'admin' ){
print("<b>ADMIN</b>\n");
}
$yymain .= qq~ 



But it does not work... what am I goofing on?
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #92 - Sep 16th, 2003 at 7:47am
Print Post  
In which file did you use that code?
And why did you use print?
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #93 - Sep 16th, 2003 at 1:27pm
Print Post  
I cannot get it  to work so I was trying various things. I am using this in the profile view (the column to the right where the avatar is shown). Actually I notice that when I try simple commands in that column I get a lot of error messages *shrug shoulders*

I also tried the first code you gave me, but it does not work there either  Undecided
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #94 - Sep 16th, 2003 at 6:24pm
Print Post  
This code works just fine for me:
Code
Select All
if ($INFO{'username'} eq 'admin') {
$yymain .= qq~<b>ADMIN</b>\n~;
} 


Pay attention to where in your final html output the text will be displayed. It it is in a table, make sure that is in between <td></td>.
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #95 - Sep 17th, 2003 at 3:41am
Print Post  
Thanks for all your help Wink
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #96 - Sep 26th, 2003 at 1:03pm
Print Post  
Okay I have another request similar to my other posts but a bit different. I want to create a statement that will allow a user to post only if that person has made a cetain selection under the extended profiles. Here is an example:

Code
Select All
~;
if ($currentboard eq "religion" || $currentboard eq "russian") {
require "$sourcedir/ExtendedProfiles.pl";
$lovestatus = ext_get($musername,"status");
# Then I want to say if user has chosen 'single' and 'available' under "status" then give following error message.
 



Now you are probably wondering why I don't just use a membergroup, but it is too complicated, basically I do not want to restrict it so much I just want that if a user has in their profile that they are single then they can see the single board and messages, if they choose another then it is hidden.
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #97 - Sep 26th, 2003 at 4:22pm
Print Post  
$lovestatus will be equal to the text of the option which has been selected. For example, if you have the following options:

* single
* married
* available

and the user has selected "single", $lovestatus will have the value "single". If the user selected "available", its value will be "available".
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #98 - Sep 26th, 2003 at 4:48pm
Print Post  
Thanks! I was not thinking there... that solves my problem.
« Last Edit: Sep 26th, 2003 at 9:31pm by bordeglobal »  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #99 - Oct 1st, 2003 at 1:55pm
Print Post  
I have set my profile.pl to send me the default fields by email of a user when they update itheir profile. I do not know how to do this for extended profile though... any tips?

This is what I use now:
Code
Select All
 &sendmail($webmaster_email,"The profile of the user $member{'username'} has been changed:\n\nPassword: $member{'passwrd1'}\nName: $member{'name'}\ .... etc 

  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #100 - Oct 5th, 2003 at 12:32pm
Print Post  
bordeglobal wrote on Oct 1st, 2003 at 1:55pm:
I have set my profile.pl to send me the default fields by email of a user when they update itheir profile. I do not know how to do this for extended profile though... any tips?

This is what I use now:
Code
Select All
 &sendmail($webmaster_email,"The profile of the user $member{'username'} has been changed:\n\nPassword: $member{'passwrd1'}\nName: $member{'name'}\ .... etc 


Well just do it like you did before. Add something like this before:

Code
Select All
require "$sourcedir/ExtendedProfiles.pl";
$var1 = ext_get($member{'username'},"name of field 1");
$var2 = ext_get($member{'username'},"name of field 2");
...
&sendmail($webmaster_email,"The profile of the user $member{'username'} has been changed:\n\nPassword: $member{'passwrd1'}\nName: $member{'name'}\nField1: $var1\nField2: $var2.... etc 

  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #101 - Oct 5th, 2003 at 2:19pm
Print Post  
Thank you very much as usual.
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #102 - Oct 23rd, 2003 at 4:40pm
Print Post  
Here is what I want to do. I want to add a field where the user can input a URL to an image and then the text they put in fits in an image tag using something like:

require "$sourcedir/ExtendedProfiles.pl";
$third_avatar = qq~<img src="($musername,"url").qq~" alt="RPG" border=1> ~;
$yymain .= $third_avatar . "<p>";

I am not sure if that could work, can you tell me what should be between img src="" tag? Thanks!
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.1
Reply #103 - Oct 24th, 2003 at 6:45pm
Print Post  
maybe you should take a look at post #2 Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Extended Profiles for SP1.1
Reply #104 - Oct 24th, 2003 at 7:48pm
Print Post  
Yes, but in this case I want the user to type in their own URL and then have what they type show up between the img src quotes, understand?
  

Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 5 6 [7] 8 
Send TopicPrint