vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vBonjour - Portal System (https://vborg.vbsupport.ru/showthread.php?t=133757)

masterme 02-01-2007 02:32 PM

I sure would like your mod, but I want to know something before I screw up my board.
At this moment I have my board in a subdirectory say '/forum'. On the main index is a page, but I do not want to use it anymore and want to use the portal instead.

Is that possible and if so, how? (yes I read the part above, but I do not realy understand it)

adhari_com 02-01-2007 05:50 PM

It's working guys, to actually make the portal work without so many mods on the template is using the <base> directive as suggested earlier.

Insert right below the <head> in PORTAL template:
Code:

<base href="$vboptions[bburl]/" target="_self" />
* But a question goes to the coder, are these 2 lines at the end of portal.php correct?

Code:

eval('$portal_articlelist .= "' . fetch_template('PORTAL') . '";');
eval('print_output("' . fetch_template('PORTAL') . '");');

I think the first is useless?

adhari_com 02-01-2007 05:56 PM

And I'm also suggesting using this code, instead of the current one and the reason is BBCode gets choped off creating an ugly view of the previewed latest topics, qouting the preview of the Tooltip of Forum Display, to display a stripped simple preview of the post:

Code:

        $news['pagetext'] = strip_quotes($news['preview']);
        $news['pagetext'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title(
                        strip_bbcode($news['preview'], false, true),
                        $charlimit
        )));
$news['pagetext'] = nl2br($news['pagetext']);


Wayne Luke 02-01-2007 06:42 PM

Quote:

Originally Posted by masterme (Post 1172138)
I sure would like your mod, but I want to know something before I screw up my board.
At this moment I have my board in a subdirectory say '/forum'. On the main index is a page, but I do not want to use it anymore and want to use the portal instead.

Is that possible and if so, how? (yes I read the part above, but I do not realy understand it)

There are instructions for installing outside the forum folder in the download. Not very difficult really. I have it outside the forum directory on my site. Follow them and you shouldn't have any problems.

abramelin 02-01-2007 06:42 PM

How can i make a link that shows the forum link when the user on portal page and show the portal link when the user on the forum page ?

Wayne Luke 02-01-2007 10:39 PM

Quote:

Originally Posted by abramelin (Post 1172402)
How can i make a link that shows the forum link when the user on portal page and show the portal link when the user on the forum page ?

This should work:
HTML Code:

<if condition="THIS_SCRIPT == 'portal'">
        <a href="$vboptions[bburl]/$vboptions[forumhome].php$session[sessionurl_q]">Forum</a>
<else />
        <a href="$vboptions[homeurl]">Portal</a>
</if>

I haven't tested it though. I have a tab system on my site that always shows a link to the home page and one to the forums.

masterme 02-02-2007 09:19 AM

I have the mod installed. But because I use an style which is completely different from an defaullt style, it does not function complete. Only the news is working, no sidebars.

Is it possible to ad an basic template and assign only the portal to it?

goodguy 02-04-2007 09:07 AM

I had the portal working fine, but for some reason now I can't link to it from our main site.
If I use the path www.hairdivision.co.uk/forums I get a white page but the page is named correctly as using the full path it is fine www.hairdivision.co.uk/forums/index.php? www.hairdivision.co.uk/forums/forum.php takes me to the forums?
I'm sure it's something simple, probably me, but can anyone advise?
(I can't use the second path above as the links are hard coded into an Actinic site)

T.I.A.

goodguy 02-05-2007 06:56 AM

I managed to get it working by editing the links in Actinic but users are still having problems, any idea why I'm having to use the full path? I tried reverting the forums.php back to index.php but still the white page?

Jorrit787 02-05-2007 10:28 PM

I added two plugins to fix the Online Location showing up as Unknown:

online_location_process:
Code:

if($filename=='index.php')
{
    $userinfo['activity'] = 'portal';
}

online_location_unknown:
Code:

if($userinfo['activity']=='portal')
{
    $userinfo['action'] = 'Viewing Portal';
    $handled = true;
}



All times are GMT. The time now is 05:09 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.01299 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)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