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 - WestwegoMan
16
« on: Jan 23, 2015, 5:46 PM »
Edit BBCLatest Version: 1.0 Compatible With SMF: 2.0.x This mod will add a "edit" BBC used to help identify the edited or added content in a post. This is ideal for those who like to have edited content stand out in posts. This was made for and tested on SMF 2.0.8 but as far as I know, should work on all 2.0 versions. There are no settings for this mod. As always, make a backup first! Just wrap the content within the following tags. [edit][/edit]
Edited: This is what the mod does. Mod HistorySep. 22, 2014 - First release. Thanks to BurkeKnight for the use of some of his code to learn from.
17
« on: Jan 23, 2015, 5:44 PM »
Since I installed SMF, the time format has been bugging me. I searched through many threads on the support site with no luck. After a bit of searching again today, I came across a thread about getting rid of the leading zero in the time.
April 05, 2014, 09:13:54 PM
I wanted it to read like this instead.
April 05, 2014, 9:13:54 PM April 05, 2014, 9:13:54 AM
All of this time it was because I mistook an I for an l. If this bugs you also, you can set the time format to the following in Admin > Features and Options > General
Instead of this:
%b %d, %Y, %I:%M %p Use this to omit the leading zero
%b %d, %Y, %l:%M %p
18
« on: Jan 23, 2015, 5:12 PM »
Add header.php
This will add a header over your SMF forum incase you want to place your main site header above it.
In Themes\default\index.template.php Find:
</head> <body>'; Add After:
include('header.php'); Must add a file named "header.php" in the forum root directory to avoid errors in the forum log.
19
« on: Jan 23, 2015, 5:12 PM »
Add footer.php
This will add a separate footer under your SMF forum in case you want to place your main site footer below it.
In Themes\default\index.template.php Find:
// Show the load time? Add Before:
include('footer.php'); Must add a file named "footer.php" in the forum root directory to avoid errors in the forum log.
20
« on: Jan 23, 2015, 5:11 PM »
Add what is my ip address to ip links in SMF
Add a link to whatsmyipaddress.com for ip checking.
in Sources\profile-view.php find:
$context['whois_servers'] = array( add after:
'whatisipaddress' => array( 'name' => &$txt['whatis_ipaddress'], 'url' => 'http://whatismyipaddress.com/ip/' . $context['ip'], 'range' => array(), ), Then in Themes\default\languages\Profile.english.php find:
$txt['whois_title'] = 'Look up IP on a regional whois-server'; And add after:
$txt['whatis_ipaddress'] = 'What is my IP address (Whatsmyipaddress.com)';
21
« on: Jan 23, 2015, 5:10 PM »
Add more characters to those not allowed in usernames.
This exact edit will make it where only numbers and letters and spaces are allowed.
in ./Sources/Subs-Members.php
Find:
// Only these characters are permitted. if (preg_match('~[<>&"\'=\\\\]~', preg_replace('~&#(?:\\d{1,7}|x[0-9a-fA-F]{1,6});~', '', $regOptions['username'])) != 0 || $regOptions['username'] == '_' || $regOptions['username'] == '|' || strpos($regOptions['username'], '[code') !== false || strpos($regOptions['username'], '[/code') !== false) $reg_errors[] = array('lang', 'error_invalid_characters_username');
Replace with:
// Only these characters are permitted. if (preg_match('~^[a-zA-Z0-9 ]{1,}$~', $regOptions['username']) == 0 || $regOptions['username'] == '_' || $regOptions['username'] == '|' || strpos($regOptions['username'], '[code') !== false || strpos($regOptions['username'], '[/code') !== false) $reg_errors[] = array('lang', 'error_invalid_characters_username');
22
« on: Jan 23, 2015, 5:09 PM »
HTML:
©<?php echo date("Y");?> YourSite.com PHP:
' . date("Y", time()) . ' Java Script
<script language="javascript"> var enabled = 0; yeartoday = new Date(); var thisyear; thisyear = (yeartoday.getFullYear()); document.write("© "+thisyear+" YourSite.com"); </script>
23
« on: Jan 23, 2015, 5:06 PM »
To print a specific sheet
Sheets("sheet1").PrintOut To print active sheet. (copies optional)
ActiveWindow.SelectedSheets.PrintOut Copies:=1 Print a sheet depending on value from another sheet.
If Sheets("Sheet1").Range("M30").Value = "1" Then Sheets("sheet2").PrintOut
24
« on: Jan 23, 2015, 5:05 PM »
To open a specific workbook using a macro:
Workbooks.Open ("C:\path to book\test.xls")
25
« on: Jan 23, 2015, 5:04 PM »
To copy from one workbook and paste to another:
Windows("workbook1.xls").Activate Sheets("Sheet4").Select Range("A1:D10").Select Selection.Copy Windows("workbook2.xls").Activate Sheets("Sheet4").Select Range("A1").Select Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
26
« on: Jan 23, 2015, 5:03 PM »
To protect using a macro:
Worksheets("Sheet1").Protect Password:="" Note: you can put a password in the parentheses.
To unprotect:
Worksheets("Sheet1").Unprotect Password:="" Note: you can put a password in the parentheses.
27
« on: Jan 23, 2015, 5:02 PM »
Sub CloseExcel() ActiveWorkbook.Save Application.Quit End Sub
28
« on: Jan 23, 2015, 5:01 PM »
This macro will mark the current time from the PC into cell "I2"
Workbooks("Test.xls").Sheets("Main").Cells(2, "I") = Date & " " & Time
|