Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2007, 10:34 AM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
URL Method2 edit an modify story

Hi, today I have installed the new version 9.1

Everything works fine, but with the mode rewrite
methode (URL2) the admin links
"Edit the title or description" and
"Change the status" does not work



Example: "domain.com/story/1/modify/main/" or
domain.com/story/1/edit/

does not work.

is there a posibility to turn off mode rewrite for edit and modify story in admin-menu? I Think for admin stories we don't need mode rewrite.

All other works with method 2, its only in admin the story management.

Greetings Jan
Reply With Quote
  #2 (permalink)  
Old 02-19-2007, 10:37 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
I'll have to look into this but I know it has worked perfectly fine before. Make sure that you renamed htaccess.default to .htaccess and that if you've installed Pligg in a subfolder that you change RewriteBase / in .htaccess to RewriteBase /name_of_subfolder.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 02-19-2007, 10:59 AM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I have renamed the htaccess.default in .htaccess and Pligg ist installed in mainfolder, not subfolder.

here is the Code, I could not find an mistake:

Code:
##### Gzip Begin #####
## To enable Gzip and decrease the load times of your Pligg site
## change /home/path/to to your absolute server path and remove the two # from both lines
## php_value auto_prepend_file /home/path/to/begin_gzip.php
## php_value auto_append_file /home/path/to/end_gzip.php

<files *.js.gz>
AddType "text/javascript" .gz
AddEncoding gzip .gz
</files>
##### Gzip End #####

##### Re-directing Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine on
## If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/

## Remove these two lines if you have a sub-domain like  http://ashdigg.pligg.com  or http://localhost
## Keep if your site it like   http://www.pligg.com
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
##### Re-directing End #####

##### You can find the below lines pre-made for you in the category management section of the admin panel ######
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer|Unterhaltung|Promis|Musik|Videos|Arbeit|Internet|Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer|Unterhaltung|Promis|Musik|Videos|Arbeit|Internet|Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/?$ ?category=$1 [L] 
#####

