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.
Pages: 1
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
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
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.
Offline
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
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
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
ah, my mistake was only thinking of unintentional problems. does seem like more effort than it's really worth for this
Offline
Pages: 1
[ Started around 1738413762.418 - Generated in 0.044 seconds, 12 queries executed - Memory usage: 1.46 MiB (Peak: 1.59 MiB) ]