Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-01-07 17:20:38, last edited by Gosha (2017-01-07 17:21:23)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,202

[forum] bbcode

Put link to the forum in [forum] bbcode

get the name of the forum and link to it.

like this
[forum]http://forums.everybodyedits.com/viewtopic.php?id=37753[/forum]

it will print out this: Original EE world soundtracks

Offline

#2 2017-01-07 19:17:34

N1KF
Wiki Mod
From: ဪဪဪဪဪ From: ဪဪဪဪဪ From: ဪဪဪဪဪ
Joined: 2015-02-15
Posts: 11,055
Website

Re: [forum] bbcode

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

Everybody Edits is Fred

Offline

Wooted by: (2)

#3 2017-01-07 21:42:01, last edited by drunkbnu (2017-01-07 21:44:11)

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [forum] bbcode

N1KF wrote:

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

It actually doesn't work that way.

[topic=37753]Click here to see the topic #37753[/topic]

Also, there is already a forum tag, for forums

[forum=19]Bots and programming forum[/forum]

Offline

#4 2017-01-07 21:43:06

N1KF
Wiki Mod
From: ဪဪဪဪဪ From: ဪဪဪဪဪ From: ဪဪဪဪဪ
Joined: 2015-02-15
Posts: 11,055
Website

Re: [forum] bbcode

HG wrote:
N1KF wrote:

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

It actually doesn't work that way.

[topic=37753]Click here to see the topic #37753[/topic]

I know. That's why I'm suggesting a second option for it in my post so that it works like the code in the original post.


Everybody Edits is Fred

Offline

#5 2017-01-07 21:57:39

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

Re: [forum] bbcode

Don't think this is possible without being ridiculously inefficient or working outside of the way FluxBB handles BBCode.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#6 2017-01-07 22:39:36

Ratburntro44
Member
Joined: 1970-01-01
Posts: 1,382
Website

Re: [forum] bbcode

Different55 wrote:

Don't think this is possible without being ridiculously inefficient or working outside of the way FluxBB handles BBCode.

care to explain why? unless I am being stupid and missing something here I don't see any particular reason for that to be the case

Offline

#7 2017-01-07 22:55:26

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

Re: [forum] bbcode

Alright so my thinking is

we add a tag with a callback right? Because how else are we going to get that topic name. So we add a tag with a callback, and in that callback we query the database for the topic name. And that callback and query get run once for every single instance of this BBCode on the page. That seems like a terrible idea to me. If you just copy paste a few thousand of those I don't think it'd be too hard to make an impact performance wise. You don't even have to actually post the spam, just previewing them will work fine. Get a couple of threads going, each causing thousands of these queries would not be hard at all. I admit, I have 0 idea what kind of performance hit that would have on the server as a whole but I can't say I feel like finding out.

So the other way I was thinking was

we completely ignore BBCode. as each post is being parsed we check for the BBCode, and make a note of the ID inside of it. then after the posts have been processed we look up all the topic titles at once and then loop over each ID and replace every instance of [bbcode]id[/bbcode] with the correct topic title. That still seems pretty sloppy for a feature that is going to be used about 2 times in total.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

Wooted by:

#8 2017-01-07 23:23:55

Ratburntro44
Member
Joined: 1970-01-01
Posts: 1,382
Website

Re: [forum] bbcode

ah, my mistake was only thinking of unintentional problems. does seem like more effort than it's really worth for this

Offline

Ratburntro441483827835642335

Board footer

Powered by FluxBB

[ Started around 1711700881.703 - Generated in 0.078 seconds, 12 queries executed - Memory usage: 1.46 MiB (Peak: 1.58 MiB) ]