Post generator (kako ubaciti slike umijesto slova na pojedinim mjestima)

Ovdije se radi o post generatoru i zanima me kako cu ili ako možete vi prepraviti ovu skriptu tako da kad kliknem na napravi kod za forum umijesto slova npr. gdje piše IMDb , SCREENSHOTS itd… budu slike sa ovih linkova

http://img163.imageshack.us/img163/6038/screenshot04z.png

IMDb

http://i.imgur.com/NJ2nZ.png

Screenshots

http://i.imgur.com/QqK77.png

download

http://i.imgur.com/PkXe1.gif

password

http://i.imgur.com/kjEOQ.png

[HTML]

.style71 { font-size: 18px; font-style: italic; color: #090; } body,td,th { color: #F00; } body { background-color: #151515; background-image: url(); } FreeStuff Forum • Post Generator
<tr>


	<td class="np-body" width="100%" valign="top"><script type="text/javascript">

		function doStuff()

		{

		var txt = "";

		document.getElementById("gen").value = "";



		if (document.getElementById("title").value != ""){

		txt += "[align=center][b][color=#FF0000][size=28]";

		txt += document.getElementById("title").value; //Add title

		txt += "[/size][/color][/b]";

		document.getElementById("gen").value += txt;

		}



        if (document.getElementById("boxart").value != ""){

		txt = "\n\n[img\]";

		txt += document.getElementById("boxart").value; //Add boxart

		txt += "[/img]";

		document.getElementById("gen").value += txt;

		}

		

					if (document.getElementById("imdb").value != ""){

		txt = "";

		txt += "\n\nIMDB:\n";

		txt += "\n
";

			txt += document.getElementById("imdb").value;

			txt += "

";

		document.getElementById("gen").value += txt;

		}

		

		if (document.getElementById("info").value != ""){

		txt = "";

		txt += "\n\nINFO:\n";

		txt += "\n[quote=""]";

		txt += document.getElementById("info").value;

		txt += "[/quote]";

		document.getElementById("gen").value += txt;

		}



		if (document.getElementById("sshot1").value != ""){

		txt = "";

		txt += "\n\nSCREENSHOTS:\n";

		txt += "\n\n

";

		txt += document.getElementById("sshot1").value;

		txt += "

";

		document.getElementById("gen").value += txt;

		}



		if (document.getElementById("sshot2").value != ""){

		txt = "";

		txt += "\n

";

		txt += document.getElementById("sshot2").value;

		txt += "

";

		document.getElementById("gen").value += txt;

		}





		if (document.getElementById("sshot3").value != ""){

		txt = "";

		txt += "\n

";

		txt += document.getElementById("sshot3").value;

		txt += "

";

		document.getElementById("gen").value += txt;

		}





		if (document.getElementById("sshot4").value != ""){

		txt = "";

		txt += "\n

";

		txt += document.getElementById("sshot4").value;

		txt += "

";

		document.getElementById("gen").value += txt;

		}





		if (document.getElementById("sshot5").value != ""){

		txt = "";

		txt += "\n

";

		txt += document.getElementById("sshot5").value;

		txt += "

";

		document.getElementById("gen").value += txt;

		}



		document.getElementById("gen").value += "\n";



		if (document.getElementById("downlinks").value != ""){

		txt = "";

		txt += "\n\nDOWNLOAD:\n";

		txt += "\n
";

			txt += document.getElementById("downlinks").value;

			txt += "

";

		document.getElementById("gen").value += txt;

		}



		if (document.getElementById("pass").value != ""){

		txt = "";

		txt += "\n\nPASSWORD:\n";

		txt += "\n
";

			txt += document.getElementById("pass").value;

			txt += "

[/align]";

		document.getElementById("gen").value += txt;

		}



		txt = "";

		txt += "\n\n[size=28]Post Generated By [color=#FF8000][url=http://freestuff-team.vacau.com]FreeStuff forum[/url][/color] [b][/b][/size]\n";

		

		document.getElementById("gen").value += txt;

		}

	</script>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><span class="style4"><strong>Naslov teme</strong>:</span></span></div></th>
	</tr>
    <tr>
	<td width="57%" class="row2"><div align="center">
		  <p>
		    <INPUT type="text" id="title" maxlength="60" size="70">
		  </p>
	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>Omot [URL-Slike]:</b></em></span></div></th>
	</tr>



    <tr>


        <td width="43%" class="row2"><div align="center">
          <p>
            <INPUT type="text" id="boxart" value="" maxlength="200" size="70">
          </p>
        </div></td>

	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>IMDB:</b></em></span></div></th>
	</tr>

    <tr>

		 <tr>


		<td class="row2"><div align="center">
		  <p>
		    <INPUT type="text" id="imdb" value="" maxlength="100" size="70">
		  </p>
		</div></td>



	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><b>Info:(kratki opis)</b></span></div></th>
	</tr>


	      <td class="row2"><div align="center">

	        <p>
	          <textarea name="textarea" cols="53" rows="5" id="info"></textarea>
	        </p>
	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>Screenshots (url):</b></em></span></div></th>
	</tr>

    <tr>





		<td class="row2"><div align="center">
		  <p>
		    <INPUT type="text" id="sshot1" maxlength="200" size="70">
		    

		    
		    <INPUT type="text" id="sshot2" maxlength="200" size="70">

		    
		    
		    
		    <INPUT type="text" id="sshot3" maxlength="200" size="70">

		    
		    <INPUT type="text" id="sshot4" maxlength="200" size="70">

		    
		    <INPUT type="text" id="sshot5" maxlength="200" size="70">
		  </p>
		</div></td>

	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>Download Linkovi:</b></em></span></div></th>
	</tr>

    <tr>




		<td class="row2"><div align="center">
		  <p>
		    <TEXTAREA id="downlinks" cols="53" rows="5"></TEXTAREA>
		  </p>
	</tr>
    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>Password:</b></em></span></div></th>
	</tr>

    <tr>


		<td class="row2"><div align="center">
		  <p>
		    <INPUT type="text" id="pass" value="" maxlength="100" size="70">
		  </p>
	</tr>

    <tr>

        <td class="cat" colspan="2"><div align="center">&nbsp;&nbsp;
              <INPUT type="reset" value="Poni&scaron;ti">
              &nbsp;&nbsp;
              
              <INPUT type="button" class="btnmain" onClick="doStuff()" value="Napravi">
	</tr>

    <tr>

        <th colspan="2"><div align="center" class="style7"><span class="style71"><em><b>Klikni u textualno polje da oznacis sve:</b></em></span></div></th>
	</tr>

    <tr>

	    <td class="row2" colspan="2"><div align="center">



	      <p>
	        <textarea name="gen" cols="63" rows="10" id="gen" onClick="javascript:frm.gen.focus();frm.gen.select();"></textarea>
	      </p>
	</tr>

    <tr>


    </tr>

  </table>

      <div align="center">



        <p><a href="http://freestuff-team.vacau.com" target="_top">www.freestuff-team.vacau.com</a></p>

        <p class="style3"> Post Generator by <span class="style5">FreeStuff team</span></p>

[/HTML]

BBcode?

Evo ovako izgleda kad se kopirani kod postavi na forum , samo šta ocu da mi umisto ovih slova IMDb, Screenshots itd…kad kliknem na “napravi” budu ubacene gore navedene slike

http://img171.imageshack.us/img171/9262/screenshot05x.png

http://img225.imageshack.us/img225/8832/screenshot06z.png

Čitam već tri puta iznova li ne mogu da pohvatam što tražiš…

Ako sam imalo skontao koristi se fazonom kao kod BBcode, tj. npr ukoliko se link slike nalazi izmedju [IMDb][IMDb] kada se naidje u tekstu na takav kod da ga zamijeni sa tagom.

[quote=“HepeK”]Čitam već tri puta iznova li ne mogu da pohvatam što tražiš…

Ako sam imalo skontao koristi se fazonom kao kod BBcode, tj. npr ukoliko se link slike nalazi izmedju [IMDb][IMDb] kada se naidje u tekstu na takav kod da ga zamijeni sa tagom.[/quote]

nisi me baš najbolje razumija , evo ovako ovo je post generator

http://www.freestuff-post-generator.it.pn

kojega cu koristiti za postavljanje tema na forum, ali mi triba prepraviti njegovu skriptu koju sam gori postavija , tako da kad se popune polja u generatoru i klikneš na napravi on ti izbaci kod koji kopiraš i zaljepiš na forum, e sad ja želim da da mi umisto onih slova IMDb itd u njegovu skriptu ubacim linkove od tih slika tako da kad klikneš na "napravi " izbaci vec gotovi kod a ne da se moraju nadodavati posebno slike u tag [img] kako si ti naveo gori :neznam:

[color="#FF0000"]Problem riješen , hvala svejedno[/color] :slight_smile:


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja