126_1.patch

Suneesh PM, 04/19/2010 06:22 am

Download (30.2 kB)

 
b/templates/css/profile.css
1 1
/* user.tpl */
2 2

  
3
div.user-profile a {
4
	font-weight: normal;
5
	color: #0066FF;
6
}
7

  
3 8
div.user-profile {
4 9
    float: left;
5 10
    width: 100%;
6
    font-size:12px;
11
    font-size:11px;
7 12
    margin:0px;
8 13
    padding:0px;
9 14
}
10 15
div.user-profile div.box1 {
11
    width:280px;
16
    width:35%;
12 17
    float: left;
13 18
    margin:0px;
14 19
    padding:0px;
15 20
}
16 21
div.user-profile div.box2 {
17
    width:69%;
22
    width:64%;
18 23
    margin-left:5px;
19
    float: right;
24
    float: left;
20 25
    padding:0px;
21 26
}
22 27
div.user-profile div.box1 div.user-info {
......
43 48
}
44 49
div.profile-comment {
45 50
    margin-bottom:2px;
46
    padding:1em;
47 51
}
48 52
div.profile-comment  div.box1 {
49 53
    float:left;
50
    width:130px;
54
    width:70px;
55
    text-align: center;
51 56
}
52 57
div.profile-comment  div.box2 {
53
    float:right;
54
    width:480px;
58
    float:left;
59
    width:470px;
55 60
}
56 61
div.profile-comment  div.box2  img.delete-botton {
57 62
    float:right;
......
74 79
    text-align:center;
75 80
    color:black;
76 81
    font-weight: bolder;
77
}
82
}
83
div.user-profile img.preview {
84
	border: 1px solid #CCCCCC;
85
}
86
div.user-profile img.preview:hover {
87
    border: 1px solid #808989;
88
}
89

  
90
div.user-profile fieldset {
91
	border: 0px solid #999999;
92
	border-width: 10px 1px 1px 1px;
93
	-moz-border-radius: 5px 5px 0 0;
94
	-webkit-border-radius: 5px 5px 0 0;
95
	-o-border-radius: 5px 5px 0 0;
96
	margin: 1px 1px 1em 1px;
97
	color: #777777;
98
}
99
div.user-profile fieldset legend {
100
	font-weight: bold;
101
	letter-spacing: 1px;
102
}
103

  
104

  
b/templates/css/style.css
1827 1827
}
1828 1828
div.user-profile div.box2 ul#user-friend li {
1829 1829
    float: left;
1830
    width:140px;
1831
    height:135px;
1832
    margin:0px;
1833
    padding:1px 10px 0px 10px;
1834
    text-align:center;
1830
    width:85px;
1831
    height:95px;
1832
    margin:1px 1px 1px 5px;
1833
    padding: 2px;
1834
    text-align:left;
1835
    overflow:hidden;
1835 1836
}
1836 1837
div.user-profile div.box2 ul#user-friend li img {
1837 1838
    display:inline;
1838
    margin:3px 0px 0 5px;
1839
    margin:1px;
1839 1840
}
1840 1841
div.user-profile div.box1 ul#user-groups {
1841 1842
    list-style: none;
......
1845 1846
}
1846 1847
div.user-profile div.box1 ul#user-groups li {
1847 1848
    float:left;
1848
    margin:0;
1849
    padding:1px 5px 0px 5px;
1850
    text-align:center;
1851
    width:80px;
1852
    height:120px;
1853
    overflow:hidden
1849
    margin:1px 1px 1px 5px;
1850
    padding:3px;
1851
    text-align: left;
1852
    width:90px;
1853
    height:110px;
1854
    overflow:hidden;
1854 1855
}
1855 1856
div.user-profile div.box1 ul#user-groups li img {
1856 1857
    display:inline;
1857
    margin:3px 0px 0 5px;
1858
    margin:1px;
1858 1859
}
1859 1860
/* group_home.tpl*/
1860 1861

  
......
1865 1866
}
1866 1867
ul#user-video li {
1867 1868
    float: left;
1868
    width:140px;
1869
    height:135px;
1870
    margin:0px;
1871
    padding:1px 10px 0px 10px;
1872
    text-align:center;
1869
    width:132px;
1870
    height: auto;
1871
    margin:1px 1.5px 1px 6px;
1872
    padding: 3px;
1873
    overflow: hidden;
1873 1874
}
1874 1875
ul#user-video li img {
1875 1876
    display:inline;
1876
    margin:3px 0px 0 5px;
1877
    margin: 2px;
1878
}
1879
ul#user-video li div {
1880
	margin-left: 3px;
1881
}
1882
ul#user-video li div.show-rating img {
1883
	width: 12px;
1884
	height: 11px;
1877 1885
}
1878 1886
/*search_videos.tpl*/
1879 1887

  
b/templates/user.tpl
2 2

  
3 3
    <div class="box1">
4 4
    
5
        <div class="section bg2">
6
        
7
            <div class="hd">
8
                <div class="hd-l">{$user_info.user_name}'s Profile</div>
9
            </div>
5
        <fieldset>
6
            
7
            <legend><u>{$user_info.user_name}</u></legend>
10 8
        
11 9
            <div class="float-l">
12
                <a href="{$base_url}/{$user_info.user_name}"><img src="{$photo_url}" width="80" height="80" alt="{$user_info.user_name}" /></a>
10
                <a href="{$base_url}/{$user_info.user_name}"><img src="{$photo_url}" alt="{$user_info.user_name}" /></a>
13 11
            </div>
12
            <div class="float-l">
13
                {if $is_friend ne "yes"}
14
                    {if $allow_friend eq '1'}
15
                        <div class="user-info">
16
                            <a href="{$base_url}/invite_friends.php?UID={$user_info.user_id}">
17
                                <img src="{$base_url}/templates/images/add-friends.gif" alt="add friends" width="20" height="17"/>Add as Friend
18
                            </a>
19
                        </div>
20
                    {/if}
21
                {/if}
14 22
                
15
            <div class="float-r">
23
                {if $allow_private_message eq '1'}
24
                    <div class="user-info">
25
                        <a href="compose.php?receiver={$user_info.user_name}">
26
                            <img src="{$base_url}/templates/images/send-message.gif" width="20" height="17" alt="send message"/>Send Messages
27
                        </a>
28
                    </div>
29
                {/if}
30
                
31
                {if $allow_comment eq '1'}
32
                    <div class="user-info">
33
                        <a href="#profile-comments">
34
                            <img src="{$base_url}/templates/images/add-comment.gif" alt="add comments" width="20" height="17">Add Comments
35
                        </a>
36
                    </div>
37
                {/if}
38
                
39
                <!-- AddThis Button BEGIN -->
40
                
41
                <div class="user-info">
42
                <script type="text/javascript">var addthis_pub="buyscripts";</script>
43
                <a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
44
                </div>
45
                
46
                <!-- AddThis Button END -->
47
            </div>
48
            <div class="clear">
49
                Profile Url: <a href="{$base_url}/{$user_info.user_name}">{$base_url}/{$user_info.user_name}</a>
50
            </div>
51
        </fieldset>
52
        <fieldset>
53
            <legend><u>Profile</u></legend>
54
            
55
            <div class="float-l">
16 56
            
17 57
                {if $user_info.user_first_name ne "" OR $user_info.user_last_name ne ""}
18 58
                    {$user_info.user_first_name} {$user_info.user_last_name}<br />
......
39 79
                {/if}
40 80
                Last Login: {insert name=time_range assign=rtime field=user_last_login_time IDFR=user_id id=$user_info.user_id tbl=users}{$rtime}
41 81
            </div>
42
       
43
            <div class="clear"></div>
44
        
45
            {if $smarty.session.USERNAME eq $user_info.user_name}
46
                {if $enable_package eq "yes"}
47
                    <p>I have uploaded <b>{$u_info.total_video}</b> videos {if $pack.package_videos gt "0"} out of {$pack.package_videos} videos{/if}.<br />
48
                    Space I have used <b>{insert name=format_size size=$u_info.used_space}</b> out of {insert name=format_size size=$pack.package_space}</p>
49
                {/if}
50
            {/if}
51 82
            
52
            <!-- user rating -->
53
            
54
            <script type="text/javascript">
55
                var candidate_id = {$user_info.user_id};
56
            </script>
57

  
58
            {if $chkuserflag ne "self"}
59
            
60
                {if $chkuserflag eq "guest"}
