Login     Sign up
Automatically add admin as friend when signed up?
sinici (@sinici)
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message

all ... even the not only admin(1.2.3.4 etc) a member or enter a team in the file: includes \ libs \ member.module.php also worked:

file: member.module.php

function signup

below

Code
$uid = insert_id();

add code

Code
sql_query("insert into ".tb()."friends (uid,fid,created) values ($uid,1,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values (1,$uid,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values ($uid,1,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values (1,$uid,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values ($uid,1,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values (1,$uid,$timeline)");
etc...
assuming that the account id of admin is 1 and others see in the database

im sory..can`t speak english...heheheheh:lol:

163 months ago
sinici (@sinici)
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message

with this can I raise money for my website..:-D..only my best friend..heheheheheJOKINGLY

163 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

:) no worries

163 months ago
sinici (@sinici)
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message

[quote=switch48]:) no worries [/quote]

does that disturb bro!!

163 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

what ???

163 months ago
sinici (@sinici)
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message

does that interfere with the workings of the script brother..!!!

163 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

dont see why .

163 months ago
Caroline Oswald (@caroline)
Join date: Nov 30th 2010
Community posts: 9
View Profile
Send Message

Hello!

I understand the process of adding the two lines. I just can't seem to locate the file. Does this file exist on jcows free account? Is it somewhere in my admin panel? Or is it in the files that I originally downloaded from jcow? Thanks in advance!

162 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Hi,

Yes it is in files here

in this file "member.module.php" which is in includes/libs

162 months ago
Mark S. (@markiemark67)
Join date: Dec 4th 2010
Community posts: 136
View Profile
Send Message

Should this mod add all Administrator users or just the main one?

162 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

admin

162 months ago
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

if you're using a 3.xx version, the file you need to edit would be: /modules/member/member.php

the edit is the same ;)

161 months ago
Prev 1 2 3 Next