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)

kall 06-23-2005 07:33 PM

Quote:

Private forums are NOT shown and they will NOT be spidered. Some people say the private forums show up, that is because you are logged in as the admin and the archive uses permissions. So anyone who has permission to view the private forums on your forums, will beable to view them on the archives also. But if you log out of your account OR log into an account that doesn't have access to them, then you won't beable to view them
I beg to differ. As a Guest, I am able to see all my Staff Forums. Granted, not able to see the content, but the forum name and titles.

Xenon 06-26-2005 05:55 PM

hmm, would be very wierd, as the permission system worked in 3.0.x and i just changed the function names to work with 3.5.x, so there shouldn't be a difference normally.

but the hack is still in beta as said, i'll look at it when i have time again :)

coffeefix 06-29-2005 08:33 PM

As a guest I can see my staff forums as well. Also if I try to click on any forum shown I get taken to a page not found on this server error.

Xenon 07-03-2005 01:32 PM

the server error is something different.
thats a server issue, read through the 3.0.x thread to find out what to do.

i'll take a look into the other thing.

monstergamer 07-21-2005 05:33 AM

i am having problems with this one, i install you last one and work like a charm, although i had to use the AcceptPathInfo On in the .htaccess file

this time i use it and i can get to some pages
PHP Code:

<?php
##############################################################
### vB Easy Archive (vb3.5) - Released on June 20th, 2005  ###
### Scripts created by Stefan "Xenon" Kaeser               ###
### Copyright info MUST stay on the bottom of all scripts ####
#### Visit http://www.vbulletin.org for updated versions! ####
##############################################################

error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT''easy_archive_topic');

require(
'config.php');
//require_once('./includes/functions_showthread.php');

$DB_site = &$vbulletin->db;

$vars fetch_vars_array();
$threadid $vars['id'];
$pagenumber $vars['pagenumber'];


$threadinfo verify_id('thread'$threadid11);

if ((!
$thread['visible'] OR $thread['isdeleted']) AND !can_moderate($thread['forumid']))
{
    
archive_output('Invalid thread!');
}

$foruminfo fetch_foruminfo($threadinfo['forumid']);

$forumperms fetch_permissions($threadinfo['forumid']);
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']))
{
    
print_no_permission();
}
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
    
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

$postcount $DB_site->query_first("
    SELECT COUNT(postid) AS posts
    FROM " 
TABLE_PREFIX "post AS post
    LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
    WHERE threadid = 
$threadid
        AND visible = 1
        AND deletionlog.primaryid IS NULL
"
);

$pagination fetch_pagelinks($postcount['posts'], 'topic/' $threadid);

$posts $DB_site->query("
    SELECT post.*
    FROM " 
TABLE_PREFIX "post AS post
    LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
    WHERE threadid = 
$threadid
        AND visible = 1
        AND deletionlog.primaryid IS NULL
    ORDER BY post.dateline
    LIMIT " 
. (($pagenumber 1) * 200) . ", 200
"
);

require_once(
DIR '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());


$postbits '';
while (
$post $DB_site->fetch_array($posts))
{
    
$postbits .= "
        Posted by: <b>
$post[username]</b><br /><br />
        " 
$bbcode_parser->parse($post['pagetext'], $threadinfo['forumid'], true) . "
        <br /><br /><hr /><br />
    "
;
}
archive_output("
    
$pagination<br />
    <hr />
    <center>
        <b><h1><font color=\"red\">
            
$threadinfo[title]
        </font></h1></b>
        <font size=\"3\" color=\"red\">
            <a href=\"
$forumurl/showthread.php?threadid=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a>
        </font>
    </center>
    <hr />
    <br />
    
$postbits
"
);
?>

could you please tell me if i did some thing wrong?

monstergamer 07-21-2005 06:47 AM

ok i got it to work but there is a small problem...I am getting a Invalid thread! when i go to a topic. every thing else works fine except that

krohnathlonman 07-22-2005 05:43 PM

So far I've found where you've hard coded /forum/ so the people like me have to find wherever you've hardcoded that and insert .php

Xenon 07-24-2005 05:53 PM

i think i just hardcoded it in config.php :)

monstergamer 07-24-2005 10:01 PM

ok i got it to work...just my luck...but the links to go back to the site and missing my sub folder

EX. www.monstergamer.net/vb/blah

and in my config i have it right with out the ending /
some reason it does not add it

monstergamer 07-31-2005 09:23 PM

members get and Invalid thread! page when i go to all the topics.

but admins and supermods can see it...no one else can


All times are GMT. The time now is 07:56 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.01204 seconds
  • Memory Usage 1,766KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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