About Tutorial Module
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon About Tutorial Module Author: Teo PostPosted: Wed May 20, 2015 8:54 am
    —
Hello mate,

i was adjusting the Tutorial Module a bit fixing some bug, i noticed in the file:

how to switch text input area to ckeditor same as:

../admin.php?op=addtutorial

in the user submissions this is the link:

../modules.php?name=Tutorials&file=submit

cheers.

#2: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 21, 2015 2:44 am
    —
Try this

Open: public_html/modules/Tutorials/submit.php

Find:

PHP:  [ Select all ]

    echo "</select><br \/><br \/>"
    
.""._TUTADMINDESCRIPTION255."<br \/><textarea name=\"description\" cols=\"60\" rows=\"5\"></textarea><br \/><br \/>";
 
       tutorial_form();
 
       echo "            <td colspan=\"9\"><span class=\"gen\">
              <textarea name=\"message\" rows=\"40\" cols=\"100%\" wrap=\"virtual\" class=\"post\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\"></textarea>
              </span></td>
          </tr>
        </table>
        </span></td>
    </tr>
  </table>"

 
Replace With:

PHP:  [ Select all ]

        echo "</select><br \/><br \/>";
 
   echo _TUTADMINDESCRIPTION255."<br \/><textarea name=\"description\" cols=\"60\" rows=\"5\"></textarea><br \/><br \/>";
 
   echo _TUTADMINTUTORIALTEXT.":<br \/>
         <font class=\"tiny\">"
._TUTADMINPAGEBREAK."</font><br \/>";
 
       echo "<span class=\"gen\">";
 
       echo Make_TextArea('message''''message''80%''230px'false);
 
       echo "</span><br/>";
//    echo "</select><br \/><br \/>"
//    .""._TUTADMINDESCRIPTION255."<br \/><textarea name=\"description\" cols=\"60\" rows=\"5\"></textarea><br \/><br \/>";
//        tutorial_form();
//        echo "            <td colspan=\"9\"><span class=\"gen\">
//              <textarea name=\"message\" rows=\"40\" cols=\"100%\" wrap=\"virtual\" class=\"post\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\"></textarea>
//              </span></td>
//          </tr>
//        </table>
//        </span></td>
//    </tr>
//  </table>"; 

 
Save & Close

As you can see, I did not remove the old code, I just canceled it out with a // and built in a new section. I did a quick test on my site and seemed to post okay, but I did not go crazy on the testing, barely at all. but I believe it should work.
Last edited by coRpSE on Tue May 26, 2015 7:55 pm; edited 5 times in total

#3: No icon Re: About Tutorial Module Author: Teo PostPosted: Thu May 21, 2015 5:53 am
    —
oh gr8! thank no problem i will test it and i will be back here. :)

PS/ i noticed another stuff need to be fixed, i can post here or i have to open another topic?

#4: No icon Re: About Tutorial Module Author: Teo PostPosted: Thu May 21, 2015 6:03 am
    —
nope it's not correct, something wrong with table, i'm trying to fix it.

#5: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu May 21, 2015 8:09 pm
    —
Try it now. I just tried it on mine and I found there was an error. I just updated the code in the first post I did.

#6: No icon Re: About Tutorial Module Author: Teo PostPosted: Fri May 22, 2015 2:38 am
    —
Hello mate, nope white page now.

found out is missing a: ;
here:
echo "</span><br>"

should be:

echo "</span><br>";


--edited--

it should be added also at Waiting Submissions area when you have to approve or deny it.

admin.php?op=subedit&subid=X

#7: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri May 22, 2015 4:10 am
    —
Yeah, on my version, I did not need the ; at the end. Might of been something I re-coded in the past. I fixed my previous post so if others do this, it will not affect them.

#8: No icon Re: About Tutorial Module Author: Teo PostPosted: Fri May 22, 2015 6:10 am
    —
ok good mate! and what about the subadd operation?

#9: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri May 22, 2015 9:12 pm
    —
I will take a look at it later. The technique will be the same as I did before more and likely.

#10: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue May 26, 2015 7:54 pm
    —
Okay, this one is easier.

Open: public_html/modules/Tutorials/admin/index.php

Find:

PHP:  [ Select all ]

        tutorial_form();
        echo 
"<td colspan=\"9\"><span class=\"gen\"><textarea name=\"message\" rows=\"40\" cols=\"100%\" wrap=\"virtual\" class=\"post\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\">$t_text</textarea></span></td></tr></table></span></td></tr></table>"

 
Should be on line 1492 and 1493.

Replace with:

PHP:  [ Select all ]

        echo Make_TextArea('message'$t_text'post''100%''300px'true);
        echo 
"<br \/>";
//        tutorial_form();
//        echo "<td colspan=\"9\"><span class=\"gen\"><textarea name=\"message\" rows=\"40\" cols=\"100%\" wrap=\"virtual\" class=\"post\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\">$t_text</textarea></span></td></tr></table></span></td></tr></table>"; 

Again, as you can see, I didn't remove the old code, I just canceled it out using a // infront of it. That should be it.

#11: No icon Re: About Tutorial Module Author: Teo PostPosted: Wed May 27, 2015 3:55 am
    —
Hi mate i tested it only now, nope the Submit function is at line 2981:

need to quote this:

PHP:  [ Select all ]

        /*    
        tutorial_form();

        echo "<td colspan=\"9\"><span class=\"gen\"><textarea name=\"message\" rows=\"40\" cols=\"100%\" wrap=\"virtual\" class=\"post\" onselect=\"storeCaret(this);\" onclick=\"storeCaret(this);\" onkeyup=\"storeCaret(this);\">$t_text</textarea></span></td></tr></table></span></td></tr></table>";
        */ 

 
and above add this:

PHP:  [ Select all ]

        echo Make_TextArea('message'$t_text'post''90%''300px'true);
        
        echo 
"<br>"

 
but thenk to link me there zwinkern

#12: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed May 27, 2015 4:30 am
    —
— Teo wrote
Hi mate i tested it only now, nope the Submit function is at line 2981:

need to quote this:

PHP:  [ Select all ]

        /*    
        tutorial_form();

        echo "<td><span><textarea>$t_text</textarea></span></td></tr></table></span></td></tr></table>";
        */ 

 
and above add this:

PHP:  [ Select all ]

        echo Make_TextArea('message'$t_text'post''90%''300px'true);
        
 
       echo "<br>"

 


but thenk to link me there zwinkern
Don't know what module your using, but I have 0 lines over 2000. My highest line is 1897 and that is even after adding in a couple of lines.

#13: No icon Re: About Tutorial Module Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed May 27, 2015 4:40 am
    —
Ahh, i see what it is, your version is like the one in the latest download version full of white space. That is why your numbers make no sense.

You can see here.
Please login to see this link
Get registered or Log in


Just look at the very bottom. In the non-fucked up version that I have, it does not have all the white space. That will be fixed in the next update of the Evo Xtreme. I am packing it up as we speak.



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1