61
                    <div id="user_vote_result">
62
                        <!-- <table border="0" align="center">
63
                        <tr>
64
                            <td align="center">
65
                                Rate Me
66
                                <img class="rating" src="{$img_css_url}/images/blank_star.gif" onclick="user_rate({$smarty.session.UID},{$user_info.user_id},1)" alt="" />
67
                                <img class="rating" src="{$img_css_url}/images/blank_star.gif" onclick="user_rate({$smarty.session.UID},{$user_info.user_id},2)" alt="" />
68
                                <img class="rating" src="{$img_css_url}/images/blank_star.gif" onclick="user_rate({$smarty.session.UID},{$user_info.user_id},3)" alt="" />
69
                                <img class="rating" src="{$img_css_url}/images/blank_star.gif" onclick="user_rate({$smarty.session.UID},{$user_info.user_id},4)" alt="" />
70
                                <img class="rating" src="{$img_css_url}/images/blank_star.gif" onclick="user_rate({$smarty.session.UID},{$user_info.user_id},5)" alt="" />
71
                            </td>
72
                        </tr>
73
                        </table> -->
74
                        Rate Me {insert name=user_rate user_id=$user_info.user_id}
83
            <div class="float-r">
84
                {if $chkuserflag eq ""}
85
                    <div style="padding-bottom: 10px">
86
                        <a href="{$base_url}/signup/">Sign up</a> or
87
                        <a href="{$base_url}/login/">Log in</a><br /> to add {$user_info.user_name} as a friend.
75 88
                    </div>
76 89
                {/if}
77 90
                
78
            {/if}
79
            
80
            {if $chkuserflag eq ""}
81
                <div style="padding-bottom: 10px">
82
                    <a href="{$base_url}/signup/">Sign up</a> or
83
                    <a href="{$base_url}/login/">Log in</a> to add {$user_info.user_name} as a friend.
84
                </div>
85
            {/if}
86
            
87
            {if $smarty.session.USERNAME eq $user_info.user_name}
88
                [ <a class="submenu" href="{$base_url}/{$user_info.user_name}/edit/">Edit Profile</a> ] |
89
                [ <a class="submenu" href="{$base_url}/user_photo_upload.php">Upload Photo</a> ]<br /><br />
90
                [ <a class="submenu" href="{$base_url}/privacy/">Privacy Settings</a> ] |
91
                {if $enable_package eq "yes"}
92
                    [ <a class="submenu" href="{$base_url}/renew_account.php?uid={$user_info.user_id}&action=upgrade">Upgrade Package</a> ] |
91
                {if $smarty.session.USERNAME eq $user_info.user_name}
92
                    [ <a class="submenu" href="{$base_url}/{$user_info.user_name}/edit/">Edit Profile</a> ]<br />
93
                    [ <a class="submenu" href="{$base_url}/user_photo_upload.php">Upload Photo</a> ]<br />
94
                    [ <a class="submenu" href="{$base_url}/privacy/">Privacy Settings</a> ]<br />
95
                    {if $enable_package eq "yes"}
96
                       [ <a class="submenu" href="{$base_url}/renew_account.php?uid={$user_info.user_id}&action=upgrade">Upgrade Package</a> ]<br />
97
                    {/if}
98
                    [ <a class="submenu" href="{$base_url}/user_delete.php">Delete Account</a> ]<br />
93 99
                {/if}
94
                [ <a class="submenu" href="{$base_url}/user_delete.php">Delete Account</a> ]<br />
95
            {/if}
96

  
100
                
101
                <!-- user rating -->
102
                
103
                <script type="text/javascript">
104
                    var candidate_id = {$user_info.user_id};
105
                </script>
106
    
107
                {if $chkuserflag ne "self"}
108
                
109
                    {if $chkuserflag eq "guest"}
110
                        <div id="user_vote_result">
111
                            Rate Me {insert name=user_rate user_id=$user_info.user_id}
112
                        </div>
113
                    {/if}
114
                    
115
                {/if}
116
                
117
            </div>
118
       
119
            <div class="clear"></div>
120
            
121
            <div class="user-info">
97 122
            <!-- user details -->
98 123
           
99
            <div class="margin-1em">
100
            
124
            <div>
125
                <p>
126
                {if $smarty.session.USERNAME eq $user_info.user_name}
127
                    {if $enable_package eq "yes"}
128
                        I have uploaded <b>{$u_info.total_video}</b> videos {if $pack.package_videos gt "0"} out of {$pack.package_videos} videos{/if}.<br />
129
                        Space I have used <b>{insert name=format_size size=$u_info.used_space}</b> out of {insert name=format_size size=$pack.package_space}<br />
130
                    {/if}
131
                {/if}
132
                
101 133
                Videos Watched <b>{$user_info.user_video_viewed}</b> times<br />
102 134
                Profile viewed <b>{$user_info.user_profile_viewed}</b> times<br />
103 135
                I've watched <b>{$user_info.user_watched_video}</b> videos<br />
......
106 138
                <a href="{$base_url}/{$user_info.user_name}/friends/">
107 139
                    friends
108 140
                </a>
141
                </p>
109 142
            </div>
110
        
111
            <div class="user-info">
143
                       
144
            <div>
112 145
                <b>Signed up :</b> {insert name=time_range assign=stime field=user_join_time IDFR=user_id id=$user_info.user_id tbl=users} {$stime}
113 146
            </div>
114 147

  
115 148
            {if $user_info.relation ne ""}
116
                <div class="user-info"><b>Relation :</b> {$user_info.relation}</div>
149
                <div><b>Relation :</b> {$user_info.relation}</div>
117 150
            {/if}
118 151
            
119 152
            {if $user_info.user_about_me ne ""}
120
                <div class="user-info"><b>About Me : </b>{$user_info.user_about_me}</div>
153
                <div><b>About Me : </b>{$user_info.user_about_me}</div>
121 154
            {/if}
122 155
            
123 156
            {if $user_info.user_website ne ""}
124
                <div class="user-info"><b>Website :</b>
157
                <div><b>Website :</b>
125 158
                    <a href="{$user_info.user_website}" target="_blank">{$user_info.user_website}</a>
126 159
                </div>
127 160
            {/if}
128 161
            
129 162
            {if $user_info.user_zip ne ""}
130
                <div class="user-info">
163
                <div>
131 164
                    <b>Country ZIP : </b>{$user_info.user_zip}
132 165
                </div>
133 166
            {/if}
134 167
        
135 168
            {if $user_info.user_occupation ne ""}
136
                <div class="user-info">
169
                <div>
137 170
                    <b>Occupation : </b>{$user_info.user_occupation}
138 171
                </div>
139 172
            {/if}
140 173
            
141 174
            {if $user_info.user_company ne ""}
142
                <div class="user-info">
175
                <div>
143 176
                    <b>Companies : </b>{$user_info.user_company}
144 177
                </div>
145 178
            {/if}
146 179
            
147 180
            {if $user_info.user_school ne ""}
148
                <div class="user-info">
181
                <div>
149 182
                    <b>Schools : </b>{$user_info.user_school}
150 183
                </div>
151 184
            {/if}
152 185
            
153 186
            {if $user_info.user_interest_hobby ne ""}
154
                <div class="user-info">
187
                <div>
155 188
                    <b>Interests &amp; Hobbies : </b>{$user_info.user_interest_hobby}
156 189
                </div>
157 190
            {/if}
158 191
            
159 192
            {if $user_info.user_fav_movie_show ne ""}
160
                <div class="user-info">
193
                <div>
161 194
                    <b>Favourite Movies &amp; Shows : </b>
162 195
                    {$user_info.user_fav_movie_show}
163 196
                </div>
164 197
            {/if}
165 198
            
166 199
            {if $user_info.user_fav_music ne ""}
167
                <div class="user-info">
200
                <div>
168 201
                    Favourite Music : </b> {$user_info.user_fav_music}
169 202
                </div>
170 203
            {/if}
171 204
            
172 205
            {if $user_info.user_fav_book ne ""}
173
                <div class="user-info">
206
                <div>
174 207
                    <b>Favourite Books : </b>{$user_info.user_fav_book}
175 208
                </div>
176 209
            {/if}
177 210
            
178 211
            {if $user_info.user_friends_name ne ""}
179
                <div class="user-info">
212
                <div>
180 213
                    <b>Friends : </b> {$user_info.user_friends_name}
181 214
                </div>
182 215
            {/if}
183
       
184
        </div>    <!-- section end-->
185
        
186
        <div class="section bg2 clearfix">
187
        
188
            <div class="hd">
189
                <div class="hd-l">Connect with {$user_info.user_name}</div>
190 216
            </div>
191
            
192
            <div class="margin-1em">
193
            
194
                <div class="float-l">
195
                    <a href="{$base_url}/{$user_info.user_name}"><img src="{$photo_url}" width="80" height="80" alt="{$user_info.user_name}" /></a>
196
                </div>
197
                
198
                <div class="float-r">
199
                    {if $allow_comment eq '1'}
200
                    <a href="#profile-comments">
201
                        <img src="{$base_url}/templates/images/add-comment.gif" alt="add comments" width="20" height="17">Add Comments
202
                    </a>
203
                    {/if}
204
                    <br />
205
                    
206
                    {if $is_friend ne "yes"}
207
                        {if $allow_friend eq '1'}
208
                        <a href="{$base_url}/invite_friends.php?UID={$user_info.user_id}">
209
                            <img src="{$base_url}/templates/images/add-friends.gif" alt="add friends" width="20" height="17"/>Add as Friend
210
                        </a>
211
                        {/if}
212
                        <br />
213
                    {/if}
214
                    
215
                    {if $allow_private_message eq '1'}
216
                    <a href="compose.php?receiver={$user_info.user_name}">
217
                        <img src="{$base_url}/templates/images/send-message.gif" width="20" height="17" alt="send message"/>Send Messages
218
                    </a>
219
                    {/if}
220
                    <br />
221
                    <br />
222
                    <!-- AddThis Button BEGIN -->
223
                    <script type="text/javascript">var addthis_pub="buyscripts";</script>
224
                    <a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
225
                    <!-- AddThis Button END -->
226
                </div>
227
                
228
                <div class="clear"></div>
229
                
230
                <b>
231
                    {$user_info.user_name}'s Profile Url:<br /><br />
232
                    <a href="{$base_url}/{$user_info.user_name}">{$base_url}/{$user_info.user_name}</a>
233
                </b>
234
            </div>
235
            
236
        </div>
237
    
238
        <div class="section bg2 clearfix">
217
        </fieldset>    <!-- section end-->
239 218
        
240
            <div class="hd">
241
              <div class="hd-l">{$user_info.user_name}'s Groups</div>
242
              <div class="hd-r"><a href="{$base_url}/{$user_info.user_name}/groups/">More</a></div>
243
            </div>
244
            
219
        <fieldset>
220
        
221
            <legend><u>Groups [<a href="{$base_url}/{$user_info.user_name}/groups/">See all</a>]</u></legend>
222
                        
245 223
            <ul id="user-groups">
246 224
                {section name=i loop=$groups start=0 max=6}
247 225
                    {insert name=group_image assign=group_image_info gid=$groups[i].group_id tbl=group_videos}
......
249 227
                    <li>
250 228
                        <a href="{$base_url}/group/{$groups[i].group_url}/">
251 229
                        {if $group_image_info eq "0"}
252
                        <img class="preview" src="{$img_css_url}/images/no_videos_groups.gif" width="70px" height="50" alt="" />
230
                        <img class="preview" width="80px" height="60px" src="{$img_css_url}/images/no_videos_groups.gif" alt="" />
253 231
                        {else}
254
                        <img class="preview" width="70px" height="50" alt="" src="{$group_image_info.video_thumb_url}/thumb/{$group_image_info.video_folder}1_{$group_image_info.video_id}.jpg" alt="" />
232
                        <img class="preview" width="80px" height="60px" src="{$group_image_info.video_thumb_url}/thumb/{$group_image_info.video_folder}1_{$group_image_info.video_id}.jpg" alt="" />
255 233
                        {/if}
256 234
                        </a>
257 235
                        <a href="{$base_url}/group/{$groups[i].group_url}/">
258
                        {$groups[i].group_name}
236
                        {$groups[i].group_name|truncate:15:'...'}
259 237
                        </a><br />
260 238
                        {insert name=row_count assign=num_group_members group_id=$groups[i].group_id table=group_members field1=group_member_group_id field2=group_member_approved}
261 239
                        {insert name=group_info_count assign=num_group_videos tbl=group_videos gid=$groups[i].group_id query="1" field1=group_video_approved field2=group_video_group_id}
......
285 263
                
286 264
                {/section}
287 265
            </ul>
288
        </div><!-- user group end-->
266
        </fieldset><!-- user group end-->
289 267

  
290 268
    </div>  <!-- box1 end-->
291 269

  
292 270
    <div class="box2">
293
                    <!-- NEW VIDEOS START -->
294
                    {if $new_video_total gt "0"}
295

  
296
            <div class="section bg2 clearfix">
297
               <div class="hd">
298
                  <div class="hd-l">New Videos</div>
299
                  <div class="hd-r">
300
                  <a href="{$base_url}/{$user_info.user_name}/public/">More Videos</a>
301
                   </div>
302
               </div>
303
                    <br />
271
    
272
        <!-- NEW VIDEOS START -->
273
        {if $new_video_total gt "0"}
274
            <fieldset>
275
                <legend><u>New Videos [<a class="" href="{$base_url}/{$user_info.user_name}/public/">See all</a>]</u></legend>
276
                
304 277
                <ul id="user-video">
305
                   {section name=i loop=$new_video start=0 max=4}
306
                <li>
307
                    <a href="{$base_url}/view/{$new_video[i].video_id}/{$new_video[i].video_seo_name}/">
308
                    <img class="preview" src="{$new_video[i].video_thumb_url}/thumb/{$new_video[i].video_folder}1_{$new_video[i].video_id}.jpg"
309
                   width="120" height="90" alt="{$new_videos[i].video_title}" /><br />
310
                   {$new_video[i].video_title|truncate:25:'...'}
311
                   </a>
312
                   <br />
313
                </li>
278
                    {section name=i loop=$new_video start=0 max=8}
279
                        <li>
280
                            <a href="{$base_url}/view/{$new_video[i].video_id}/{$new_video[i].video_seo_name}/">
281
                                <img class="preview" src="{$new_video[i].video_thumb_url}/thumb/{$new_video[i].video_folder}1_{$new_video[i].video_id}.jpg" width="120" height="90" alt="{$new_videos[i].video_title}" /><br />
282
                            </a>
283
                            <div>
284
                               <a href="{$base_url}/view/{$new_video[i].video_id}/{$new_video[i].video_seo_name}/">
285
                                   {$new_video[i].video_title|truncate:25:'...'}
286
                               </a>
287
                            </div>
288
                            <div>Time: {$new_video[i].video_length|truncate:5:''} | Views: {$new_video[i].video_view_number}</div>
289
                            <div>Comments: {$new_video[i].video_com_num}</div>
290
                            <div class="show-rating">{insert name=show_rate assign=rate rte=$new_video[i].video_rate rated=$new_video[i].video_rated_by}{$rate}</div>
291
                        </li>
314 292
                   {/section}
315 293
                </ul>
316
            </div>     <!-- NEW VIDEOS ENDS -->
317

  
318
           <div class="section bg2 clearfix">
319
                   <div class="hd">
320
                        <div class="hd-l">Popular Videos</div>
321
                          <div class="hd-r">
322
                          <a href="{$base_url}/{$user_info.user_name}/public/">More Videos</a>
323
                          </div>
324
                        </div>
325
                        <br />
326
                   <ul id="user-video">
327
                        {section name=i loop=$popular start=0 max=4}
328
                    <li>
329
                        <a href="{$base_url}/view/{$popular[i].video_id}/{$popular[i].video_seo_name}/">
330
                        <img class="preview" src="{$popular[i].video_thumb_url}/thumb/{$popular[i].video_folder}1_{$popular[i].video_id}.jpg" width="120" height="90" alt="{$popular[i].video_title}" /><br />
331
                        {$popular[i].video_title|truncate:25:'...'}
332
                        </a>
333
                     </li>
334
                        {/section}
335
                   </ul>
336
           </div>
337

  
294
                
295
            </fieldset>     <!-- NEW VIDEOS ENDS -->
338 296
        {/if}
339 297
        
340 298
        <!-- user friends -->
341
        
342
        <div class="section bg2 clearfix">
343
            
344
            <div class="hd">
345
                <div class="hd-l">New Friends</div>
346
                <div class="hd-r">
347
                    <a href="{$base_url}/{$user_info.user_name}/friends/">More Friends</a>
348
                </div>
349
            </div>
350
            <br />
351
            
352
            <ul id="user-friend">
353
                {section name=i loop=$user_friends start=0 max=4}
354
                    <li>
355
                        <a href="{$base_url}/{$user_friends[i].friend_name}">
356
                        {insert name=member_img UID=$user_friends[i].friend_friend_id}<br />
357
                        {$user_friends[i].friend_name|truncate:25:'...'}
358
                        </a>
359
                    </li>
360
                {/section}
361
           </ul>
362
        </div>
299
        {if $user_friends|@count gt "0"}
300
            <fieldset>
301
                <legend><u>New Friends [<a href="{$base_url}/{$user_info.user_name}/friends/">See all</a>]</u></legend>
302
                
303
                <ul id="user-friend">
304
                    {section name=i loop=$user_friends start=0 max=18}
305
                        <li>
306
                            <a href="{$base_url}/{$user_friends[i].friend_name}">
307
                            {insert name=member_img UID=$user_friends[i].friend_friend_id}<br />
308
                            {$user_friends[i].friend_name|truncate:25:'...'}
309
                            </a>
310
                            <br />
311
                            {insert name=video_count assign=videos uid=$user_friends[i].friend_friend_id type=public}
312
                            videos: {$videos}
313
                        </li>
314
                    {/section}
315
                </ul>
316
                
317
            </fieldset>
318
        {/if}
363 319
        
364 320
        <!-- comment start -->
365 321

  
366
        <div class="section bg2">
322
        <fieldset>
367 323
        
368
            <div class="hd">
369
                <div class="hd-l"><a name="profile-comments">Profile Comments</a></div>
370
            </div>
324
            <legend><u><a name="profile-comments">Profile Comments</a></u></legend>
371 325
            
372 326
            <div id="comment_box" align="center">
373
            {if $allow_comment eq 1}
327
            {if $allow_comment eq 1}
374 328
                <form name="comment_form"  action="" method="post">
375 329
                    <textarea name="user_comment" rows="3" cols="40" id="user_comment"></textarea> <br />
376 330
                    <input type="button" value="Add Comment" name="submit"
377 331
                    onclick="post_profile_comment({$user_info.user_id})" />
378 332
                </form>
379
            {/if}
333
            {/if}
380 334
            </div>
381 335
            
382 336
            <div id="comm_result"></div>
383 337
            
384 338
            <div id="user_comment_display"></div>
385 339
        
386
        </div>
340
        </fieldset>
387 341
            
388 342
    </div> <!-- box2 ends-->
389 343
    
b/templates/user_comment.tpl
2 2
        
3 3
{section name = i loop=$profile_comments}
4 4
    
5
    <div id="cid-{$profile_comments[i].profile_comment_id}" class="profile-comment {cycle values="comment-bg1,comment-bg2"} clearfix">
5
    <div id="cid-{$profile_comments[i].profile_comment_id}" class="profile-comment clearfix">
6 6

  
7 7
        <div class="box1">
8 8
            {insert name=voter_name assign=name id=$profile_comments[i].profile_comment_posted_by}
9 9
            <a href="{$base_url}/{$name.name}">{$name.name}</a>
10
            <div class="margin-2em-auto">
10
            <div>
11 11
                <a href="{$base_url}/{$name.name}">
12 12
                    {insert name=member_img UID=$profile_comments[i].profile_comment_posted_by type=1}
13 13
                </a>
......
15 15
        </div>
16 16
            
17 17
        <div class="box2">
18
            <p class="date">{$profile_comments[i].profile_comment_date}</p>
18
            <div class="date">{$profile_comments[i].profile_comment_date}</div>
19 19
            {$profile_comments[i].profile_comment_text}
20 20
            {if $smarty.session.UID eq $profile_comments[i].profile_comment_user_id}
21 21
                <a href="javascript:void(0)" onclick="delete_comment('{$profile_comments[i].profile_comment_id}')">
......
29 29
{/section}
30 30

  
31 31
{if $page_links ne ""}
32
    <div class="page_links">
32
    <div>
33 33
        Pages: {$page_links}
34 34
    </div>
35 35
{/if}
36
-