Page Index Toggle Pages: 1 [2] 3 4 ... 15 Send TopicPrint
Very Hot Topic (More than 25 Replies) Extended Profiles for SP1.3 (Read 42843 times)
wiebke
Senior Member
****
Offline



Posts: 328
Joined: Apr 24th, 2002
Gender: Female
Re: Extended Profiles for SP1.3
Reply #15 - Apr 15th, 2003 at 11:00am
Print Post  
I´ve got a problem installing the yams-compatible version: step 8 failed, search string could not be found. I tried the installation with bordmod 2.5.3, having yams installed, the memberlist.pl is not changed by any other mod. The string to search for is
Code
Select All
			$yymain .= qq~
			 



Was nu? Undecided
  
Back to top
 
IP Logged
 
Atreyu
New Member
*
Offline


Know Your Enemy

Posts: 45
Joined: Apr 14th, 2003
Re: Extended Profiles for SP1.3
Reply #16 - Apr 15th, 2003 at 12:57pm
Print Post  
maybe you have the older version, this was a common prob at first, but MP fixed it, try downloading it again and trying it again
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.3
Reply #17 - Apr 15th, 2003 at 3:17pm
Print Post  
Atreyu wrote on Apr 15th, 2003 at 6:39am:
thanx man, that's what I was missing


hmmm... ok so it's up, but now when I add a field it doesn't show up, is there anything else I'm missing, I did everything according to the instructions in this thread, and I don't think it should take too long, 'cuz I don't have any users yet

Did you also upload all the other files which where modified by this mod? A list of all modified files is displayed in the dropdown box at the lower left in BoardMod.
  

The Administrator.
Back to top
WWW  
IP Logged
 
wiebke
Senior Member
****
Offline



Posts: 328
Joined: Apr 24th, 2002
Gender: Female
Re: Extended Profiles for SP1.3
Reply #18 - Apr 15th, 2003 at 6:44pm
Print Post  
@atreyu thanks - that fixed the problem!
  
Back to top
 
IP Logged
 
Atreyu
New Member
*
Offline


Know Your Enemy

Posts: 45
Joined: Apr 14th, 2003
Re: Extended Profiles for SP1.3
Reply #19 - Apr 16th, 2003 at 7:25am
Print Post  
Quote:
Did you also upload all the other files which where modified by this mod? A list of all modified files is displayed in the dropdown box at the lower left in BoardMod.


Thanks man, that did the trick, I was totaly blind to the little drop down box, I was only paying attention to the main info box

@ wiebke:
I'm totally not a pro at this stuff yet, but I'm glad I could point you in the right direction
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.3
Reply #20 - Apr 17th, 2003 at 12:15am
Print Post  
I've changed the mod description. Now it sais that you'll have to upload all the modded files too in the install instructions - just to be sure Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
davepoobond
Full Member
***
Offline


go to squackle

Posts: 112
Location: Squackle! Land
Joined: Dec 25th, 2002
Gender: Male
Re: Extended Profiles for SP1.3
Reply #21 - Apr 17th, 2003 at 11:28pm
Print Post  
is there a way to change the location of a field you made in extended profiles to like the bottom of the profile?
  
Back to top
WWWAIM  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.3
Reply #22 - Apr 18th, 2003 at 12:02am
Print Post  
Sure, all you have todo is to move these two lines in profile.pl:

Code
Select All
[highlight size=1 color=red background=]require "$sourcedir/ExtendedProfiles.pl";[/highlight]
$yymain .= [highlight size=1 color=red background=]ext_viewprofile($INFO{'username'})[/highlight] . qq~<tr>
	<td colspan="2"><hr size="1" width="100%" class="hr"></td>
	</tr><tr>
	  <td><font size=2><b>$txt{'513'}:</b></font></td> 



The code ext_viewprofile($INFO{'username'}) will return the <tr> table elements + conent of the additional fields. Move it to whereever you want it to be displayed. You should move it to where another </tr> element has been closed.
  

The Administrator.
Back to top
WWW  
IP Logged
 
<Sh>RaY
New Member
*
Offline



Posts: 8
Joined: Mar 29th, 2003
Re: Extended Profiles for SP1.3
Reply #23 - Apr 18th, 2003 at 8:06pm
Print Post  
Hm, would there be any way to call the value of a certain field via SSI or something?
  
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.3
Reply #24 - Apr 18th, 2003 at 8:36pm
Print Post  
Sure. Basically, all you need are those two lines:
Code
Select All
require "$sourcedir/ExtendedProfiles.pl";
$value = ext_get($username,"fieldname"); 


This will put the value of the field "fieldname" of the user $username into the variable $value.
To get this value from a SSI call, add something like this to your ExtendedProfiles.pl:
look for
Code
Select All
1; 


and add this before it:
Code
Select All
sub ext_ssi {
print "Content-type: text/html\n\n";
print ext_get($username,"fieldname");
} 


then open your SubList.pl and look for
Code
Select All
%director=( 


and add this behind it:
Code
Select All
'ext_ssi',"ExtendedProfiles.pl&ext_ssi", 



Now, you can use a call like
<!--#include virtual="./cgi-bin/yabb/YaBB.pl?action=ext_ssi" -->
which will display the value of the field "fieldname" for the user $username.
  

The Administrator.
Back to top
WWW  
IP Logged
 
<Sh>RaY
New Member
*
Offline



Posts: 8
Joined: Mar 29th, 2003
Re: Extended Profiles for SP1.3
Reply #25 - Apr 18th, 2003 at 10:42pm
Print Post  
Thanks, works great. Grin
  
Back to top
WWW  
IP Logged
 
G-WizZ
Junior Member
**
Offline



Posts: 50
Location: West Haven
Joined: Jan 14th, 2003
Gender: Male
Re: Extended Profiles for SP1.3
Reply #26 - Apr 19th, 2003 at 1:51am
Print Post  
Hey mike, i used this mod to add a field for people to include their MSN messenger handles, (as well as lots of other stuff) but is there a way for me to move the newly added field for MSN down with the ICQ, AIM, and Y! messenger fields? :sad3:
  
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Extended Profiles for SP1.3
Reply #27 - Apr 19th, 2003 at 2:32pm
Print Post  
That's easy. First, make the field invisible in viewprofile (admin center). Next open your Profile.pl and look for
Code
Select All
	<td><font size=2><b>$txt{'69'}: </b></font></td>
	<td><font size=2>$email</font></td>
	</tr><tr> 


now add the following code befor it it:
Code
Select All
	<td><font size=2><b>MSN: </b></font></td>
	<td><font size=2>~ . ext_get($INFO{'username'},"MSN") . qq~</font></td>
	</tr><tr> 


Note: the name of the field has to be "MSN" in this case.
  

The Administrator.
Back to top
WWW  
IP Logged
 
G-WizZ
Junior Member
**
Offline



Posts: 50
Location: West Haven
Joined: Jan 14th, 2003
Gender: Male
Re: Extended Profiles for SP1.3
Reply #28 - Apr 19th, 2003 at 9:23pm
Print Post  
sweet. thanks man Wink
  
Back to top
IP Logged
 
smith.james0
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 118
Joined: Feb 9th, 2003
Gender: Male
Re: Extended Profiles for SP1.3
Reply #29 - Apr 20th, 2003 at 1:19pm
Print Post  
I have tried to make an MSN Field.
Where do select invisiable field?
I applied  to second mod to profiles.pl and I now have two MSN fields?
Can you make the MSN field the same a the ICQ field so you have a icon?

http://www.kirstymorris.org/cgi-bin/yabbtwo/YaBB.pl
  

Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 ... 15
Send TopicPrint