Gallery On Profiles!

Started on the old forum in January 2008 · view the original in the archive · old links redirect here

33 replies · 3,065 views · started 18 years ago · 1 min read

9 participants
Guest #1

does any1 know how i can put a gallery on profile but for the persons profile? e.g that person can uploads there pictures and it show in gallery on profile?? bit like prodigits...

Guest #2

what script you are using ?

Guest #3

what script you are using ?

lavalair xhtml

Guest #4

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.

Guest #6

does any1 know how i can put a gallery on profile but for the persons profile? e.g that person can uploads there pictures and it show in gallery on profile?? bit like prodigits...

well if u have the gallery that users a mysqlthat would be fantastic! as mine dnt

alexism Developer · 136 posts #7

lol....this coding not working in my wml version..why??

can somebody give me the wml version for this coding?

rukiya Lead · 569 posts #8

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

alexism Developer · 136 posts #9
$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 ![](http://kristalwap.com/pics/huhu(1%29.jpg)

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:

rukiya Lead · 569 posts #10

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 ![](http://kristalwap.com/pics/huhu(1%29.jpg)

Location: Viewing Users Profile

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:

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

rukiya Lead · 569 posts #11

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 ![](http://kristalwap.com/pics/huhu(1%29.jpg)

Location: Viewing Users Profile

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:

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

alexism Developer · 136 posts #12

lol..i just put:

$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> ";

in my wml version..and that happen..

alexism Developer · 136 posts #13

ok done..i hv fix the code..

alexism Developer · 136 posts #15

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..

SpiderWap Lead · 622 posts #17

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

alexism Developer · 136 posts #18

this code doesnt work..it show all picture for the user gallery..

SpiderWap Lead · 622 posts #19

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.....

alexism Developer · 136 posts #20

its work..thanks spiderman..

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