New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with newflag in forum page #2137
Comments
No chance to test but forum_viewforum php line 821 :
should it not be :
see last quotation as code line starts with " should also end with " ? I added spaces to keep code visible, else it will delete the close A tag (the A tag is NOW surrounded by 2 " instead of ' tag ' . edit : same goes for lines : 265; 500; 831 |
@tgtje I really don't know, first time working with forum plugin and I was able to find this code just by trying to change something and will see if something was changed.
and there is code from shortcode above. |
@Jimmi08 @martyshep As soon i can, i'll give it a look, to see if i can solve it. P.S.: It has something to do with the lastpost shortcode. As soon i can, i'll debug it... |
@ALL Definetly, it's with sc_lastpost call. My fault... Please test it... |
Hi @rica-carv I can't see the code similar to $url = $this->sc_lastpost('url'); within viewforum_shortcodes.php on master or on your branch of it. Wait.. Master is same as your branch for viewforum_shortcode.php anyway. What I do see are:
and
|
@martyshep It's not in |
Ok, my bad, files a little older. i changed line 352 forum_shortcodes to What to do ? |
Interestingly the issue shown in 'old screen' disappears after the forum
post is read, but then when someone posts again, I get the old screen image
again.
…On Mon, 12 Dec 2016 at 17:56 leo ***@***.***> wrote:
Ok, my bad, files a little older.
After deeper investigation i discovered it actually is a break not fully
implemented ? ..
i changed line 352 forum_shortcodes to
return "<a href='".$url."<br />".IMAGE_new."</a>";
outcome top 2 images
the bottom one is same but AFTER applied proposed patch
[image: f5]
<https://cloud.githubusercontent.com/assets/1811857/21110211/98a36f64-c09c-11e6-98cd-1321c1b82dbe.jpg>
What to do ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2137 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/APCs4yNkRYeu6m_W-S5epMPwlrH81Wvpks5rHYrJgaJpZM4LKC3v>
.
|
@ALL This issue was because of a commit made 6 days ago, therefore if you don't have the latest github files and after apply my patch, it will still give a error. |
@rica-carv correct your patch works 👍 but what i meant to express : in pre patch there was also the author and the time (textual) (linkage IS divided in 2 url's, correct). (left 1st column). @martyshep the appearance of the old is correct by means of execute > when the post is 'read' the function is done, and will only show up in right side from there on. This untill a newer post exists (unread). |
@tgtje The appearence is exactly the same as was before this mess up.
As you can see, the newflag shortcode has never returned the last post author or date.... |
I'm no coder but I returned my forum to previous behaviour with this:
|
Ok, before messup( harsh : code error) the code should NOT have been displayed in the first column. quote : no need (or logic) ?? hmmmm it does trigger possible use for other things .... (despite wrong used code before). ( a keeper) |
@martyshep If you have the latest github files, there's no way that code is acting correct... Have you cleaned cache before testing it? @tgtje You can still have the lastpost user name & date via shortcode: |
I noticed this:
in this function:
if I echo $url, output has already a tags:
<a href='/user.php?id.2'>username</a> <a href='/forum/dkdhvdbd/3/test/?last=1#post-3'><span data-livestamp="1481490078">36 mins ago</span></a>
The text was updated successfully, but these errors were encountered: