News:

Create A Forum Installed

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - aIURbliS

Pages: 1 2 [3] 4 5 ... 8
31
Suggestions / Disallow guests to view private info in profile
« on: November 04, 2012, 12:04:32 am »
Instead of fully disallowing guests to view profiles, how about an option to hide contact information such as email addresses.

32
Create a Forum Codes and Support / [Code] Recent Posts Sidebar
« on: November 03, 2012, 11:30:45 pm »
Description: Sets a scrollbar to the Recent Posts ezBlock, large enough to show 6 posts at one time. Edit the Recent Posts ezBlock from the ezBlock Manager and set the Number of Posts to show to whatever you want.
This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]
<script>$("table.table_list:contains('Recent Posts')").children("tbody.content").wrap("<div style='height: 187px; height: 400px; overflow-y: scroll;' />");</script>

33
Create a Forum Codes and Support / [Code] Color Membergroup Posts
« on: October 28, 2012, 09:28:14 pm »
Description: Colors the membergroups' posts of your choice.


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
Code: [Select]
<script>function xboi209_colormembergroupposts(membergroup,color){$("li.membergroup:contains('"+membergroup+"')").closest("div.post_wrapper").css("background-color",color)}xboi209_colormembergroupposts("MEMBERGROUP","COLOR");</script>


Editing instructions: Look towards end of the code for MEMBERGROUP and COLOR and replace that with the title of the membergroup and the color that you want for its posts. To do this for more membergroups, add xboi209_colormembergroupposts("MEMBERGROUP","COLOR"); before </script>.

34
General Support / MOVED: Gallery...
« on: October 28, 2012, 06:41:30 pm »

35
Guides and Tutorials / MOVED: How To Set A Mod
« on: October 13, 2012, 05:17:19 am »

36
Suggestions / API for forums
« on: October 08, 2012, 04:34:46 am »
I would love it if you could make a json file for all forums that will display stats and stuff.

38
Create a Forum Codes and Support / [Code] Shop (Beta 9.30.12)
« on: September 30, 2012, 05:23:17 pm »
Description: This code is currently in beta stage, there's limited functionality as of right now.
It is required to make a new profile field with the following settings:
Name: Items
Description:
Profile Section: Forum Profile
Show on Registration: No
Choose Placement: Above Signature
Show Enclosed Within Text: <b>Items:</b> {INPUT}
Field Type: Text
Maximum Length: 0
Allow BBC: No
Input Mask: No HTML
Privacy: Users can see this field; owner can edit it
Searachble: Yes
Active: Yes

The shop page is located on: http://URL.createaforum.com/index.php?action=shop


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
Code: [Select]

<script>
//Created by xboi209
//Version: Beta 9.30.12
if (location.href == smf_scripturl + "?action=shop") {
    $("#main_content_section").html("<center><div id='shop'><table frame='box' cellspacing='10' width='600'><tr><th>Item</th><th>Description</th><th>Price</th><th>Buy</th></tr><tbody id='row'></tbody></table><></center>");
}
if (location.href == smf_scripturl + "?action=shop;page=buy") {
    $("#main_content_section").html("<center><div id='shop_buy'><table frame='box' cellspacing='10' width='600'><tr><th>Are you sure?</th></tr><tr><td><tbody id='buy_formtest'></tbody></td></tr></table><></center><br>");
    purchase();
}
if (location.href == smf_scripturl + "?action=profile;area=forumprofile;updated" && localStorage.getItem("purchased") == "true") {
    localStorage.setItem("purchased","false")
    window.location = smf_scripturl + "?action=shop;page=purchased";
}
if (location.href == smf_scripturl + "?action=shop;page=purchased") {
    $("#main_content_section").html("<center><div class='windowbg' id='profile_success'>You have successfully purchased " + localStorage.getItem("item") + "!<><br><a href='"+smf_scripturl+"?action=shop'>Return to Shop</a></center>");
}
if (location.href >= smf_scripturl + "?action=profile") {
    $.get(smf_scripturl + "?action=shop", function(data){
//        console.log($(data).find("#row"));
//        localStorage.setItem("item1",$("#shop > a").attr("data-item"));
    });
}
function purchase(){
    $("#buy_formtest").load(smf_scripturl+"?action=profile;area=forumprofile #main_admsection", function() {
    $("#creator").prependTo("#buy_formtest");
    $("div.righttext").prependTo("#creator");
    $("input[value='Change profile']").attr("value","Purchase");
    $("input[value='Purchase']").click(function(){
        localStorage.setItem("purchased","true")
    });
    $("#buy_formtest").prepend("<b>Item:</b> "+localStorage.getItem("item")+"<br><b>Description:</b> "+localStorage.getItem("description")+"<br><b>Price:</b> "+localStorage.getItem("price"));
    $("#creator > div.cat_bar,p.windowbg.description,div.windowbg2:not(input[value='Purchase'])").hide();
    $("input[name='customfield[cust_items]']").val( $("input[name='customfield[cust_items]']").val() + "{" +  localStorage.getItem("item") + "}");
    });
}
function main_shop(item, description, price) {
    $("#row").append("<tr><td align='middle' id='"+item+"'>" + item + "</td><td align='middle' id='"+description+"'>" + description + "</td><td align='middle' id='"+price+"'>" + price + "</td><td align='middle'><a href='"+smf_scripturl+"?action=shop;page=buy' data-item='"+item+"' data-description='"+description+"' data-price='"+price+"'>Purchase</a></tr>");
    $("td > a").click(function(){
        localStorage.setItem("item",$(this).attr("data-item"));
        localStorage.setItem("description",$(this).attr("data-description"));
        localStorage.setItem("price",$(this).attr("data-price"));
    });
}
main_shop("ITEM1", "DESCRIPTION1", "PRICE1");
main_shop("ITEM2", "DESCRIPTION2", "PRICE2");
main_shop("ITEM3", "DESCRIPTION3", "PRICE3");
</script>


