Gallery On Profiles!
Started on the old forum in January 2008 · view the original in the archive · old links redirect here
TL;DR · summary of 33 replies
- - The code to display a user's gallery on their profile was not working as expected.
- - A fix was suggested by adding an amp after the & in the SQL query, changing $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'")); to $countpics =...
- - The issue was resolved with the addition of addonline(getuid_sid($sid), "Viewing Users Profile", "index.php?action=viewuser&who=$who"); in the viewuser profile code.
- - The forum participants recommended checking if there were any issues related to file permissions or database configurations.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
,,,spiderWAP not spiderman...
lol.. new spiderman External image (may be gone) External image (may be gone)
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ノ刀ノイリ!
friends i recently shifted my host and on gallery photo dnt show why? External image (may be gone) help me someone is it somethin with max file or gallery or db?External image (may be gone)
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
friends i recently shifted my host and on gallery photo dnt show why? External image (may be gone) help me someone is it somethin with max file or gallery or db?External image (may be gone)
you cant expect here a soultion without posting here the file/codes you are using
bro file is same the same script as funmobile gallery script and it was workin fine until i shifted my host now pics dont show and even browsers not showing:(
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
but this code work only funmobile script???
if like my post click:
bro file is same the same script as funmobile gallery script and it was workin fine until i shifted my host now pics dont show and even browsers not showing:(
<img src/> tag will work only when it gets file in it.post the codes in [code ]...... here to get a solution or keep satisfied that you have now and script works fine if its modified for php_register_globals_off
thank you guys. i had a little error with the codes but i fixed it...
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
i have added the code in index.php
CODE
/////////////////////////////////viewuser profile
else if($action=="viewuser") { addonline(getuid_sid($sid),"Viewing Users Profile","index.php?action=viewuser&who=$who"); echo "<head>"; echo "<title>View Profile</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'")); echo "<a href="gallery.php?action=viewuser&who=$who&sid=$sid">Gallery ($countpics[0])</a> "; $lastloc=$_GET["lstloc"]; if($lastloc=="cht"){ $rid= $_GET["rid"]; $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'")); $rname = $rooms[1]; } if($who==""||$who==0) { $mnick = $_POST["mnick"]; $who = getuid_nick($mnick); } $whonick = getnick_uid($who); if($whonick!="")
i am getting this error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/..../public_html/......./web/index.php on line 2628 Gallery ()
i was getting error because there was no sql table for ibwf_gallery got it from here now i will have to add gallery.php i will let u know , if i get any errors
CODE
CREATE TABLE ibwf_gallery(
id int( 100 ) NOT NULL AUTO_INCREMENT ,
uid int( 100 ) NOT NULL ,
sex varchar( 255 ) NOT NULL ,
itemurl varchar( 255 ) NOT NULL ,
PRIMARY KEY ( id ) ,
UNIQUE KEY name ( itemurl )
) ENGINE = MYISAM DEFAULT CHARSET = latin1;
i have this xhtml lavalair script where i dont have gallery.php but have folder such as pics and in it there's index.php with action==pics so i just changed the action to gallery and renamed it to gallery.php and copied it to web folder also changed sql table to ibwf_gallery am i doing anywhere wrong till now i got no errors now what i have to change
to access each user gallery from each user profile, add this to profiles:
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'")); echo "<a href=\"gallery.php?action=viewuser&who=$who&sid=$sid\">Gallery ($countpics[0])</a> ";if you using other type databases like with ibwf_ prefix, then fun_gallery change to with your prefix (ex. ibwf_gallery).
Thats all, other part of your question i didn't understood what you want to do.
this code work correct at my script External image (may be gone) External image (may be gone)
if like my post click: