Log In · Register

 
replacing subscription w/ new words., help
creamysmile11
post Dec 22 2004, 01:43 PM
Post #1


guess what... chicken butt.
*****

Group: Member
Posts: 316
Joined: Apr 2004
Member No: 13,740



EXPLAINATION::
1.On some xangas, they have replaced the names of the people they subscribed's usernames to their real names. Or in other words, they have replaced the subscriber's names.
2.On some xangas, they have edited the word SUBSCRIPTIONS for the title to be for instance 'My Friends'

QUESTION::
How do you replace those names?
How do you replace that title?

EXTRA::
How do you replace all of the titles?

EDIT ON THIS::
www.xanga.com/creamysmile11

EXAMPLE::
None sorry. I don't have one with me right now.

FORWARDS::
Thanks so much. Hope you can answer this soon!
 
 
Start new topic
Replies (1 - 4)
*mona lisa*
post Dec 22 2004, 02:17 PM
Post #2





Guest






1.
CODE
<!-- begin code provided by createblog.com -->

<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "cent");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "dollars");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "dollar");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "add me");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "log out");
}//-->
</script>

<!-- end code provided by createblog.com -->


replace the eprops/eprop/comments..... to the xanga username and where it says "cents"/"cent" and so on, write the name you want it to appear.

2.
CODE
<!-- begin code provided by createblog.com -->

<script type="text/javascript">
//
// &copy; EasterEgg, http://www.xanga.com/easteregg
//
// For use at Xanga only.
//
// This script replaces any given word or text fragment with
// whatever you want: new words and fragments, or even HTML!
//
// Actually it's pretty simple: add the words or fragments you
// wish to replace to the array "oldWords" (each word placed
// between double quotation marks, and separated by colons as you
// can see below) and add their replacements to the array "newWords",
// at the same position as the original words in "oldWords".
// The example is pretty self-explaining.
//
// The script is case sensitive, meaning that if you add "something"
// to "oldWords" array it will not recognize "SOMETHING", or "SoMetHInG".
//
// You can adjust the existing arrays in this code as you see fit,
// as long as both arrays keep the same size (same amount of words
// in both arrays), otherwise a script error will occur.
//
// Copy this entire code and paste in the webstats box at your
// Look and Feel page.
//
// You're free to use this script as long as this comment remains intact,
// and as long you won't use it to cripple the comments of your visitors;
// after all, no one likes his/her words getting twisted...
//
function replaceWords()
{
   // ***add the words or fragments you wish to replace below
   var oldWords = new Array(
       "Subscriptions",
       "Publish Comments",
       "add eProps",
       "eprop",
       "eProps",
       "add comments",
       "comment",
       "comments",
       "email it",
       "view entire profile",
       "sign my guestbook",
       "My Blogrings",
       "Posting Calendar",
       "Get Involved!",
       "sign out",
       "Name:",
       "Birthday:",
       "Gender:",
       "State:",
       "Country:",
       "Interests:",
       "Expertise:",
       "Website",
       "Email",
       "Member since:");

    // *** add the replacing words or fragments below
   var newWords = new Array(
       "My Friends",
       "Publish Comments",
       "add eProps",
       "eprop",
       "eProps",
       "add comments",
       "comment",
       "comments",
       "email it",
       "view entire profile",
       "sign my guestbook",
       "My Blogrings",
       "Posting Calendar",
       "Get Involved!",
       "sign out",
       "Name:",
       "Birthday:",
       "Gender:",
       "State:",
       "Country:",
       "Interests:",
       "Expertise:",
       "Website",
       "Email",
       "Member since:");

   allTableData = document.getElementsByTagName('td');
   allTableHeaders = document.getElementsByTagName('th');
       
   var collections = new Array(allTableData,allTableHeaders);
   
   for (var k = 0; k < collections.length; ++k )
   {
       for (var i = 0; i < collections[k].length; ++i )
       {  
           if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
           {
               for ( var n = 0; n < oldWords.length; ++n )
               {
                   var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
                   while (indx != -1)
                   {  
                       var replacement = '';
                       indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
                       replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
                       collections[k][i].innerHTML = replacement;
                       break;                    
                   }
               }
           }
       }
   }
}
replaceWords();
</script>

<!-- end code provided by createblog.com -->


same goes for this....
 
creamysmile11
post Dec 22 2004, 02:32 PM
Post #3


guess what... chicken butt.
*****

Group: Member
Posts: 316
Joined: Apr 2004
Member No: 13,740



muhaha u rock.
 
pinkdoll
post Dec 22 2004, 04:45 PM
Post #4


Member
**

Group: Member
Posts: 15
Joined: Nov 2004
Member No: 59,977



and if u want to add image instead of words..where do u put?
 
sunkist6548
post Jan 8 2005, 07:33 PM
Post #5


Sunkist6548
***

Group: Member
Posts: 54
Joined: Nov 2004
Member No: 63,272



I tried using that code and it didnt work. The code that replaces the eprops-Member Since: code. It didnt change n e thing. Here is my xanga and here is the code i used:
My Xanga

 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: