Webmastersite.net
Register Log In

details link trouble

Comments on details link trouble

ciuboda
Beginner

Usergroup: Customer
Joined: Aug 11, 2005

Total Topics: 1
Total Comments: 4
ciuboda
Posted Aug 13, 2005 - 5:25 AM:

Hi Paul,

First of all congratulations for your excellent application!

I've installed the application, configured ok and made some design changes.
But there is something that I want to do I didn't figure out how to do it.

On the Details link click instead of opening the detailed page of the application it si redirecting me to the link URL. You can see it on www.astrologydatabase.com/w...Planets_and_other_elements

What shall I do in order to make this work? I'm using the default .htaccess file.

Also the comments are still .php file.

Thanks,
Dan
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Aug 14, 2005 - 7:11 AM:

In classes/onelink.php, replace
	if ($settings->rewritethreadnames == 'no' && $scriptname == 'wsnforum') $url = $settings->rewritethread .'/'. $this->id;
else $url = $settings->rewritelink .'/'. $this->id;

with
	if ($settings->rewritethreadnames == 'no' && $scriptname == 'wsnforum') $url = $settings->rewritethread .'/'. $this->id;
else $url = $settings->rewritelink .'/detail/'. $this->id;


That solves the link details issue -- though note that if you rewrite by link name you don't encounter the problem. Will update the available download later after I figure out the threads issue.
ciuboda
Beginner

Usergroup: Customer
Joined: Aug 11, 2005

Total Topics: 1
Total Comments: 4
ciuboda
Posted Aug 14, 2005 - 10:19 AM:

I've made the change in classes/onlink.php and still is not working. Firstly I think that is details or detailes instead of detail because there is an HTTp 404 error message : www.astrologydatabase.com/w...m/wsnlinks/links/detail/81

If is detailes or details then is doing the same thing...redirecting the client to the URL and not on the detail page.

How can I rewrite by link name?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Aug 14, 2005 - 7:23 PM:

It's detail for me. Works fine here. You must've changed something but I don't see an option where you could.

How can I rewrite by link name?

Admin panel -> settings -> search & SEO -> set 'rewrite link names' to 'yes'
ciuboda
Beginner

Usergroup: Customer
Joined: Aug 11, 2005

Total Topics: 1
Total Comments: 4
ciuboda
Posted Aug 15, 2005 - 5:58 AM:

Paul wrote:
It's detail for me. Works fine here. You must've changed something but I don't see an option where you could.

How can I rewrite by link name?

Admin panel -> settings -> search & SEO -> set 'rewrite link names' to 'yes'


It is already set ...the rewrite options.

I will try to give a little more details ...maybe you figure out what happend:

My .htaccess file is:
"Options +FollowSymlinks
RewriteEngine on

# If not working, uncomment and correctly fill the line below:
#RewriteBase /wsnlinks

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php

RewriteRule ^links/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)/?$ link.php?id=$1

RewriteRule ^thread/([0-9]+)/?$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)/?$ comments.php?id=$1&page=$2

RewriteRule ^([0-9]+)/?$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?action=displaycat&catid=$1&page=$2

RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1

RewriteRule ^links/([-_/\+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2"


Use category names in URL : Yes
Name to use for link details : links
Name to use for threads: thread
Use link names in link details URL:Yes
Format for link details rewriting:links/{LINKTITLE}-{LINKID}.html


Combine detail and comments pages: ON

Anyway I found a solution...not very good from technical point fo view. I will remove the Detail link and rename the Comment link to Details & Comments smiling face

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Aug 16, 2005 - 2:14 AM:

Issues from this thread will be fixed in the upload in a few hours.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.