Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Post here:style(.css) change and template (.tpl)modification

  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    147

    Default 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

  2. #2

    Default 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

  3. #3
    Join Date
    Jan 2008
    Location
    India
    Posts
    147

    Default Re: Post here:style(.css) change and template (.tpl)modification

    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

  4. #4
    Join Date
    Apr 2007
    Posts
    2,202

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

  5. #5

    Default Re: Post here:style(.css) change and template (.tpl)modification

    Quote Originally Posted by sanil
    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?

  6. #6
    Join Date
    Jan 2008
    Location
    India
    Posts
    147

    Default 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

  7. #7

    Default 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!

  8. #8

    Default 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

  9. #9

    Default 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:
    Code:
    Go to bottom
    But a better way would be to use a anchor.

    Artin

  10. #10
    Join Date
    Jan 2008
    Location
    India
    Posts
    147

    Default Re: Post here:style(.css) change and template (.tpl)modification

    just copy and paste this code into your channels.tpl top of the page
    Code:
    Go To Bottom
    Then copy and paste this code into your channels.tpl bottom part
    Code:
    <a name="go_to_bottom">
    ok
    thanks :D

Page 1 of 3 123 LastLast

Similar Threads

  1. Need Template Modification Will $200
    By micq in forum Template Modifications
    Replies: 5
    Last Post: 04-02-2009, 08:34 PM
  2. Niche Video Script modification
    By lovek in forum Sales Questions
    Replies: 0
    Last Post: 11-02-2008, 08:41 PM
  3. how to change template size
    By igorcreed in forum Template Modifications
    Replies: 7
    Last Post: 04-11-2008, 01:55 AM
  4. Change the template color
    By mario2000 in forum Template Modifications
    Replies: 4
    Last Post: 02-18-2008, 04:38 AM
  5. Change Template Color
    By dalejr410 in forum Template Modifications
    Replies: 4
    Last Post: 01-02-2008, 12:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •