Welcome
Arachne's Web
A group focused on serving the AW community by providing help and discussion on topics such as HTML, CSS, web design, homesite decorating, netiquette and issues important to web artists.

Designing in AncientWorlds (3 threads, 1395 posts)
    Coding for Homesites & Groups (709 posts)
    Social Thread

    Formerly AW formatted decor, now offering an area to display common code used in AW homesites, and Q & A for code! ...
    85 Members have made 571 Posts here to date.
    Google
    AncientWorlds.net Web
    Next: It worked!
    Prev: It's working!
    REPOST: Gram Code, with easier instructions
    AvatarRedGold.png
    Author: * Bacchus Isocrates - 21 Posts on this thread out of 873 Posts sitewide.
    Date: Sep 5, 2005 - 14:47

    I found a couple easier ways to get your persid, and I simplified the instructions for that part of the code. I've also placed all the code for this in this message, so you don't have to download any other file. But most of all I hated seeing everything spread out between 4 or 5 different posts. So here it is all in one post:


    Place the following code at the top of your edit box.



    <head><script language="JavaScript">
    
    	function reload() {
                    
                    document.location.reload();
    	}
    
    
    
        function openGramWindow(url) { //v2.0
    		gramwindow = window.open(url,"GramEditForm" + Math.floor(Math.random() * 10000),'scrollbars=yes,width=370,height=270');
    		gramwindow.focus();
        }
    
       function openGrammerWindow() { //v2.0
    	
     		
        }
       function openHomesiteWindow(firstname,familyname) { //v2.0
    		url = "http://www.ancientworlds.net/member/"+familyname+"/"+firstname;
    		homesitewindow = window.open(url,"Homesite",'resizable=yes,location=yes,scrollbars=yes,width=650,height=600');
    		homesitewindow.focus();
        }
    
    
    </script></head>



    Place the following code where you want your gram link to be, replacing anything in ALL CAPS with what it says to.



    <A HREF="javascript:openGramWindow('http://38.144.92.98/cgi-bin/WebObjects/WhosOnline.woa/1/wa/GramEdit?persid=YOUR PERSIDHERE&firstname=YOUR FIRST NAME HERE&wosid=&familyname=YOUR LAST NAME HERE');">YOUR IMAGE AND/OR TEXT HERE</a>




    -You can test that code at my Entrance by clicking on my servant. I've tested it myself with another persona. If you ever use this, you may want to identify yourself in the gram, as it does not say who you are when the person gets the gram (assuming you are offline). It says "Guest [with a number behind it] (member)". Likewise, when you look at the gram window the recipients name will have a guest# if he/she is offline. But the gram does get where it should go.


    -You might want to provide some text for IE users. Linking to just the image doesn't seem to work in IE. When I tested it in IE, I had both the image and text included in the code, and only the text was working. Firefox will link with both text and image.
    -The persid is found at the end of the Url in your gram log. Also if you click on any of your friends in your friends list you'll see your persid in the Url, in the address line of your browser.



    If you are not a patron, or have not have not started building a friends list, you can use one of the following methods to get your persid. They are not quite as easy as the 2 above, but still not hard.


    --------
    In Firefox
    -On comm Panel, right click on gram beside your name.
    -You should see "This Frame" with and arrow beside it, which when hovered over will show you other options. Click on View Frame Source.
    -Click on Edit>Find, in the Find box type your first name. You should see "persid=" in the same line as your first name. You need only the numbers that come after "persid=".


    ---------
    In IE
    -On Comm Panel, Right click anywhere in the section where the names are found. Click view Source.
    -Click on Edit>Find, in the Find box type your first name. You should see "persid=" in the same line as your first name. You need only the numbers that come after "persid=".


    NEXT: It worked!
    PREV: It's working!
Rome - Rome, Season 1 - The Stolen Eagle


Copyright 2002-2008 AncientWorlds LLC | Code of Conduct and Terms of Service | Contact Us! | The AncientWorlds Staff