Gallery On Profiles!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Gallery On Profiles!

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

    #2
    what script you are using ?

    Comment


      #3
      what script you are using ?[/b]
      lavalair xhtml

      Comment


        #4
        to access each user gallery from each user profile, add this to profiles:

        Code:
        $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&#39;t understood what you want to do.

        Comment


          #5
          Can someone perhaps give me the gallery coding that belongs with it? im using a total different gallery on my site.

          Click here!!!

          Comment


            #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...[/b]
            well if u have the gallery that users a mysqlthat would be fantastic! as mine dnt

            Comment


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

              can somebody give me the wml version for this coding?

              Comment


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

                can somebody give me the wml version for this coding?[/b]
                Code:
                $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid=&#39;".$who."&#39;"));
                   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

                Comment


                  #9
                  Code:
                  $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid=&#39;".$who."&#39;"));
                     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[/b]
                  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"><p align="center">*Owner Tools*


                  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</p><p align="center">use this profile
                  Inbox
                  BuddyList
                  Chat
                  Forums
                  ;[img]../images/home.gif[/img]Home</p></card></wml>
                  3:

                  Comment


                    #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"><p align="center">*Owner Tools*


                    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</p><p align="center">use this profile
                    Inbox
                    BuddyList
                    Chat
                    Forums
                    ;[img]../images/home.gif[/img]Home</p></card></wml>
                    3:[/b]
                    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

                    Comment


                      #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"><p align="center">*Owner Tools*


                      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</p><p align="center">use this profile
                      Inbox
                      BuddyList
                      Chat
                      Forums
                      ;[img]../images/home.gif[/img]Home</p></card></wml>
                      3:[/b]
                      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

                      Comment


                        #12
                        lol..i just put:

                        $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid=&#39;".$who."&#39;"));
                        echo "<a href=\"gallery.php?action=viewuser&who=$who&sid=$s id\">Gallery ($countpics[0])</a>
                        ";

                        in my wml version..and that happen..

                        Comment


                          #13
                          ok done..i hv fix the code..

                          Comment


                            #14
                            you need to add &amp;

                            Comment


                              #15
                              you need to add &amp;[/b]
                              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..

                              Comment

                              Working...
                              X