##### URL Method 2 ("Clean" URLs) Begin #####
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/title/([a-zA-Z0-9-]+)/?$ story.php?title=$1 [L]
RewriteRule ^recommend/([a-zA-Z0-9-]+)/?$ recommend.php?id=$1 [L]
RewriteRule ^category/([a-zA-Z0-9]+)/?$ index.php?category=$1 [L]
RewriteRule ^queued/category/([a-zA-Z0-9]+)/?$ upcoming.php?category=$1 [L]
RewriteRule ^discarded/category/([a-zA-Z0-9]+)/?$ discarded.php?category=$1 [L]
RewriteRule ^upcoming/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$ upcoming.php?part=$1&order=$2
RewriteRule ^story/([0-9]+)/editcomment/([0-9]+)/?$ edit.php?id=$1&commentid=$2
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1
RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2
RewriteRule ^user/?$ user.php
RewriteRule ^inbox/?$ user.php?view=inbox
RewriteRule ^user/view/([a-zA-Z0-9-]+)/?$ user.php?view=$1
RewriteRule ^user/view/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$ user.php?view=$1&login=$2
RewriteRule ^user/view/([a-zA-Z0-9+]+)/login/([a-zA-Z0-9+]+)/?$ user.php?view=$1&login=$2
RewriteRule ^index/?$ index.php
RewriteRule ^index/([a-zA-Z0-9-]+)/?$ index.php?part=$1
RewriteRule ^index/([a-zA-Z0-9-]+)/&category=([a-zA-Z0-9-]+)/?$ index.php?part=$1&category=$2
RewriteRule ^upcoming/upcoming/([a-zA-Z0-9-]+)/&category=([a-zA-Z0-9-]+)/?$ upcoming.php?part=upcoming&order=$1&category=$2
RewriteRule ^search/([a-zA-Z0-9]+)/?$ search.php?search=$1
RewriteRule ^login/?$ login.php
RewriteRule ^login/([a-zA-Z0-9-]+)/?$ login.php?return=$1
RewriteRule ^login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?return=$1/$2
RewriteRule ^register/?$ register.php
RewriteRule ^topusers/?$ topusers.php
RewriteRule ^about/([a-zA-Z0-9-]+)/?$ faq-$1.php
RewriteRule ^upcoming/?$ upcoming.php
RewriteRule ^submit/?$ submit.php
RewriteRule ^rss2/?$ rss2.php
RewriteRule ^rss2/([a-zA-Z0-9-]+)/?$ rss2.php?status=$1
RewriteRule ^rss2/category/([a-zA-Z0-9-]+)/?$ rss2.php?category=$1
RewriteRule ^rss2/search/([a-zA-Z0-9-]+)/?$ rss2.php?search=$1
RewriteRule ^rss2/user/([a-zA-Z0-9-]+)/?$ rss2.php?user=$1
RewriteRule ^rss2/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ userrss2.php?user=$1&status=$2
RewriteRule ^trackback/([0-9]+)/?$ trackback.php?id=$1 
RewriteRule ^profile/?$ profile.php
RewriteRule ^admin/?$ admin_index.php
RewriteRule ^tagcloud/?$ cloud.php
RewriteRule ^tagcloud/range/([0-9]+)/?$ cloud.php?range=$1 [L]
RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]
RewriteRule ^live/?$ live.php
RewriteRule ^out/([^/]+)/?$ out.php?title=$1 [L]
RewriteRule ^settemplate/?$ settemplate.php
RewriteRule ^settemplate/([^/]+)/?$ settemplate.php?template=$1
RewriteRule ^comments/?$ comments.php
RewriteRule ^published/?$ published.php
RewriteRule ^unpublished/?$ unpublished.php
RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2
RewriteRule ^page/([^/]+)/?$ index.php?page=$1 [L]
RewriteRule ^page/([^/]+)/category/([^/]+)/?$ index.php?page=$1&category=$2 [L]
RewriteRule ^page/([^/]+)/([^/]+)category/([^/]+)/?$ index.php?page=$1&part=$2&category=$3 [L]
RewriteRule ^page/upcoming/([0-9]+)/?$ upcoming.php?page=$1 [L]
RewriteRule ^page/upcoming/([^/]+)/category/([^/]+)/?$ upcoming.php?page=$1&category=$2 [L]
RewriteRule ^page/upcoming/([^/]+)/upcoming/([^/]+)/?$ upcoming.php?page=$1&part=upcoming&order=$2 [L]
RewriteRule ^page/upcoming/([^/]+)/upcoming=([^/]+)category/([^/]+)/?$ upcoming.php?page=$1&part=upcoming&order=$2&category=$3 [L]
RewriteRule ^topusers/page/([^/]+)/?$ topusers.php?page=$1 [L]
RewriteRule ^topusers/page/([^/]+)/sortby/([^/]+)?$ topusers.php?page=$1&sortby=$2 [L]
RewriteRule ^comments/page/([^/]+)/?$ comments.php?page=$1 [L]
RewriteRule ^published/page/([^/]+)/?$ published.php?page=$1 [L]
RewriteRule ^unpublished/page/([^/]+)/?$ unpublished.php?page=$1 [L]
RewriteRule ^page/([^/]+)/([^/]+)/?$ index.php?page=$1&part=$2 [L]
RewriteRule ^page/([^/]+)/range/([^/]+)/?$ ?page=$1&range=$2 [L]
RewriteRule ^page/([^/]+)/part/([^/]+)/?$ ?page=$1&part=$2 [L]
RewriteRule ^page/([^/]+)/search/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L]
RewriteRule ^page/([^/]+)/([^/]+)/([^/]+)/?$ user.php?page=$1&view=$2&login=$3 [L]
##### URL Method 2 ("Clean" URLs) End #####
All the other tools (categorymanagement, language, etc.) in admin-menu works. It's only manage the storys.

My Domain is:

www.justbehot.de
Reply With Quote
  #4 (permalink)  
Old 02-19-2007, 11:37 AM
Pligg Donor
 
Join Date: Feb 2007
Posts: 28
Thanks: 1
Thanked 2 Times in 1 Post
Try removing the last pipe from those 2 lines...

RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/?$ ?category=$1 [L]


make....

RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit)/?$ ?category=$1 [L]

