Hello Guest
No Avatar
Profile of MLM  »  
Show Posts  »  
Sign In to Remove

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.


Messages - MLM

Pages: 1 ... 21 22 [23] 24 25 26
Posts: 
400
Posted: March 8, 2011, 3:03 AM
You truly are talented brotha! Amazing stuff.....

Thanks, feel free to suggest anything you would like to see more of :)
Posts: 
400
Posted: March 6, 2011, 6:45 AM
Smiley Set (SoLoSMiLeYS1): http://custom.simplemachines.org/mods/index.php?mod=2125

Banner is located in: images/banner_area_banner.png

Just replace it with your banner (of course make sure it is the same name)

Default size is: 334 x 184 px

If you want everything to look good then keep the banner at 184px and you can go pretty far with width but note that it will wrap for smaller screens if it is too wide.

Posts: 
400
Posted: March 5, 2011, 11:08 PM
Thanks MLM for your fast and detailed replies :) I did method 2 and it worked. YOU ROX!

No Problem, Be sure to come back if you have any other issues about this or anything else.
Posts: 
400
Posted: March 5, 2011, 10:35 AM
If you do not want to hardcode the text in your index.template.php then follow METHOD 2.

****HARDCODE: means to write text right in the code instead of changing the variable - easier to do as well ****

Go in your index.template.php

FIND:
Code: [Select]
<ul class="menu_drop_menu_main dropmenu" id="dropdown_menu_1">
Below that is a bunch of stuff but what you are going to want to edit will look like these variables: ', $txt['vp_menu_item_one'] ,'

For example if i wanted to change Menu Item #1
FIND:
Code: [Select]
<a href="#"><span>', $txt['vp_menu_item_two'] ,'</span></a>
REPLACE:
<a href="#"><span>Cool thing is cool</span></a>


If you want to add a link then change the # in the <a href to whatever you want linked for ex. ::
<a href="http://www.visualpulse.net/"><span>Cool thing is cool</span></a>



-------------------------------
-------------------------------


METHOD 2:
You can edit the text strings by going into the ThemeStrings.english.php in the languages folder.

FIND:
Code: [Select]
$txt['vp_menu_item_one'] = 'Menu Item #1';
REPLACE:
Code: [Select]
$txt['vp_menu_item_one'] = 'My Custom Awesome Text';
Posts: 
400
Posted: March 5, 2011, 10:27 AM
Posts: 
400
Posted: March 4, 2011, 5:07 AM
its all right.

FIND:
Code: [Select]
array
(
     'Title' => $txt['vp_forums'],
     'Link' => $scripturl
),

REPLACE:
Code: [Select]
array
(
     'Title' => $txt['vp_forums'],
      'Link' => "$scripturl?action=forums"
),
Posts: 
400
Posted: March 4, 2011, 4:53 AM
thanks, that worked :D

No problem, Come post again if you have any more issues  ;D
Posts: 
400
Posted: March 4, 2011, 3:12 AM
If you want it added to the nav bar then you will have to manually.

If you don't understand anything or cant get it done please post back.

Pulse theme doesn't use the subs.php to make the nav bar...

I am not sure the link for simpleportal homepage but i think it is index.php?action=homepage - with that in mind here is what you will have to do (if the homepage link is wrong then just change)


To edit the menu just go into the index.template.php and find:
Code: [Select]
function vp_nav_bar()
In that function you will find an array called $vp_nav_bar_items. All of the nav bar items are in that array. If you need to edit the text you can just hardcode it in which just means write it out and remove the $txt variables or go into the index.english.php and find the text strings to edit.

for ex.
FIND:
Code: [Select]
array
(
     'Title' => $txt['vp_forums'],
     'Link' => $scripturl
),

ADD BEFORE:
Code: [Select]
array
(
     'Title' => "Home",
     'Link' => "$scripturl?action=homepage"
),
Posts: 
400
Posted: March 3, 2011, 3:06 AM
Cheers got it now thanks alot :)

Yay! Glad you got it working :) - Be sure to come back and ask if you have any other questions regarding anything.
Posts: 
400
Posted: March 2, 2011, 8:29 AM
Oo drop down menu... soz. I explained nav bar

I am sure you know how to edit this.

index.template.php
FIND:(whole drop down menu)
Code: [Select]
<ul class="menu_drop_menu_main dropmenu" id="dropdown_menu_1">
FIND: (that is a menu item)
Code: [Select]
<a class="chosen" href="#"><span>', $txt['vp_menu_item_one'] ,'</span></a>
FIND: (whole sub menu)
Code: [Select]
<a href="#"><span>', $txt['vp_sub_menu'] ,'</span></a>
FIND:
Code: [Select]
<a href="#"><span>', $txt['vp_sub_menu_item_one'] ,'</span></a>
Posts: 
400
Posted: March 2, 2011, 5:11 AM
VP now has a SMF Theme of the Month.

Pulse has just been named theme of the month go check it out now: http://www.simplemachines.org/community/index.php?topic=424461.0

You can see the theme here or on SMF
VP: http://visualpulse.net/forums/index.php?topic=48
SMF: http://custom.simplemachines.org/themes/index.php?lemma=2343
Posts: 
400
Posted: March 2, 2011, 3:11 AM
I posted up on the smf forum about needing help on how to edit the menu section.

Oh and really nice theme  :)

Thanks  ;D

Post your questions here: http://visualpulse.net/forums/index.php?board=6.0

To edit the menu just go into the index.template.php and find:
Code: [Select]
function vp_nav_bar()
In that function you will find an array called $vp_nav_bar_items. All of the nav bar items are in that array. If you need to edit the text you can just hardcode it in which just means write it out and remove the $txt variables or go into the index.english.php and find the text strings to edit.

If you need further help please post in the board i specified above..
Posts: 
400
Posted: February 20, 2011, 8:22 AM
Through my life as a web designer I have come across many situations where both are very useful. I find that divs usually overrule all, but tables can really help give something structure.

Please comment and suggest things to add!

Navigation::
- Div
--- Adding a class
----- Styling
--- Adding a id
----- Styling
--- Align side by side

- Table
--- Tags
--- Structure

-----------------------------------------
-----------------------------------------

Div::
Div's are very useful for everything. You can style a block of text or even align/ position a whole chunk somewhere.

If you want to style a div you can just add a class or id like below:
Adding a class: :html:
Code: [Select]
<div class="custom_class">Test</div>
Style with: :css:
Code: [Select]
.custom_class
{
     color: #fffff; // Text color in the custom_class div
     background-color: #000000; // background color of the div
}

Adding a id: :html:
Code: [Select]
<div id="custom_class">Test</div>
Style with: :css:
Code: [Select]
#custom_class
{
     color: #fffff; // Text color in the custom_class div
     background-color: #000000; // background color of the div
}

Divs (as is) do not allow to be side by side or lined up like you can with tables.  To line up divs just add a float left or right in the css of all the divs you want lined up.
:html:
Code: [Select]
<div class="div_line_up_left">LEFT Div1</div>
<div class="div_line_up_left">LEFT Div2</div>

<div class="div_line_up_right">RIGHT Div1</div>
<div class="div_line_up_right">RIGHT Div2</div>
:css:
Code: [Select]
.div_line_up_left
{
     float: left; // makes it line up and align left
}

.div_line_up_right
{
     float: right; // makes it line up and align right
}



Table::
Tables are useful for arranging data or giving your site a number of columns. You can split up your site into a side bar and then the main content. This can also be done with floating divs but you can get concrete secure layout with tables. You can add classes and id's to <table> <tr> <td> tags just like how you would divs.

Tables are coded with three main tags.
<table> : This starts the table(and ends </table>
<tr> : This is a table row make sure to end it (</tr>)
<td> : This is a table cell (end it as well)

There is also another table tag <th> which is treated just like a td. It is just a table header ussually used to store info...

Tables are constructed as so:
:html:
Code: [Select]
<table>
     <tr>
          <td>
               Table Cell #1 - Row 1
          </td>
          <td>
               Table Cell #2 - Row 1
          </td>
     </tr>
     <tr>
          <td>
               Table Cell #1 - Row 2
          </td>
          <td>
               Table Cell #2 - Row 2
          </td>
     </tr>
</table>
Posts: 
400
Posted: February 19, 2011, 10:47 AM
Very cool swirlys  :o

Hand is a bit random but text is much better from the one i saw before.

Very cool and unique sig  ;)
Posts: 
400
Posted: February 18, 2011, 9:39 AM
THEME OF THE MONTH ON SMF: http://www.simplemachines.org/community/index.php?topic=424461.0

My first SMF theme. Updated  for SMF 2.0.9

Hope you guys like it ;)

Use the themes installer!

Download: [LINK]
Code: [Select]
http://visualpulse.net/forums/index.php?action=dlattach;topic=48.0;attach=141
Download from SMF: http://custom.simplemachines.org/themes/index.php?lemma=2343

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>
', !$post['is_new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" /></a>', '
</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>
';

Preview:


Pages: 1 ... 21 22 [23] 24 25 26