vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - VaultWiki: A Wiki for your forum (https://vborg.vbsupport.ru/showthread.php?t=239377)

Front Range 06-17-2010 03:33 PM

Thanks for the quick response. Clicking the edit tab did nothing, if I reloaded the browser over and over it eventually worked.

I understand the inevitability of mod conflicts and I don't use many, do you know which ones currently conflict?

thincom2000 06-17-2010 03:55 PM

As for the sitemap problem, see if this helps. In vault/special_class_friendlyurl.php, find:
Code:

                return $urlinfo['url'] . ($query ? $amp . $query : '');
Replace with:
Code:

$url = $urlinfo['url'];
                if (
                        (
                                THIS_SCRIPT == 'cron' OR
                                (
                                        VB_AREA == 'AdminCP' AND
                                        strpos($_SERVER['PHP_SELF'], 'sitemap.php') !== false
                                )
                        ) AND
                        $GLOBALS['runner'] AND
                        is_subclass_of($GLOBALS['runner'], 'vB_SiteMapRunner')
                )
                {
                        if (strpos($url, $this->registry->options['bburl']) !== false)
                        {
                                $url = str_replace($this->registry->options['bburl'] . '/', '', $url);
                        }
                        else
                        {
                                $thirdpos = strpos($url, '/', 9);
                                $url = substr($url, $thirdpos + 1);
                        }
                }

                return $url . ($query ? $amp . $query : '');

It's not a perfect fix, but I think it should catch most configurations. It's not really possible to fix completely because vBulletin didn't give us enough hook locations to work with.

Stefanus 06-17-2010 04:56 PM

Quote:

Originally Posted by thincom2000 (Post 2055079)
As for the sitemap problem, see if this helps.

It's not a perfect fix, but I think it should catch most configurations. It's not really possible to fix completely because vBulletin didn't give us enough hook locations to work with.

Thanks for the response:

Code:

<url>
<loc>http://www.site.com/forum/http://www.site.com/forum/showwiki.php?title=Johanna+Brandt</loc>
<lastmod>2010-04-14T10:25:43+02:00</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>


Unfortunately this did not rectify the issue as the "base url" is stil added in the sitemap.

Even changing "Site Name / URL / Contact Details" -> "Always use Forum URL as Base Path" to No does not change anything in the sitemap.

thincom2000 06-17-2010 04:58 PM

Quote:

Originally Posted by Front Range (Post 2055067)
Thanks for the quick response. Clicking the edit tab did nothing, if I reloaded the browser over and over it eventually worked.

I understand the inevitability of mod conflicts and I don't use many, do you know which ones currently conflict?

I think vBEnterprise Translator won't do anything on wiki pages, it will just redirect to the regular wiki page. Wiki pages have to be translated manually using their built-in tools.

I think there's one feature of vBSEO that has to be turned off if you want to use certain wiki features. This is discussed in the doc pages for the wiki. Old versions of vBSEO (pre-3.3.0) won't let you use friendly wiki URLs.

I haven't really run into many other "conflicts" myself.

thincom2000 06-17-2010 05:07 PM

Quote:

Originally Posted by Stefanus (Post 2055108)
Unfortunately this did not rectify the issue as the "base url" is stil added in the sitemap.

This is not something that can be altered, but perhaps it can be worked with. What method did you use to rebuild the sitemap? If you ran the cron from the Scheduled Task Manager, this would not work.

Go to XML Sitemap > Rebuild Sitemap. This worked for me. I will work on fixing the cron in the mean time.

Stefanus 06-17-2010 05:36 PM

Quote:

Originally Posted by thincom2000 (Post 2055113)
This is not something that can be altered, but perhaps it can be worked with. What method did you use to rebuild the sitemap? If you ran the cron from the Scheduled Task Manager, this would not work.

Go to XML Sitemap > Rebuild Sitemap. This worked for me. I will work on fixing the cron in the mean time.

Thanks,
Jip used the cron from the Scheduled Task Manager, using XML Sitemap > Rebuild Sitemap works!

thincom2000 06-19-2010 10:19 PM

Uploaded 3.0.5 Lite, which fixes some more RTL issues and every variation of the XML Sitemap URL issue.

niko236 06-20-2010 12:00 AM

Hi,
Thanks for this Mod, but i have an issue when i try to click on the discussion tab.
In fact when i try to click on the discusison tab, i have this database error:
Code:

Database error in vBulletin 4.0.4:
 
Invalid SQL:
 
        SELECT
                post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
                user.*, userfield.*, usertextfield.*,
                icon.title as icontitle, icon.iconpath,
                avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
                spamlog.postid AS spamlog_postid,
                deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
                editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
                editlog.reason AS edit_reason, editlog.hashistory,
                postparsed.pagetext_html, postparsed.hasimages,
                sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
                sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
                IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid
                , user.infractiongroupid
               
               
        FROM forum_post AS post
        LEFT JOIN forum_user AS user ON (user.userid = post.userid)
        LEFT JOIN forum_userfield AS userfield ON (userfield.userid = user.userid)
        LEFT JOIN forum_usertextfield AS usertextfield ON (usertextfield.userid = user.userid)
       
        LEFT JOIN forum_icon AS icon ON (icon.iconid = post.iconid)
       
        LEFT JOIN forum_avatar AS avatar ON (avatar.avatarid = user.avatarid)
        LEFT JOIN forum_customavatar AS customavatar ON (customavatar.userid = user.userid)
       
        LEFT JOIN forum_spamlog AS spamlog ON (spamlog.postid = post.postid)
        LEFT JOIN forum_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
        LEFT JOIN forum_editlog AS editlog ON (editlog.postid = post.postid)
        LEFT JOIN forum_postparsed AS postparsed ON (postparsed.postid = post.postid AND postparsed.styleid = 4 AND postparsed.languageid = 2)
        LEFT JOIN forum_sigparsed AS sigparsed ON (sigparsed.userid = user.userid AND sigparsed.styleid = 4 AND sigparsed.languageid = 2)
        LEFT JOIN forum_sigpic AS sigpic ON (sigpic.userid = post.userid)
               
        WHERE post.postid IN (0Array,7557)
        ORDER BY post.dateline;
 
MySQL Error  : Unknown column '0Array' in 'where clause'
Error Number  : 1054
Request Date  : Sunday, June 20th 2010 @ 02:51:12 AM
Error Date    : Sunday, June 20th 2010 @ 02:51:12 AM
Script        : http://***********/forum/showwiki.php?title=Titres+Modern+Warfare+2&do=comments
Referrer      :
IP Address    : ***********
Username      : ************
Classname    : vB_Database
MySQL Version : 5.0.90


thincom2000 06-20-2010 12:14 AM

You are using some other mod that is causing a conflict. The mod uses hook showthread_query_postids. Let me know what it is.

niko236 06-20-2010 10:24 AM

Yes I found, it was this mod: First post on all pages

I have deactivated this mod for the Wiki and it works :)

Thanks


All times are GMT. The time now is 07:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02157 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete