Advertisement:

Author Topic: Pulse  (Read 15199 times)

Offline MLM

  • Full Member
  • ***
  • Posts: 498
    • Visual Pulse
Pulse
« on: February 25, 2011, 05:27:47 PM »
Link to Theme

Versions::
  • 2.0.9: Pulse-v2-smf-2-0-9.zip
  • 2.0 RC5: Pulse1-0-2-0-RC5.zip
  • 2.0 RC4: Pulse1-0-2-0-RC4.zip
  • 2.0 RC3: Pulse1-0-2-0-RC3.zip

First theme by VisualPulse.net - Enjoy ;) - Coded by MLM

Download from VP: [LINK]
Code: [Select]
http://visualpulse.net/forums/index.php?topic=48
Dark Theme :: extreme curve variation

Support - visit: VisualPulse.net


RECENT TOPICS MOD::

If you have installed this theme you probably have seen the empty recent topics block. If you want that filled and working properly please follow the instructions below. NOTE: we can not add it to the theme since it calls the database.

FIND:  index.template.php
Code: [Select]
function ssi_recentTopics_vp_mod()
REPLACE WITH:
Code: [Select]
function ssi_recentTopics_vp_mod($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo')
FIND: index.template.php
Code: [Select]
// needs to be here... otherwise errors.
Replace with:
Code: [Select]
global $context, $settings, $scripturl, $txt, $db_prefix, $user_info;
global $modSettings, $smcFunc;

if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = empty($exclude_boards) ? array() : (is_array($exclude_boards) ? $exclude_boards : array($exclude_boards));

// Only some boards?.
if (is_array($include_boards) || (int) $include_boards === $include_boards)
{
$include_boards = is_array($include_boards) ? $include_boards : array($include_boards);
}
elseif ($include_boards != null)
{
$output_method = $include_boards;
$include_boards = array();
}

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find all the posts in distinct topics.  Newer ones will have higher IDs.
$request = $smcFunc['db_query']('substring', '
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name, t.num_replies, t.num_views,
IFNULL(mem.real_name, m.poster_name) AS poster_name, ' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ', SUBSTRING(m.body, 1, 384) AS body, m.smileys_enabled, m.icon
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$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 = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_last_msg >= {int:min_message_id}
' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . '
' . (empty($include_boards) ? '' : '
AND b.id_board IN ({array_int:include_boards})') . '
AND {query_wanna_see_board}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}
AND m.approved = {int:is_approved}' : '') . '
ORDER BY t.id_last_msg DESC
LIMIT ' . $num_recent,
array(
'current_member' => $user_info['id'],
'include_boards' => empty($include_boards) ? '' : $include_boards,
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
'min_message_id' => $modSettings['maxMsgID'] - 35 * min($num_recent, 5),
'is_approved' => 1,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']), array('<br />' => '')));
if ($smcFunc['strlen']($row['body']) > 128)
$row['body'] = $smcFunc['substr']($row['body'], 0, 128) . '...';

// Censor the subject.
censorText($row['subject']);
censorText($row['body']);

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['id_board'],
'name' => $row['board_name'],
'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => empty($row['id_member']) ? '' : $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a class="banner_area_recent_topics_topic_poster" href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'replies' => $row['num_replies'],
'views' => $row['num_views'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new" rel="nofollow">' . $row['subject'] . '</a>',
// Retained for compatibility - is technically incorrect!
'new' => !empty($row['is_read']),
'is_new' => empty($row['is_read']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" />',
);
}
$smcFunc['db_free_result']($request);

// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;

echo '
<table border="0" class="ssi_table recent_topics_ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td valign="top">
<div class="banner_area_recent_topics_topic_title"><a class="banner_area_recent_topics_topic_title" href="', $post['href'], '">', $post['subject'], '</a></div>
</td>
<td align="right" nowrap="nowrap" class="banner_area_recent_topics_time">
&nbsp<small>', $txt['by'], ' ', $post['poster']['link'], '</small>
<small>', $post['time'], '</small>
</td>
</tr>';
echo '
</table>';

echo '
<center>
<div class="recent_posts_link_banner_area">
<a href="', $scripturl ,'?action=recent"><small>::ALL RECENT POSTS::</small></a>
</div>
</center>
';


Edit Nav Bar::

To edit the nav bar simply follow the instructions below:

Adding a tab:
FIND: (index.template.php)
Code: [Select]
$vp_nav_bar_items = array
(

ADD AFTER: (or anywhere in line)
Code: [Select]
array
(
'Title' => "Custom Tab",
'Link' => "http://www.visualpulse.net/"
),

Removing a tab:
FIND: (index.template.php)
Code: [Select]
$vp_nav_bar_items = array
(

Remove whole array chunk like one below:
BEFORE:
Code: [Select]
array
(
'Title' => $txt['vp_home'],
'Link' => "/"
),
array
(
'Title' => $txt['vp_forums'],
'Link' => $scripturl
),
array
(
'Title' => $txt['vp_help'],
'Link' => "$scripturl?action=help"
),

AFTER:
Code: [Select]
array
(
'Title' => $txt['vp_home'],
'Link' => "/"
),
array
(
'Title' => $txt['vp_help'],
'Link' => "$scripturl?action=help"
),

Edit Drop Down Menu::

This is the start of the drop down menu: (index.template.php)
Code: [Select]
<div class="menu_button_div_background">
Remove Drop down menu:
SELECT ALL BETWEEN: (index.template.php) - (and delete)
Code: [Select]
<div class="menu_button_div_background">AND:
Code: [Select]
</div>
Edit Drop down menu:
FIND: (index.template.php)
Code: [Select]
<a class="chosen" href="#"><span>', $txt['vp_menu_item_one'] ,'</span></a>EDIT TO:
Code: [Select]
<a class="chosen" href="http://www.visualpulse.net/"><span>Custom Tab</span></a>

Add sub menu to item:
FIND:
Code: [Select]
<li>
<a class="chosen" href="#"><span>', $txt['vp_menu_item_one'] ,'</span></a>
ADD AFTER:
Code: [Select]
<ul>
<li>
<a href="#"><span>', $txt['vp_sub_menu_item_one'] ,'</span></a>
</li>
<li>
<a href="#"><span>', $txt['vp_sub_menu_item_two'] ,'</span></a>
</li>
</ul>
« Last Edit: October 18, 2014, 11:01:29 PM by MLM »
My Themes:
My Mods:
Unsolved Threads:
  • None atm...

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,156
  • Gender: Male
Re: Pulse
« Reply #1 on: February 26, 2011, 08:49:59 AM »
this i a nice theme got some nice fancy effects

Offline garyb40

  • Newbie
  • *
  • Posts: 1
Re: Pulse
« Reply #2 on: February 28, 2011, 05:39:51 AM »
Great looking theme.

How do you edit the menu ?

Offline MLM

  • Full Member
  • ***
  • Posts: 498
    • Visual Pulse
Re: Pulse
« Reply #3 on: March 10, 2011, 09:50:14 PM »
Added commonly asked questions / fixes to bottom of main thread  ;D
My Themes:
My Mods:
Unsolved Threads:
  • None atm...

Offline Luis-

  • Semi-Newbie
  • *
  • Posts: 92
  • Gender: Male
Re: Pulse
« Reply #4 on: March 30, 2011, 07:10:36 AM »
I am using this right now, I really love it.

Offline Neekiinh0

  • Jr. Member
  • **
  • Posts: 226
  • Gender: Male
    • neecorc on Facebook
    • @neekiinh0 on Twitter
    • SMFpersonal
Re: Pulse
« Reply #5 on: April 07, 2011, 09:58:26 PM »
Nice work !!!

Adaptamos themes de otras plataformas a SMF!
Contactame por MP o Skype: neekiinh0 para saber mas.

SMFPersonal.net

Themes Demo

Dolphin
Personal

Offline studiowi33

  • Jr. Member
  • **
  • Posts: 221
Re: Pulse
« Reply #6 on: June 28, 2011, 04:19:11 AM »
Any ideas on how I can replicate this? In Curve:

Directly underneath add the following code (before the </head> tag):

./Themes/default/index.template.php
Code: [Select]
<script language="JavaScript"><!--
var userName = "', $context['user']['name'], '";
var userID = "', $context['user']['id'], '";
var roomID = "Lobby";
// --></script>
<script language="JavaScript" type="text/javascript" src="http://www.YOURWEBSITE.com/prochatrooms/chat.js"></script>

./Sources/Subs.php
Find:
Code: [Select]
// Set up the menu privileges.
Add after:
Code: [Select]
$context['allow_prochatrooms'] = !$user_info['is_guest'];

Find:
Code: [Select]
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),

Add after:
Code: [Select]
'prochatrooms' => array(
'title' => 'CHAT',
'href' => 'javascript:launchChat()',
'show' => $context['allow_prochatrooms'],
'sub_buttons' => array(
),
),

The above code gives me a CHAT menu tab. I can't figure out how to call the Javascript in Pulse. I'm pretty certain that at one time or another, I've accomplished just that, but I'll be damned if I can remember how.

Any help is always appreciated.
SMF 2.0.2

Offline MLM

  • Full Member
  • ***
  • Posts: 498
    • Visual Pulse
Re: Pulse
« Reply #7 on: June 28, 2011, 03:15:55 PM »
Any ideas on how I can replicate this? In Curve:

Support is given on VisualPulse.net
My Themes:
My Mods:
Unsolved Threads:
  • None atm...

Offline Mstcool

  • Sr. Member
  • ****
  • Posts: 911
Re: Pulse
« Reply #8 on: October 18, 2014, 10:47:27 PM »
Very nice theme, I like it. However, I am using this on my 2.0.9 forum and for some reason, this is the only theme on my site that shows the moderate button. When clicked, it says you need permission to access this area (if your not a mod or higher obv) but it still shows up. Any ideas why? I am using the menu editor lite mod but I believe its a theme issue cuz this button doesn't show up in my other themes, just this one. :P

Offline MLM

  • Full Member
  • ***
  • Posts: 498
    • Visual Pulse
Re: Pulse
« Reply #9 on: October 18, 2014, 10:56:22 PM »
I am using this on my 2.0.9 forum and for some reason, this is the only theme on my site that shows the moderate button.

This is a very old theme and there are some oddities that I would of course change if I did it again today.

Checkout `vp_nav_bar()` in `index.template.php`. Looking at it, I see a mistake where I forgot the extra `=` to compare and instead I am just assigning (line 423).

I just updated the package with the correction.

Thanks for the bug report!
My Themes:
My Mods:
Unsolved Threads:
  • None atm...

Offline Mstcool

  • Sr. Member
  • ****
  • Posts: 911
Re: Pulse
« Reply #10 on: October 19, 2014, 12:11:37 AM »
Np and okay :)

Offline WhiteEagle

  • Jr. Member
  • **
  • Posts: 113
  • Gender: Male
  • Writer at Large
    • nathanpinno on Facebook
    • nathanpinno on LinkedIn
    • @whiteeagle2008 on Twitter
    • Leet Link
Re: Pulse
« Reply #11 on: December 04, 2014, 02:32:33 PM »
I'm using this theme for LeetSpace.com, and I love it! It fits the type of site I was aiming for!
I fold for team 52482. Do you Fold@Home?
SMF powered sites: Leet Link LeetSpace.com

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • vgkfan83 on Facebook
    • @vgkfan83 on Twitter
Re: Pulse
« Reply #12 on: November 06, 2015, 03:06:08 AM »
Is there any way to get the .PSD file to edit the logo?

Offline MLM

  • Full Member
  • ***
  • Posts: 498
    • Visual Pulse
Re: Pulse
« Reply #13 on: November 07, 2015, 12:30:19 AM »
Is there any way to get the .PSD file to edit the logo?

Attached  :D
My Themes:
My Mods:
Unsolved Threads:
  • None atm...

Offline SaginawSkid

  • Newbie
  • *
  • Posts: 9
Re: Pulse
« Reply #14 on: December 01, 2015, 01:38:48 PM »
Great theme. I am new at this and have downloaded the logo psd. But how do I change the logo to my new one?