Gallery On Profiles!
Started on the old forum in January 2008 · view the original in the archive · old links redirect here
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.
Can someone perhaps give me the gallery coding that belongs with it? im using a total different gallery on my site.
lol....this coding not working in my wml version..why??
can somebody give me the wml version for this coding?
$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>
";
this code works both for wml n xhtml pages
its funny that you are asking for wml version without having knowledge about wml n xhtml
$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> ";this code works both for wml n xhtml pages
its funny that you are asking for wml version without having knowledge about wml n xhtml
but when i put in html version..it become like this :
XML parsing failed: syntax error (Line: 2, Character: 316)
Reparse document as HTML Error:invalid entity reference in attribute value Specification:http://www.w3.org/TR/REC-xml/ 1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml> 2: <card id="main" title="KrisTaLwaP"> Owner Tools 
Location: Viewing Users Profile
[<--in red color=1&sid=99077b461c2de61fe68fea67b467011d"]Gallery (1)](#)
Username: huhu Status: Site Owner! UserId: 1 Asl: 0/Male/ Joined: 02:14 - Fri 15th Feb 08 Member For: 6 days 17 hours Plusses: 124010 Buddies: 0 E-mail: asd@yahoo.com Info: Idle For: Online! Browser: Opera Ip: 64.62.138.103 Profile Views: 2
Send Inbox User Stats Advanced Profile Poll Blogs(1) Vault(1) Guestbook(0) Share Plusses
use this profile Inbox BuddyList Chat Forums ;External image (may be gone)Home </card></wml> 3:
but when i put in html version..it become like this :
XML parsing failed: syntax error (Line: 2, Character: 316)
Reparse document as HTML Error:invalid entity reference in attribute value Specification:http://www.w3.org/TR/REC-xml/ 1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml> 2: <card id="main" title="KrisTaLwaP"> Owner Tools 
Location: Viewing Users Profile
Username: huhu Status: Site Owner! UserId: 1 Asl: 0/Male/ Joined: 02:14 - Fri 15th Feb 08 Member For: 6 days 17 hours Plusses: 124010 Buddies: 0 E-mail: asd@yahoo.com Info: Idle For: Online! Browser: Opera Ip: 64.62.138.103 Profile Views: 2
Send Inbox User Stats Advanced Profile Poll Blogs(1) Vault(1) Guestbook(0) Share Plusses
use this profile Inbox BuddyList Chat Forums ;External image (may be gone)Home </card></wml> 3:
as I told you you have no idea about wml and html and xhtml language and you know only copy and paste working you mixed html code and wml code in a same page.<card>...</card> tag is used in wml pages and <body>...</body> is html and the color codes are html codes....remove the html color code in the above posted wml codes it will work fine and learn wml,html,xhtml http://w3schools.com
but when i put in html version..it become like this :
XML parsing failed: syntax error (Line: 2, Character: 316)
Reparse document as HTML Error:invalid entity reference in attribute value Specification:http://www.w3.org/TR/REC-xml/ 1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml> 2: <card id="main" title="KrisTaLwaP"> Owner Tools 
Location: Viewing Users Profile
Username: huhu Status: Site Owner! UserId: 1 Asl: 0/Male/ Joined: 02:14 - Fri 15th Feb 08 Member For: 6 days 17 hours Plusses: 124010 Buddies: 0 E-mail: asd@yahoo.com Info: Idle For: Online! Browser: Opera Ip: 64.62.138.103 Profile Views: 2
Send Inbox User Stats Advanced Profile Poll Blogs(1) Vault(1) Guestbook(0) Share Plusses
use this profile Inbox BuddyList Chat Forums ;External image (may be gone)Home </card></wml> 3:
as I told you you have no idea about wml and html and xhtml language and you know only copy and paste working you mixed html code and wml code in a same page.<card>...</card> tag is used in wml pages and <body>...</body> is the replaced tag in html and the color codes are html codes....remove the html color code in the above posted wml codes it will work fine and learn wml,html,xhtml http://w3schools.com
you need to add &
yes that wut hv i done....u help me a lot..do u have sister?i want to be u brother in law...haha..just kidding..
a sissy boy is looking for girls like amylee and posting stupidly
lol well what can i say lmao!!!!! if theres one grl i want,,,,,
lol let me rather change the subject..
Im bizzy with a new script guys, most updated lava mod to be released on wap,,,, ill let u know and share it after its done.....
Enjoy
It musv work...
$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>
";
It then will direct you to viewuser, and viewuser is coded to show pictures only of a spacific user, and the who=$who tells the script which user it is.....