Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 xthreads conflict plugin last posts 1.1
mister_don Offline
Junior Member
**
Posts: 9
Joined: Aug 2012
Post: #1
xthreads conflict plugin last posts 1.1
xthreads conflict plugin last posts 1.1 Author: Hamed link mod last posts

if I activate this plugin, I see no more 'the template xthread, enclose screenshout to illustrate the problem

plug activated:
[Image: screenshot004rh.png]
plug deactivated:
[Image: screenshot005ab.png]

I apologize for translation with google, I hope you understand the problem thanks
08-17-2012 04:23 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: xthreads conflict plugin last posts 1.1
I think it is because the plugin "re-cache" the templatelist.

PHP Code:
$templates->cache($db->escape_string($templatelist));


08-17-2012 05:55 AM
Find all posts by this user Quote this message in a reply
mister_don Offline
Junior Member
**
Posts: 9
Joined: Aug 2012
Post: #3
RE: xthreads conflict plugin last posts 1.1
You think just delete this line from the plug?
08-17-2012 06:12 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: xthreads conflict plugin last posts 1.1
If you remove the line, maybe it removes the conflicts, but the templates won't be cached.
You can cache the templates in the global_start, then run the plugin codes in the global_end.

08-17-2012 06:28 AM
Find all posts by this user Quote this message in a reply
mister_don Offline
Junior Member
**
Posts: 9
Joined: Aug 2012
Post: #5
RE: xthreads conflict plugin last posts 1.1
you could post a guide to follow, to get what you suggested?
thanks
08-17-2012 07:05 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: xthreads conflict plugin last posts 1.1
You can try the attachment, replace the repost.php file inside the inc/plugins/ folder. Put this code in your header template:

Code:
<!-- post -->

Please note that I don't change the plugin behavior (I think the plugin should uses MyBB's functions to get the various link).



Attached File(s)
.php  repost.php (Size: 17.69 KB / Downloads: 369)

08-17-2012 07:18 AM
Find all posts by this user Quote this message in a reply
mister_don Offline
Junior Member
**
Posts: 9
Joined: Aug 2012
Post: #7
RE: xthreads conflict plugin last posts 1.1
I followed the suggestion, I reactivated the plugin, and placed in header
<! - post ->, the window you see now
08-17-2012 07:37 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: xthreads conflict plugin last posts 1.1
Sorry, what I mean is:

Code:
<!-- repost -->


08-17-2012 07:38 AM
Find all posts by this user Quote this message in a reply
mister_don Offline
Junior Member
**
Posts: 9
Joined: Aug 2012
Post: #9
RE: xthreads conflict plugin last posts 1.1
MyBB Internal Error

MyBB has experienced an internal error and cannot continue.

Error Type:
    Catchable Fatal Error (4096)
Error Message:
    Object of class MyLanguage could not be converted to string
Location:
    File: inc/plugins/repost.php(310) : eval()'d code
    Line: 12
Backtrace:
    File Line Function
    /inc/class_error.php 206 errorHandler->output_error
    /inc/plugins/repost.php(310) : eval()'d code 12 errorHandler->error
    /inc/plugins/repost.php 310 eval
    /inc/class_plugins.php 101 repostend
    /global.php 718 pluginSystem->run_hooks
    /index.php 18 require_once
you could see on the home, I just tried to edit the template, and this is the result
(This post was last modified: 08-17-2012 07:46 AM by mister_don.)
08-17-2012 07:44 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #10
RE: xthreads conflict plugin last posts 1.1
(08-17-2012 07:44 AM)mister_don Wrote:  I just tried to edit the template, and this is the result
What template you try to edit? Post the template contents here.

08-17-2012 07:50 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: