welcome vshare users..
If you want to make changes in your style and tpl files please post your questions? here
Any doubt in .css and .tpl post here..
NB:don't PM me because its a help for all vshare users
NBlease post your site URL
ok
thanks
sanil![]()
welcome vshare users..
If you want to make changes in your style and tpl files please post your questions? here
Any doubt in .css and .tpl post here..
NB:don't PM me because its a help for all vshare users
NBlease post your site URL
ok
thanks
sanil![]()
Hello sanil.
Currently a user's profile gives the following data:-
My Videos have been viewed 27 times
My Profile has been viewed 15 times
I've watched 9 videos
I have 0 friends
I want to be able to add other statistics such as:-
1. Number of videos uploaded
2. Number of videos commented on
3. duration of membership (how long you've been a member for)
4. Number of friends
AND
5. I want to be able to add a field called Membership Level - copper (or Silver/Gold/platinum)
The upgrading from one membership level to another will be done by the admin - perhaps via modifying an SQL database. It will just be a title that the admin awards. I would however prefer it to be done automatically e.g
6. you have uploaded 4 or more videos AND have invited at least 5 friends AND have watched at least 25 videos therefore you go from copper to silver automatically.
Can you help me to achieve this?
TripleA
you can change this only.you can see this in right.tpl.use the below code1. Number of videos uploaded
your other requests are not in my section .changes made in.php files so please contact ADMIN.Code:{insert name="show_stats" assign="stats"} Number of Videos:{$stats.total_video}
ok
thanks
Some of the changes is not possible with just template changes, we will try to add these on next release.
Thank YOU! However, where can I get a list of variables such as $stats.total_video from?Originally Posted by sanil
{insert name="show_stats" assign="stats"}
its a smarty template function,its function return this variable stats.stats is an array it contain many values
you can see this in right.tpl
ok
I'd wanted the user's package to be displayed in his/her pofile. My solution is a bit tacky but provides what I want:-
1. Using the admin GUI, modify the Video Limit of the packages to correspond to point #2.
2. Edit user.tpl to give ...
{if $pack.video_limit eq "0"} Membership Rank is Platinum {/if}
{if $pack.video_limit eq "500"} Membership Rank is Gold{/if}
{if $pack.video_limit eq "400"} Membership Rank is Silver {/if}
{if $pack.video_limit eq "300"} Membership Rank is Copper {/if}
{if $pack.video_limit eq "200"} Membership Rank is Steel {/if}
My Videos have been viewed {$user_info.video_viewed} times
My Profile has been viewed {$user_info.profile_viewed} times
I've watched {$user_info.watched_video} videos
{insert name=friends_count assign=frcnt uid=$user_info.UID}
I have {$frcnt} friends
</p>
Gives an output such as ...
Membership Rank is Platinum
My Videos have been viewed 267 times
My Profile has been viewed 49 times
I've watched 11 videos
I have 0 friends
I have uploaded 155 videos.
Space I have used 122.53 MB out of 1.95 GB
Bandwidth I have used 1.03 MB out of 800 MB
3. I did not want all the packages & prices displayed in the Sign Up page, I only wanted 'steel' to be displayed. So modified signup.tpl...
{if $enable_package eq "yes"}<tr><td colspan="2"></td></tr><tr><td colspan=2 bgcolor="#000000" align="center"><table width="100%" cellpadding=3 cellspacing=3 bgcolor="#F8F8FF" align="center"><tr><td colspan=2><font size="3px">Available Packages</font></td></tr>{section name=i loop=$package}{if $package[i].video_limit eq "200"}<tr><td valign="top" width=5><input type="radio" name="pack_id" value="{$package[i].pack_id}"></td> <td>{$package[i].pack_name}
{$package[i].pack_desc}
- I certify I am over 18 years old.
- I agree to the terms of use and privacy policy.
NOTE. I will tidy this up up with better info for prospective users. It has the added advantage that anyone who signs up will have to select that they have read Terms and Privacy policy.
I hope this is useful to someone.
VShare is just great!
Hi Sanil I can you help me with this:-
I have a long channnel page and I want to put a link near the top that will take a user straight to the bottom of the page. Can you suggest how I can do this?
Thanks,
TripleA
You could use this:Originally Posted by tripleA
But a better way would be to use a anchor.Code:Go to bottom
Artin
just copy and paste this code into your channels.tpl top of the page
Then copy and paste this code into your channels.tpl bottom partCode:Go To Bottom
okCode:<a name="go_to_bottom">
thanks![]()
Bookmarks