We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Form request; codes for a few web pages i set up
Topic Started: Jul 26 2015, 08:48 AM (600 Views)
Knucklehead729
Member
[ * ]
Board Address: s15.zetaboards.com/lossantossheriffdept/index
Board Software: ZetaBoards
Description: i would like to make a code for this.

-RULES-

-Section 1: General Rules-
-LSSD prohibits bullying, harassment, racism or prejudice against any of its members.
-LSSD prohibits the use of any mods in any LSSD lobbies.
-LSSD prohibits the use of any LSSD managed media deemed to be malicious or illegal.
-LSSD prohibits the sharing of any personal information between members (other than social media) for safeguarding reasons.
-LSSD staff should at least attend three patrol per week (unless you have told the patrol supervisor for the said patrols you will not be able to attend beforehand).
-LSSD staff should respect all other GTA Online players and respect all other LSSD members.
-LSSD staff should be aware that we do not represent any real law enforcement organization and are just a roleplay clan.
-LSSD staff should be aware that we do not represent Microsoft, Rockstar Games or any other company associated with GTA V Online or the Xbox One or 360 system.
-LSSD members should conform to being 15 or above to join the clan.

-Section 2: In-game (clan lobby) Los Santos County Sheriff rules-
-All in-game LSSD staff members should behave respectfully and responsibly.
-LSSD prohibits all unauthorized radio traffic.
-LSSD prohibits all un-necessary in-game kills.
-LSSD prohibits the use of explosives or any weapons that are not in the weaponry guidelines.

-Section 3: In-game (clan lobby) Civilian Rules-
-All in-game LSSD staff members should behave respectfully and responsibly.
-LSSD prohibits all unauthorized radio traffic.
-LSSD prohibits the use of explosives without permission from the patrol supervisor.
-LSSD prohibits the use of unauthorized high-powered weaponry.
-LSSD prohibits the civilian use of Emergency Vehicles.
-LSSD prohibits the use of Aircraft without permission from the patrol supervisor.
-LSSD prohibits the use of Tanks, Buzzards, Fighter Jets and all other armed vehicles.
-LSSD prohibits the use of fully engine/turbo customized civilian vehicles.
-The LSSD does not discriminate any race, ethnicity or religion.
-Failure to follow this rule will result in the following measures taken against you:
-First offense - Verbal notice
-Second Offense - Written report
-Third Offense - Suspension
-Fourth Offense - Demotion
-Fifth Offense - Removal



-PLEASE NOTE THAT ANY ACT OF DISCRIMINATION IS AN AUTOMATIC REMOVAL FROM THIS CLAN-
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

I don't understand what you want. Could you explain?
Offline Profile Goto Top
 
Knucklehead729
Member
[ * ]
i need to be able to put that text on a webpage in that text format

http://s15.zetaboards.com/lossantossheriffdept/pages/join/


on the webpage i want the text centered
Edited by Knucklehead729, Jul 26 2015, 10:09 AM.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Code: HTML
 
<span style="display:block;text-align:center"><u><strong><big><big><big><big><big>-RULES-</big></big></big></big></big></strong></u></span>
<br>
<br><u><strong><big><span style="color:#ee4a2d"><span style="display:block;text-align:center"><strong>-</strong>Section 1: General Rules<strong>-</strong></span></span></big></strong></u>
<br><span style="color:#000">-LSSD prohibits bullying, harassment, racism or prejudice against any of its members.<br><strong>-</strong>LSSD prohibits the use of any mods in any LSSD lobbies.<br><strong>-</strong>LSSD prohibits the use of any LSSD managed media deemed to be malicious or illegal.<br><strong>-</strong>LSSD prohibits the sharing of any personal information between members (other than social media) for safeguarding reasons.<br><strong>-</strong>LSSD staff should at least attend three patrol per week (unless you have told the patrol supervisor for the said patrols you will not be able to attend beforehand).<br><strong>-</strong>LSSD staff should respect all other GTA Online players and respect all other LSSD members.<br><strong>-</strong>LSSD staff should be aware that we do not represent any real law enforcement organization and are just a roleplay clan.<br><strong>-</strong>LSSD staff should be aware that we do not represent Microsoft, Rockstar Games or any other company associated with GTA V Online or the Xbox One or 360 system.<br><strong>-</strong>LSSD members should conform to being 15 or above to join the clan.</span>
<br><u><strong><span style="color:#ee4a2d"><big><span style="display:block;text-align:center"><strong>-</strong>Section 2: In-game (clan lobby) Los Santos County Sheriff rules<strong>-</strong></span></big></span></strong></u>
<br><span style="color:#000"><strong>-</strong>All in-game LSSD staff members should behave respectfully and responsibly.<br><strong>-</strong>LSSD prohibits all unauthorized radio traffic.<br><strong>-</strong>LSSD prohibits all un-necessary in-game kills.<br><strong>-</strong>LSSD prohibits the use of explosives or any weapons that are not in the weaponry guidelines.</span>
<br><u><strong><span style="color:#ee4a2d"><big><span style="display:block;text-align:center"><strong>-</strong>Section 3: In-game (clan lobby) Civilian Rules<strong>-</strong></span></big></span></strong></u>
<br><span style="color:#000"><strong>-</strong>All in-game LSSD staff members should behave respectfully and responsibly.<br><strong>-</strong>LSSD prohibits all unauthorized radio traffic.<br><strong>-</strong>LSSD prohibits the use of explosives without permission from the patrol supervisor.<br><strong>-</strong>LSSD prohibits the use of unauthorized high-powered weaponry.<br><strong>-</strong>LSSD prohibits the civilian use of Emergency Vehicles.<br><strong>-</strong>LSSD prohibits the use of Aircraft without permission from the patrol supervisor.<br><strong>-</strong>LSSD prohibits the use of Tanks, Buzzards, Fighter Jets and all other armed vehicles.<br><strong>-</strong>LSSD prohibits the use of fully engine/turbo customized civilian vehicles.<br><strong>-</strong>The LSSD does not discriminate any race, ethnicity or religion.<br><strong>-</strong>Failure to follow this rule will result in the following measures taken against you:<br><strong>-</strong>First offense - Verbal notice<br><strong>-</strong>Second Offense - Written report<br><strong>-</strong>Third Offense - Suspension <br><strong>-</strong>Fourth Offense - Demotion<br><strong>-</strong>Fifth Offense - Removal </span>
<br>
<br>
<br><big><u><strong><big><span style="display:block;text-align:center"><strong><strong>-</strong></strong>PLEASE NOTE THAT ANY ACT OF DISCRIMINATION IS AN AUTOMATIC REMOVAL FROM THIS CLAN<strong><strong>-</strong></strong></span></big></strong>
</u>
</big>
Edited by DaPizzaMan, Jul 26 2015, 11:00 AM.
Offline Profile Goto Top
 
Knucklehead729
Member
[ * ]
how did you do that so fast?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Create a topic somewhere hidden and make the webpage with BBCode. Then, find the topic ID (in the URL of the topic page it should look like "YOUR WEBSITE URL/topic/###/"). The ### is the topic ID.
Enter the topic ID in the variable at the top of the code below. Place the code below in Admin CP >> Board Template >> Below the Board.
Code:
 
<script type="text/javascript">
var topicID = 123456; // The topic ID goes here

if ($('form input[name="t"]').attr('value') === topicID) {
$('#c_postbtn button').click(function() {
$('#btn_preview').click();
var htmlContent = $('#c_post-preview').html();
var currentContent = $('#c_post-wrap textarea');
currentContent.val(currentContent.val() + '[html]' + htmlContent + '[/html]');
$(this).closest('form').submit();
});
}
</script>
Now every time you make a new post in this topic, the content of the post will also appear in HTML (within an HTML BBCode). However you must post in the Full Reply Screen area.
Edited by DaPizzaMan, Jul 26 2015, 11:15 AM.
Offline Profile Goto Top
 
Knucklehead729
Member
[ * ]
i did and it isnt working
http://s15.zetaboards.com/lossantossheriffdept/topic/8013760/1/#new
i put "" around the topic number and it now says

Code html

and under it says null
Edited by Knucklehead729, Jul 26 2015, 12:12 PM.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Replace the code I gave you last time with this:
Code:
 
<script type="text/javascript">
var topicID = 8013760; // The topic ID goes here

if (parseInt($('form input[name="t"]').attr('value'), 10) === topicID) {
$('#c_postbtn button').click(function(event) {
$('#btn_preview').click();
event.preventDefault();
setTimeout(function() {
var htmlContent = $('#c_post-preview').html();
$('#c_post-wrap textarea').val($('#c_post-wrap textarea').val() + '[html]' + htmlContent + '[/html]');
}, 1000);
setTimeout(function() {
$('form[name="posting"]').submit();
}, 1);
});
}
</script>
Offline Profile Goto Top
 
Knucklehead729
Member
[ * ]
this is what the code looks like

<script type="text/javascript">
var topicID = "8013760"; //

if ($('form input[name="t"]').attr('value') === topicID) {
$('#c_postbtn button').click(function() {
$('#btn_preview').click();
var htmlContent = $('#c_post-preview').html();
var currentContent = $('#c_post-wrap textarea');
currentContent.val(currentContent.val() + '
Code: HTML
 
' + htmlContent + '
');
$(this).closest('form').submit();
});
}
</script>
it still isnt giving me html code
Edited by Knucklehead729, Jul 26 2015, 12:31 PM.
Offline Profile Goto Top
 
-The-
Member Avatar
#the { display: none; }
[ *  *  *  *  * ]
You need to use the latest code DPM provided you.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic