-
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
-
Re: Post here:style(.css) change and template (.tpl)modification
They wanted a link that will take them at the bottom not the top. My code will acheive that so will yours if they place that code at the bottom instead.
Artin
-
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by Artin
They wanted a link that will take them at the bottom not the top. My code will acheive that so will yours if they place that code at the bottom instead.
Artin
YEA! you are right.but you look now my early post. i replaced it into the go to bottom code
just see this :D
Code:
<a name="go_to_bottom">
anyway thanks for this infomation Artin
thanks :D
-
Re: Post here:style(.css) change and template (.tpl)modification
You guys are just great. I tried one of your solutions and it worked perfectly.
Thanks so much!
-
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by tripleA
You guys are just great. I tried one of your solutions and it worked perfectly.
Thanks so much!
its ok :D
any helps in your template modification and style(css) problem post here!.
i am always here!! :D
-
Black and neon green
Hi,
How would I create a theme that looks like this ===> http://TheWall.net/sample.jpg
I can figure out the background and text colors, but I don't know how to make tabs out of the default vshare buttons across the top.
Thanks for any help you might be able to give
-
Re: Post here:style(.css) change and template (.tpl)modification
You need to add the tabs menu code in header.tpl file.
Also upload the images (buttons)into images folder (templates) and
add the tabs menu css in to style.css in css folder (templates)
-
Re: Post here:style(.css) change and template (.tpl)modification
You can change like that black theme in headder you can edit the header.tpl in templates folder.you can see hd section in headder.tpl see folowwing code
Code:
<div id="hd">----headder content is here---</div>
this diviation is used for vshare headder section.you can edit this whole section to make complete changes if you want .youcan see this style in style.css.
You can see the vshare menu in headder.tpl.look below
Code:
<table class="menu">
<tr align="center">
<td width="14%">HOME</td>
<td width="15%">UPLOAD</td>
<td width="15%">WATCH</td>
<td width="14%">TAGS</td>
<td width="14%">PICTURES</td>
<td width="14%">CHANNELS</td>
<td width="14%">GROUPS</td>
<td width="14%">FRIENDS</td>
<td width="14%" style="border:0px">MEMBERS</td>
</tr>
</table>
Edit style.css in template folder.look at the following code. its vshare headder menu css.you can replace as your own black style
Code:
a.menu, a.menu:link, a.menu:link:visited {
font-family: Verdana, Arial;
font-size: 14px;
color: #FFFFFF;
font-weight: bold;
}
a.menu:hover { color: #FF0; }
a.submenu, a.submenu:link, a.submenu:link:visited, .submenu {
font-family: verdana, arial;
font-size: 11px;
color: #2b376b;
}
Then you can replace the menu.gif its under templates->images->menu.gif
you can see this "menu.gif" is used for vshare headder menu image.You can replace this for your own image
-
Re: Post here:style(.css) change and template (.tpl)modification
WOW thank you, that was comprehensive! I'll set to work on it, see how I do. Thank you for your time!
-
Re: Post here:style(.css) change and template (.tpl)modification
What I did was change the cells to a certain width and then make the cells have a background, which is the tabs as a graphic...can be done by creating a class in .css. See my skins site for examples...I have a couple of skins with the navigation as tabs like this one:
http://webgeek-design.com/index.php?act ... oductId=54
For the tabs changing color, that's probably a script of some sort that you can most likely find at places like http://dynamicdrive.com/ where once the page is chosen, it replaces the graphic or the color (however you have it set up..either with a color or a graphic for the cell). Here's a particular script they have that's rather nice http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm
I have implemented this script on a custom site that I did for myself one time, works really nice.
-
Re: Post here:style(.css) change and template (.tpl)modification
Hi
Hopefully anyone can help me with the modifications I wanted to do on my site http://www.islandflik.com
1. Show users profile picture on Last 10 Users Online as shown on homepage.
2. Show recent friends pictures on users profile
That's it to get me started:)
regards
Marsh
www.islandflik.com
-
Re: Post here:style(.css) change and template (.tpl)modification
1. Show users profile picture on Last 10 Users Online as shown on homepage. in this case you can log in to admin panel-> site settings ->home page->change the number of last online users
2. Show recent friends pictures on users profile,but in this case i am not sure in this version!!
-
Re: Post here:style(.css) change and template (.tpl)modification
We just recently managed to figure out how to get the user profile to appear on the view video page, try the code that's being used there. Do a forum search.
-
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by sanil
1. Show users profile picture on Last 10 Users Online as shown on homepage. in this case you can log in to admin panel-> site settings ->home page->change the number of last online users
2. Show recent friends pictures on users profile,but in this case i am not sure in this version!!
Thanks for the reply...
For the first question, I meant the "Recent Users photo to show up togather with the info already shown"
thanks anyways for atleast trying... I really appreciate it
Marsh
http://www.islandflik.com
-
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by grynmoors
We just recently managed to figure out how to get the user profile to appear on the view video page, try the code that's being used there. Do a forum search.
thanks but I have no idea what you're saying. I just want to show friends on users profile like youtube did.
Thanks
Marsh
http://www.islandflik.com
-
Re: Post here:style(.css) change and template (.tpl)modification
UGH! I meant "user profile photo" to appear on the view video page.
-
Re: Post here:style(.css) change and template (.tpl)modification
Quote:
Originally Posted by grynmoors
UGH! I meant "user profile photo" to appear on the view video page.
Is not what I ask! But that's ok. I appreciate your effort in trying to solve my problem. Maybe I didn't make my request clear enough:)
thanks anyways
Marsh
-
Re: Post here:style(.css) change and template (.tpl)modification
.
Hi there. I have somewhat of a tricky problem. My vshare site is this one here:
http://www.meineclipshow.einfachclicken.de/
It's been translated into german but the problem is evident directly on the right side of the screen. According to our stats software, 74% of our domain users (http://www.einfachclicken.de) are Internet Explorer users, and so that's for whom it has to look right first. Anyway, germans have some really long words and I noticed that when the word - ENTERTAINMENT - was used for the very fisrt time, it caused the entire tags table to stretch, in order to fit the whole word on the line. The orignal size is exactly the same width as the image above it, the one with the numbers 1 through 8. Of course there are also much bigger words too, and now I'm concerned that the table could stretch apart even further ... causing the site to look quite badly. So here my question ...
Is there some way to automatically generate a line break after "X" amount of letters have been used for a tag word, or is there some command, similar to the html <NOBR> tag which can be implemented in order to FORCE that table to remain at a certain width, no matter what? A perfect solution on the other hand, would be by being able to FORCE entire tag words with more than "X" amount of characters to appear in a very small or smaller font size. That way, even if a word had more than 20 characters, it could still be forced to remain on one line. Any thoughts or ideas on that?
Thank you very much for your time.
.
-
Re: Post here:style(.css) change and template (.tpl)modification
This is a known issue.
A forum search revealed this thread:
viewtopic.php?f=11&t=2556