User talk:VartanSimonian/Archive/10-29-2007 to 11-14-2007
Talk Page Archive
DO NOT POST YOUR COMMENTS HERE! POST THEM ON MY TALK PAGE.
edit Tonight
I look forward to seeing you tonight - Ray | talk
edit Thanks
Hey Vartan,
I noticed you edited the Portal:The Underground Act:Lahore i have been working on for so long trying to make it more visually attractive every day.heh.
It looks so much better now.
I'm impressed.
Thanks a lot
edit .js
I don't think we have that turned on. TedErnst | talk 14:03, 30 October 2007 (PDT)
edit Re: .js
So that's why - it's something you can turn on or turn off? Didn't know that.
Will it be turned on or is there a reason why it's off? Compatibility issues?
--Vartan 14:12, 30 October 2007 (PDT)edit HowToMakeATemplate
Want to write this? TedErnst | talk 21:16, 3 November 2007 (PDT)
edit Re:HowToMakeATemplate
--Vartan 09:33, 4 November 2007 (PST)edit Re:
Excellent! TedErnst | talk 10:45, 4 November 2007 (PST)
edit Re:
Thanks! --Vartan 11:03, 4 November 2007 (PST)Thank you, Vartan for your
- gentle introduction into Templates
- friendly edit suggestion on my personal page to incorporate badges via an external page.
- your improvement of the Template:GoogleLink
I am amazed about your work. Probably most of the people here on AboutUs can learn from your smart page organization with transclusion. Thank you Ted for the dialog with Vartan, that lead to the improvements.
fridemar 18:01, 5 November 2007 (PST)
edit Template:GoogleDoubleLink
Dear Vartan,
we need a Template:GoogleDoubleLink, where a click on the Google icon initiates a Google search and a click on the text leads as usual to an existing AboutUs page or an empty form. As it is intended for heavy use, I suggest the alias Template:g.
I am sure that you could do it with your left hand :-)
If I had known, that it is so easy, I hadn't asked you.
Now the next step towards a
GoogleTagWiki.
In front of such a GoogleLink, we need an Option Box, which the user, who is viewing the page, can set a mark on. (in some script language, e.g. written in .js)
After having set a combination of marks on all the GoogleLinks, say, g1,g2,g3 they can push a special GoogleQueryButton, that sends a search request to Google: http://google.com/search?q=g1+g2+g3.
This way the value of AboutUs pages would be enhanced considerably and I could leave a mark on
TagWikiContest, that you are the first one, who realized the idea.
fridemar 16:25, 6 November 2007 (PST)
Version 1.0 completed - see User:Vartan/ProposedGoogleLinkJavascript.
It does not work in Internet Explorer as of now - frankly, I'm not sure why. Help?
--Vartan 19:35, 6 November 2007 (PST)Version 2.0 completed - see User:Vartan/ProposedGoogleLinkJavascript.
Now it does work in Internet Explorer.
--Vartan 20:10, 6 November 2007 (PST)Vartan, it's incredible in which short time you have made the basic building block for a
GoogleTagWiki. Version 1.0... Version 2.0, running on Firefox and IE, all together within less than 24 hours. A big thank you in the name of the zillions of future users.
I tested your Script as a local file with Firefox and here is a first screenshot.
Next step is: a JavaScript template or something like that ((Java-)Api to the Media Wiki engine
MediaWikiApi, or an
AutoHotKey macro, that takes the text of the whole page into the Clipboard and translates each CamelCaseWord into a
GoogleWikiTag. This would not only make
TedErnst happy, who is a HUGE fan of CamelCase, but again zillions of people, who use the
MediaWikiEngine and don't like typing double brackets.
Again. a happy Birthday to you. And take your time to relax and recover from the flu.
fridemar 09:26, 7 November 2007 (PST)
I frankly have no experience with PHP or Perl, or the MediaWiki API.However, I can say what needs to be done in order for the engine to be able to generate the code for the checkboxes:
- 1. First things first. Head should include:
<script type="text/javascript">
<!--
var linklist = '';
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
function doCheck(sender, link) {
if (linklist.match(escape(link)) == null) {
linklist += ',' + escape(link);
sender.checked = true;
} else {
linklist = linklist.replace(new RegExp("," + escape(link), "gi"), "");
sender.checked = false;
}
}
function goGoogle() {
var links = linklist.split(',');
var googleurl = 'http://www.google.com/search?hl=en&q=';
for (var x in links) {
googleurl += links[x] + '+';
}
location.href = googleurl;
}
// -->
</script>
- 2. Before any internal link, the following code should be placed , making sure that the link text (in this case, so that's what) is properly escaped (do not escape into place calling javascript function!!!!!) (line breaks added because pre tag has no word wrap):
<a href="http://www.google.com/search?hl=en&q=so%20that%27s%20what"> <img src="http://images.aboutus.org/images/1/18/GoogleIcon.png" alt="(Google)" style="border-style: none;" /></a> <input type="checkbox" onclick="doCheck(this, 'so that\'s what');" />
- 3. THE END. (Or is it?)
I forgot to ask; what's a JavaScript template? Never heard of it before.
--Vartan
10:08, 7 November 2007 (PST)
edit HappyBirthday
Happy Birthday Vartan! Have a wonderful day, despite the flu ;) Kasey
edit Happy Birthday buddy!
The big 1-3, eh? Congrats. It's a milestone for everyone! --Vinh Nguyen 13:52, 7 November 2007 (PST)
edit Re: Happy Birthday buddy!
Thank you! I'm still having trouble realizing I'm a teen now.--Vartan
13:58, 7 November 2007 (PST)
edit .. to give your code more exposure ...
Hi Vartan, to give your code more exposure, I put it on our community server (in Gunzenhausen, a small town in Germany) as GoogleTagWiki3.html. I modified it a bit, that everybody can play with it as user, that they can see how useful it is, even in this prototype. It would be great, if you commented the JavaScript, so that we all can learn from you. Thank you. fridemar 18:21, 7 November 2007 (PST)
Please see version 3.0.--Vartan
19:03, 7 November 2007 (PST)
Great(,:-) Vartan, it would be helpful for all peers, if
(1) you gave tutorial comments to your first function, where you exploited the
DOM model, underlying the
(2) you could refine the code, expressing the body-part in
XHTML/JavaScript with using variables and functions, to reduce the redundancy of the linked items.
(3) TedErnst or some other insiders of
AboutUs pointed us to a solution, how we can upload *.JS files on AboutUs. Currently the FileUpload-mechanism refuses JavaScript files.
Only (3) is actually necessary to insert a link to your contribution in
WardsWiki and realize the claim in
TagWikiContest, that you are the first, who created a (prototype for a)
GoogleTagWiki.
fridemar 18:14, 9 November 2007 (PST)
Vartan, I have messed around a bit with your code:
GoogleTagWiki5.html in the above sense. Now you can see, what I meant with
JavaScriptTemplate.
It would be a step forward, if we could have JavaScript-enabled Templates. fridemar 18:23, 10 November 2007 (PST)
Blah blah blah blah blah blah blah blah blah blah blah
<script type="text/javascript">g('Link text')</script>
<a href="#">Link text</a> blah blah blah <script type=
"text/javascript">g('More link text')</script> <a href
="#">More link text</a> blah blah.
where the g function would only create the checkbox. That way on computers without Javascript enabled wouldn't have the checkbox, to avoid any unecessary confusion on the user's part.
--Vartan
21:57, 10 November 2007 (PST)
edit =AutoHotkey as alternative
Yes, Vartan. You may have noticed, that in my last modification [1], I left off the clickable
GoogleIcon, because if the user checks one optionbox and submits the form, they get the same result. So we could concentrate ourself in principle on inserting OptionBoxes for
JavaScriptEnabledClients and
JavaScriptEnabledWikis, hoping that AboutUs offers us this possibility.
As you love to realize
UserAutomaton,
MacroSupportForWikiUsers, (please insert here more of your tentative GoogleTags,) you might be interested in a more general solution, that works for all wikis, even in view mode.
A wonderful general solution would be a macro, written in
Autohotkey, that can be invoked by a hotkey, doing the following:
- it selects the whole document
- copies the text into the clipboard
- makes a list of all CamelCaseWords,
- produces a window with an optionbox list together with a submit button
- keeps a history of all tried queries, with comments, that can be pasted into the
wiki-page as a
SocialGoogleQuery. Let's coin it
AutoGoogler.
fridemar 10:43, 11 November 2007 (PST)
edit Happy birthday!
I hope you're having fun celebrating your newfound teen-hood :) Kristina | **talk** 19:48, 7 November 2007 (PST)
edit Template:WikiAnatomyTour2Tabs
Hi Vartan, just wanted to make sure changes to this template were made by you? FatimaRaja 20:36, 12 November 2007 (PST)
edit Re:
Yes, the templates were made by me. --Vartan 20:38, 12 November 2007 (PST)- Oh, awesome. I was going to ask the same thing - they're great! Kristina | **talk** 13:53, 13 November 2007 (PST)
edit download corrupt
I tried to download 0.2.0 on my friend's pc, but couldn't open the zip. Same with 0.1.9, actually. TedErnst | talk 12:38, 14 November 2007 (PST)
edit feature request
- I have it installed now. I love it! I have a feature request. Could I just leave that here? I would love a button that removes all categories from the page, except for the adult flag one. What do you think? TedErnst | talk 22:48, 14 November 2007 (PST)
- Of course you can leave it here - but if you want to make sure that I get to you on time, please send me an email. However, I'm probably going to make a feature request section on the AboutUsBrowser page. --Vartan
07:26, 15 November 2007 (PST)
- Of course you can leave it here - but if you want to make sure that I get to you on time, please send me an email. However, I'm probably going to make a feature request section on the AboutUsBrowser page. --Vartan
- So is this feature request something you'd consider building in? The reason I'm asking for it is because we have some really nasty categories here on AboutUs and I'd like a way to easily remove all categories from pages in Category:Possible Adult Content or have a button that removes all categories and also flags at the same time. What do you think? TedErnst | talk 07:32, 15 November 2007 (PST)
edit remove thumbnail
- As I understand it, should I reduce both RemoveThumbnail and RemoveThumbnail + Flag to simply flag, or keep RemoveThumbnail (without flagging), but change RemoveThumbnail + Flag to just Flag? --Vartan
07:26, 15 November 2007 (PST)
- As I understand it, should I reduce both RemoveThumbnail and RemoveThumbnail + Flag to simply flag, or keep RemoveThumbnail (without flagging), but change RemoveThumbnail + Flag to just Flag? --Vartan
- If you like to perform a RemoveThumbnail action from time to time, then my all means leave in the feature. I never do that, so won't use it. If you do leave it in, then yes, the RemoveThumbnail + Flag isn't needed. I didn't try it. I would like to have a one-click flag instead of the three I have now, so if yours is one click, would be cool to leave it in.
edit Re:
I'm really sorry about that - the problem has been fixed and you can now download the file with no worries. Also sorry that I couldn't get back to you on time - I was at my music lesson.
--Vartan
14:05, 14 November 2007 (PST)
edit Question about your browser
I am interested in trying the AboutUs browser but I am having a problem in getting it to download. The one time I did it was extremely slow. Is it possible it can be emailed to me as an attachment? nick [at] hopeforanotherday.org
Thanks. Nick
--Nick 16:01, 14 November 2007 (PST)
edit Re:Question about your browser
Hi Nick!
I can't attach it because my email account won't let me send applications (even in a zip). However, I can give you a direct link (not through the download page) which might help.
I would also like to make sure that you have met the system requirements listed here.
What version would you like to download? 0.2.0 BETA or 0.1.9 BETA?
--Vartan
16:10, 14 November 2007 (PST)
edit RE: Question
2.0 since it seems the newer version. =) I will be happy to document errors I find if you wish/bugs. I have experience in BETA testing to come and think of it. Also happy belated late birthday. =) Congrats on teenagedom! They're awesome years =D
edit Re:
--Vartan
19:07, 14 November 2007 (PST)
- Thanks. Downloaded. Going to wait until I am back in CA to test it. =) --Nick 19:59, 14 November 2007 (PST)
Categories:
- get page alerts
-




