vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbSpiderFriend - Search Engine Friendliness (https://vborg.vbsupport.ru/showthread.php?t=15628)

Streicher 05-01-2001 10:33 AM

Quote:

Originally posted by Overgrow
Thanks guys,

Streicher, you need to specify which forums are private at the top of index.php. Look for

$privateForums="|17|18|";

and put whatever forums in there that should be hidden. Enclose them with |pipes|. Anyone else having these same problems with reloading, etc?

I know that and i have done it already. But it does not work.

eva2000 05-01-2001 10:44 AM

Quote:

Originally posted by Streicher


I know that and i have done it already. But it does not work.

same here some private forums disappeared but some didn't :(

KeithMcL 05-01-2001 10:57 AM

Just finished installing this hack but am having some problems.

I'm getting the error:

"Fatal error: Call to unsupported or undefined function htmlheader() in /home/keith/webdevforums-www/archive/index.php on line 76"

where line 70-78 reads:
Code:

header("Status: 200 OK");

//echo "<br>&nbsp;<br>$forumID - $year - $month - $week - $threadID";

if (empty($forumID)) {
        htmlHeader();
        forumList();
        exit;

You can see the page at http://www.webdevforums.com/archive/

Overgrow 05-01-2001 11:15 AM

Sorry... please forgive my sloppy coding. I'm running a fever and worshipping the porcelain god. You can either replace the forumList function with that below, or download the new zip:

Code:

function forumList() {

        global $db,$baseURL,$privateForums;

        echo "Archives<br>";

        $privateForums=preg_replace("/^\|/","",$privateForums);
        $privateForums=preg_replace("/\|$/","",$privateForums);

        $pfs = explode("|",$privateForums);
        $whereclause="";
        $wherecounter=0;


        while($pf=array_shift($pfs)) {
                if(ereg("[0-9]",$pf)) {

                        if($wherecounter==0) {
                                $whereclause= " WHERE forumid!='$pf'";
                                $wherecounter++;
                        } else {
                                $whereclause .= " AND forumid!='$pf'";
                        }
                }
        }
       
       

        $query = "SELECT title,forumid FROM forum$whereclause ORDER BY forumid ASC";

        $data = $db->select($query);

        if(!empty($data)) {

                while ( list ( $key,$forum ) = each ($data)) {

                        echo spacer(1)."<a href=\"$baseURL/$forum[forumid]\">$forum[title]</a><br>";
                }
        }
       
}


Overgrow 05-01-2001 11:21 AM

No clue, coolKeith... Why is your server not capitalizing the function name? See in the code it is htmlHeader() and your server says htmlheader()... Look down in the very bottom of the index.php and you will see the function htmlHeader()... it is there and working. All I can say is try and download it again. If that still doesn't work, change the function name to lower case and see if that helps.

Streicher 05-01-2001 11:52 AM

Thanks Overgrow. It works fine.

And i have find out that only forums with id <10 (1-9) makes a reload of index.php, when clicking on the link.

Peteruk 05-03-2001 05:51 PM

Quote:

Originally posted by Overgrow

Anyone else having these same problems with reloading, etc?
.

I have sorted it now it was a problem within .htaccess

Peteruk 05-03-2001 06:04 PM

Just one problem (I hope :) ) it all loads up ok no errors or anything but when you click on a forum it loads up but where it should look like below

May
week1
week2
week3
week4

It just displays a page like below

Archives
Competition
2001




vbSpiderFriend by ~shabang~ of Overgrow

any idea what the problem is no doubt something I've done :)

Peteruk 05-03-2001 06:08 PM

Here I go again I have sorted the above and the problem was the date is in MM/DD/YYYY I thought I saw DD/MM/YYYY :rolleyes: :p

Overgrow 05-03-2001 06:10 PM

Sorry.. typical N.American-centric time code eh! But that's the way that the php function strtotime is written...

I'm glad people have this working. Now let's hear the success stories in a few months when spiders actually list our posts.


All times are GMT. The time now is 11:13 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.01403 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_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