vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - [YUI] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=197871)

King Kovifor 12-03-2008 07:15 PM

Quote:

Originally Posted by s810car (Post 1677804)
I think the 2nd arguement thing was missing a parenthesis, i got it to save by putting brackets like so (took out the quotes in forumid as well, which may or may not be correct)
HTML Code:

<if condition="(THIS_SCRIPT == 'indexTAB' AND (in_array($forum[forumid], $GLOBALS[tabcats]) OR in_array('all', $GLOBALS[tabcats]))) OR (THIS_SCRIPT == 'forumdisplay')">
Doesn't mean it worked though :( still got the encoding error

I am working on a fix for this now. I may need some help testing it.

Quote:

Originally Posted by s810car (Post 1677873)
Since you mentioned that, i checked the file I got and it has one line around line 36 saying
PHP Code:

$tabID 

and then empty space that line, I assume there's something to be there?

You may remove that, tabID isn't set through PHP and I'm not sure how it got in there. :)

Quote:

Originally Posted by ThomasR (Post 1677935)
Bobster65: Thank you very much for these answers and the time you devote for us. I will check the other modules for the previous version and try to upload an html page (no header / footer, just html content I guess :)

Edit:
I just tried to upload a XML file with just this content as a module, and as you may guess, it's not working :)
Code:

<div align="center">This is a<strong> HTML</strong> test!
</div>

Edit2:
I checked an existing module and edited to:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<modules>
        <module>
                <name>test html</name>
                <file><div align="center">This is a<strong> HTML</strong> test!</div></file>
                <cache>false</cache>
        </module>
</modules>

Without <file></file>, I have a database error on the import process :) Witht these tags, I can import the module, I have the tab, but an empty content.
Can you post a short sample, if you have the time (not a priority at all for me!) Thanks!

Adding a module does not require an xml file. Click on "Add Module" in the ACP back end and fill out the form.

NAZIA 12-03-2008 07:17 PM

You have done. Awesome.
I will Do it soon at my board...

Thanks for this full New Version...Now Its look like namepros.com tabs...

King Kovifor 12-03-2008 07:31 PM

Quote:

Originally Posted by ArnyVee (Post 1677493)
My version is 3.7.1 PL 1.

Now, after I went through and did all the edits, the top of my style has this code multiple times....

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1

To anyone having this problem, please try the fix described here:

http://www.smnlikdat.org/project.php?issueid=16#note36

ThomasR 12-03-2008 08:03 PM

Quote:

Originally Posted by King Kovifor (Post 1677969)
Adding a module does not require an xml file. Click on "Add Module" in the ACP back end and fill out the form.

Ok, found it, just have to upload an html file in the root of the forum and then, give the relative link to this file.

Now, I found something else, I don't know if it's a bug or not:

On my forum, I have a root style, in which I do all the template modifications for the plugins and I use a child style in which I do all the cosmetics edits (css changes, different icons, etc).

The problem is that the tabs are using the default style colors and not the style child look and feel when I select this child style. I guess that I can tweak that from the templates, but it would be better if it use the selected template CSS. I can post a screen capture if you want.

About the bug, I still have it after doing your fix above:

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3729) : eval()'d code on line 1
and I have tghis error in order to the tabs content in my forum:
Code:

Fatal error: Cannot re-assign $this in /home/forums/www/tabindex.php on line 122
If you need the link to my test forum.

King Kovifor 12-03-2008 08:13 PM

Change this to $useless and see if that works. If the fix doesn't work, I will need to go back and try to make some changes...

ThomasR 12-03-2008 08:22 PM

the fatal error in the tab content changed to :
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
Top forum and tab content display the same error.

Time to sleep for me, will checking in 7-8 hours :)

sweetguy2004 12-03-2008 08:27 PM

I have tried to install this but facing this problems

1. In my forumhome template i found only this

<!-- main -->
$forumbits
$forumhome_markread_script
<!-- /main -->

2. when i add this code in
Code:

<if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]) OR in_array('all',$GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
forumhome_forumbit_level1_nopost & forumhome_forumbit_level1_post

I get this error

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3716) : eval()'d code on line 1

& if i purposely edited the templates ignoring errors i got this error on homepage

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()d code on line 1

I am using vBulletin 3.7.2 Patch Level 1 with miner skinz

Please help

King Kovifor 12-03-2008 08:52 PM

Quote:

Originally Posted by sweetguy2004 (Post 1678016)
I have tried to install this but facing this problems

1. In my forumhome template i found only this

<!-- main -->
$forumbits
$forumhome_markread_script
<!-- /main -->

2. when i add this code in
Code:

<if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]) OR in_array('all',$GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
forumhome_forumbit_level1_nopost & forumhome_forumbit_level1_post

I get this error

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3716) : eval()'d code on line 1

& if i purposely edited the templates ignoring errors i got this error on homepage

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()d code on line 1

I am using vBulletin 3.7.2 Patch Level 1 with miner skinz

Please help

I'm working on a fix for another bug that should fix this.

King Kovifor 12-03-2008 08:57 PM

Quote:

Originally Posted by ThomasR (Post 1678013)
the fatal error in the tab content changed to :
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
Top forum and tab content display the same error.

Time to sleep for me, will checking in 7-8 hours :)

I've updated the fix, try that?

sweetguy2004 12-03-2008 09:07 PM

I have uploaded & replaced all files & product also but still the same...

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(3716) : eval()'d code on line 1

& can you tell me wat to so if i don't have

Code:

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
</thead>
$forumbits
<tbody>
        <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                        <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                        <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
                </strong></div></td>
        </tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

I have only this much

<!-- main -->
$forumbits
$forumhome_markread_script
<!-- /main -->

Thanks for quick reply & help


All times are GMT. The time now is 07:58 AM.

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.01225 seconds
  • Memory Usage 1,768KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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