ClipShare Community Forums  

Go Back   ClipShare Community Forums > ClipShare PRO - Version 4 > Pre-Sales Questions
Register FAQ Bug Tracker Members List Calendar Mark Forums Read

Pre-Sales Questions If you have any pre-sales questions, here's the place to ask.


Reply
 
Thread Tools Display Modes
Old 07-08-2008, 09:39 PM   #1
cashbagg
Member
|Forum Newbie|
 
Join Date: Jul 2008
Posts: 1
cashbagg is on a distinguished road
Default RSS feed info

I'm wondering if I can display only RSS feeds from the larger tube sites as the only video content?

I'm just starting out and have no videos hosted. Is this an option?
cashbagg is offline   Reply With Quote
Old 07-09-2008, 01:17 PM   #2
symtab
ClipShare Staff
|Forum Guru|
 
Join Date: Jan 2007
Posts: 1,945
symtab has disabled reputation
Default

Hi,

This feature is not available by default in clipshare.
symtab is offline   Reply With Quote
Old 09-16-2008, 12:30 AM   #3
hazem
Member
|Forum Newbie|
 
Join Date: Nov 2007
Location: ku
Posts: 4
hazem is on a distinguished road
Default

copy the code in rss

Code:

Quote:

<?php

include("include/dbconfig.php");
include("include/config.php");

if ($_GET[type] == "new")
{
$query = "SELECT A.*,B.UID,B.username FROM video A, signup B WHERE A.UID=B.UID AND A.type = 'public' and A.active='1' ORDER BY A.VID desc LIMIT 20";
$titel = "[Newest videos]";
$url = $config['BASE_URL']."/rss/new/";
}
elseif ($_GET[type] == "views")
{
$query = "SELECT A.*,B.UID,B.username FROM video A, signup B WHERE A.UID=B.UID AND A.type = 'public' and A.active='1' ORDER BY A.viewnumber desc LIMIT 20";
$titel = "[Most Viewed videos]";
$url = $config['BASE_URL']."/rss/views/";
}
elseif ($_GET[type] == "comments")
{
$query = "SELECT A.*,B.UID,B.username FROM video A, signup B WHERE A.UID=B.UID AND A.type = 'public' and A.active='1' ORDER BY A.com_num desc LIMIT 20";
$titel = "[Most Commented videos]";
$url = $config['BASE_URL']."/rss/comments/";
}

else
{
$query = "SELECT A.*,B.UID,B.username FROM video A, signup B WHERE A.UID=B.UID AND A.type = 'public' and A.active='1' ORDER BY A.VID desc LIMIT 20";
$titel = "[Newest videos]";
$url = $config['BASE_URL']."/rss/new/";
}


header("Content-Type: text/xml");
header("Expires: 0");
print "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
print "<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss \">\n";
print "<channel>\n";
print "<title>".$config['site_name']." - ".$titel."</title>\n";
print "<link>".$url."</link>\n";
print "<description>".$titel."</description>\n";
print "<copyright>Copyright (c) 2006-2007 by ".$config['site_name']." - All rights reserved.</copyright>\n";
print "<image>\n";
print "<title>".$config['site_name']."</title>\n";
print "<link>".$config['BASE_URL']."/</link>\n";
print "</image>\n";

$db=mysql_connect ($DBHOST,$DBUSER,$DBPASSWORD) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ($DBNAME);

$num_rows = mysql_num_rows(mysql_query("select * from video"));

$result = mysql_query($query) or die ('Query Error: ' . mysql_error());
while ($results = mysql_fetch_array($result))
{
$photo = $config['BASE_URL']."/thumb/1_".$results['VID'].".jpg";
$video = $config['BASE_URL']."/view_video.php?viewkey=".$results['vkey'];
$description = $results['description'];
$description = str_replace ("&amp","",htmlspecialchars(stripslashes($descript ion)));
$photo = str_replace ("&amp","&amp",htmlspecialchars(stripslashes($phot o)));
$results[username] = str_replace ("&amp","&amp",htmlspecialchars(stripslashes($resu lts[username])));
$results[keyword] = str_replace ("&amp","&amp",htmlspecialchars(stripslashes($resu lts[keyword])));

print "<item>\n";
print " <title>".$results['title']."</title>\n";
print " <link>".$video."</link>\n";
print " <description>\n";
print " <![CDATA[";
print "<img src=\"$photo\" align=\"right\" border=\"0\" width=\"174\" height=\"130\" vspace=\"4\" hspace=\"4\" /><br /><br />
<p>".$description."</p><p>".$key."</p>
<p><b>Watch here:</b> <a href=\"".$video."\">".$video."</a></p>
<p>Added by: <a href=\"$config[BASE_URL]/uprofile.php?UID=".$results[UID]."\">".$results[username]."</a><br/>
Tags: ";

$tok = strtok($results[keyword], " ");
while ($tok !== false)
{
print "<a href=\"$config[BASE_URL]/search_result.php?search_id=".$tok."\">".$tok."</a> ";
$tok = strtok(" ");
}
print "<br />Date: ".$results[adddate]."<br/></p><br /><hr>";
print " ]]>\n";
print " </description>\n";
print " <author>".$results[username]."</author>\n";
print "</item>\n";
}
mysql_close();
print "</channel>";
print "</rss>";
?>
hazem is offline   Reply With Quote
Old 05-21-2009, 05:08 AM   #4
guynuked
Member
|Forum Newbie|
 
Join Date: Mar 2007
Posts: 43
guynuked is on a distinguished road
Default

I have the latest CS, is this rss modification still good? Is it validated?
guynuked is offline   Reply With Quote
Old 06-30-2009, 12:26 PM   #5
opal
Member
|Forum Regular|
 
opal's Avatar
 
Join Date: Jun 2009
Posts: 134
opal is on a distinguished road
Default

Well when i click rss and select for example latest 20 i see them, but if i click on video titl it move to site and says that video dont exist... lol ?

Bad httacces. Fixed allready. And seo links must be on.

Last edited by opal : 07-09-2009 at 10:17 AM.
opal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Info to buy Pro4 angel2k84 Pre-Sales Questions 5 06-21-2008 12:56 PM
Removing the 18+ info.... leveleight Styles / Templates 3 01-06-2008 04:47 PM



All times are GMT +1. The time now is 04:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2006-2008 Envient. All Rights Reserved.

An Envient product.