hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Dec 24, 2009 15:34:40 GMT -8
I seen codes for facebook, bebo, and myspace, and I tried editing these to what I needed, but it didn'r work how I planned. What I need, is one custom made, where I can edit the Title of the IM, the image to be used, and descirpiton that goes under the modify profile page. To Explain Why ... Members have their own topics on the forum for members to contact them on the forum, and I'd like it to where they can copy/paste their topic's URL in that (new IM) field .. so, the image in their mini-profile can be clicked and taken to that members Brawl Topic. Example of what it'd look liek ont he modify profile page. Your Brawl Topic: ( they will add the link to their Brawl topic on the forum) my brawl topic link I would in put : www.brawldomain.com/index.cgi?board=arenadiscussion&action=display&thread=893The image I would like to appear with the IM icons in the mini-profile. As I said, I actually edited the facebook code on PB Support, and it worked for some members, but not everyone. So was thinking maybe a custom code would be better for this. Also, I do use the CrossFury Hack. Not sure if that would interfere? Thanx, Wormopolis for looking, I know it's the Holidays, so no rush on this, if it's even possible.
|
|
|
Post by Wormopolis on Dec 24, 2009 17:19:11 GMT -8
undoubtedly crossfury will do things to the mini-profile. why the facebook code you modified didnt work, I couldnt say. crossfury utilizes the web space area for storage, and Im not sure where the facebook stores its data.
the most difficult thing about thes ekinds of codes is where to put the data you want to store.
the signature area has the most available space, but a lot of codes utilize the same space. the personal text area has some space, but then that will be unavailable to the members from then on. (which may be why some of your members have the issue).
that said, several things could make this code easier to accomplish. If all the topic threads are in the SAME board, then that entire part of the URL could be hard coded and NOT have to be stored. which means only 4 or 5 characters have to be stored instead of 40 to 50.
is that something you would be willing to enforce? utilizing a single board for such a purpose could ALSO mean that a button could be created IN that board that the members could click and it would grab the thread id for them and take them to their modify profile and insert the thread number.
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Dec 24, 2009 17:44:15 GMT -8
THAT's WHY! You're brilliant, bud. I just looked aty members having issues, and the ones with a larger "custom quote" were the ones having issues. (the facebook saves in the custom quote field) And, YES. All these topics all belong in the same board. The one below www.brawldomain.com/index.cgi?board=arenadiscussionSo, that could work as you explained the work around. So, this is possible? I', your #1 fan. ;D
|
|
|
Post by Wormopolis on Dec 30, 2009 15:15:37 GMT -8
button added. now have to get the link adder to work...
|
|
|
Post by Wormopolis on Dec 30, 2009 17:23:09 GMT -8
try this out:
<script type="text/javascript"> <!-- // Brawl Topic in MP // by Wormopolis - www.wormocodes.com // keep header intact
var topicBoard="arenadiscussion";
// create button for making new link in profileedit if (!document.postForm && location.href.match(new RegExp('board='+topicBoard,'')) && location.href.match(/action=display/) && !location.href.match(/page=/)) { for(td=document.getElementsByTagName('td'),b=0; b<td.length; b++) { if (td[b].width=='80%' && td[b].className.match(/catbg/) && td[b].innerHTML.match(/Topic:/)) { authCell=td[b].parentNode.nextSibling.firstChild; if (authCell.getElementsByTagName('b')[0]) { auth=authCell.getElementsByTagName('b')[0].firstChild; authName=auth.href.split('user=')[1]; if (authName==pb_username) { nwTbl=document.createElement('table'); nwTbl.insertRow(0); nwTbl.rows[0].insertCell(0); nwTbl.rows[0].insertCell(0); nwTbl.width="100%"; nwTbl.rows[0].cells[0].align="left"; nwTbl.rows[0].cells[1].align="right"; nwTbl.rows[0].cells[0].className=nwTbl.rows[0].cells[1].className="catbg"; nwTbl.rows[0].cells[1].style.fontSize="10px"; nwTbl.rows[0].cells[0].appendChild(td[b].firstChild); nwLnk=nwTbl.rows[0].cells[1].appendChild(document.createElement('a')); nwLnk.appendChild(document.createTextNode("[ SET THIS THREAD AS BRAWL TOPIC ]")); thnum=location.href.split('thread=')[1]; nwLnk.href="/index.cgi?action=modifyprofile&user="+pb_username+"&keepnum="+thnum; td[b].appendChild(nwTbl); } } } } } if (document.modifyForm && location.href.match(/keepnum=(\d+)$/)) { nwNum=RegExp.$1; document.modifyForm.personaltext.value=document.modifyForm.personaltext.value.replace(/\[brw(\d+)\]/,''); document.modifyForm.personaltext.value="[brw"+nwNum+"]"+document.modifyForm.personaltext.value; alert("Your Brawl Topic button has been updated"); document.modifyForm.submit(); } // show button in MP if PT contains flag if (!document.postForm && location.href.match(/(board=|action=(viewprofile|recent|search2))/)) { for (td=document.getElementsByTagName('td'), b=0; b<td.length; b++) { if (td[b].width=='20%' && td[b].className.match(/windowbg/) && td[b].innerHTML.match(/\[brw(\d+)\]/)) { thNum=RegExp.$1; td[b].innerHTML=td[b].innerHTML.replace(/\[brw(\d+)\]/,''); ctr=td[b].getElementsByTagName('center'); if (ctr[0]) { nwBtn=document.createElement('a'); nwBtn.href="/index.cgi?board="+topicBoard+"&action=display&thread="+thNum; nwBtn.appendChild(document.createElement('img')); nwBtn.firstChild.border=0; nwBtn.firstChild.src="http://img191.imageshack.us/img191/4750/brawltopic.png"; ctr[0].appendChild(document.createElement('br')); ctr[0].appendChild(nwBtn); } } } }
// --> </script>
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jan 3, 2010 13:06:20 GMT -8
I'm already postitve it will work Gonna test it in a bit, bud. Thank You so much for taking the time. I'll report back soon
|
|
|
Post by Wormopolis on Jan 11, 2010 4:00:05 GMT -8
did it not work then?
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jan 12, 2010 14:31:16 GMT -8
I am so sorry for not coming back sooner. Been very busy. But, this did give plenty of time to see if there were any problems. And so far, none. The code works brilliantly, and the members love the new feature and taking full advantage of it's convenience for communicating with other members. Believe it or not, the brawl topics just work better rather tham PM'ing members for some reason. I know this can't be used for other members, and this was custom made for me, though I'm sure it can be edited for others who may need it for a similar use. I'm very greatly. Just wanna say THANK YOU SO MUCH, wormopolis. I honestly feel guilty for taking up your time with these requests, but you're always my first source for coding cause you're brilliant, and can always find a way to make something work, if it's possible, no matter how ridiculous the request. Keep up the amazing work, my friend.
|
|
|
Post by Wormopolis on Jan 12, 2010 15:12:01 GMT -8
I dont mind doing the requests (some just take longer then others to work out). Getting feedback is important however to know if something needs to be fixed or not. I kept visiting your site to see if anyone was using it, but I didnt see the code in your footer so I thought you had stopped using it.
|
|