vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=59958)

Cheertobi 09-29-2005 05:51 AM

Hi,

Quote:

Originally Posted by 99SIVTEC
ok, 3.5 went gold today. Please release the code. I know of at least one site running it on 3.5 beta. It's all I need before I upgrade my main site :)

yap, nearly same here ;) Would also love to add this modification to my forum. Do you know if that beta code still was from Xenon or "just" a own port?

Regards,

Tobi

99SIVTEC 09-29-2005 04:13 PM

The rumor was that he was waiting for gold to release the code. There was a site posted a few days ago that was already using the hack, but I can't find anyone willing to share the code. My site has several hundred forums and really can't be organized without this hack.

Cheertobi 09-29-2005 08:50 PM

Hi,

maybe KirbyDE can port this mod ;) I send him a PM and ask him if he knows exactly when Xenon is back. Right now I can wait a week or two before someone can do this hack ;) Sadly I cannot do it own my own...

Regards,

Tobi

Alien 09-29-2005 09:17 PM

Quote:

Originally Posted by Cheertobi
Hi,

maybe KirbyDE can port this mod ;) I send him a PM and ask him if he knows exactly when Xenon is back. Right now I can wait a week or two before someone can do this hack ;) Sadly I cannot do it own my own...

Regards,

Tobi

I'd like to re-add this hack as well, as my forumhome pages looked so much nicer when i highlighted a specific category with this...

Well, I'm sure it will return eventually. Hate to wait weeks though.

Salazar 09-30-2005 12:07 AM

Yeah I'm interested in this hack for version 3.5.0 as well. :)

Acers 10-04-2005 06:08 AM

i would like to request this hack to be ported as well :D

Xenon 10-05-2005 05:06 PM

i am back ;)

there is no 3.5 version yet (at least not by myself), as it was not on my priority list.

but as a customer of me, is needing the upgrade as well, it shouldn't be long anymore ;)

Salazar 10-05-2005 05:20 PM

Very nice! Danke Xenon. :nervous:

99SIVTEC 10-05-2005 06:29 PM

Thanks Xenon, we appreciate it. Hope vacation was good :)

hbalagh1 10-05-2005 10:06 PM

I can't wait, will be a great addition to clean up my cpa forums that list the 50 states lol

Alien 10-06-2005 05:05 AM

BEST. REPLY. EVER.

Thanks Xenon! ;) We can't wait!

thenetbox 10-07-2005 05:32 PM

thank you :)

Nutz 10-09-2005 03:42 PM

Can't wait :)

Thanks,
Mat

midnightz 10-09-2005 05:08 PM

Thank you as well :)

Cheertobi 10-09-2005 05:37 PM

Hi,

yap, thanks as well my users love you for that hack!

Before this becomes a thank you thread, is there a date we can dealing with Xenon?!

Regards,

Tobi

Xenon 10-09-2005 09:17 PM

i think about a beta version next weekend, but can't promise anything

Evil X 10-10-2005 07:36 PM

please update to 3.5

Nutz 10-11-2005 11:07 AM

Does any one know if this works on 3.5 as it is? I mean this not the up and coming 3.5 version.

Thanks,
Mat

Xenon 10-11-2005 11:42 AM

from what i saw right now, not that much code did change, so you can try it out.

it may work, with a very little tweak, but cannot promise of course

Nutz 10-11-2005 02:50 PM

I've had no luck :(

Thanks,
Mat

99SIVTEC 10-11-2005 03:04 PM

I tried it a couple weeks ago and it didn't work. The first few file edits look to be about the same, but it wasn't working on my test site.

Xenon 10-11-2005 03:45 PM

well, seems like i have to work on it then ;)

Nutz 10-12-2005 06:32 PM

I had a go at this and your nice SQL syntax highlighting and failed at both.

I tried to use the new function construct_forum_bit and change it to suite with no luck:

PHP Code:


