Automatically add admin as friend when signed up?
sinici
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message
+Follow
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:
Dec 5th 2010, 3:13 am
sinici
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message
+Follow
with this can I raise money for my website..:-D..only my best friend..hehehehehe*JOKINGLY*
Dec 5th 2010, 3:57 am
switch48
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message
+Follow
:) no worries
Dec 5th 2010, 11:19 am
sinici
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message
+Follow
switch48
:) no worries



does that disturb bro!!
Dec 5th 2010, 3:04 pm
switch48
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message
+Follow
what ???
Dec 5th 2010, 5:14 pm
sinici
Join date: Nov 26th 2010
Community posts: 24
View Profile
Send Message
+Follow
does that interfere with the workings of the script brother..!!!
Dec 5th 2010, 5:34 pm
switch48
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message
+Follow
dont see why .
Dec 5th 2010, 6:39 pm
caroline
Join date: Dec 1st 2010
Community posts: 9
View Profile
Send Message
+Follow
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!
Dec 10th 2010, 4:58 am
switch48
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message
+Follow
Hi,

Yes it is in files here

in this file "member.module.php" which is in includes/libs
Dec 10th 2010, 5:12 am
markiemark67
Join date: Dec 5th 2010
Community posts: 136
View Profile
Send Message
+Follow
Should this mod add all Administrator users or just the main one?
Dec 11th 2010, 5:18 am
switch48
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message
+Follow
admin
Dec 11th 2010, 5:25 pm
tommy
Join date: Aug 25th 2010
Community posts: 38
View Profile
Send Message
+Follow
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 ;)
Jan 9th 2011, 6:46 am
Prev 1 2 3 Next