![]() |
updated package to allow for "'s in replacement variable. Also added a couple of replacement examples in the first post.
|
You Geek :D
Can you add more feature to this hack??? Sometime I don't want to link the keyword to any where, just want to have a popup dhtml tooltip with pre-defined content. This may use with advertising purpose, or use as a glossary. My site is all about computer thing, and members are going crazy answering repeating question of noobie. Let's see, when you are "lol"ing... do you want some one ask you "Please, what does 'lol' mean?" |
well, currently the global replacement is just that - global.
It could easily be modified so that the replacement is on an individual basis (unless left blank - then it uses the global... As easy as it would be to do - I want to freeze functionality to get this released. All I need to know is: 1- does it do a clean install without problems? 2- does it do a clean upgrade without problems? 3- does it work as intended. When I get a yes across the board - it will get moved into its release thread. Ill keep your suggestion in mind ;) |
Then save this feature for 3.1, may be 3.5 :D
I'll take a look at the code, hopefully I can submit a patch. |
The code is pretty simple in flow.
What would need to be done is: 1- Add a replacement field to the gal table 2- Add a textarea box to admincp add & edit link sections 3- Capture the replacement text in the save section 4- Add a check in the functions_gal rebuild_gal_links function to see if that field is blank. If so, use the flow it does now. If not - use the text is contains. Sounds more difficult than it would be. Since I seem to be waiting around for feedback on how it is now... Maybe ill throw it in and save you a minute. |
Done (in about 10 minutes!) ;)
Package updated. You can now have the replacement on an item by item basis - or leave blank for the global setting. Guys - so far there are 6 installs and I only have feedback from 1 person. Can I get a green light from you guys that have installed that all was well? |
Quote:
6000 users online.... IT BETTER WORK! Hum... ha. he... muhah ahhahahahhaha HAAAAAAAAA! |
I tired to upgrade. I had to do 3 manual edits, step 100, 200 & 300. What I found was that instead of GAL linking each instance of a word, it removed it. I see the edit box in each item, where we can set variables:
Code:
Replacement code Code:
1. San Francisco 49ers = 49ers So I went for the uninstall/reinstall. Same result. Just opened pandoras box on myself, because I mistakingly deleted my backup. Gotta go back a few days in archive. |
Well, whilst waiting around for results, I decided that I would add a category manager to it as well.
This way you can categorize the links and override the global replacement code with a category code (which of course can be overridden on an individual level). Man alive this has to be complete now dont you think? So much for the feature freeze ;) If you have already installed - Run the installer but do the following individual steps: 1- DB 2- Phrases Then click the manual file changes and redo Step 200. nJoy |
Quote:
Use the one listed in the first post in this thread that says normal |
All times are GMT. The time now is 08:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|