Enable And Disable Profile

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

22 replies · 1,179 views · started 17 years ago · 1 min read

9 participants
Pablo Developer · 164 posts #1

ANY BODY HAS THIS CODE THAT WHEN SOMEONE IS VIEWING A SPCIFIC Profile it says that the profile is disable from u 2 view it and the person av 2 enable it so that u can view it???

metulj Super moderator Principal · 1,726 posts #2

Pablo wrote: ANY BODY HAS THIS CODE THAT WHEN SOMEONE IS VIEWING A SPCIFIC Profile it says that the profile is disable from u 2 view it and the person av 2 enable it so that u can view it???

why you write with caps ON??? you ever heard that thats annoying ?? and again... start to use proper forum/s for your topics request goes into REQUEST forum... etc !

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Pablo Developer · 164 posts #3

ok bro and i really dnt c how the hell caps are annoying

subzero Super moderator Fellow · 3,954 posts #4

CAPS are you are yelling out LIKE THIS NOOB HEAD <== see what we mean ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

riderz Lead · 975 posts #5

Haha sub i know what u mean CAPS want the person to do it he dont want a no for answer its really annoying

and pablo u can add a code that u have to add the person as ur friend before u can see his profile

if (arebuds($uid, $who))
{

}

or sumthing like that i guess

PABLO JUST USE UR HEAD MAN LOOK AT THE CODE NOW IVE ADDED IT AT MY SITE ITS WORKING PERFECT JUST ADD

if (arebuds($uid, $who))
{
[code]
BEFORE THE ADDBUDDY REQUEST 
AND THEN ADD THIS 
[code]
}

BEFORE ISMOD

How can i make this code when i add it the persons cant view the profile except if they are ur buddy but u ureself also cant view the profile ok for staff its ok u can just use the code isadmin but what bout normal ppl


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Pablo Developer · 164 posts #6

am gonna try that code but am not talking that bro i mean u can go in c.panel when updating ur profile and disable ur profile are enable it so no 1 can view it in that way hackers cant get your session are sumting like that

metulj Super moderator Principal · 1,726 posts #7

Pablo wrote: am gonna try that code but am not talking that bro i mean u can go in c.panel when updating ur profile and disable ur profile are enable it so no 1 can view it in that way hackers cant get your session are sumting like that

WTF ?!? you really think that hacker need to see your profile to get session??😐 LOOOOOOOOOOOOOOOOOOOOOOOOOOL

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Pablo Developer · 164 posts #8

bro i knw i jst need that coding are u gonna help me or not?

metulj Super moderator Principal · 1,726 posts #9

Pablo wrote: bro i knw i jst need that coding are u gonna help me or not?

if you mean to use that coding to prevent session stealing... then forget it !! it wont protect nothing ! and basicly.. theres no proper reason for such coding.. eventhough coding is already done in lava script ! so.. go get ya self basic lava script.. install it.. study it.. then you'll find code

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Pablo Developer · 164 posts #10

anybody else here...??

metulj Super moderator Principal · 1,726 posts #11

Pablo wrote: anybody else here...??

why? if you are not willing to do what i've told you.. why would any1 help you on this subject then??

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

riderz Lead · 975 posts #14

Pablo just dnt know when to give up lol why dnt he just use the code i gave for now other wise just go learn and oh u just requesting and requesting what did u share if u know the rules by now if u share u will get back faster or am i wrong Staff of Coding-Talk i know on every forum u have to share to receive well share some stuff pablo and mabe ull get what u want


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

alesh Lead · 604 posts #15

oh fak i cant c him cryin anymore lol

make another row in ur users table

`viewpro` int(1) NOT NULL default '0',

then go 2 profil file and add

$wtf = mysql_fetch_array(mysql_query("SELECT viewpro FROM USER_TABLE WHERE id='".$who."'"));
if($wtf[0]=="1")
{
echo "<div>";
echo "profil closed by user!";
echo "</div>"; 
exit();
}

then also make a page where user can enable/disable his profil 2 b public or closed or etc i dnt care.....stop whining and try somthing by urself.... i gave somthing u can start and also riderz gave u... u can make what i showed u, or riderz or u can put tht 2 shits 2gether lol

eeeeerrr....

alesh Lead · 604 posts #16

wapmetal wrote: pablo ur so n0ob! Its easy to code. . ! Do it with ur self!

also...

wtf? if u knw so why didnt u helped him? why post such YEAH ITS EASY I KNOW U MAKE BLAH BLAH? it would b better without ur post

eeeeerrr....

djdevil89 Senior · 287 posts #17
print "<form action=\"profileup.php\" method=\"post\">
<b>Show Profile?<b> <br />
<select name=\"view\">
<option value=\"1\">Yes</option>
<option value=\"0\">No</option>
</select><br />
<input type=\"submit\" name=\"submit\" value=\"Set\">
</form>";
$view = $_REQUEST['view'];
$set = mysql_query("UPDATE drwap_members SET showpr='$view' WHERE ID='$_SESSION[member_ID]'");
if (!$set)
{
print "Database Error <br />";
}
else
{
print "Your Profile has been updated <br />";
}

To put it together

$view = $_REQUEST['view'];
$profile = mysql_fetch_array(mysql_query("SELECT showpr FROM drwap_members WHERE ID='$view'));
$profile = $profile[0];
if ($profile==1)
{
print "Your Profile Code goes here <br />";
}
else
{
print "This Profile is unavailable to you <br />";
}

Thats how i do it to enable and disable think even a noob understands it

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Pablo Developer · 164 posts #18

thanx all who help rider the code u gave me is not working next yute that said he told me 2 do sumting if i didnt do it and its working u think i wud still b askin

bijaybd Developer · 178 posts #19

alesh wrote: oh fak i cant c him cryin anymore lol

make another row in ur users table

`viewpro` int(1) NOT NULL default '0',

then go 2 profil file and add

$wtf = mysql_fetch_array(mysql_query("SELECT viewpro FROM USER_TABLE WHERE id='".$who."'"));
if($wtf[0]=="1")
{
echo "<div>";
echo "profil closed by user!";
echo "</div>"; 
exit();
}

then also make a page where user can enable/disable his profil 2 b public or closed or etc i dnt care.....stop whining and try somthing by urself.... i gave somthing u can start and also riderz gave u... u can make what i showed u, or riderz or u can put tht 2 shits 2gether lol

yes one is working fine ! you can use this script

Pablo Developer · 164 posts #20

there not working bros

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close