Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 25, 2012 7:08:20 GMT -8
Hey Wormo Its me again Im wondering if its possible you could create a code so that i could have a youtube theater built in to one of my boards Basically id like it so forum users can upload videos to the theatre and then other users can play these videos and maybe even comment on them And then maybe a section added to the main profile of each user showing the videos they have uploaded and a link Would this be possible ? Cheers
|
|
|
Post by Wormopolis on Feb 25, 2012 9:20:18 GMT -8
well... the "section added to profile showing what videos they added" wont really be possible without external storage. you only get so much space to store things. even if we used signature (which would mean they couldnt have one), it can only store 250 characters. I currently have a code that allows a user to upload a picture and members can comment on it. www.wormocodes.com/index.cgi?board=imgcom&action=display&thread=1384which I might be able to make it store videos. Im not sure what could be done about a thumbnail gallery other then they have a post with all the thumbnails on it that link to individual threads. "uploading" the videos to somewhere again requires external storage and a LOT of it. something I dont have. did you ever see the last reply to your main page remodel?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 26, 2012 2:49:33 GMT -8
well... the "section added to profile showing what videos they added" wont really be possible without external storage. you only get so much space to store things. even if we used signature (which would mean they couldnt have one), it can only store 250 characters. I currently have a code that allows a user to upload a picture and members can comment on it. www.wormocodes.com/index.cgi?board=imgcom&action=display&thread=1384which I might be able to make it store videos. Im not sure what could be done about a thumbnail gallery other then they have a post with all the thumbnails on it that link to individual threads. "uploading" the videos to somewhere again requires external storage and a LOT of it. something I dont have. did you ever see the last reply to your main page remodel? Okies il have a look around for a free hosting site im sures theres plenty around and il take a look at the main page remodel thread now
|
|
|
Post by Wormopolis on Feb 27, 2012 0:21:51 GMT -8
are you wanting to upload actual videos or just have it show links to videos already ON youtube?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 27, 2012 4:33:24 GMT -8
are you wanting to upload actual videos or just have it show links to videos already ON youtube? Well my overall idea was .... There would be a section in everyones profile or maybe a tab using your profile tab code where users can post as many links as they like to there youtube videos which would then in turn filter through to the theatre or be played there in some way But we would need some kind of access for moderators to control the content to ensure we stay within the TOS limits
|
|
|
Post by Wormopolis on Feb 27, 2012 20:24:26 GMT -8
yeah that page woudl need to be able to pull storage of all the links, even if it was just the end part of the youtube video after the v= part. they would be able to store about 20 maybe in signature.. and not have any access to putting whatever they wanted in signature.
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 28, 2012 0:39:51 GMT -8
yeah that page woudl need to be able to pull storage of all the links, even if it was just the end part of the youtube video after the v= part. they would be able to store about 20 maybe in signature.. and not have any access to putting whatever they wanted in signature. hmm I have an account on 000webhost.com Maybe i could host the code there so then to leave the profile options in tact
|
|
|
Post by Wormopolis on Feb 28, 2012 1:25:38 GMT -8
that is a good start, however I dont know how to code in PHP in order to have it create/modify a database that stores all the data
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 28, 2012 13:10:30 GMT -8
that is a good start, however I dont know how to code in PHP in order to have it create/modify a database that stores all the data Ahh okies any other ideas
|
|
|
Post by Wormopolis on Feb 29, 2012 0:03:40 GMT -8
about the only thing I can think of is give them a thread in a particular board and put a link in their profile that directs people to their thread. you can make it so only the OP is allowed to reply to the thread
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 29, 2012 1:24:07 GMT -8
about the only thing I can think of is give them a thread in a particular board and put a link in their profile that directs people to their thread. you can make it so only the OP is allowed to reply to the thread Ok how do i do that
|
|
|
Post by Wormopolis on Feb 29, 2012 20:50:05 GMT -8
Start by making a board dedicated to the youtube galleries. I will get you a code that lets people put a link in their MP to send to a thread
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 1, 2012 2:11:31 GMT -8
Start by making a board dedicated to the youtube galleries. I will get you a code that lets people put a link in their MP to send to a thread Ok could use the Theatre board or the member gallery board
|
|
|
Post by Wormopolis on Mar 1, 2012 16:33:07 GMT -8
<script type="text/javascript"> <!-- // Personal Topic in MP // by Wormopolis - [url]www.wormocodes.com[/url] // keep header intact
var topicBoard="arenadiscussion"; var MPbuttonHTML='<font size="2" color="yellow">YOUTUBE</font>'; //whatever you want to appear, can also be image
// 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 PERSONAL TOPIC ]")); thnum=location.href.split('thread=')[1]; nwLnk.href="/index.cgi?action=modifyprofile&user="+pb_username+"&keepnum="+thnum; td[b].appendChild(nwTbl); } else { for (btns=document.getElementsByTagName('a'), bb=0; bb<btns.length; bb++) { if (btns[bb].href.match(/action=post/)) btns[bb].style.display='none'; } for (txtA=document.getElementsByTagName('textarea'), tt=txtA.length-1; tt>=0; tt--) { tmp=txtA[tt].parentNode.parentNode.parentNode.parentNode.previousSibling; if (tmp && tmp.innerHTML.match(/quick reply/i)) { while (tmp && (!tmp.className || tmp.className!='bordercolor')) tmp=tmp.parentNode; tmp.style.display='none'; } } } } break; } } } 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 Personal Topic button has been updated"); document.modifyForm.submit(); } // show button in MP if PT contains flag if (!document.postForm && pb_action.match(/(display|viewprofile|recent|search2|pmview)/)) { 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.innerHTML=MPbuttonHTML; ctr[0].appendChild(document.createElement('br')); ctr[0].appendChild(nwBtn); } } } }
// --> </script>
try that in global footer. put the board id in at the top
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 1, 2012 17:19:43 GMT -8
Ok ive put that in and created a thread in the board but theres no link in the MP
|
|