Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Donation
This here is a combined total of what we need to keep us going each month.

5 %

Donate

End DateMar 01
Target$100.00
Below Target$95.45
CurrencyUSD

Donators This Month
Feb 04
Wolf
$4.55
DFG
DFG DFG DFG

 
Search our Site
 
DFG DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 995
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [1895] bots stopped!

DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 


Search for at

About Tutorial Module
Goto page 1, 2  Next
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index Nuke Blocks / Modules Support
View previous topic View next topic
PostPosted: Wed May 20, 2015 8:54 am Reply with quote
Teo
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.

NOOB!!!

Groups NOOB!!!
Posts 28
Joined Aug 31, 2012
Status Offline
Gender Male
View user's profile Send Teo a private message Visit user's website Find all posts by Teo

PostPosted: Thu May 21, 2015 2:44 am Reply with quote
coRpSE
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.


Expand


 Last edited by coRpSE on Tue May 26, 2015 7:55 pm; edited 5 times in total

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2376
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Thu May 21, 2015 5:53 am Reply with quote
Teo
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?


 

NOOB!!!

Groups NOOB!!!
Posts 28
Joined Aug 31, 2012
Status Offline
Gender Male
View user's profile Send Teo a private message Visit user's website Find all posts by Teo

 
PostPosted: Thu May 21, 2015 6:03 am Reply with quote
Teo
nope it's not correct, something wrong with table, i'm trying to fix it.


 

NOOB!!!

Groups NOOB!!!
Posts 28
Joined Aug 31, 2012
Status Offline
Gender Male
View user's profile Send Teo a private message Visit user's website Find all posts by Teo

PostPosted: Thu May 21, 2015 8:09 pm Reply with quote
coRpSE
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.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2376
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Fri May 22, 2015 2:38 am Reply with quote
Teo
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


 

NOOB!!!

Groups NOOB!!!
Posts 28
Joined Aug 31, 2012
Status Offline
Gender Male
View user's profile Send Teo a private message Visit user's website Find all posts by Teo

 
PostPosted: Fri May 22, 2015 4:10 am Reply with quote
coRpSE
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.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2376
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Fri May 22, 2015 6:10 am Reply with quote
Teo
ok good mate! and what about the subadd operation?


 

NOOB!!!

Groups NOOB!!!
Posts 28
Joined Aug 31, 2012
Status Offline
Gender Male
View user's profile Send Teo a private message Visit user's website Find all posts by Teo

PostPosted: Fri May 22, 2015 9:12 pm Reply with quote
coRpSE
I will take a look at it later. The technique will be the same as I did before more and likely.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2376
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

 
PostPosted: Tue May 26, 2015 7:54 pm Reply with quote
coRpSE
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.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2376
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Goto page 1, 2  Next
Page 1 of 2


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme