Solved: 5 Years, 2 Months ago Report & Quoting issue FIXED
#1
Solved: 5 Years, 2 Months ago
Hello, I'm having some problems with my quoting and reporting. I use a custom made theme that has been heavily modified by me. I'm fairly sure that this is a theme issue and was hoping on getting some help on fixing it.




Before I explain further.

Website: https://alliedforums.com


User: Demo
Pass: demo1231

MyBB was only installed about 2 days ago.

-- Mods --
MyBB GoMobile(1.3.2)
PluginLibrary (12) - Doesn't need to be activated
MyAlerts(2.0.2)
Hello World! (2.0) - Always disable
Hello PluginLibrary(hello_pl.php) - Always disabled

Notes: I have already tried disabling all the plugins and the errors persists. 


Errors and how to reporduce --
Clicking "Report" yields no results and spits out -

Uncaught ReferenceError: rootpath is not definedMyBB.popupWindow @ general.js?ver=1804:17Report.reportPost @ report.js?ver=1804:3(anonymous function) @ VM12181:1

Clicking "Quote" yeilds no results and spits out-
Uncaught ReferenceError: cookiePrefix is not definedCookie.get @ general.js?ver=1804:80Thread.multiQuote @ thread.js?ver=1804:8(anonymous function) @ VM12414:1


Changing browsers had no effect.


----- UPDATES (LOOK BELOW DON'T DO THIS ONE) -----

I was able to fix reports by changing the rootpath in general.js to "https://alliedforums.com" or my root domain.

Still looking for a fix to quoting.


----- UPDATE FIXED -----

Go to AdminCP > Home > Template Sets > Your Template Name > Edit Template: headerinclude (located in ungrouped tab)

Add the Following script


<script type="text/javascript">
    var xhr = new XMLHttpRequest(); <-- This one is not necessary. 
    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 imagepath = "{$theme['imgdir']}";
</script>

This should fix most of the errors such as my_post_key not defined, quoting, and reporting should be fixed by this because it includes the cookie information.
Reply
#2
Solved: 5 Years, 2 Months ago
please post (or PM me) purchasing proof of the theme (see support eligibility policy)
if you PM me I'd also need a clarification about your forum - is it going to allow warez posting ?
Reply
#3
Solved: 5 Years, 2 Months ago
ment for a pm
Reply
#4
Solved: 5 Years, 2 Months ago
Update: Fixed look at bottom of original post for guide.
Reply
#5
Solved: 5 Years, 2 Months ago
^ somehow I forgot about this topic. Thanks for updating Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)