ps... where in germany are u?
Reply With Quote
  #5 (permalink)  
Old 02-19-2007, 12:27 PM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by submitlink View Post
Try removing the last pipe from those 2 lines...

RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit|)/?$ ?category=$1 [L]


make....

RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|Wissenschaft|Sonstiges|Auto|Politik|Computer |Unterhaltung|Promis|Musik|Videos|Arbeit|Internet| Software|Fernsehen|Kino|Sport|Reisen|Freizeit)/?$ ?category=$1 [L]

ps... where in germany are u?
Hello "submitlink",

thank you, I tried this, but it don't work. Mode rewrite with categories work, but I can't edit or modify a story.

Ok, now I have annother (not profi) solution. When I want to edit a story in Admin-Menu I use URL Method 1, after finished with Admin-Menu, I go back to Method 2 with mode rewrite. This Is not a good solution, but better than nothing.

Perhaps some other user have the same problem and could help fix it.

Greetings Jan

@ submitlink: I come from Hamburg
Reply With Quote
  #6 (permalink)  
Old 02-19-2007, 12:33 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
The weird thing is that you have the following RewriteRules
Code:
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1
RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2
And it still doesn't work for some reason. There's got to be something that you changed a long the way? A setting in the admin config? I just installed 9.1 and these links work fine for me so I'm trying to figure out everything that you've done since you installed that may have broke it.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #7 (permalink)  
Old 02-19-2007, 02:49 PM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kbeeveer46 View Post
The weird thing is that you have the following RewriteRules
Code:
RewriteRule ^story/([0-9]+)/edit/?$ editlink.php?id=$1
RewriteRule ^story/([0-9]+)/modify/([a-z]+)/?$ linkadmin.php?id=$1&action=$2
And it still doesn't work for some reason. There's got to be something that you changed a long the way? A setting in the admin config? I just installed 9.1 and these links work fine for me so I'm trying to figure out everything that you've done since you installed that may have broke it.
Hi, the only thing I changed is



because when I set to true, the outgoing links in Title don't work. I become I white page like this:
http://www.justbehot.de/out/Politike...uer-RAF-Opfer/ (the link don't work) the link do not go on newspaper: http://de.today.reuters.com/News/new...F-OPFER-ZF.xml

so I sent outgoing links to false and it works. On titel there is the directly url to story. But this can't be the reason, because when I change outgoing links to true the admin story edit/chage don't work either.
Reply With Quote
  #8 (permalink)  
Old 02-19-2007, 03:26 PM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Perhaps there is a possibility to turn off mode rewrite for admin-menu. I think you only need this feature for the frontend for better rankings in search engines. In Admin there is no reason to use mode rewrite.
Reply With Quote
  #9 (permalink)  
Old 02-19-2007, 05:43 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
I think that this section is the only area that uses method 2. I think that you're going to have to hard coded the URLs yourself to use method 1. The easiest way is to turn method 1 back on and then look at the urls that it uses. Copy those down and use those urls in the files where the method 2 links are being used.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #10 (permalink)  
Old 02-19-2007, 07:32 PM
Jan Jan is offline
New Pligger
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, in the next days I will search for errors.

Perhaps I will install another test-version at other webspace provider.

You said, that you have installed pligg 9.1 with url method 2 and all works without any trouble. Ok I will make test-Installation at other provider and than I give you feedback, if it works.

Greetings Jan
from Hamburg/Germany

P.S.

Pligg is a great script! Thank you for your work!
The methode 1 without mode rewrite ALWAYS works.
Only the methode 2 is sometimes a little bit difficult to run.
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't edit the story contents, help! manboo General Help 0 04-19-2008 10:53 PM
URL Method2 does not work with Story Title gatekeeper Bug Report 4 04-18-2008 11:31 AM
How can you Edit the source URL of a story after submission djdrue General Help 7 02-08-2008 04:11 AM
edit story and outgoing link returns blank page crusty General Help 0 08-23-2007 02:30 PM
9.1 digitalnature cannot edit story pligiro Bug Report 6 02-26-2007 01:39 PM


Search Engine Friendly URLs by vBSEO 3.2.0