Editing Instructions: Add more of these lines main_shop("ITEM1", "DESCRIPTION1", "PRICE1"); to the end of the code for more items

39
Suggestions / Save textarea size
« on: September 30, 2012, 03:36:20 pm »
It'd be nice if we could save textarea sizes whenever we resize them. Working on codes in the Headers & Footers, I prefer to see my entire code rather than get a limited view of a couple lines at a time.

40
Guides and Tutorials / [Guide] Simple domain SEO
« on: September 27, 2012, 01:18:32 am »
Source: http://blog.silktide.com/2011/06/how-one-tiny-hyphen-destroyed-our-seo-efforts/
Dug up a year old article and found out that Google lowers your rankings simply because your url has a hypen in it.

41
Bugs / Headers & Footers disappeared
« on: September 23, 2012, 06:16:58 pm »
Here's the steps to reproduce the problem:
1) Go to your Headers & Footers page
2) Right click on the logout tab and open link in new browser tab
3) Save Headers & Footers on original page
4) Log in
5) Headers & Footers gone

42
Create a Forum Codes and Support / [Code] Adblock Detector V2.1
« on: September 22, 2012, 11:17:40 pm »
Description: Detects if an adblocker is blocking ads on your forum and sends you a pm.
Version 2.1: Fixed a bug where guests were forced to send pms


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]
<script>var xboi209_AdblockDetectorV2="USERNAME";if($("div[align='center'] > img").length<1&&$("li.greeting").length>1){sessionStorage.setItem("adblock","true")}else{sessionStorage.setItem("adblock","false")}if(sessionStorage.getItem("adblock")=="true"&&sessionStorage.getItem("adblock_pm")!=="executed"){$("#content_section").load(smf_scripturl+"?action=pm;sa=send #postmodify",function(){sessionStorage.setItem("adblock_pm","executed");$("input[name='to']").prop("value",xboi209_AdblockDetectorV2).hide();$("input[name='bcc']").remove();$("input[name='subject']").prop("value","Adblock detected").hide();$("dt:eq(0)").remove();$("dt:eq(1)").remove();$("#bcc_div").remove();$("#bbcBox_message").remove();$("#smileyBox_message").remove();$("hr.clear").remove();$("label[for='outbox']").remove();$("#shortcuts").remove();$("textarea[name='message']").prop("value","This user was detected using an ad blocker.").hide();$("input.button_submit").trigger("click").hide()})}</script>

Editing instructions: Look at the beginning of the code for USERNAME and replace that with your username.

43
Bugs / Quick modify
« on: September 22, 2012, 06:36:45 pm »
Inside Javascript console:  Uncaught TypeError: Cannot set property 'innerHTML' of null
File:  script.js:446
line of code:
Code: [Select]
function setInnerHTML(oElement, sToValue)
{
oElement.innerHTML = sToValue;
}

I found an error in the Javascript console after using the quick modify button to modify posts

44
Create a Forum Codes and Support / Coding Policies [Updated 02/06/13]
« on: September 19, 2012, 05:20:34 am »
All policies take effect January 1, 2013, any code created after that are required to follow .


Coding Policies

1) If your code uses any deprecated elements or attributes listed in the following links, you must state that you use them in your topic:
        HTML: http://www.w3.org/TR/html5-diff/#obsolete-attributes , http://www.w3.org/TR/html5-diff/#obsolete-elements
        jQuery: http://api.jquery.com/category/deprecated/

2) If a code is NOT written by you, you must contact the author for permission to republish or modify the code.

3) If your code uses jQuery, direct the user to this topic for the latest version: http://support.createaforum.com/5/jquery-v1-8-update/ with the exception that if your code will only work with certain versions of jQuery. If an older version of jQuery is used, a warning is required stating that some codes may cease to work because of it.

4) Foul language is prohibited

5) The title of your topic must use the following format: [Code] NAME VERSION NUMBER(if more than 1)

6) If your code is hosted on a server and becomes deleted or unavailable, you must either A) Release the code which can be loaded locally, or B) State at the very beginning of your topic that the code is no longer available.

7) If anywhere in the topic of your code or in the code itself, you do not include Created by YOURNAME, you automatically give permission to allow others to modify or republish your code in any way.


If any policy is violated, the author of the code will be contacted and given 1 week(7 days) from the date of contact before the code's thread is deleted. Policy #7 will not result in your topic being deleted.

45
Create a Forum Codes and Support / [Code] Adblock Detector V1
« on: September 16, 2012, 09:02:42 pm »
Detects if an adblocker is blocking ads on the page and displays a message




This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
Code: [Select]
<script>if($("div[align='center'] > img").length < 1){$("#header").after("<center><b><p style='font-size:20px'>If you can read this, please disable adblock!</p></b></center>");}</script>

Pages: 1 2 [3] 4 5 ... 8