Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: 1.5.31 Redirect removed?  (Read 188460 times)

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
1.5.31 Redirect removed?
« Reply #15 on: March 05, 2007, 03:14:18 pm »

Thanks KayDee, that seems to work very nice.
I really annoyed me to go looking for the article after it was edited, to see the final view :)
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469
1.5.31 Redirect removed?
« Reply #16 on: March 05, 2007, 03:46:01 pm »

Works like a charm, thanks KayDee.
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
1.5.31 Redirect removed?
« Reply #17 on: March 05, 2007, 05:09:37 pm »

Sense of good UI restored finally.
« Last Edit: September 24, 2007, 04:58:14 pm by codetwist »
Logged

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
1.5.31 Redirect removed?
« Reply #18 on: March 06, 2007, 01:33:50 am »

Very sweet KayDee works terrificly!  :D
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
1.5.31 Redirect removed?
« Reply #19 on: May 23, 2007, 07:07:27 am »

Quote
echo '

'.l('back_article').'

';
This link does not seem to point to the just edited article on the version 1.6 (like it did before :(  ) but to the Articles List.  How can I fix it?
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
1.5.31 Redirect removed?
« Reply #20 on: May 23, 2007, 08:16:34 am »

Try following instead of that single line:
Code: [Select]
$linkToItem = find_cat_sef($category) . '/' . $seftitle .'/';
echo '

'.l('back_article').'

';
Logged

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
1.5.31 Redirect removed?
« Reply #21 on: May 29, 2007, 08:03:58 am »

Thanks Codetwist, that works much better than before :)

Also, the line to change on Version 1.6 is (The second Instance) :
Code: [Select]
echo notification(0,'',$link); unset($_SESSION['temp']);Replace with (I added a link to the previous page - it makes editing, a bit simpler):
Code: [Select]
echo notification(0,'',''); unset($_SESSION['temp']);
echo '

'.l('back').'

';
$linkToItem = find_cat_sef($category) . '/' . $seftitle .'/';
echo '

'.l('back_article').'

';
echo '

'.l('back_list').'

';
echo '

'.l('back_admin').'

';
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
1.5.31 Redirect removed?
« Reply #22 on: May 29, 2007, 08:50:16 am »

zucye we love yu baybe
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Zucye

  • Sr. Member
  • ****
  • Karma: 5
  • Posts: 347
    • Simplemente una Mujer
1.5.31 Redirect removed?
« Reply #23 on: May 29, 2007, 04:32:21 pm »

Oh.  Thank you Sasha!  I love you guys too.:D
Logged
We can always learn from our failures, not so much from obvious success - C. Robinson (W. Disney). :)

Jochum Meester

  • Sr. Member
  • ****
  • Karma: 1
  • Posts: 309
    • JochumMeester.com
1.5.31 Redirect removed?
« Reply #24 on: May 30, 2007, 11:34:18 pm »

You can even put a condition in there; if the admin is logged in then show the 'back to admin' / 'show article' links, if he/she's not logged in (normal guest) then only show this and that link. Just my 0.02  :rolleyes:
Logged
Pages: 1 [2]