vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Everywhere Sidebar 4 VB4 (https://vborg.vbsupport.ru/showthread.php?t=233871)

almannai 08-09-2010 03:25 PM

Quote:

Originally Posted by vitoreis (Post 2080917)
Thank you!

u welcome:)

Front Range 4x4 08-09-2010 04:01 PM

1 Attachment(s)
Quote:

Originally Posted by almannai (Post 2077554)
ok guys anytime you see this it means something is changing the forum home template before the ESB.

Back for another try almannai, I guess I wasn't clear previously. ESB displays wrong on all pages except FORUMHOME.

almannai 08-09-2010 05:12 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2081367)
Back for another try almannai, I guess I wasn't clear previously. ESB displays wrong on all pages except FORUMHOME.

If it is working on the default style then something wrong on the new style.

Have you test it on the default style?

Front Range 4x4 08-09-2010 06:45 PM

Oops, no. forumhome displays the default sidebar. I just realized it's not the EWS variation.

almannai 08-10-2010 05:29 AM

Quote:

Originally Posted by Front Range 4x4 (Post 2081435)
Oops, no. forumhome displays the default sidebar. I just realized it's not the EWS variation.

you didn't answer my quesion!

Have you test it on the default style?

BatCave 08-10-2010 09:19 AM

I see how to have the sidebar on the general album page, but I would also like to run the sidebar on the album picture list pages (album_picturelist) and the actual picture pages (album_pictureview). I have had some trouble coding those up to work. Do you have any suggestions on how I can add the everywhere sidebar to the image gallery and image pages?

I have adjusted the max size of the images so there is room, I just can't seem to get the sidebar to show.

Front Range 4x4 08-10-2010 02:54 PM

Quote:

Originally Posted by almannai (Post 2081620)
you didn't answer my quesion!

Have you test it on the default style?

Yes, I tested it on the default style and it's fine. As I said I know it's something I eliminated in my custom style and was wondering if you could tell me what it needs to find. I tried the tags for the custom pages with limited success.

almannai 08-10-2010 03:36 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2081752)
Yes, I tested it on the default style and it's fine. As I said I know it's something I eliminated in my custom style and was wondering if you could tell me what it needs to find. I tried the tags for the custom pages with limited success.

sure

open "product-everywhere_sidebar_1.3.3.xml" in any text editor

you will see different type of hooks for each different forum page

look for the variable $sidebarext_search this what the mod will use its value to search and replace


for example here is the forumdisplay hook

PHP Code:


        
<plugin active="1" executionorder="5">
            <
title>sidebar_fdispaly</title>
            <
hookname>forumdisplay_start</hookname>
            <
phpcode><![CDATA[if ($bbandSBactive and $vbulletin->options['esidebar_forumdisplay']){
require_once(
DIR '/includes/class_block.php');
$show_sidebar false;
    
$blockmanager vB_BlockManager::create($vbulletin);
    
$sidebar $blockmanager->getSidebarHTML();
    if (
$sidebar)
    {
        
$show_sidebar true;
        if (
function_exists(rebuild_sidebar))$sidebar=rebuild_sidebar($blockmanager,$sidebar);
$templater vB_Template::create('sidebarext_temp'); 
$templater->register('sidebar'$sidebar);$templater->register('show_sidebar'$show_sidebar);
$template_hook['sidebarext_temp']=$templater->render();
$sidebarext_add "' . \$template_hook['sidebarext_temp'] . '";        
$sidebarext_search '/\' \. \$footer \. \'/'
$sidebarext_replace =  $sidebarext_add "' . \$footer . '";               
$sidebarary=explode('</li>',$sidebar);
$FORUMDISPLAYSIDEBAR preg_replace($sidebarext_search$sidebarext_replace$vbulletin->templatecache['FORUMDISPLAY']);
$sidebarext_search '<div id="pagetitle" class="pagetitle">'
$sidebarext_add ='<div id="content_container"><div id="content">';        
if(
$vbulletin->options['sidebarposition']==0)$sidebarext_add ='<div id="content_container" class="contentright"><div id="content">';  
$sidebarext_replace =  $sidebarext_add $sidebarext_search;               
$FORUMDISPLAYSIDEBAR str_replace($sidebarext_search$sidebarext_replace$FORUMDISPLAYSIDEBAR);
$vbulletin->templatecache['FORUMDISPLAY'] = $FORUMDISPLAYSIDEBAR;
    }
}]]></
phpcode>
        </
plugin


First the $sidebarext_search variable is equal to $footer this should be ok
as I don't think you will remove that

Then it is set to
PHP Code:

<div id="pagetitle" class="pagetitle"

so if removed or changed this you should adjust the $sidebarext_search to look for the new value

Hammertime 08-10-2010 03:53 PM

Is there a fix to have ESB in line with the rest of the forum?

I don't want to remove the forum title.

Front Range 4x4 08-10-2010 04:34 PM

Thank you for your patience almannai! It's working now!

Installed & Rated Excellent

Fantastic support!


All times are GMT. The time now is 09:12 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.02072 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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