HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


last post 1st

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#70592 (In Topic #14922)
wal
Avatar

Fan in action

Ive looked, but its got me stumped.
How do you set the the last post 1st .?
Back to the top
 
Posted
Rating:
#70610
Avatar

Community saint

Admin Zone > Structure > Forums > Choose > Edit forum >(advanced) Topic order

or you can go to the FORUM and use the (edit link) and go down to Advanced and to Topic order where there is a pull down menu.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#70674
wal
Avatar

Fan in action

thanks friendly, but I see that as "topic" order.. not "post" order.

Or does it do the same thing.?
Back to the top
 
Posted
Rating:
#70676
Avatar

Community saint

Hi wal! There is currently no method, that I can see, to toggle this functionality. Might be an interesting feature idea to suggest to ocPortal.

You could do it on a global basis by modifying the following:

sources/ocf_topicview.php

Around line 305 (at the end of the query):

Before:

Code

$query='SELECT p.*,t.text_parsed AS _trans_post,t.text_original AS post_original,h.h_post_id FROM '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_posts p LEFT JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_post_history h ON (h.h_post_id=p.id AND h.h_action_date_and_time=p.p_last_edit_time) LEFT JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'translate t ON '.db_string_equal_to('language',user_lang()).' AND p.p_post=t.id WHERE '.$where.' ORDER BY p_time,p.id ';

After:

Code

$query='SELECT p.*,t.text_parsed AS _trans_post,t.text_original AS post_original,h.h_post_id FROM '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_posts p LEFT JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_post_history h ON (h.h_post_id=p.id AND h.h_action_date_and_time=p.p_last_edit_time) LEFT JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'translate t ON '.db_string_equal_to('language',user_lang()).' AND p.p_post=t.id WHERE '.$where.' ORDER BY p_time DESC,p.id DESC';

The key is the addition of DESC after p_time and p.id

Remember, this will be global for all your forums so it might not be what you are looking for….

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#70678
wal
Avatar

Fan in action

You mean that I have asked a question that is not actually too stupid and plain to see.

Novice-wise that makes me feel a little privelaged(scuse the spelling)

It is a feature I would like to see easier access to.

Thanks for the feed back.
Back to the top
 
Posted
Rating:
#70680
Avatar

Community saint

:thumbs:

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#70693
Avatar

Community saint

wal said

You mean that I have asked a question that is not actually too stupid and plain to see. Novice-wise that makes me feel a little privelaged(scuse the spelling) It is a feature I would like to see easier access to. Thanks for the feed back.
That's how our community works. Sorry I was off the mark. Actually we all are in this together and now you ask the question that someone else hasn't yet but it should be addressed - good going.

SoccerDad said

Hi wal! There is currently no method, that I can see, to toggle this functionality. Might be an interesting feature idea to suggest to ocPortal. You could do it on a global basis by modifying the following…
Thanks for the save, Jean!


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#70697
Avatar

Community saint

friendly said

 

SoccerDad said

Hi wal! There is currently no method, that I can see, to toggle this functionality. Might be an interesting feature idea to suggest to ocPortal. You could do it on a global basis by modifying the following…
Thanks for the save, Jean SD!
That threw me initially. Thought I'd make the correction. Poor old Jean takes the 'blame' for many things …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#70699
Avatar

Community saint

hehehe, I'm sure Jean will be appreciative ;)

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#70703
Avatar

Community saint

O-O-P-S !!!  …thats 2 in a row for me :$:$

Thanks for the save SoccerDad :thumbs: - and good eyes there Fletch! :ninja: …Sorry Jean! O_o

now if you will excuse me, I going to back deep into my cave…


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#70709
Avatar

Community saint

*chuckle*, I think we can let you off the hook this time mate  :thumbs:

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#70737
Avatar

Community saint

At my age, I will take credit for any good deeds I may or may not have done!:cool:

However, I’m glad it was eventually attributed to the rightful owner.:)

Don’t worry Friendly; it’s probably because we are both sharing in the same milestone today.
Happy Birthday Mate!:party:
Back to the top
 
Posted
Rating:
#70738
Avatar

Community saint

Jean said

At my age, I will take credit for any good deeds I may or may not have done!:cool:

However, I’m glad it was eventually attributed to the rightful owner.:)

Don’t worry Friendly; it’s probably because we are both sharing in the same milestone today.
Happy Birthday Mate!:party:
Thanks Jean! Happy Birthday right back at you!!!! Having a good day (both a wish to you and a status report for me)


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#70761
Avatar

Community saint

 :party: Darn, nearly missed the party!  :party:

Many Happy Returns, guys.

Sincerely.

cheers

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#70766
Avatar

Community saint

Better get it in while I still see it myself on the list….

HAPPY BIRTHDAY JEAN AND FRIENDLY!


Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#70769
Avatar

Community saint

Thanx all - been a really nice birthday!!!


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#70770
wal
Avatar

Fan in action

Happy 21st birthday everyone.
Yknow what they say, the older you get the better you were.

Now cut to the chase.. how young old are you? and what did you get for your birthday? anything printable?
Back to the top
 
Posted
Rating:
#70775
Avatar

Community saint

wal said

Happy 21st birthday everyone.
Yknow what they say, the older you get the better you were.

Now cut to the chase.. how young old are you? and what did you get for your birthday? anything printable?
Felt like 6 again
…with blueray, tube of paint & 14 part history series! Depending on what I put in the player and do with the paint, all pretty much PG rated so far.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: