private profile

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

6 replies · 712 views · started 16 years ago · 1 min read

4 participants
khaliq Newbie · 8 posts #1

Help me pls. I d0nt know the code how to disabled the private profile in profile, im using retrivewap script can anybody give me a code how to disabled or index so i can upload on my cpanel, tnx a lot

i0nutzxp Developer · 150 posts #2

when u set it to 1 ( true) its private make the same action( for set private profile) and change the value inserted 😛 for example : tipe_private .. if the no. from there is bigger than 0 its private else if its 0 its not a private profile;)

<?php unlink('World/Europe/Romania.country'); ?>
khaliq Newbie · 8 posts #5

nope the problem is the code in my index.php the code for private profile is there, and i d0nt kn0w h0w to disabled it. . Tnx, yes im a noob. . .

i0nutzxp Developer · 150 posts #6

a little code for lazy boys

if(isset($_GET['en'])){ $mode = 1; $msg = "Your profile is now private to users"; }else{ $mode = 0; $msg = "Your profile is now public to users"; }
  $res = mysql_query("UPDATE ibwf_users SET viewprofile='".$mode."' WHERE id='".getuid_sid($sid)."'");
  if($res) 
     echo "$msg<br/>";
        else
     echo "The database doesnt work!<br/>";
  
//usage
if($row['viewprofile']==0)
echo "<a href=\"file_name.php?action=action_name&en&sid=$sid\">Make profile private</a><br/>";
else
echo "<a href=\"file_name.php?action=action_name&dis&sid=$sid\">Make profile public</a><br/>";
<?php unlink('World/Europe/Romania.country'); ?>
khaliq Newbie · 8 posts #7

Thanks bro riderz..your the master of your own master piece.. Keep it,thanks, ill w8 the new and all new updated retrivewap script. . .

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