// ###################### Start construct_forum_columns #######################
function construct_forum_columns($parentid$columncount)
{
    global 
$vbulletin$stylevar$vbphrase$show;
    global 
$imodcache$lastpostarray$counters$inforum;

    if (
$columncount == 0)
    {
        
// 0 Columns means don't show subforums at all
        
return '';
    }


    
// this function takes the constant MAXFORUMDEPTH as its guide for how
    // deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
    // it will assume a depth of 2.

    // call fetch_last_post_array() first to get last post info for forums
    
if (!is_array($lastpostarray))
    {
        
fetch_last_post_array();
    }

    if (empty(
$vbulletin->iforumcache["$parentid"]))
    {
        return;
    }

    if (!
defined(MAXFORUMDEPTH))
    {
        
define('MAXFORUMDEPTH'1);
    }

    
$forumbits '';
    
$depth++;

    foreach (
$vbulletin->iforumcache["$parentid"] AS $forumid)
    {
        
// grab the appropriate forum from the $vbulletin->forumcache
        
$forum $vbulletin->forumcache["$forumid"];
        
$lastpostforum $vbulletin->forumcache["$lastpostarray[$forumid]"];
        if (!
$forum['displayorder'] OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['active']))
        {
            continue;
        }

        
$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];
        
$lastpostforumperms $vbulletin->userinfo['forumpermissions']["$lastpostarray[$forumid]"];
        if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums'])
        { 
// no permission to view current forum
            
continue;
        }

            
$GLOBALS['forumshown'] = true// say that we have shown at least one forum

            
if (($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads']))
            { 
// get appropriate suffix for template name
                
$tempext '_post';
            }
            else

            {
                
$tempext '_nopost';
            }

            if (!
$vbulletin->options['showforumdescription'])
            { 
// blank forum description if set to not show
                
$forum['description'] = '';
            }

            
// dates & thread title
            
$lastpostinfo $vbulletin->forumcache["$lastpostarray[$forumid]"];

            
// compare last post time for this forum with the last post time specified by
            // the $lastpostarray, and if it's less, use the last post info from the forum
            // specified by $lastpostarray
            
if ($vbulletin->forumcache["$lastpostarray[$forumid]"]['lastpost'] > 0)
            {
                if (!(
$lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR (!($lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $lastpostinfo['lastposter'] != $vbulletin->userinfo['username']))
                {
                    
$forum['lastpostinfo'] = $vbphrase['private'];
                }
                else
                {
                    
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
                    
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
                    
$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']);

                    if (
$icon fetch_iconinfo($lastpostinfo['lasticonid']))
                    {
                        
$show['icon'] = true;
                    }
                    else
                    {
                        
$show['icon'] = false;
                    }

                    
$show['lastpostinfo'] = (!$lastpostforum['password'] OR verify_forum_password($lastpostforum['forumid'], $lastpostforum['password'], false));

                    eval(
'$forum[\'lastpostinfo\'] = "' fetch_template('forumhome_lastpostby') . '";');
                }
            }
            else if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']))
            {
                
$forum['lastpostinfo'] = $vbphrase['private'];
            }
            else
            {
                
$forum['lastpostinfo'] = $vbphrase['never'];
            }

            
// do light bulb
            
$forum['statusicon'] = fetch_forum_lightbulb($forumid$lastpostinfo$forum);

            
// add lock to lightbulb if necessary
            
if ((!($forumperms $vbulletin->bf_ugp_forumpermissions['canpostnew']) OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['allowposting'])) AND $vbulletin->options['showlocks'] AND !$forum['link'])
            {
                
$forum['statusicon'] .= '_lock';
            }

            
// get counters from the counters cache ( prepared by fetch_last_post_array() )
            
$forum['threadcount'] = $counters["$forum[forumid]"]['threadcount'];
            
$forum['replycount'] = $counters["$forum[forumid]"]['replycount'];

            
// get moderators ( this is why we needed cache_moderators() )
            
if ($vbulletin->options['showmoderatorcolumn'])
            {
                
$showmods = array();
                
$listexploded explode(','$forum['parentlist']);
                foreach (
$listexploded AS $parentforumid)
                {
                    if (!isset(
$imodcache["$parentforumid"]))
                    {
                        continue;
                    }
                    foreach(
$imodcache["$parentforumid"] AS $moderator)
                    {
                        if (isset(
$showmods["$moderator[userid]"]))
                        {
                            continue;
                        }

                        
$showmods["$moderator[userid]"] = true;
                        if (!isset(
$forum['moderators']))
                        {
                            eval(
'$forum[\'moderators\'] = "' fetch_template('forumhome_moderator') . '";');
                        }
                        else
                        {
                            eval(
'$forum[\'moderators\'] .= ", ' fetch_template('forumhome_moderator') . '";');
                        }
                    }
                }
                if (!isset(
$forum['moderators']))
                {
                    
$forum['moderators'] = '';
                }
            }

            if (
$forum['link'])
            {
                
$forum['replycount'] = '-';
                
$forum['threadcount'] = '-';
                
$forum['lastpostinfo'] = '-';
            }
            else
            {
                
$forum['replycount'] = vb_number_format($forum['replycount']);
                
$forum['threadcount'] = vb_number_format($forum['threadcount']);
            }

            
$show['forumdescription'] = iif ($forum['description'] != ''truefalse);

            
// build the template for the current forum
            
$column_width intval(100 $columncount) . '%';
            eval(
'$column = "' fetch_template("forumhome_forumbit_columncell") . '";');
            
            
// do the columnstuff
            
if ($counter $columncount == 0)
            {
                
// Begin a new row
                
$forumbits .= "\t<tr>\n";
            }
            
$forumbits .= $column;
            if (
$counter $columncount == $columncount 1)
            {
                
// End row
                
$forumbits .= "\t</tr>\n";
            }

            
$counter++;
    }

    
// prevent unclosed <tr> tags
    
if ($counter $columncount != 0)
    {
        
$forumbits .= "\t</tr>\n";
    }
    return 
$forumbits;


Maybe you can use this in some way, I understand you?re busy :)

Thanks,
Mat

Xenon 10-13-2005 11:38 AM

don't break your head with the SQL sysntax, i have already ported it, just not yet released ;)

99SIVTEC 10-13-2005 06:16 PM

you should release it, even if it is only in beta format. I have a couple test sites I could check it out on.

Nutz 10-13-2005 06:44 PM

If you don't want the hassle of releasing/suporting it could you PM the mod? :)

Thanks,
Mat

hbalagh1 10-13-2005 06:45 PM

I can't wait ;)

Xenon 10-13-2005 07:42 PM

@99: i will do so when i have upgrade vb.org, as my testversion is running there :)

i don't write the instructions before i am sure they work ;)

Nutz 10-13-2005 07:48 PM

:( How far off is the 3.5 vb.org

Thanks,
Mat

Xenon 10-13-2005 07:50 PM

hard to say.

the most things are done, just 2 things are missing, but these are important...
i expect two weeks, but cannot promise it.

Nutz 10-13-2005 08:04 PM

Damn.
Thanks for all the hard work your putting into vB.org, your helping alot of people :)

Thanks and good luck,
Mat

Xenon 10-15-2005 10:04 AM

Thx :)


ok, info on the columns hack:
I have a working version already for 3.5. It's still not ready for release as the acp functions have a glitch right now, which i have to fix before i can release it, but apart from that, the hack is working, and could be released soon :)

Brent H 10-15-2005 06:47 PM

Looking forward to it :)

Nutz 10-16-2005 11:40 PM

Nice.
Will this be a purely plug-in hack or does some code need to be changed?

Thanks,
Mat

Xenon 10-18-2005 10:33 AM

purely plugin won't be possible, right now it's a hack like the 3.0 version was

i'll try to remove some codechanges, but not every change will be doable in plugins

Brent H 10-18-2005 10:49 AM

Fine with me, there's always going to be some edits you just can't avoid.

Alien 10-18-2005 01:06 PM

Hey that's great news Xenon.

I can't wait to get this puppy back up and running, I really appreciate you working on it!

I'll keep my eyes peeled. :D

Nutz 10-19-2005 06:25 PM

How are we looking on this :)

Thanks,
Mat

Reminder 10-20-2005 08:37 AM

I'm waiting

+1

bpn 10-20-2005 12:31 PM

Me too +2 :laugh:


All times are GMT. The time now is 03:12 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.02109 seconds
  • Memory Usage 1,911KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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