Post here:style(.css) change and template (.tpl)modification
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
NB:please post your site URL
ok
thanks
sanil :D
Re: Post here:style(.css) change and template (.tpl)modification
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
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
1. Number of videos uploaded
you can change this only.you can see this in right.tpl.use the below code
Code:
{insert name="show_stats" assign="stats"}
Number of Videos:{$stats.total_video}
your other requests are not in my section .changes made in.php files so please contact ADMIN.
ok
thanks
Re: Post here:style(.css) change and template (.tpl)modification
Some of the changes is not possible with just template changes, we will try to add these on next release.
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by sanil
Quote:
1. Number of videos uploaded
you can change this only.you can see this in right.tpl.use the below code
Code:
{insert name="show_stats" assign="stats"}
Number of Videos:{$stats.total_video}
your other requests are not in my section .changes made in.php files so please contact ADMIN.
ok
thanks
Thank YOU! However, where can I get a list of variables such as $stats.total_video from?
Re: Post here:style(.css) change and template (.tpl)modification
{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
Re: Package problem resolved
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!
Re: Post here:style(.css) change and template (.tpl)modification
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
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by tripleA
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:
But a better way would be to use a anchor.
Artin
Re: Post here:style(.css) change and template (.tpl)modification
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 part
Code:
<a name="go_to_bottom">
ok
thanks :D