vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Easy Archive - Search Engine Spiderable Hack! (https://vborg.vbsupport.ru/showthread.php?t=83439)

noppid 10-22-2005 11:06 AM

Quote:

Originally Posted by Sal Collaziano
Could anyone take on the challenge to get this archive to work with the CoOp Ad Network?


Yes Sal, it's done within the fetch_footer function in the archive_functions.php file, not the footer.php.

In archive_functions.php locate:
PHP Code:

function fetch_footer()
{
    global 
$archive_options;
    
ob_start();
    include(
'./' str_replace($archive_options['forumurl'], ''$archive_options['archiveurl']) . '/footer.php');
    
$footer ob_get_contents();
    
ob_end_clean();
    
$footer .= '
        <p align="center">
            <br /><br />
            <font size="1" color="#999999">
                vBulletin Copyright &copy;2000 - ' 
date('Y') . ',
                Jelsoft Enterprises Limited.<br />
                <b>vB Easy Archive Final</b> &copy;2000 - ' 
date('Y') . '
                - Created by <a href="http://www.xenon-shacuros.de/">Stefan &quot;Xenon&quot; Kaeser</a>
                <br />
            </font>
        </p>
    </body>
    </html>    '
;

    return 
$footer;


Replace with:
PHP Code:

function fetch_footer()
{
    global 
$archive_options,$ad_network;
    
ob_start();
    include(
'./' str_replace($archive_options['forumurl'], ''$archive_options['archiveurl']) . '/footer.php');
    
$footer ob_get_contents();
    
ob_end_clean();
    
$footer .= '
        <p align="center">
            <br /><br />
            <font size="1" color="#999999">
                vBulletin Copyright &copy;2000 - ' 
date('Y') . ',
                Jelsoft Enterprises Limited.<br />
                <b>vB Easy Archive Final</b> &copy;2000 - ' 
date('Y') . '
                - Created by <a href="http://www.xenon-shacuros.de/">Stefan &quot;Xenon&quot; Kaeser</a>
                <br />
            </font>
        </p>

<center>
<br />'
.$ad_network.'</center>
                
                
    </body>
    </html>
    '
;

    return 
$footer;


At least that's how I did it. There's more then one way to skin a cat.

rossco_2005 11-04-2005 03:29 PM

Has anyone been able to get this to work with the No Content option? It just lets you view the thread but it shouldn't. :(

Sal Collaziano 11-04-2005 04:03 PM

THANK YOU!!!

Quote:

Originally Posted by noppid
Yes Sal, it's done within the fetch_footer function in the archive_functions.php file, not the footer.php.

In archive_functions.php locate:
PHP Code:

function fetch_footer()
{
    global 
$archive_options;
    
ob_start();
    include(
'./' str_replace($archive_options['forumurl'], ''$archive_options['archiveurl']) . '/footer.php');
    
$footer ob_get_contents();
    
ob_end_clean();
    
$footer .= '
        <p align="center">
            <br /><br />
            <font size="1" color="#999999">
                vBulletin Copyright &copy;2000 - ' 
date('Y') . ',
                Jelsoft Enterprises Limited.<br />
                <b>vB Easy Archive Final</b> &copy;2000 - ' 
date('Y') . '
                - Created by <a href="http://www.xenon-shacuros.de/">Stefan &quot;Xenon&quot; Kaeser</a>
                <br />
            </font>
        </p>
    </body>
    </html>    '
;

    return 
$footer;


Replace with:
PHP Code:

function fetch_footer()
{
    global 
$archive_options,$ad_network;
    
ob_start();
    include(
'./' str_replace($archive_options['forumurl'], ''$archive_options['archiveurl']) . '/footer.php');
    
$footer ob_get_contents();
    
ob_end_clean();
    
$footer .= '
        <p align="center">
            <br /><br />
            <font size="1" color="#999999">
                vBulletin Copyright &copy;2000 - ' 
date('Y') . ',
                Jelsoft Enterprises Limited.<br />
                <b>vB Easy Archive Final</b> &copy;2000 - ' 
date('Y') . '
                - Created by <a href="http://www.xenon-shacuros.de/">Stefan &quot;Xenon&quot; Kaeser</a>
                <br />
            </font>
        </p>

<center>
<br />'
.$ad_network.'</center>
                
                
    </body>
    </html>
    '
;

    return 
$footer;


At least that's how I did it. There's more then one way to skin a cat.


Smitty 12-10-2005 12:35 PM

Anyone tried this with 3.5.2 yet?

Brandon Sheley 12-16-2005 05:20 AM

hmm, when i try and click on a forum it shows as /forum/5-1.html

http://www.locoforum.com/forums/search/
? i've looked thu this thread and see fixes for topic, but don't even see the topics

Brandon Sheley 12-18-2005 04:01 AM

anyone ?
guess i wont use it untill someone replys :disappointed:

rossco_2005 01-31-2006 05:13 PM

Quote:

Originally Posted by rossco_2005
Has anyone been able to get this to work with the No Content option? It just lets you view the thread but it shouldn't. :(

Anyone?
We're now having a lot of private info seen my spiders and other people that shouldnt see it, and getting in trouble for it. :(

rossco_2005 01-31-2006 05:30 PM

Ah, fixed it myself.

Here is what to do if anyone else has problems: :)

Open the file 'forum' and replace:

PHP Code:

$threadbits .= "<li /><a href=\"$archive_options[archiveurl]/$archive_options[topicfile]/$thread[threadid]-1.html\">$thread[title]</a></li>\n"

with
PHP Code:

if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
    {
        
$threadbits .= "<li />$thread[title]</li>\n";
    }
    else
    {
        
$threadbits .= "<li /><a href=\"$archive_options[archiveurl]/$archive_options[topicfile]/$thread[threadid]-1.html\">$thread[title]</a></li>\n";
    } 


icare 02-13-2006 02:27 AM

How do i check that mod_mime is installed on my server?

David_R 02-14-2006 11:30 AM

Quote:

Originally Posted by icare
How do i check that mod_mime is installed on my server?

email your hosting provider about installing mod_mime module to your apache server.

I have a question:
I got the mod, installed and running perfectly fine, I want to implement following changes.
When a user clicks on the threads in archive, it should get re-directed to the default forum threads.
How this can be acheived ?

Thanks.


All times are GMT. The time now is 07:00 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.01974 seconds
  • Memory Usage 1,782KB
  • 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
  • (6)bbcode_php_printable
  • (4)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