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)
-   -   Miscellaneous Hacks - Cyb - Sub-Forum Manager (https://vborg.vbsupport.ru/showthread.php?t=122996)

jim6763nva 04-10-2008 03:35 PM

I got this working with 3.7 RC2 however today, when I went to integrate vbadvanced with my forums, something got messed up. Now my sub-forums are all listed on 1 line, for example:

Forum Name
Forum Description
Sub-Forums:
SubForumName , SubForumName , SubForumName , SubForumName , SubForumName

I have a lot of sub forums since I run a Virginia State-wide forum and I show sub-forums by city and county.

I had the VBSEO addon installed so I uninstalled that thinking maybe something there was causing it, however when I turn off the cyb-sub forums addon, all sub-forums start wrapping within the forum area below the main forum.

Anyone know what would be causing this?

Thanks in advance,
Jim

Jenkins 04-10-2008 07:17 PM

make sure it didn't revert any templates when you installed vbadvanced? dunno just a suggestion, maybe re-install the subforum manager xml file

jim6763nva 04-11-2008 12:50 AM

Quote:

Originally Posted by Jenkins (Post 1487729)
make sure it didn't revert any templates when you installed vbadvanced? dunno just a suggestion, maybe re-install the subforum manager xml file

Hey Jenkins,
Thank you for your suggestions. I tried a couple times uninstalling this addon and reinstalling it.. as well as deleting the forums and recreated them and resetting the forum information in the maintenance section. None of these worked.

It's weird. This is what I did to integrate a vba page, went to VBA CMPS secton in AdminCP:

1. Created a new page of type "module"
2. Set the title to "Forum"
3. Set the Id to "forum".
4. Set the display order to 2.
5. Added the Site Navigation block to the left column.
6. Excluded the Forum module page from the Site Navigation menu.
7. Set the Forum module page as the page to integrate with.
8. Changed the "THIS_SCRIPT" variable in the index.php file to "forum_index".
9. Added "forum_index" to the "THIS_SCRIPT Integration Method" box.

Integration went fine, but sub-forums are listed all on one line. If I have a lot of subforums, it will stretch the forum category table way out to the right.

I just found out tonight, if I undo the integration, and put the THIS_SCRIPT variable in the index.php file back to "index", and refresh the page, this addon (cyb_sub-forums) will work again, and all subforums will be listed in columns as set in the cyb_sub-forum settings.

I'm not sure where the issues is to be honest.

jim6763nva 04-11-2008 01:05 AM

Ok, I'm not sure if this is the correct way to do this but I took a look at the plugin for this addon and noticed that the code in the "parse_templates" hook is expecting the "THIS_SCRIPT" variable in the forum index.php file to be set to "index". I modified it to look at the new value I set for the integration ("forum_index") and this seems to allow the sub-forums addon to work.

At the top of the Parse_Templates" Hook there is the following line of code:
PHP Code:

 
 
 
if ($vbulletin->options['cybsfa_enable'] AND (THIS_SCRIPT=='index' OR THIS_SCRIPT=='forumdisplay')) 

I changed it to read:
PHP Code:

 
if ($vbulletin->options['cybsfa_enable'] AND (THIS_SCRIPT=='forum_index' OR THIS_SCRIPT=='forumdisplay')) 


Turelio 04-12-2008 07:37 AM

Thank you bro!

soundbarrierpro 04-13-2008 09:01 PM

I have this hack installed and I want my sub forums to look like this. I've done everything I can imagine to get mine to config this way and nothing works.

https://vborg.vbsupport.ru/external/2008/04/50.jpg

giraffesyo 04-21-2008 04:09 AM

Worked on my setup. I didn't use depth 1 though, I set it to 2 on all three depths and it works beautifully for my purposes.

Thanks :)


(Using 3.7.0 RC2

Sorky 04-22-2008 03:30 AM

Any chance of having an "include these forums" as opposed to the exclude? Or any advice on what to change to make it that way?

Also, if I have a sub-forum with no posts, the post count doesn't show and the alignment gets stuffed as those that do have posts are a little wider - can I get it to show (0/0)?

Sorky 04-22-2008 10:50 AM

Seems I had a few issues as I had changed some of the styles that this mod works with (My style changes were primarily to add a <br /> after the "," so I had subforums in a sigle column by default)

I wanted this MOD to enable me to have the long sub-forums listed in several columns, but I still wanted all the "excluded" forums as a single column

Long story short, I modified the mod to add two new options

1) show excluded forums as a list [forced excluded forums to be treated as a single column list]

2) show counts as 0/0 for sub-forums with no threads

PS : Great work Cybernetec - I've PM'd you my modifications if you are interested

Sorky 04-22-2008 11:00 PM

Quote:

Originally Posted by OLDrCF (Post 1481813)
Works great in 3.6.9 too :), nice mod.

Is there any way can increase the spacing between columns and perhaps make it consistent down the whole of the forums?

Install clicked too.

I had the same issue - Changed the "forumhome_forumbit_level1_post" style

Change 1 was to move the icon to the top (not necessary to solve your problem)
Change 2 was the fix

Code:

<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
               
                <table cellpadding="0" cellspacing="0" border="0">
                <tr valign="top">
                        <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
                        <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td width="100%">
                        <div>
                                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                        </div>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                        </td>
                </tr>
                </table>
               
                </td>
                <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
                </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>



Quote:

Originally Posted by jim6763nva (Post 1487548)
I got this working with 3.7 RC2 however today, when I went to integrate vbadvanced with my forums, something got messed up. Now my sub-forums are all listed on 1 line, for example:

Forum Name
Forum Description
Sub-Forums:
SubForumName , SubForumName , SubForumName , SubForumName , SubForumName

I have a lot of sub forums since I run a Virginia State-wide forum and I show sub-forums by city and county.

I had the VBSEO addon installed so I uninstalled that thinking maybe something there was causing it, however when I turn off the cyb-sub forums addon, all sub-forums start wrapping within the forum area below the main forum.

Anyone know what would be causing this?

Thanks in advance,
Jim

That happened to me also - Took the "white-space:nowrap;" out of the "CSS 3" and back to normal


All times are GMT. The time now is 01:22 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.01921 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)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