Jump to content

Leaderboard

  1. -Cookie-

    -Cookie-

    Community Regular


    • Points

      5

    • Posts

      771


  2. Tutu

    Tutu

    Rookie


    • Points

      1

    • Posts

      21


  3. OpFor

    OpFor

    Contributor


    • Points

      1

    • Posts

      131


  4. Chris

    Chris

    Blizzard


    • Points

      1

    • Posts

      360


Popular Content

Showing content with the highest reputation on 03/17/2014 in all areas

  1. EDIT: I have created a custom BBCode for this script so there is no need for installing the script inside of your skin template. Original Post: Hello, Earlier, I showed you how you can make usernames on your forum flash in a "Rainbow" fashion. This tutorial will be very similar, but requires a few extra steps. This does not require "advanced" knowledge, just access to the Look & Feel and Member Groups section of your community's ACP. Let's begin. Firstly, you are going to navigate to ACP > Look & Feel > Your Skin > globalTemplate This piece of code is to be inserted towards the bottom of the script. For example, you could place it just above where you see something relevant to <!-- ::: Footer ::: --> <script> var speed=80 var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0") var r=1 var g=1 var b=1 var seq=1 function changetext(){ for(i=0;i<document.getElementsByName("Rainbow").length;i++){ var storetext=document.getElementById? document.getElementsByName("Rainbow")[i] : document.all.highlight rainbow="#"+hex[r]+hex[g]+hex[b] storetext.style.color=rainbow } } function change(){ if (seq==6){ b-- if (b==0) seq=1 } if (seq==5){ r++ if (r==12) seq=6 } if (seq==4){ g-- if (g==0) seq=5 } if (seq==3){ b++ if (b==12) seq=4 } if (seq==2){ r-- if (r==0) seq=3 } if (seq==1){ g++ if (g==12) seq=2 } changetext() } function starteffect(){ if (document.all||document.getElementById) flash=setInterval("change()",speed) } starteffect() </script> Now to authorize user groups who can use the Rainbow text. We're now going to navigate withing the ACP to Members > Member Groups > Manage Member Groups This next step you will have to do for each group you want to be able to use this Rainbow text feature. Open the group, click on "Global", look for "Can Post HTML?" and tick the box over to "Yes". Save the group, and repeat as necessary. Since we have enabled it for the user groups, we must permit it on the forums. Let's work our way over to Forums > Manage Forums Again, you must repeat these steps for each forum area you wish to allow the Rainbow feature. Open the forum set you wish to apply the permissions to, and click on the Postable Settings tab. The first option should be "Enable HTML Posting (where allowed)", place the setting over to "Yes". Save the forum set, and repeat as necessary. Finally, we can post with our Rainbow text as an approved user in the appropriate forums. To do so, we're going to start a topic as normal. Once you are at the topic posting screen, look on the right hand side where you should see "Post Options" Tick the box on where you see "Enable HTML?" Place this before the text you wish to add Rainbow to: <span name="Rainbow"> And then place your text. At the end of your text, add this: </span> Things to note: *The rainbow will only show on skins that you add the script to. *It does not matter exactly where you place the script, as long as it is there and does not interrupt other code. *Only usergroups that you allow may use this on allowed forums. *This will only work in the forums you allow, regardless of user permission sets. *This will work wherever HTML is enabled, including signatures and about me.
    1 point
  2. Well, for some odd reason the IPB api makes all user-info besides their avatars easily accessible, and it was somewhat necessary for a 3rd party app. I was working on. Long story short, the following code snippet will allow you to easily grab a user's avatar location, connect.php <?php $mysql_hostname = '...'; $mysql_user = '...'; $mysql_password = '...'; $mysql_database = '...'; $prefix = ""; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die('Could not connect database'); mysql_select_db($mysql_database, $bd) or die('Could not select database'); ?> user.php class User { function avatar($user) { require_once('connect.php'); try { $sql = "SELECT * FROM members WHERE name='$user'"; $query = mysql_query($sql); if(!$query) { exit('Fail'); } $member = mysql_fetch_assoc($query); $id = $member['member_id']; $sql_2 = "SELECT * FROM profile_portal WHERE pp_member_id='$id'"; $query = mysql_query($sql_2); $profile = mysql_fetch_assoc($query); $avatar = $profile['pp_main_photo']; if(!isset($avatar) || $avatar=='') { exit('Fail'); } exit('http://myforum.com/uploads/'.$avatar); } catch(Exception $ex){ exit('Fail'); } } } Usage, <?php $user = new User; $name = 'USERNAME'; $user->avatar($name);
    1 point
  3. You may want to consider enabling search engine-friendly URLs (removes the trailing index.php in every board URL). I saw a very noticeable jump in visitors after enabling the friendly URLs.
    1 point
  4. if I have time, I will have a little go at it
    1 point
  5. Send me admin details VIA pm and i'll sort it for you
    1 point
  6. Sorry i don't quite understand what you mean
    1 point
  7. You'll have to change the CSS color and if your wanting stuff like this then you would have to install this install this for for joined date, but the template would need editing, if you require more assistance on this let me know by sending me a PM with admins detals and i'll sort it for you
    1 point
  8. Replace yours with this one <div itemscope itemtype="http://schema.org/Person" class='user_details'> <span class='hide' itemprop="name">{$author['members_display_name']}</span> <span class="arrow"><span></span></span> <ul class='basic_info'> <if test="avatar:|:$author['member_id']"> <li class='avatar'> <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'> </if> <if test="hasVariable:|:$this->settings['member_topic_avatar_max']"> <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' /> <else /> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </if> <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> </a> </if> </li> <else /> <li class='avatar'> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </li> </if> <if test="rankimage:|:$author['member_rank_img']"> <li class='group_icon'> <if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'"> <img src='{$author['member_rank_img']}' alt='' /> <else /> {$author['member_rank_img']} </if> </li> </if> <if test="membertitle:|:$author['member_title']"> <ul class="ribbon"> <li class="ribbon1"> <div class="Rleft"></div> <div class="Rright"></div>{$author['member_title']}</li> </ul> </if> <ul class="ribbon"> <li class="ribbon2"> <div class="Rleft"></div> <div class="Rright"></div> {$author['_group_formatted']} </li> </ul> <div class="extraUserInfo"> <if test="postCount:|:$author['member_id']"> <dl class="pairsJustified"> <dt>{$this->lang->words['m_posts']}</dt> <dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</dd> </dl> </if> </div> <if test="authorwarn:|:$author['show_warn']"> <li> <if test="hasWarningId:|:$options['wl_id']"> <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' /> </if> <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a> </li> </if> </ul> <if test="authorcfields:|:$author['custom_fields'] != """> <ul class='custom_fields'> <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data"> <foreach loop="customFields:$author['custom_fields'][ $group ] as $field"> <if test="$field != ''"> <li> {$field} </li> </if> </foreach> </foreach> </ul> </if> </div>
    1 point
  9. Congrats Davlin you deserve it buddy
    1 point
  10. HI ALL MY NAME IS MIKE , NICE TO SEE YOU BITCHES
    -1 points
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...