| This Filipina Lady and Penpal Forum is read only for guests and members. If you would like to be part of the New Filipina, Asian and Penpal Forum please click Filipina, Asian, Penpal Forum. If you would like to join one of our FREE Filipina Lady online dating sites, you can check them out by clicking FREE Filipina Lady Dating Sites. |
dan Site Admin
Joined: 18 Jul 2007 Posts: 63
Digg It
Del.icio.us
Slashdot It! |
Posted: Mon Nov 12, 2007 10:30 am Post subject: YouTube Experiment |
|
|
|
I decided to start a new thread since my other thread on youtube may confuse the issue.
I have been trying to do a couple of things to my site at members request. One is related to youtube and the other is related to adsense. In trying to solve both, I have been able to come up with a semi-solution to my YouTube problem
In case someone else wants to have youtube as a profile option, below is my solution. It is far from perfect, but customers seem to want it. I post my steps to help you with adding youtube and also in case someone can recommend a better way or changes that may improve it, othewise you are welcome to use the code as is if it works for you.
Here goes my images and words to the YouTube solution
First thing I did was create a custom field in the CP. I decided to put this field under the Personal Group.
Here is the code I added to the member_profile.tpl.
| Code: |
<!-- IF top.profile_field_videoid_value -->
<tr> <td>
<table width="300" height="255" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EBCECE" class="dbtube">
<tr><td><div align="center"><font color="#A10717"><strong>My YouTube</strong></font></div></td>
</tr><tr><td><object width="325" height="255">
<param name="movie" value="http://www.youtube.com/v/{top.profile_field_videoid_value}">
</param>
<param name="wmode" value="transparent">
</param>
<embed src="http://www.youtube.com/v/{top.profile_field_videoid_value}"type="application/x-shockwave-flash" wmode="transparent" width="325" height="255"></embed> </object>
</td></tr></table>
<!-- ENDIF --> |
I added the above code right after the following code in member_profile.tpl (note: your code may be different since I have added other custom code and depending on what template you use)
| Code: |
<div class="reportbox" style="display: none" id="report_profile_box1">
<select class="select" id="report_profile_reason1" name="report_profile_reason1">
<option value="">{lang:"core","report_reason"}</option>
{dropdownlist:top.system_report_reasons,"-1"}
</select>
<a href="#" onclick="submit_report('profile','{member_id}','1','{lang:"core","report_no_reason"}');return false;">{lang:"core","submit"}</a>
</div>
</div>
<!-- ENDIF -->
</td>
</tr> |
FRONT END RESULTS
Where does the member get the video Id?
Here is a minor glitch that doesn't concern me, but wanted to point it out.
Here is another gltich. In the CP, I added the custom field (youtube) under the Personal Group and it does display the video on the front end under the Personal Tab but it also displays the video under all tabs.
That is it. I wish I was better at explaining things, but hopefully the images help. In summary the video displays in the member's profile if he types the video ID in the youtube text field. Profiles that do not add a video ID are not effected. The only glitch is it displays in the member's
profile as well as under all profile groups
A quick survey of my members and they did not seem to mind this glitch, but it may take away from the professionalism of the site.
Good Luck |
|
| Back to top |
|
|
|
|
|
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|