Free Adult Tube-Video Script Forum
Problems with categories - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Problems with categories (/showthread.php?tid=1731)



Problems with categories - xaxuke - 24-08-2011 01:01 PM

Hi from Spain!!!

The script it's great but I have a problem and I can't fix them.

The problem is with the paths of some links on the web.

I have configured seo in admin panel and add this lines to config.php:

$root_url="/";
$root_dir=$_SERVER["DOCUMENT_ROOT"]."/";

When I click on first category the link is:
http://www.elcastillodelplacer.es/categoria_video/9/1/Videos+Porno+HD+Asi%C3%A1ticas

When I click on other category the link is:
http://www.elcastillodelplacer.es/categoria_video/9/1/categoria_video/16/1/Videos+Porno+HD+BSDM

The script add the categories.

When I am on a video:
http://www.elcastillodelplacer.es/video/79069/Fantastica+paja+al+salir+de+la+piscina

and I click on a category the link is:
http://www.elcastillodelplacer.es/video/79069/categoria_video/9/1/Videos+Porno+HD+Asi%C3%A1ticas

The script add the categorie and the video on the same link.


When I am on a video:
http://www.elcastillodelplacer.es/video/79069/Fantastica+paja+al+salir+de+la+piscina

the related thumbs doesn't work because the script try to load on a page that it doesn't exists:
http://www.elcastillodelplacer.es/video/79069/img/thumb/74342_0.jpg

the img must be:
http://www.elcastillodelplacer.es/img/thumb/74342_0.jpg

Any idea?


RE: Problems with categories - Punktured - 24-08-2011 01:50 PM

i think you may have an error in your htaccess file, can you please attatch it here.


RE: Problems with categories - xaxuke - 24-08-2011 03:25 PM

(24-08-2011 01:50 PM)Punktured Wrote:  i think you may have an error in your htaccess file, can you please attatch it here.

.htaccess

Code:
RewriteEngine On

RewriteRule ^video/([0-9]+)/(.*)$ ?id=$1&title=$2&option=video [NC]

RewriteRule ^tag_video/(.*)$ ?tag=$1&option=tag [NC]

RewriteRule ^categoria_video/([0-9]+)/([0-9]+)/(.*)$ ?id=$1&p=$2&category=$3&option=category [NC]

RewriteRule ^juegos_porno/([0-9]+)/(.*)$ ?id=$1&title=$2&option=game [NC]

RewriteRule ^juegos_porno/#id/#title$ ?tag=$1&option=tag_game [NC]

RewriteRule ^categoria_juegos_porno/([0-9]+)/([0-9]+)/(.*)$ ?id=$1&p=$2&category=$3&option=category_game [NC]



RE: Problems with categories - Punktured - 24-08-2011 03:34 PM

in your config/config.php file, can you paste me this line please...

$website="********";


RE: Problems with categories - xaxuke - 24-08-2011 03:35 PM

(24-08-2011 03:34 PM)Punktured Wrote:  in your config/config.php file, can you paste me this line please...

$website="********";

config.php
Code:
$website="http://www.elcastillodelplacer.es";



RE: Problems with categories - Punktured - 24-08-2011 03:39 PM

after you changed your config to include those extra two variables...
did you clean your cache files in:
/tmp
/tmp/tablo
?


RE: Problems with categories - xaxuke - 28-08-2011 03:57 PM

Yes I have clean both folders and I have the same error.

I've try a new install and the problem is the same.

Look at http://www.elcastillodelplacer.es


My new steps was:
1) New install
2) Check Config.php has 2 new lines. It's ok.
3) Goto Seo Friendly Links and configure it.

4) Update New .htaccess
The code .htaccess is:
RewriteEngine On

RewriteRule ^videos_porno_hd/([0-9]+)/(.*)$ /?id=$1&title=$2&option=video [NC]

RewriteRule ^tag_videos_porno_hd/(.*)$ /?tag=$1&option=tag [NC]

RewriteRule ^category_videos_porno_hd/([0-9]+)/([0-9]+)/(.*)$ /?id=$1&p=$2&category=$3&option=category [NC]

RewriteRule ^juegos_porno/([0-9]+)/(.*)$ /?id=$1&title=$2&option=game [NC]

RewriteRule ^tag_juegos_porno/(.*)$ /?tag=$1&option=tag_game [NC]

RewriteRule ^category_juegos_porno/([0-9]+)/([0-9]+)/(.*)$ /?id=$1&p=$2&category=$3&option=category_game [NC]

4.1) Ups config.php 2 new lines has dissapear!!!
4.2) I write again two new lines!!

5) Insert 2 categories for test
It's Ok

6) I select spanish for the language.

Config.php 2 new lines has dissapear.

I think each time that the script needs to write a line in config.php, the script don't write two new lines.

I'm going to finish all the configuration, but I think I'll works fine if I write two new lines manually.

Thanks