View Full Version : GAL only within certain thread
1. I would like to have some of my GAL links acitve only in certain forum or thread.
Would be possible to add this to the functionality?
2. I need to replace some text with paragraph tag. Example: text123 will be replaced in html code with <a name=123>123</a>.
Can you add this feature?
The Geek
01-10-2006, 10:15 AM
It will do, but you cant limit it by therad or forum :( (at least for the foreseeable future)
should i understand it as
question nr. 2 is working (if yes, should I simply put html code?)
question nr. 1 is not in the shortplan?
The Geek
01-12-2006, 09:01 AM
Hey Kafi,
For #2: Not by default, though its easy to do (although not for the example you gave).
For instace, I can easily define a new GAL replacement variable like this:
<a name="$gal_title">$gal_text</a>
Then you could have an entry like: 123 in a category that used the above replacement - however it would not match test123 because that is in middle of a word. The catch with GAL is that in most cases, there needs to be a space in front of the word. This helps to prevent breaking URLs.
AS far as #1 - its not in the near future. Sorry :)
AS far as #1 - its not in the near future. Sorry :)
:-( i would love it :-(
Sorry to bump, after 6 months of this thread I just want to check if this is under consideration :-)
Anyway I am impressed with other stuffed you have managed during these 6 moths here...
Keep on good work Sam, God bless you .-)
The Geek
10-02-2006, 10:37 PM
Thanks Kafi... I was pretty sure you could limit by forum however for the upcoming 5.0, the functionality certainly doesnt exist. I can look into it again, but cant promise anything yet... 5.0 is a total rewrite and difficult just to bolt on additional functionality. Plus everyone is waiting on me to get the thing out :)
Couldn't this be done by an <if forumid="#">GAL invocation code</if> or <if threadid="#">GAL invocation code</if> in the template? (May not be correct syntax but you should get what I mean).
If so GAL could quite easily be implemented to only work with certain forums/threads.
The Geek
10-02-2006, 11:04 PM
Sure, there are plenty of workarounds, however the trouble with this, usergroup restrictions and 5.0 is the caching system. I just checked a current installation and you CAN limit by forum (but not thread).
How it works now - GAL goes and grabs EVERY SINGLE GAL that the usergroup is qualified to see for that forum (which results in a complex, longer-than-I-would-like query). It then processes each post for each entry.
The new system is far more complex, but also far more refined. If there is a record of GAL parsing the post before, then it only grabs those items which results in a significant performacne boost especially on large boards with a lot of entries. The problem is that posts can move forums thus changing their elibability for certain categories. The other problem is that if there isnt an entry in the post cache, GAL still needs to go get all GALS (regardless of forum or usergroup restrictions) because it still needs to know which entries are still valid no matter what forum it is in or usergroup is viewing it.
I have just thought to myself: Why the hell am I rambling on about this. The poor guys just asked if he could restrict by forum/thread and here I am writing a freaking essay on caching. Now I am sitting here wondering why the hell I am writing an essay on why I am writing an essay.
I need to go to bed.
TOodles!
Sure, there are plenty of workarounds, however the trouble with this, usergroup restrictions and 5.0 is the caching system. I just checked a current installation and you CAN limit by forum (but not thread).
How it works now - GAL goes and grabs EVERY SINGLE GAL that the usergroup is qualified to see for that forum (which results in a complex, longer-than-I-would-like query). It then processes each post for each entry.
The new system is far more complex, but also far more refined. If there is a record of GAL parsing the post before, then it only grabs those items which results in a significant performacne boost especially on large boards with a lot of entries. The problem is that posts can move forums thus changing their elibability for certain categories. The other problem is that if there isnt an entry in the post cache, GAL still needs to go get all GALS (regardless of forum or usergroup restrictions) because it still needs to know which entries are still valid no matter what forum it is in or usergroup is viewing it.
I have just thought to myself: Why the hell am I rambling on about this. The poor guys just asked if he could restrict by forum/thread and here I am writing a freaking essay on caching. Now I am sitting here wondering why the hell I am writing an essay on why I am writing an essay.
I need to go to bed.
TOodles!
Ah. I understand now. I guess it works simularily to BBcode then.
I was under the impression is was implemented in a similar way to those inline text ads that are knocking about; a snippet of javascript in the html.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.