Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Month, 3 Days ago can't delete event after upgrade to 1.8.20
#1
Solved: 1 Month, 3 Days ago
Hello,

I just migrate from 1.8.19 to 1.8.20.

My forum uses a custom template, In the event page, if i open a public event the delete button doesn't work.

on the delete link i got : javascript:MyBB.deleteEvent(33); (the 33 is the right eid)

But nothing happen if clicked. 

I tried to change to default Mybb template, and that doesn't work too.

Any idea ?
Reply
#2
Solved: 1 Month, 3 Days ago
Have you checked in console in there are js issues?
[Image: ZbrcFs]
Reply
#3
Solved: 1 Month, 3 Days ago
Yes i do :


general.js?ver=1820:118 Uncaught ReferenceError: templates is not defined
   at Object.prompt (general.js?ver=1820:118)
   at Object.deleteEvent (general.js?ver=1820:148)
   at <anonymous>:1:6
prompt @ general.js?ver=1820:118
deleteEvent @ general.js?ver=1820:148
(anonymous) @ VM2830:1

But i don(t know what to do with that one...
if you want to have a look to my headers : https://tousrolistes.fr/forums/
Reply
#4
Solved: 1 Month, 3 Days ago
Edit template headerinclude, before this code:
var cookieDomain = "{$mybb->settings['cookiedomain']}";
Add this:
	var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};
[Image: ZbrcFs]
Reply
#5
Solved: 1 Month, 3 Days ago
THANKS !

Solved Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)