Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Open Coterie  ·  10 members

SMF Staff People
Sign in to follow this  

Category

Coding and Graphics

Rules

  1. What's new in this coterie
  2. Since the two people I knew that did commissions for SMF RP forums are currently not doing it anymore, I was hoping to get some help from you guys in finding somebody to commission for my newest site, Apocapoke. While my husband and I worked hard on it and did our best with it... I feel as if it's a bit clumsy and messy? It's a bit more cluttered looking than I am a fan of, since I like sleeker designs. I like stylized minimalism. It's kinda weird to describe but I also like for the header and footer to have things as condensed as possible. I haaaaaate scrolling super long forums, which is why I often opt for side-by-side forums (not a deal breaker, just a preference). ANYWAY, willing to pay up to 200 for a fully customized design with post apocalyptic and pokemon elements, preferably either medium colored or with an option to switch from dark to light. I usually help with mockup designs, if that helps. So if you know anybody who does this, let me know. I'm having trouble finding anybody who doesn't just recolor the defaults or forums that are clearly just stock forums and not for RP. (And custom profiles are needed, which I don't think most SMF themers make. I've seen Jcink and MyBB commissioners but not any SMF ones so far. HELP.
  3. <a href="', $scripturl, '?action='.($message['id_character'] ? 'characters;area=profile;id' : 'profile;u').'=', $message['member']['id'], '"> In Display.php, find this, should be in function prepareDisplayContext 'can_see_ip' => allowedTo('moderate_forum') || ($message['id_member'] == $user_info['id'] && !empty($user_info['id'])), Add this under it 'id_character' => !empty($message['id_character']) ? true : false,
  4. No biggie, but the character avatars in threads link to nonexistent users (or existing ones if their character id number is low enough). I've changed this in display.template <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '"> to this <a href="', $scripturl, '?action=characters;area=profile;id=', $message['member']['id'], '"> because we mostly post in-character, anyway... but that makes it so OOC avatars link to character profiles... and I dunno how to make it so it does either/or
  5. Thank you soooo much. One day I will understand db queries. One day. 😛
  6. The first one is querying for alliance_color and department_color but you didn't join the tables. When you ping the database for two different instances of the same column in the same table, as well, you'll need to alias them so the query doesn't get confused. $result = $smcFunc['db_query']('substring', ' SELECT t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board, ' . ($user_info['is_guest'] ? '0' : 'IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1') . ' AS new_from, t.id_last_msg, t.approved, t.unapproved_posts, t.topic_description, ml.poster_time AS last_poster_time, ml.id_msg_modified, ml.subject AS last_subject, ml.icon AS last_icon, ml.poster_name AS last_member_name, ml.id_member AS last_id_member, IFNULL(meml.real_name, ml.poster_name) AS last_display_name, t.id_first_msg, mf.poster_time AS first_poster_time, mf.subject AS first_subject, mf.icon AS first_icon, mf.poster_name AS first_member_name, mf.id_member AS first_id_member, mf.id_character AS id_fchar, ml.id_character AS id_lchar, ch1.image AS avatar_fchar, ch2.image AS avatar_lchar, ch1.name_first AS firstchar_namefirst, ch1.name_last AS firstchar_namelast, ch2.name_first AS lastchar_namefirst, ch2.name_last AS lastchar_namelast, al1.alliance_color AS ac1, dp1.department_color AS dc1, al2.alliance_color AS ac2, dp2.department_color AS dc2, IFNULL(memf.real_name, mf.poster_name) AS first_display_name, SUBSTRING(ml.body, 1, 385) AS last_body, SUBSTRING(mf.body, 1, 385) AS first_body, ml.smileys_enabled AS last_smileys, mf.smileys_enabled AS first_smileys FROM {db_prefix}topics AS t INNER JOIN {db_prefix}messages AS ml ON (ml.id_msg = t.id_last_msg) INNER JOIN {db_prefix}messages AS mf ON (mf.id_msg = t.id_first_msg) LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member) LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member) LEFT JOIN {db_prefix}acm_characters AS ch1 ON (mf.id_character = ch1.id_character) LEFT JOIN {db_prefix}acm_characters AS ch2 ON (ml.id_character = ch2.id_character) LEFT JOIN {db_prefix}acm_alliances AS al1 ON (ch1.id_alliance = al1.id_alliance) LEFT JOIN {db_prefix}acm_alliances AS al2 ON (ch2.id_alliance = al2.id_alliance) LEFT JOIN {db_prefix}acm_departments AS dp1 ON (ch1.id_department = dp1.id_department) LEFT JOIN {db_prefix}acm_departments AS dp2 ON (ch2.id_department = dp2.id_department)' . ($user_info['is_guest'] ? '' : ' LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member}) LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = {int:current_board} AND lmr.id_member = {int:current_member})'). ' To make it shorter, I joined the alliance and department colours as ac1/ac2 and dc1/dc2 here, so if you just copy-pasta this, the HTML in the topics array looks like this: 'link' => !empty($row['id_fchar']) ? '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_fchar'].'"'.(!empty($row['dc1']) ? ' style="color: '.$row['dc1'].';"' : (!empty($row['ac1']) ? ' style="color: '.$row['ac1'].';"' : '')).'>'.$firstchar_name.'</a>' : '', 'link' => !empty($row['id_lchar']) ? '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_lchar'].'"'.(!empty($row['dc2']) ? ' style="color: '.$row['dc2'].';"' : (!empty($row['ac2']) ? ' style="color: '.$row['ac2'].';"' : '')).'>'.$lastchar_name.'</a>' : '', For board index, you need to be in Subs-BoardIndex.php. $result_boards = $smcFunc['db_query']('boardindex_fetch_boards', ' SELECT' . ($boardIndexOptions['include_categories'] ? ' c.id_cat, c.name AS cat_name,' : '') . ' b.id_board, b.name AS board_name, b.description, CASE WHEN b.redirect != {string:blank_string} THEN 1 ELSE 0 END AS is_redirect, b.num_posts, b.num_topics, b.unapproved_posts, b.unapproved_topics, b.id_parent, IFNULL(m.poster_time, 0) AS poster_time, IFNULL(mem.member_name, m.poster_name) AS poster_name, m.subject, m.id_topic, IFNULL(mem.real_name, m.poster_name) AS real_name, ' . ($user_info['is_guest'] ? ' 1 AS is_read, 0 AS new_from,' : ' (IFNULL(lb.id_msg, 0) >= b.id_msg_updated) AS is_read, IFNULL(lb.id_msg, -1) + 1 AS new_from,' . ($boardIndexOptions['include_categories'] ? ' c.can_collapse, IFNULL(cc.id_member, 0) AS is_collapsed,' : '')) . ' IFNULL(mem.id_member, 0) AS id_member, m.id_msg, IFNULL(mods_mem.id_member, 0) AS id_moderator, mods_mem.real_name AS mod_real_name, m.id_character, ch.image, ch.name_first, ch.name_last, al.alliance_color, dp.department_color FROM {db_prefix}boards AS b' . ($boardIndexOptions['include_categories'] ? ' LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)' : '') . ' LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = b.id_last_msg) LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member) LEFT JOIN {db_prefix}acm_characters AS ch ON (m.id_character = ch.id_character) LEFT JOIN {db_prefix}acm_alliances AS al ON (ch.id_alliance = al.id_alliance) LEFT JOIN {db_prefix}acm_departments AS dp ON (ch.id_department = dp.id_department)' . ($user_info['is_guest'] ? '' : ' LEFT JOIN {db_prefix}log_boards AS lb ON (lb.id_board = b.id_board AND lb.id_member = {int:current_member})' . ($boardIndexOptions['include_categories'] ? ' LEFT JOIN {db_prefix}collapsed_categories AS cc ON (cc.id_cat = c.id_cat AND cc.id_member = {int:current_member})' : '')) . ' LEFT JOIN {db_prefix}moderators AS mods ON (mods.id_board = b.id_board) LEFT JOIN {db_prefix}members AS mods_mem ON (mods_mem.id_member = mods.id_member) WHERE {query_see_board}' . (empty($boardIndexOptions['countChildPosts']) ? (empty($boardIndexOptions['base_level']) ? '' : ' AND b.child_level >= {int:child_level}') : ' AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)), array( 'current_member' => $user_info['id'], 'child_level' => $boardIndexOptions['base_level'], 'blank_string' => '', ) ); And then in the character bit (it's quite a fucking ways down): 'link' => !empty($row_board['id_character']) ? '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row_board['id_character'].'"'.(!empty($row_board['department_color']) ? ' style="color: '.$row_board['department_color'].';"' : (!empty($row_board['alliance_color']) ? ' style="color: '.$row_board['alliance_color'].';"' : '')).'>'.$character_name.'</a>' : '',
  7. Plz send halp. I got it working in the display template simply enough. <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '" style="color: ', $message['member']['group_color'] ,';"> ',$message['member']['name'],' </a> Buuut, obviously it couldn't be that easy for MessageIndex.template or BoardIndex.template. Link_color and group_color are not in the member/character source arrays for those templates. I don't know jack about databases other than how to go in and look at what the columns and rows say. So the rest was a little pretty far out of my ability. I looked over Source/BoardIndex.php and didn't find any member/character bits. So I decided to start with Source/MessageIndex.php. This is the mess I made, but all that does is throw me unknown column errors. $result = $smcFunc['db_query']('substring', ' SELECT t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board, ' . ($user_info['is_guest'] ? '0' : 'IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1') . ' AS new_from, t.id_last_msg, t.approved, t.unapproved_posts, t.topic_description, ml.poster_time AS last_poster_time, ml.id_msg_modified, ml.subject AS last_subject, ml.icon AS last_icon, ml.poster_name AS last_member_name, ml.id_member AS last_id_member, IFNULL(meml.real_name, ml.poster_name) AS last_display_name, t.id_first_msg, mf.poster_time AS first_poster_time, mf.subject AS first_subject, mf.icon AS first_icon, mf.poster_name AS first_member_name, mf.id_member AS first_id_member, mf.id_character AS id_fchar, ml.id_character AS id_lchar, ch1.image AS avatar_fchar, ch2.image AS avatar_lchar, ch1.name_first AS firstchar_namefirst, ch1.name_last AS firstchar_namelast, ch2.name_first AS lastchar_namefirst, ch2.name_last AS lastchar_namelast, IFNULL(memf.real_name, mf.poster_name) AS first_display_name, SUBSTRING(ml.body, 1, 385) AS last_body, SUBSTRING(mf.body, 1, 385) AS first_body, ml.smileys_enabled AS last_smileys, mf.smileys_enabled AS first_smileys,al.alliance_color, dp.department_color FROM {db_prefix}topics AS t INNER JOIN {db_prefix}messages AS ml ON (ml.id_msg = t.id_last_msg) INNER JOIN {db_prefix}messages AS mf ON (mf.id_msg = t.id_first_msg) LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member) LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member) LEFT JOIN {db_prefix}acm_characters AS ch1 ON (mf.id_character = ch1.id_character) LEFT JOIN {db_prefix}acm_characters AS ch2 ON (ml.id_character = ch2.id_character)' . ($user_info['is_guest'] ? '' : ' LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member}) LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = {int:current_board} AND lmr.id_member = {int:current_member})'). ' WHERE ' . ($pre_query ? 't.id_topic IN ({array_int:topic_list})' : 't.id_board = {int:current_board}') . (!$modSettings['postmod_active'] || $context['can_approve_posts'] ? '' : ' AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') . ' ORDER BY ' . ($pre_query ? 'FIND_IN_SET(t.id_topic, {string:find_set_topics})' : (!empty($modSettings['enableStickyTopics']) ? 'is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' : '') . $_REQUEST['sort'] . ($ascending ? '' : ' DESC')) . ' LIMIT ' . ($pre_query ? '' : '{int:start}, ') . '{int:maxindex}', array( 'current_board' => $board, 'current_member' => $user_info['id'], 'topic_list' => $topic_ids, 'is_approved' => 1, 'find_set_topics' => implode(',', $topic_ids), 'start' => $start, 'maxindex' => $maxindex, ) ); I also changed the 'character 'link' here to include alliance/department color and made the same changes in the 'last_post' array as well. I sort of feel like this part is right but honestly I am flying by the seat of my pants. $context['topics'][$row['id_topic']] = array( 'id' => $row['id_topic'], 'first_post' => array( 'id' => $row['id_first_msg'], 'member' => array( 'username' => $row['first_member_name'], 'name' => $row['first_display_name'], 'id' => $row['first_id_member'], 'href' => !empty($row['first_id_member']) ? $scripturl . '?action=profile;u=' . $row['first_id_member'] : '', 'link' => !empty($row['first_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['first_id_member'] . '" title="' . $txt['profile_of'] . ' ' . $row['first_display_name'] . '">' . $row['first_display_name'] . '</a>' : $row['first_display_name'] ), 'character' => array( 'id' => !empty($row['id_fchar']) ? $row['id_fchar'] : 0, 'name' => !empty($row['id_fchar']) ? $firstchar_name : '', 'href' => !empty($row['id_fchar']) ? $scripturl.'?action=characters;area=profile;id='.$row['id_fchar'] : '', 'link' => !empty($row['id_fchar']) ? '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_fchar'].'" style="color: '.(!empty($row['department_color']) ? $row['department_color'].';"' : (!empty($row['alliance_color']) ? $row['alliance_color'] : '')).'">>'.$firstchar_name.'</a>' : '', 'avatar' => array( 'name' => !empty($row['avatar_fchar']) ? $row['avatar_fchar'] : '', 'image' => !empty($row['avatar_fchar']) ? '<img src="'.$boardurl.'/character_images/'.$row['avatar_fchar'].'">' : '', 'href' => !empty($row['avatar_fchar']) ? $boardurl.'/character_images/'.$row['avatar_fchar'] : '', 'url' => !empty($row['avatar_fchar']) ? $boardurl.'/character_images/'.$row['avatar_fchar'] : '', ), ),
  8. @Jones New threads for new things, hon. In most places, the character names should already be determining their own colour. If they are not, you can try using link_color instead of just link, that may work, I remember doing it that way in a few places. If that doesn't, you'll have to find all of the character link calls in the source files and change it so that it'll load colours and use them properly. More or less you just need to add alliance_color and department_color to the SQL, and then do a bunch of if then else statements to add the colours to the links. $request = $smcFunc['db_query']('',' SELECT ch.id_character, ch.name_first, ch.name_last, ch.image, al.alliance_color, dp.department_color FROM {db_prefix}acm_characters AS ch LEFT JOIN {db_prefix}acm_alliances AS al ON (ch.id_alliance = al.id_alliance) LEFT JOIN {db_prefix}acm_departments AS dp ON (ch.id_department = dp.id_department) WHERE ch.id_member = {int:id_member} AND ch.is_activated = 1 AND ch.is_npc = 0 ORDER BY '.(!empty($modSettings['acmOrderCharsBy']) ? 'ch.name_last, ch.name_first' : 'ch.name_first, ch.name_last'), array( 'id_member' => $profile['id_member'], ) ); while ($row = $smcFunc['db_fetch_assoc']($request)) { $characters[] = array( 'id' => $row['id_character'], 'name' => array( 'first' => $row['name_first'], 'last' => $row['name_last'], ), 'link' => '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_character'].'" style="color: '.(!empty($row['department_color']) ? $row['department_color'].';"' : (!empty($row['alliance_color']) ? $row['alliance_color'] : '')).'">'.$row['name_first']. (!empty($row['name_last']) ? ' '.$row['name_last'] : '').'</a>', 'link_lf' => '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_character'].'" style="color: '.(!empty($row['department_color']) ? $row['department_color'].';"' : (!empty($row['alliance_color']) ? $row['alliance_color'] : '')).'">'.(!empty($row['name_last']) ? $row['name_last'].' ' : ''). $row['name_first'].'</a>', 'link_lfc' => '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_character'].'" style="color: '.(!empty($row['department_color']) ? $row['department_color'].';"' : (!empty($row['alliance_color']) ? $row['alliance_color'] : '')).'">'.(!empty($row['name_last']) ? $row['name_last'].', ' : ''). $row['name_first'].'</a>', 'image' => array( 'name' => !empty($row['image']) ? $row['image'] : '', 'href' => !empty($row['image']) ? $boardurl.'/character_images/'.$row['image'] : '', 'image' => !empty($row['image']) ? '<img src="'.$boardurl.'/character_images/'.$row['image'].'">' : '', ), ); } If you need some guidance on how exactly to do this manually, this is my site's Load.php, where it loads user characters for display in profile and on memberlist.
  9. Hi. Me. Again. 😀 Easy way to show the character's name in it's Alliance/Department color on index, messageindex, display? No rush, just curious.
  10. Thank you. I'll figure it out. Or scream until it magically works. Both methods have served me well up to this point. 😛 eta: I finally got deep into making the mini profiles today so had to focus on this bit . Took a few tries. The syntax is simple to call a field title or value: ',$message['member']['custom_fields'][2]['value'],' When I ran the print_r to check out the characters custom_fields array I first thought I needed to call the field I wanted by its index number in that array, but that is not the case. They are actually called by which viewable field number they are. So just know you might have to check them from 0+ to figure out what is what. lol.
  11. Shooo it does pull by default, um. It's - trying to remember where it is hang on... [custom_fields] => Array ( [0] => Array ( [title] => Canon [col_name] => field_canon [value] => Active [placement] => 0 ) ) So this is kind of a weird way of doing it (I did it this way re: placement). The default display.template should have a short guide on how to do this exactly, but you can loop through $message['member']['custom_fields'] and echo $field['title'],': ',$field['value']. They're meant to be able to auto loop and order by placement. I believe. It's either that or that skips them if auto-display is off, I can't remember. Easiest thing to do is either print_r() $message['member'] or var_dump() it to see how it behaves re: the auto list checkbox, and alter how you loop through them accordingly. If placement turns to 1 with autolist on but is 0 if it's off, you can foreach loop and then continue; on ones that are placement value 0. But I think that's ordering... Tbh I don't even remember xD
  12. Another quick question. I want to pull info from character bio-form fields for the mini profiles. How do? 🙃 Like just the $message['somestuff']['morestuff'] syntaxybit. Unless it is not that easy. In which case I will settle for doing it with custom profile fields.
  13. function arcLoadStarter($id_member, $id_topic) { global $smcFunc, $boardurl, $modSettings, $scripturl; $request = $smcFunc['db_query']('',' SELECT t.id_first_msg, m.poster_name, m.poster_time, mem.id_member, mem.real_name, mem.avatar, a.filename, a.id_attach, mg.group_name, mg.online_color, m.id_character, ch.name_first, ch.name_last, ch.image, al.alliance_color, dp.department_color FROM {db_prefix}topics as t LEFT JOIN {db_prefix}messages AS m ON (t.id_first_msg = m.id_msg) LEFT JOIN {db_prefix}members AS mem ON (m.id_member = mem.id_member) LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member) LEFT JOIN {db_prefix}membergroups AS mg ON (mem.id_group = mg.id_group) LEFT JOIN {db_prefix}acm_characters AS ch ON (m.id_character = ch.id_character) LEFT JOIN {db_prefix}acm_alliances AS al ON (ch.id_alliance = al.id_alliance) LEFT JOIN {db_prefix}acm_departments AS dp ON (ch.id_department = dp.id_department) WHERE t.id_topic = {int:current_topic}', array( 'current_topic' => $id_topic, 'current_member' => $id_member ) ); $topic_starter = array(); while($row = $smcFunc['db_fetch_assoc']($request)) { $topic_starter = array( 'id' => (!empty($row['id_character']) ? $row['id_character'] : (!empty($row['id_member']) ? $row['id_member'] : 0)), 'name' => $row['poster_name'], 'href' => !empty($row['id_character']) ? $scripturl.'?action=characters;area=profile;id='.$row['id_character'] : (!empty($row['id_member']) ? $scripturl.'?action=profile;u='.$row['id_member'] : ''), 'link' => !empty($row['id_character']) ? '<a href="'.$scripturl.'?action=characters;area=profile;id='.$row['id_character'].'"'.(!empty($row['department_color']) ? ' style="color: '.$row['department_color'].';"' : (!empty($row['alliance_color']) ? ' style="color: '.$row['alliance_color'].';"' : '')).'>'.$row['name_first']. (!empty($row['name_last']) ? ' '.$row['name_last'] : '').'</a>' : (!empty($row['id_member']) ? '<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'"'.(!empty($row['online_color']) ? ' style="color: '.$row['online_color'].';"' : '').'>'.$row['real_name'].'</a>' : $row['poster_name']), 'avatar' => array( 'name' => !empty($row['image']) ? $row['image'] : (!empty($row['filename']) ? $row['filename'] : ''), 'href' => !empty($row['image']) ? $boardurl.'/character_images/'.$row['image'] : (!empty($row['avatar']) ? $row['avatar'] : (!empty($row['filename']) ? (!empty($modSettings['custom_avatar_url']) ? $modSettings['custom_avatar_url'].'/'.$row['filename'] : $scripturl.'?action=dlattach;attach='.$row['id_attach'].';type=avatar') : '')), 'image' => !empty($row['image']) ? '<img src="'.$boardurl.'/character_images/'.$row['image'].'">' : (!empty($row['avatar']) ? '<img src="'.$row['avatar'].'">' : (!empty($row['filename']) ? (!empty($modSettings['custom_avatar_url']) ? '<img src="'.$modSettings['custom_avatar_url'].'/'.$row['filename'].'">' : '<img src="'.$scripturl.'?action=dlattach;attach='.$row['id_attach'].';type=avatar">') : '')), ), 'time' => timeformat($row['poster_time']), 'color' => !empty($row['department_color']) ? $row['department_color'] : (!empty($row['alliance_color']) ? $row['alliance_color'] : (!empty($row['online_color']) ? $row['online_color'] : '')), ); } $smcFunc['db_free_result']($request); return $topic_starter; } You'll need that at the end or very top of display.template - before the first function or after the last before the ending ?> - this does load a user's info if there is no id_character marker and will auto-colour character names according to their group colours, but I don't... thhhiiiink it'll do that to user names... oh wait yes it will. Um, it's also set up for First Last order and won't change unless you manually change it here. <div class="topic_header"> <div class="topic_header_avatar nomobile"',(!empty($context['topic_starter']['color']) ? ' style="background-color: '.$context['topic_starter']['color'].';"' : ''),'> ',!empty($context['topic_starter']['avatar']['image']) ? $context['topic_starter']['avatar']['image'] : '<img src="https://placehold.it/250">',' </div> <div class="topic_header_left"> <span>',$context['subject'],'</span> <div>Started By ',$context['topic_starter']['link'],'</div> </div> <div class="topic_header_right"> <div>Posted ',$context['topic_starter']['time'],'</div> <div>',$context['previous_next'],'</div> </div> </div> And then this is my topic header code thing. Uh you do have to call it somewhere. $context['topic_starter'] = null; $context['topic_starter'] = arcLoadStarter($context['topic_starter_id'], $context['current_topic']); I have this for that up above it. What you put where $context['topic_starter_id'] is may be different, I can't remember off-hand if that's supposed to be a different variable by default (I change back-end shit all the time willy-nilly so).
  14. I was afraid of that. lol Sure, I'll give transposing your code into it a shot. Couldn't hurt to try. No rush, at all. I know you're busy with Gaia 🙂
  15. I didn't see it in those but I'll check again. When you look at a character profile its in there somewhere, I'll track it down. It's not a big deal just wanted to make sure anyone else with similar knew the solution was easy peasy. I was mildly confused for a second, tho ngl. "Didn't touch it, but broke it anyway." lolol Think I got them all. Thanks.
  16. Ummmumum, should be Characters.template.php. Might also be some in ...... wtf ever the character admin template is. Can prolly Ctrl+R it, I don't think it's used in any other context. (My bad tbh I didn't realise Bootstrap used that exact class name until much later. xD)
  17. Not a big thing, but a thing worth noting if anyone is using a theme with bootstrap. I have my main menu bits in a bootstrap navbar toggle thing for ease of mobile use. I could not figure out why it suddenly stopped working on small screens. Then I realized the ACM css is using collapse as a class name. @media screen and (max-width: 700px) { .bio_flex { display: block; } .acm_bio_left img, .collapse { display: none; } } Where in the templates can I find all the profile arranging bits so I can rename that?
  18. Okay, so that does a memberContext call to get the username and junk, but memberContext only works on member accounts. To replace it with character accounts, you'd have to do an entirely different code and would probably need about two more in addition to that first one, because you'll first need the starting post's id_character value. Blah blah, this code is not going to play nice with ACM because of how it works. If you want though, I do have one of these set up on my own site, and you can use the code for that and just transpose it into this arrangement or something.
  19. So I've got the character vs. user name thing working everywhere except this one place (except one annoying place that looks better without names anyway xD). It isn't integral, and I know how to remove the names if I have to, but I thought I'd throw it on here before giving up. It's in the particular theme's display.template.php. I'll attach the whole thing, but here's the main bit of code that needs to be altered: echo'<div class="threadthis"> <div class="content"> ', $ava, ' <div class="threadthis_details"> <h3 class="for_title"> ', $context['subject'], ' </h3> <div class="detailS"><i class="fas fa-user"></i> ', (!empty($context['topic_starter_id']) && $context['topic_starter_id']!=0) ? '<a href="'.$scripturl.'?action=profile;u='.$memberContext[$memCommID55]['id'].'">'.$memberContext[$memCommID55]['name'].'</a>' : $txt['guest'], ' &middot; <i class="fas fa-comments"></i> ', $context['total_visible_posts'], ' &middot; <i class="fas fa-eye"></i> ', $context['num_views'], '<div class="nextlinks">', $context['previous_next'], '</div></div> </div> </div> </div>'; Display.template.php
  20. Good deal! Thanks for the update!
  21. As of February 4, 2019, SMF 2.1 is now in RC1. I'll be installing it at some point, fussing with it a bit, and seeing how directly anyone that's currently running 2.1 can upgrade from Beta 3/4 to RC1. I suspect there's still a lot of stuff broken because they missed it completely, but hey. If you are running 2.1 Beta 3 or 4, don't do anything. I have no idea how directly translatable the character manager is, and whether it'll still work on RC1 or not. I'll find out and report back, and we'll figure where to go from there.
  22. Lol.. yes, I am... I will check out this sceditor. I'll poke around and see if I can find the code... it's not a huge deal, really. Just thought it would be nifty xD
  23. Are you using the default ships-with-SMF WYSIWYG? For crap's sake don't do that... it's archaic and crappy and its output is jumbled and stupid. Go getchu some SCEditor and live the dream. Anyway, you'll have to find where the drop-down code output for the colour selector is actually constructed and change how it operates. If I remember rightly the easiest way of colouring option text is to use classes on the options themselves or use Javascript/jQuery to dynamically do so. Don't ask me where it is, I don't know (you found something I don't know! Idk whether to frown or give you a medal xD)
  24. Ok, so I worked out how to get more colors into the dropdown in the post editor, but I have no idea how to get each color to show as its color. I can't even figure out how to say it lol... basically, I want the word 'pink' in the change color drop down to actually BE pink, 'black' to be black, 'green' to be green, etc... How do I do that? I've got this code in GenericControls.template.php if (!isset($context['disabled_tags']['color'])) echo ', { sType: \'select\', sName: \'sel_color\', oOptions: { \'\': ', JavaScriptEscape($txt['change_color']), ', \'pink\': ', JavaScriptEscape($txt['pink']), ', \'lightpink\': ', JavaScriptEscape($txt['light_pink']), ', \'hotpink\': ', JavaScriptEscape($txt['hot_pink']), ', \'deeppink\': ', JavaScriptEscape($txt['deep_pink']), ', \'mediumvioletred\': ', JavaScriptEscape($txt['medium_violet_red']), ', \'palevioletred\': ', JavaScriptEscape($txt['pale_violet_red']), ', \'indianred\': ', JavaScriptEscape($txt['indian_red']), ', \'lightcoral\': ', JavaScriptEscape($txt['light_coral']), ', \'salmon\': ', JavaScriptEscape($txt['salmon']), ', \'darksalmon\': ', JavaScriptEscape($txt['dark_salmon']), ', \'lightsalmon\': ', JavaScriptEscape($txt['light_salmon']), ', \'crimson\': ', JavaScriptEscape($txt['crimson']), ', \'maroon\': ', JavaScriptEscape($txt['maroon']), ', \'red\': ', JavaScriptEscape($txt['red']), ', \'firebrick\': ', JavaScriptEscape($txt['firebrick']), ', \'darkred\': ', JavaScriptEscape($txt['dark_red']), ', \'gold\': ', JavaScriptEscape($txt['gold']), ', \'yellow\': ', JavaScriptEscape($txt['yellow']), ', \'lightyellow\': ', JavaScriptEscape($txt['light_yellow']), ', \'lemonchiffon\': ', JavaScriptEscape($txt['lemon_chiffon']), ', \'lightgoldenrodyellow\': ', JavaScriptEscape($txt['light_goldenrod_yellow']), ', \'papayawhip\': ', JavaScriptEscape($txt['papaya_whip']), ', \'moccasin\': ', JavaScriptEscape($txt['moccasin']), ', \'peachpuff\': ', JavaScriptEscape($txt['peachpuff']), ', \'palegoldenrod\': ', JavaScriptEscape($txt['pale_goldenrod']), ', \'khaki\': ', JavaScriptEscape($txt['khaki']), ', \'darkkhaki\': ', JavaScriptEscape($txt['dark_khaki']), ', \'gainsboro\': ', JavaScriptEscape($txt['gainsboro']), ', \'lightgray\': ', JavaScriptEscape($txt['light_gray']), ', \'silver\': ', JavaScriptEscape($txt['silver']), ', \'darkgray\': ', JavaScriptEscape($txt['dark_gray']), ', \'gray\': ', JavaScriptEscape($txt['gray']), ', \'dimgray\': ', JavaScriptEscape($txt['dim_gray']), ', \'lightslategray\': ', JavaScriptEscape($txt['light_slate_gray']), ', \'slategray\': ', JavaScriptEscape($txt['slate_gray']), ', \'darkslategray\': ', JavaScriptEscape($txt['dark_slate_gray']), ', \'black\': ', JavaScriptEscape($txt['black']), ', \'greenyellow\': ', JavaScriptEscape($txt['green_yellow']), ', \'chartreuse\': ', JavaScriptEscape($txt['chartreuse']), ', \'lawngreen\': ', JavaScriptEscape($txt['lawn_green']), ', \'lime\': ', JavaScriptEscape($txt['lime']), ', \'limegreen\': ', JavaScriptEscape($txt['lime_green']), ', \'palegreen\': ', JavaScriptEscape($txt['pale_green']), ', \'lightgreen\': ', JavaScriptEscape($txt['light_green']), ', \'mediumspringgreen\': ', JavaScriptEscape($txt['medium_spring_green']), ', \'springgreen\': ', JavaScriptEscape($txt['spring_green']), ', \'mediumseagreen\': ', JavaScriptEscape($txt['medium_sea_green']), ', \'seagreen\': ', JavaScriptEscape($txt['sea_green']), ', \'forestgreen\': ', JavaScriptEscape($txt['forest_green']), ', \'green\': ', JavaScriptEscape($txt['green']), ', \'darkgreen\': ', JavaScriptEscape($txt['dark_green']), ', \'yellowgreen\': ', JavaScriptEscape($txt['yellow_green']), ', \'olivedrab\': ', JavaScriptEscape($txt['olive_drab']), ', \'olive\': ', JavaScriptEscape($txt['olive']), ', \'darkolivegreen\': ', JavaScriptEscape($txt['dark_olive_green']), ', \'mediumaquamarine\': ', JavaScriptEscape($txt['medium_aquamarine']), ', \'darkseagreen\': ', JavaScriptEscape($txt['dark_sea_green']), ', \'lightseagreen\': ', JavaScriptEscape($txt['light_sea_green']), ', \'darkcyan\': ', JavaScriptEscape($txt['dark_cyan']), ', \'teal\': ', JavaScriptEscape($txt['teal']), ', \'aqua\': ', JavaScriptEscape($txt['aqua']), ', \'lightcyan\': ', JavaScriptEscape($txt['light_cyan']), ', \'paleturquoise\': ', JavaScriptEscape($txt['pale_turquoise']), ', \'aquamarine\': ', JavaScriptEscape($txt['aquamarine']), ', \'turquoise\': ', JavaScriptEscape($txt['turquoise']), ', \'mediumturquoise\': ', JavaScriptEscape($txt['medium_turquoise']), ', \'darkturquoise\': ', JavaScriptEscape($txt['dark_turquoise']), ', \'cadetblue\': ', JavaScriptEscape($txt['cadet_blue']), ', \'steelblue\': ', JavaScriptEscape($txt['steel_blue']), ', \'lightsteelblue\': ', JavaScriptEscape($txt['light_steel_blue']), ', \'powderblue\': ', JavaScriptEscape($txt['powder_blue']), ', \'lightblue\': ', JavaScriptEscape($txt['light_blue']), ', \'skyblue\': ', JavaScriptEscape($txt['sky_blue']), ', \'lightskyblue\': ', JavaScriptEscape($txt['light_sky_blue']), ', \'deepskyblue\': ', JavaScriptEscape($txt['deep_sky_blue']), ', \'dodgerblue\': ', JavaScriptEscape($txt['dodger_blue']), ', \'cornflowerblue\': ', JavaScriptEscape($txt['cornflower_blue']), ', \'royalblue\': ', JavaScriptEscape($txt['royal_blue']), ', \'blue\': ', JavaScriptEscape($txt['blue']), ', \'mediumblue\': ', JavaScriptEscape($txt['medium_blue']), ', \'darkblue\': ', JavaScriptEscape($txt['dark_blue']), ', \'navy\': ', JavaScriptEscape($txt['navy']), ', \'midnightblue\': ', JavaScriptEscape($txt['midnight_blue']), ', \'lavender\': ', JavaScriptEscape($txt['lavender']), ', \'thistle\': ', JavaScriptEscape($txt['thistle']), ', \'plum\': ', JavaScriptEscape($txt['plum']), ', \'violet\': ', JavaScriptEscape($txt['violet']), ', \'orchid\': ', JavaScriptEscape($txt['orchid']), ', \'fuchsia\': ', JavaScriptEscape($txt['fuchsia']), ', \'mediumorchid\': ', JavaScriptEscape($txt['medium_orchid']), ', \'mediumpurple\': ', JavaScriptEscape($txt['medium_purple']), ', \'rebeccapurple\': ', JavaScriptEscape($txt['rebecca_purple']), ', \'blueviolet\': ', JavaScriptEscape($txt['blue_violet']), ', \'darkviolet\': ', JavaScriptEscape($txt['dark_violet']), ', \'darkorchid\': ', JavaScriptEscape($txt['dark_orchid']), ', \'darkmagenta\': ', JavaScriptEscape($txt['dark_magenta']), ', \'purple\': ', JavaScriptEscape($txt['purple']), ', \'indigo\': ', JavaScriptEscape($txt['indigo']), ', \'slateblue\': ', JavaScriptEscape($txt['slate_blue']), ', \'darkslateblue\': ', JavaScriptEscape($txt['dark_slate_blue']), ', \'mediumslateblue\': ', JavaScriptEscape($txt['medium_slate_blue']), ', \'cornsilk\': ', JavaScriptEscape($txt['cornsilk']), ', \'blanchedalmond\': ', JavaScriptEscape($txt['blanched_almond']), ', \'bisque\': ', JavaScriptEscape($txt['bisque']), ', \'navajowhite\': ', JavaScriptEscape($txt['navajo_white']), ', \'wheat\': ', JavaScriptEscape($txt['wheat']), ', \'burlywood\': ', JavaScriptEscape($txt['burlywood']), ', \'tan\': ', JavaScriptEscape($txt['tan']), ', \'rosybrown\': ', JavaScriptEscape($txt['rosy_brown']), ', \'sandybrown\': ', JavaScriptEscape($txt['sandy_brown']), ', \'goldenrod\': ', JavaScriptEscape($txt['goldenrod']), ', \'darkgoldenrod\': ', JavaScriptEscape($txt['dark_goldenrod']), ', \'peru\': ', JavaScriptEscape($txt['peru']), ', \'chocolate\': ', JavaScriptEscape($txt['chocolate']), ', \'saddlebrown\': ', JavaScriptEscape($txt['saddle_brown']), ', \'sienna\': ', JavaScriptEscape($txt['sienna']), ', \'brown\': ', JavaScriptEscape($txt['brown']), ', \'coral\': ', JavaScriptEscape($txt['coral']), ', \'tomato\': ', JavaScriptEscape($txt['tomato']), ', \'orangered\': ', JavaScriptEscape($txt['orange_red']), ', \'darkorange\': ', JavaScriptEscape($txt['dark_orange']), ', \'orange\': ', JavaScriptEscape($txt['orange']), ', \'white\': ', JavaScriptEscape($txt['white']), ', \'snow\': ', JavaScriptEscape($txt['snow']), ', \'honeydew\': ', JavaScriptEscape($txt['honeydew']), ', \'mintcream\': ', JavaScriptEscape($txt['mint_cream']), ', \'azure\': ', JavaScriptEscape($txt['azure']), ', \'aliceblue\': ', JavaScriptEscape($txt['alice_blue']), ', \'ghostwhite\': ', JavaScriptEscape($txt['ghost_white']), ', \'whitesmoke\': ', JavaScriptEscape($txt['white_smoke']), ', \'seashell\': ', JavaScriptEscape($txt['seashell']), ', \'beige\': ', JavaScriptEscape($txt['beige']), ', \'oldlace\': ', JavaScriptEscape($txt['old_lace']), ', \'floralwhite\': ', JavaScriptEscape($txt['floral_white']), ', \'ivory\': ', JavaScriptEscape($txt['ivory']), ', \'antiquewhite\': ', JavaScriptEscape($txt['antique_white']), ', \'linen\': ', JavaScriptEscape($txt['linen']), ', \'lavenderblush\': ', JavaScriptEscape($txt['lavender_blush']), ', \'mistyrose\': ', JavaScriptEscape($txt['misty_rose']), ' } }'; And this code in post.english.php $txt['change_color'] = 'Change Color'; $txt['pink'] = 'Pink'; $txt['light_pink'] = 'Light Pink'; $txt['hot_pink'] = 'Hot Pink'; $txt['deep_pink'] = 'Deep Pink'; $txt['medium_violet_red'] = 'Medium Violet Red'; $txt['pale_violet_red'] = 'Pale Violet Red'; $txt['indian_red'] = 'Indian Red'; $txt['light_coral'] = 'Light Coral'; $txt['salmon'] = 'Salmon'; $txt['dark_salmon'] = 'Dark Salmon'; $txt['light_salmon'] = 'Light Salmon'; $txt['crimson'] = 'Crimson'; $txt['maroon'] = 'Maroon'; $txt['red'] = 'Red'; $txt['firebrick'] = 'Firebrick'; $txt['dark_red'] = 'Dark Red'; $txt['gold'] = 'Gold'; $txt['yellow'] = 'Yellow'; $txt['light_yellow'] = 'Light Yellow'; $txt['lemon_chiffon'] = 'Lemon Chiffon'; $txt['light_goldenrod_yellow'] = 'Light Goldenrod Yellow'; $txt['papaya_whip'] = 'Papaya Whip'; $txt['moccasin'] = 'Moccasin'; $txt['peachpuff'] = 'Peachpuff'; $txt['pale_goldenrod'] = 'Pale Goldenrod'; $txt['khaki'] = 'Khaki'; $txt['dark_khaki'] = 'Dark Khaki'; $txt['gainsboro'] = 'Gainsboro'; $txt['light_gray'] = 'Light Gray'; $txt['silver'] = 'Silver'; $txt['dark_gray'] = 'Dark Gray'; $txt['gray'] = 'Gray'; $txt['dim_gray'] = 'Dim Gray'; $txt['light_slate_gray'] = 'Light Slate Gray'; $txt['slate_gray'] = 'Slate Gray'; $txt['dark_slate_gray'] = 'Dark Slate Gray'; $txt['black'] = 'Black'; $txt['green_yellow'] = 'Green Yellow'; $txt['chartreuse'] = 'Chartreuse'; $txt['lawn_green'] = 'Lawn Green'; $txt['lime'] = 'Lime'; $txt['lime_green'] = 'Lime Green'; $txt['pale_green'] = 'Pale Green'; $txt['light_green'] = 'Light Green'; $txt['medium_spring_green'] = 'Medium Spring Green'; $txt['spring_green'] = 'Spring Green'; $txt['medium_sea_green'] = 'Medium Sea Green'; $txt['sea_green'] = 'Sea Green'; $txt['forest_green'] = 'Forest Green'; $txt['green'] = 'Green'; $txt['dark_green'] = 'Dark Green'; $txt['yellow_green'] = 'Yellow Green'; $txt['olive_drab'] = 'Olive Drab'; $txt['olive'] = 'Olive'; $txt['dark_olive_green'] = 'Dark Olive Green'; $txt['medium_aquamarine'] = 'Medium Aquamarine'; $txt['dark_sea_green'] = 'Dark Sea Green'; $txt['light_sea_green'] = 'Light Sea Green'; $txt['dark_cyan'] = 'Dark Cyan'; $txt['teal'] = 'Teal'; $txt['aqua'] = 'Aqua'; $txt['light_cyan'] = 'Light Cyan'; $txt['pale_turquoise'] = 'Pale Turquoise'; $txt['aquamarine'] = 'Aquamarine'; $txt['turquoise'] = 'Turquoise'; $txt['medium_turquoise'] = 'Medium Turquoise'; $txt['dark_turquoise'] = 'Dark Turquoise'; $txt['cadet_blue'] = 'Cadet Blue'; $txt['steel_blue'] = 'Steel Blue'; $txt['light_steel_blue'] = 'Light Steel Blue'; $txt['powder_blue'] = 'Powder Blue'; $txt['light_blue'] = 'Light Blue'; $txt['sky_blue'] = 'Sky Blue'; $txt['light_sky_blue'] = 'Light Sky Blue'; $txt['deep_sky_blue'] = 'Deep Sky Blue'; $txt['dodger_blue'] = 'Dodger Blue'; $txt['cornflower_blue'] = 'Cornflower Blue'; $txt['royal_blue'] = 'Royal Blue'; $txt['blue'] = 'Blue'; $txt['medium_blue'] = 'Medium Blue'; $txt['dark_blue'] = 'Dark Blue'; $txt['navy'] = 'Navy'; $txt['midnight_blue'] = 'Midnight Blue'; $txt['lavender'] = 'Lavender'; $txt['thistle'] = 'Thistle'; $txt['plum'] = 'Plum'; $txt['violet'] = 'Violet'; $txt['orchid'] = 'Orchid'; $txt['fuchsia'] = 'Fuchsia'; $txt['medium_orchid'] = 'Medium Orchid'; $txt['medium_purple'] = 'Medium Purple'; $txt['rebecca_purple'] = 'Rebecca Purple'; $txt['blue_violet'] = 'Blue Violet'; $txt['dark_violet'] = 'Dark Violet'; $txt['dark_orchid'] = 'Dark Orchid'; $txt['dark_magenta'] = 'Dark Magenta'; $txt['purple'] = 'Purple'; $txt['indigo'] = 'Indigo'; $txt['slate_blue'] = 'Slate Blue'; $txt['dark_slate_blue'] = 'Dark Slate Blue'; $txt['medium_slate_blue'] = 'Medium Slate Blue'; $txt['cornsilk'] = 'Cornsilk'; $txt['blanched_almond'] = 'Blanched Almond'; $txt['bisque'] = 'Bisque'; $txt['navajo_white'] = 'Navajo White'; $txt['wheat'] = 'Wheat'; $txt['burlywood'] = 'Burlywood'; $txt['tan'] = 'Tan'; $txt['rosy_brown'] = 'Rosy Brown'; $txt['sandy_brown'] = 'Sandy Brown'; $txt['goldenrod'] = 'Goldenrod'; $txt['dark_goldenrod'] = 'Dark Goldenrod'; $txt['peru'] = 'Peru'; $txt['chocolate'] = 'Chocolate'; $txt['saddle_brown'] = 'Saddle Brown'; $txt['sienna'] = 'Sienna'; $txt['brown'] = 'Brown'; $txt['coral'] = 'Coral'; $txt['tomato'] = 'Tomato'; $txt['orange_red'] = 'Orange Red'; $txt['dark_orange'] = 'Dark Orange'; $txt['orange'] = 'Orange'; $txt['white'] = 'White'; $txt['snow'] = 'Snow'; $txt['honeydew'] = 'Honeydew'; $txt['mint_cream'] = 'Mint Cream'; $txt['azure'] = 'Azure'; $txt['alice_blue'] = 'Alice Blue'; $txt['ghost_white'] = 'Ghost White'; $txt['white_smoke'] = 'White Smoke'; $txt['seashell'] = 'Seashell'; $txt['beige'] = 'Beige'; $txt['old_lace'] = 'Old Lace'; $txt['floral_white'] = 'Floral White'; $txt['ivory'] = 'Ivory'; $txt['antique_white'] = 'Antique White'; $txt['linen'] = 'Linen'; $txt['lavender_blush'] = 'Lavender Blush'; $txt['misty_rose'] = 'Misty Rose'; Also... if there's an easier way to do ^this^ that also makes it easier to make them their own colors, I'm all ears. I know there's a way to use two arrays (color and value or whatever) at the same time, but I don't know how to do that with this stuff. x.x
  25.  
  • Member Statistics

    1,655
    Total Members
    367
    Most Online
    Fallingfeather
    Newest Member
    Fallingfeather
    Joined


  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.