ClipShare Community Forums  

Go Back   ClipShare Community Forums > ClipShare - Standard & PRO - Version 2 and Previous > Styles / Templates
Register FAQ Bug Tracker Members List Calendar Mark Forums Read

Styles / Templates Use this forum to share or find help on creating CSS style sheets or full ClipShare templates.


Reply
 
Thread Tools Display Modes
Old 04-12-2007, 08:18 PM   #1
-XXX-
Member
|Forum Newbie|
 
Join Date: Apr 2007
Posts: 24
-XXX- is on a distinguished road
Default SEO friendly links .htaccess

Searched a little and found this two topics on the forum

http://forums.scriptxperts.com/10-fe...tml-directory/
http://forums.scriptxperts.com/8-tro...s-mod_rewrite/

but none of the helped, will try something else then return back to the forum with the result
-XXX- is offline   Reply With Quote
Old 05-03-2007, 03:35 PM   #2
funk999
Member
|Forum Regular|
 
Join Date: Dec 2006
Posts: 168
funk999 is on a distinguished road
Default

I wish someone would give us an in depth details on how to do this,
funk999 is offline   Reply With Quote
Old 05-03-2007, 04:49 PM   #3
funk999
Member
|Forum Regular|
 
Join Date: Dec 2006
Posts: 168
funk999 is on a distinguished road
Default

Edit .htaccess to the code below, upload to the root of your clipshare directory,

Quote:
Originally Posted by funk999 View Post
RewriteEngine on
Options +FollowSymlinks
RewriteBase /


RewriteRule ^video_([-,_0-9a-zA-Z]+),([0-9a-zA-Z]+),([0-9a-zA-Z]+).html$ view_video.php?viewkey=$3
RewriteRule ^video_([-,_0-9a-zA-Z]+),([0-9a-zA-Z]+),([0-9a-zA-Z]+).htm$ view_video.php?viewkey=$3
RewriteRule ^video-([-,_0-9a-zA-Z]+),([0-9a-zA-Z]+),([0-9a-zA-Z]+).html$ view_video.php?viewkey=$3
RewriteRule ^video-([-,_0-9a-zA-Z]+),([0-9a-zA-Z]+),([0-9a-zA-Z]+).htm$ view_video.php?viewkey=$3
RewriteRule ^rss/new /rss.php?type=new [L]
RewriteRule ^rss/comments /rss.php?type=comments [L]
RewriteRule ^rss/views /rss.php?type=views [L]

Second edit view_video.php, place the below code anywhere (i put mine just under include("include/function.php"); )

Quote:
Originally Posted by funk999 View Post
////////////////MODE REWRITE/////////////////

include('include/connect_db.php');
$gettimestamp = mysql_query("select title, keyword,vkey from video where vkey = '$_REQUEST[viewkey]'");

while($hol_time = mysql_fetch_array($gettimestamp))
{
$title_mod = $hol_time["title"];
$keyword_mod = $hol_time["keyword"];
$vkey_mod = $hol_time["vkey"];
}


// Leerzeichen durch "_"ersetzen
$search = array(" ");
$title_mod = strtolower(str_replace($search,"_",$title_mod));

//umlaute etc duch "" Nix ersetzen
$search = array(".","ä","ö","ü","ß","?","Ö","Ä","Ü",";","§", "&","/","(",")","=");
$title_mod = strtolower(str_replace($search,"",$title_mod));


// Leerzeichen durch "_"ersetzen
$search = array(" ");
$keyword_mod = strtolower(str_replace($search,",",$keyword_mod));

//umlaute etc duch "" Nix ersetzen
$search = array(".","ä","ö","ü","ß","?","Ö","Ä","Ü",";","§", "&","/","(",")","=");
$keyword_mod = strtolower(str_replace($search,"",$keyword_mod));



////////////////MODE REWRITE/////////////////


STemplate::assign('title_mod',$title_mod);
STemplate::assign('keyword_mod',$keyword_mod);
STemplate::assign('vkey_mod',$vkey_mod);


in your view_video.tpl , place the code anywhere on your template, the result should be close your broser clear cache, now goto any video page, you should see a box that shows an input box, because of the code below, if you goto that link in the box it should work magic

<input style="width:300px" value="{$baseurl}/video-{$title_mod},{$keyword_mod},{$vkey_mod}.html" id="video_ID"
onClick="document.getElementById('video_ID').focus ();document.getElementById('video_ID').select();" readonly="true">


<input style="width:300px" value="{$baseurl}/video-{$title_mod},{$keyword_mod},{$vkey_mod}.html" id="video_ID"
onClick="document.getElementById('video_ID').focus ();document.getElementById('video_ID').select();" readonly="true">

<input style="width:300px" value="{$baseurl}/video-{$title_mod},{$keyword_mod},{$vkey_mod}.html" id="video_ID"
onClick="document.getElementById('video_ID').focus ();document.getElementById('video_ID').select();" readonly="true">
funk999 is offline   Reply With Quote
Old 05-03-2007, 05:02 PM   #4
likio
Member
|Forum Junior|
 
likio's Avatar
 
Join Date: Feb 2007
Location: Germany
Posts: 99
likio is on a distinguished road
Default

thanks alot funk999
likio is offline   Reply With Quote
Old 05-04-2007, 01:58 AM   #5
funk999
Member
|Forum Regular|
 
Join Date: Dec 2006
Posts: 168
funk999 is on a distinguished road
Default

Someone Please help me change the rest of the pages like video.php
funk999 is offline   Reply With Quote
Old 05-04-2007, 02:22 AM   #6
Crow
Member
|Forum Newbie|
 
Crow's Avatar
 
Join Date: May 2007
Posts: 30
Crow is on a distinguished road
Default

Quote:
Originally Posted by likio View Post
thanks alot funk999
THANKS!! funk999
Crow is offline   Reply With Quote
Old 05-13-2007, 02:51 PM   #7
thesecretnetwork
Member
|Forum Newbie|
 
Join Date: May 2007
Posts: 39
thesecretnetwork is on a distinguished road
Default

is this already in the new version? i bought pro yesterday and hope this is in it!
thesecretnetwork is offline   Reply With Quote
Old 05-13-2007, 05:49 PM   #8
t.check
Forum Advisor
|Forum Guru|
 
t.check's Avatar
 
Join Date: Feb 2007
Location: Frozen Yogurt Land (aka California)
Posts: 1,180
t.check is on a distinguished road
Send a message via AIM to t.check Send a message via MSN to t.check Send a message via Yahoo to t.check Send a message via Skype™ to t.check
Default

Oh it's not. Don't get too happy.
__________________
Current Special: Quadruple bandwidth on all plans for life! Just sign up and send a ticket into support mentioning this ticket and we'll upgrade you for free! Expires on Halloween!

Interested in high-quality, non-oversold web hosting?
Click here and give Kiveta a try.
t.check is offline   Reply With Quote
Old 05-13-2007, 06:05 PM   #9
t.check
Forum Advisor
|Forum Guru|
 
t.check's Avatar
 
Join Date: Feb 2007
Location: Frozen Yogurt Land (aka California)
Posts: 1,180
t.check is on a distinguished road
Send a message via AIM to t.check Send a message via MSN to t.check Send a message via Yahoo to t.check Send a message via Skype™ to t.check
Default

Grrr, it didn't work for me. I got this instead

Code:
Warning: main(include/connect_db.php) [function.main]: failed to open stream: No such file or directory in /home/urworld/public_html/media/view_video.php on line 39

Warning: main(include/connect_db.php) [function.main]: failed to open stream: No such file or directory in /home/urworld/public_html/media/view_video.php on line 39

Warning: main() [function.include]: Failed opening 'include/connect_db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/urworld/public_html/media/view_video.php on line 39
As a result, I went to view_video.php and edited include/connect_db.php to include/dbconfig.php, as connect_db.php wasn't a file.
__________________
Current Special: Quadruple bandwidth on all plans for life! Just sign up and send a ticket into support mentioning this ticket and we'll upgrade you for free! Expires on Halloween!

Interested in high-quality, non-oversold web hosting?
Click here and give Kiveta a try.

Last edited by t.check : 05-13-2007 at 06:13 PM.
t.check is offline   Reply With Quote
Old 05-13-2007, 06:08 PM   #10
t.check
Forum Advisor
|Forum Guru|
 
t.check's Avatar
 
Join Date: Feb 2007
Location: Frozen Yogurt Land (aka California)
Posts: 1,180
t.check is on a distinguished road
Send a message via AIM to t.check Send a message via MSN to t.check Send a message via Yahoo to t.check Send a message via Skype™ to t.check
Default

The only problem I face now is that the links the text boxes don't work, and I am unsure why.

PLEASE HELP!
__________________
Current Special: Quadruple bandwidth on all plans for life! Just sign up and send a ticket into support mentioning this ticket and we'll upgrade you for free! Expires on Halloween!

Interested in high-quality, non-oversold web hosting?
Click here and give Kiveta a try.

Last edited by t.check : 05-13-2007 at 06:14 PM.
t.check 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



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


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

An Envient product.