Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 1 Week ago Lastpost plus newpost at index
#1
Solved: 8 Years, 1 Week ago Bug 
IS it possible to get the newpost variable? Just like lastpost action from forumlist

I mean, there is already the variable that prints the lastpost in forumlist, but could it be possible to print the lastthread newpost variable?

http://community.mybb.com/thread-xxxxxx-newpost.html

http://community.mybb.com/thread-xxxxxx-lastpost.html

Both from index.php
#2
Solved: 8 Years, 1 Week ago
bump~
#3
Solved: 8 Years, 1 Week ago
Are you using SEO urls or the default URLs?
-Paul H.

Cogisne lingua latina?
#4
Solved: 8 Years, 1 Week ago
Google SEO ones Smile
#5
Solved: 8 Years, 1 Week ago
Hmm, you'd have to edit the $lastpost_link variable so that ?action=lastpost would be ?action=newpost.
-Paul H.

Cogisne lingua latina?
#6
Solved: 8 Years, 1 Week ago
^ one can modify forumbit_depth1_forum_lastpost template to add the another link !!

#7
Solved: 8 Years, 1 Week ago
Yes I know, I have a plugin that already do that, but is not there a way to "duplicate" the variable so that I can use for example:
{$lastpost_link} = normal action=lastpost
{$lastpost_link2} = action=newpost

So that I can use both in templates? Will appreciate if you provide me with a clue Smile
#8
Solved: 8 Years, 1 Week ago
PHP code:

$newpost_link = str_replace('lastpost','newpost',$lastpostlink)
-Paul H.

Cogisne lingua latina?
#9
Solved: 8 Years, 1 Week ago
I searched for:
$lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost");

Added just after that:
$newpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "newpost");

Then in my forumbit_depth2_forum_lastpost I added {$newpost_link} where I want the newpost link to appear.

Do you think this is the best way?
#10
Solved: 8 Years, 1 Week ago
Yeah, that should work.
-Paul H.

Cogisne lingua latina?
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)