May 23, 2012, 10:52:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Check your Page Rank, Backlinks, or Link Popularity in our tools section.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Check your Page Rank, Backlinks, or Link Popularity in our tools section.
Pages: [1]
  Print  
Author Topic:

Delete Post from Profiles show posts

 (Read 2699 times)
0 Members and 1 Guest are viewing this topic.
Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« on: December 14, 2006, 02:36:41 »

Here we go Smiley

In Profiles when showing al posts of a member...
As Admin you cant't delete posts out of this option.
It redirects always to "show all posts of the meber" Wink

F
Logged


TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #1 on: December 14, 2006, 02:46:54 »

Thanks for warning. Already fixed.
Find:
Code:
list($user,$sa,$start)=explode("/",$user);

and replace with

Code:
list($user,$sa,$start,$delete,$sesc)=explode("/",$user);

and after
Code:
if ($start!="")
    $other=$sa.';'.$start;
    else
    $other=$sa;

add:
Code:
if ($delete!="")
    $other.=';'.$delete;

if ($sesc!="")
    $other.=';'.$sesc;

add this line in htaccess after #New profiles Url's
Code:
RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$6 [L]

Manual modification on sources will break your uninstalling Smiley

Regards
« Last Edit: December 14, 2006, 03:42:31 by TheGodFather » Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #2 on: December 14, 2006, 02:57:38 »

Thanks for fixing.

But who wants to uninstall? *rofl* Smiley

Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #3 on: December 14, 2006, 02:59:46 »

I will come with a new version ... more stable and more SEO (bugfixes in description, keywords meta tags)

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #4 on: December 14, 2006, 03:05:20 »

Hmm, modified it, the URL looks correct but deleting takes no affect...
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #5 on: December 14, 2006, 03:08:26 »

Add this line to htaccess (first line after #new profiles url's)

RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5 [L]

I missed this
Smiley

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #6 on: December 14, 2006, 03:19:28 »

Step by step Smiley

Now got this Error message:

Session Verification failed...
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #7 on: December 14, 2006, 03:20:54 »

It need's session id ?

hmmm .... I will look forward to solve this ...

Regards

Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #8 on: December 14, 2006, 03:22:20 »

Thank you Smiley
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #9 on: December 14, 2006, 03:27:03 »

Look at the first post with manual modification's. There is the code Smiley

Regards
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #10 on: December 14, 2006, 03:44:03 »

Change sesc,([0-9]*) with sesc,([a-z0-9]*) on the line from htaccess

Regards
Logged

Pandos
Jr. Member
**

Points: 1
Offline Offline

Posts: 34


« Reply #11 on: December 14, 2006, 03:48:50 »

Thank you!
Now it's working. But instead of redirecting you to ther last posts, it redirects you to the profiles page Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!