MyBB Tutorials

[v1.8] Rate User | v1.6 Themes | headerinclude Fix

Submitted by D4NK, , Thread ID: 19904

Thread Closed
D4NK
NulledBB
Supreme
Level:
0
Reputation:
25
Posts:
124
Likes:
13
Credits:
156
28-03-2016, 03:26 PM
This post was last modified: 28-03-2016, 03:28 PM by D4NK
#1
Dear, NulledBB!

Be sure to look through this code and replace the "URL" with your sites URL.

Tutorial - Locate your "headerinclude" Template:
ACP - Templates & Styles - Templates - Your Theme - Ungrouped Templates - headerinclude

<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="/jscripts/jquery.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/general.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/report.js"></script>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,700italic,500italic,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700' rel='stylesheet' type='text/css'>
{$stylesheets}
<link href="images/poly/css/bootstrap.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="http://yourwebsiteurlgoeshere.com/jscripts/tabcontent.js"></script><!-- start: myalerts_js_popup -->
<script type="text/javascript">
var unreadAlerts = '';
</script>
<script type="text/javascript" src="http://yourwebsiteurlgoeshere.com/jscripts/myalerts.js"></script>

<!-- end: myalerts_js_popup -->
<!-- end: headerinclude -->

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1807"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/mood.js?ver=1800"></script>{$stylesheets}
<script type="text/javascript">
<!--
lang.unknown_error = "{$lang->unknown_error}";

lang.select2_match = "{$lang->select2_match}";
lang.select2_matches = "{$lang->select2_matches}";
lang.select2_nomatches = "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore = "{$lang->select2_loadmore}";
lang.select2_searching = "{$lang->select2_searching}";

var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var cookiePrefix = "{$mybb->settings['cookieprefix']}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
var my_post_key = "{$mybb->post_code}";
var rootpath = "{$mybb->settings['bburl']}";
var imagepath = "{$theme['imgdir']}";
var yes_confirm = "{$lang->yes}";
var no_confirm = "{$lang->no}";
var MyBBEditor = null;
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
var modal_zindex = 9999;
// -->
</script>


I decided to post this mainly down to the fact that a lot of websites end up using Theme's for version 1.6 and end up encountering a few issues along the way with their "Reputation System". If you're still encountering problems with your "Reputation System", then either post your "headerinclude" code below or send me a Private Message and I shall fix the code for you.

I hope that this Tutorial is of much help to those experiencing issues with "Rate User".

Kind Regards,
xFlavez

RE: [v1.8] Rate User | v1.6 Themes | headerinclude Fix

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
28-03-2016, 03:56 PM
#2
Just saying that no need of using MyAlerts.js and tabcontent.js until those plugin are activated. it might cause some sort of conflict in codes.
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: [v1.8] Rate User | v1.6 Themes | headerinclude Fix

D4NK
NulledBB
Supreme
Level:
0
Reputation:
25
Posts:
124
Likes:
13
Credits:
156
OP
28-03-2016, 04:18 PM
#3
28-03-2016, 03:56 PM
Quanity Wrote:
Just saying that no need of using MyAlerts.js and tabcontent.js until those plugin are activated. it might cause some sort of conflict in codes.

I've already checked up on these and they don't create any conflict with the system but removal of code is optional to those that wish to. Tongue

RE: [v1.8] Rate User | v1.6 Themes | headerinclude Fix

crucifix
Banned
Level:
0
Reputation:
0
Posts:
33
Likes:
0
Credits:
5
13-05-2016, 10:10 PM
#4
Oh thank you i was looking for this Smile

Users browsing this thread: 1 Guest(s)