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)

Xenon 06-19-2005 10:00 PM

vB Easy Archive - Search Engine Spiderable Hack!
 
Ok, as a lot of users have installed my vB Easy Archive Hack i've decided to release a vB3.5 Version as well. Note that vB3.5 is currently in beta, and so is my hack as well!

As vB3 already comes with an build in Archive System, it's not that needed than it was in vb2, but for all of you, who have installed the vb2 version and don't want to loose their indexed Pages, this one is for you :)

I'm lazy and therefore will copy the Releasetext of vb2 by SkuZZy.

About this hack

This hack will help get all your threads listed in google and other search engines and get your threads easily spidered! It works by creating an archive and turning all your posts into .html format. It doesn't actually create the .html files though, but google thinks they are real! It uses mod_mime. If you don't have mod_mime, you will still be able to install this hack, just read the install.txt for help then.

What does it do?

The purpose of this hack are to get your keywords from your forums listed in google and get people visiting them! Since these are all pure text and don't use tables or excess font tags, they are very friendly on bandwidth! This will display all your files in a nice text format that google will absolutely love! Visit the online demo below to see it in action!

Online Demo

To view a demo of this script, visit this site:
http://www.strategy-forum.de/easy_archive/

Requirements

Apache
vBulletin 3.x
mod_mime installed (not absolutelly required, but recommended)
.htaccess
5 minutes of your time...


Known Problems/Confusion

Mod_mime - It is recommended to have mod_mime installed to run these scripts. Mod_mime is a free module which enables a directive called "ForceType". This allows you to use the .htaccess file included to force your files into php mode, which allows simple URL's, without .php in them. If you can see the front page of your archive, but get an error page when you click on any links then this is your problem. To fix it, you will need to install mod_mime, or ask your host to do it. It's a FREE module. For more information, visit http://httpd.apache.org/docs/mod/mod_mime.html
If you want to run vb Easy Archive without mod_mie, please look into the install.txt

Private forums - 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 :)

Forumlist yes, but threadlist no - https://vborg.vbsupport.ru/showpost....5&postcount=91
https://vborg.vbsupport.ru/showpost....&postcount=153

Credits
SkuZZy aka Adam J. de Jaray, who gets my Special Thanks for his modifications, releasing and of course his Support to my Script's vb2 version. Note, he does not have anything to do with the vb3 version, but without him, there wouldn't have been the vb2 version and therefore i would never have released the one for vb3 :)

Agreement

By using these scripts & installing them, you agree to leave the small (virtually unnoticable) copyright text and links at the bottom of all pages. You also agree to leave jelsoft's copyright there as well. You can modify the scripts much as you want, but this portion must remain intact (links must stay) and visible. This is all I ask :D

Download Final

To install, just download the file below and open the "install.txt" file. All is explained there. Installation should only take a couple of minutes. If you have problems with this script, post them in this thread and I will try and get around to answering them.

TheComputerGuy 06-21-2005 01:48 AM

awesome! PLAN TO UPGRADE SOON ENOUGH!

kall 06-21-2005 06:00 AM

*reads from script*

"Installed and....what's that say? Oh! Working perfectly." :)

http://www.nzboards.com/forums/search

bL@De 06-21-2005 06:23 AM

Fantastic! I'll install this a little later tonight, that's one of my hacks out of the way :)

Keep up the good work.

Acers 06-21-2005 02:11 PM

very good man..
grt work.. Will install this once 3.5 comes out officially

Wayne Luke 06-21-2005 04:23 PM

With more and more search engines able to spider dynamic pages what safeguards are in place with a hack like this to prevent duplicate content penalties?

Xenon 06-21-2005 05:38 PM

good question.

actually i just made it, so all of those who are already indexed won't have numerous dead links ;)

noppid 06-21-2005 09:34 PM

Very nice to see this. Thank you.

bL@De 06-22-2005 09:33 AM

Just for the record this worked like a charm :)

Beermonster 06-23-2005 06:12 PM

This is a great mod, but when I logout and try to view one of the threads all I get is Invalid thread!, when I log back in it works perfect

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

BamaStangGuy 08-12-2005 08:15 PM

I get invalid threads as well when logged out or logged in as a non Admin or supermod! Which makes this hack basically pointless right now :devious:

monstergamer 08-13-2005 09:44 PM

Quote:

Originally Posted by BrentWilson
I get invalid threads as well when logged out or logged in as a non Admin or supermod! Which makes this hack basically pointless right now :devious:

hi there Brent, i had the same problem so i did a little edit in the TOPIC file
find
PHP Code:

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


and take it up and upload again, tell me if that works for you like it did for me

BamaStangGuy 08-17-2005 08:20 PM

Ok cool that worked.

Now how do I hide my private forums from people that do not have permission to view them?

I know they can not access them but I do not want them to be seen period

BamaStangGuy 09-08-2005 07:47 AM

Uncached templates: bbcode_quote (3)

Get this when viewing an thread

and I still would like to know why my guests and regular members can see my private forums on the archive forum page.

They can not access them once they click the link but they see they exists.

This is not good

fsw 09-08-2005 04:38 PM

Quote:

Originally Posted by krohnathlonman
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


Quote:

Originally Posted by Xenon
i think i just hardcoded it in config.php

Change Line 59 index.php to this, and then you have.

PHP Code:

            $forumbits .= '<li /><a href="' $archive_options['archiveurl'] . '/'.$archive_options['forumfile'].'/' $forum['forumid'] . '-1.html">' $forum['title'] . '</a>'


fsw 09-08-2005 04:42 PM

Also, on your mod to do whatever on extensions.

Why?

Code:

Options +MultiViews

In .htaccess or httpd.conf will make it so you can have

Code:

http://example.com/_Hi_I_am_a_file_.php
and call it like this

Code:

http://example.com/_Hi_I_am_a_file_/and/I/am/lovely/little/variables/that/get/parsed/out/grabing/PHP_SELF/and/I/can/even/still/do/this?userid=1

fsw 09-08-2005 05:00 PM

You can use the above in any script, with out changing the script, by instead of a url shaped like

Code:

https://vborg.vbsupport.ru/newreply.php?do=newreply&noquote=1&p=769734
you instead shape it like

Code:

https://vborg.vbsupport.ru/newreply/do/newreply/noquote/1/p/769734
and then on the top of each script

PHP Code:

<?
$vars=str_replace("/forum/newreply/","",$PHP_SELF);
$x=explode("/",$vars);
for ($i=0;$i<count($x);$i=$i+2) {
$var=$x[$i];
$val=$x[($i+1)];
$$var=$val;
}

?>


and you have your variables, simple

I used to run something like that on vb 2 back in the old day before the internet.

fsw 09-08-2005 05:03 PM

(note:I know there is like 1200 better ways to write the above, better methods, etc - but I perfer to stick with as few commands in my toolbox as possible, and master what I can do with them, instead of trying to use the whole scope of the language, and master nothing)

xtreme-mobile 10-02-2005 09:18 AM

when i click a thread in the archive i get page cannot be displayed any ideas what ive done wrong?

cheers

xtreme-mobile 10-02-2005 09:32 AM

ok got past this error now but when i click and actuall post it says "invalid post"

any ideas?

dastar 10-02-2005 11:08 AM

Quote:

Originally Posted by xtreme-mobile
ok got past this error now but when i click and actuall post it says "invalid post"

any ideas?

I have the same problem.

wisam74us 10-03-2005 12:20 PM

I used this mod with vb 2.x.x and it was working great .. but now with the last version .. I encounter some proble cause with the last version I enroll the title of the forums and topic in the URL :
but I think the new hack reverse the request of forum number
but for the new version it works for the index of the archive but when I click any link I get this error :
Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT threadid, title
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE forumid = 15
AND visible = 1
AND deletionlog.primaryid IS NULL
ORDER BY sticky DESC, lastpost DESC
LIMIT -200, 200;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-200, 200' at line 8
Error Number : 1064
Date : Monday, October 3rd 2005 @ 08:16:57 AM
Script : http://host/vb5/upload/vbo/forum/15-...5%D8%A9-1.html
Referrer : host/vb5/upload/vbo/
IP Address : ip
Username : wisam
Classname : vb_database

is there any way to fix this .. or please can the coder of the script tell me if I could use the 2.x.x hack with vb 3.5 making some changes

noppid 10-04-2005 12:11 AM

Quote:

Originally Posted by xtreme-mobile
ok got past this error now but when i click and actuall post it says "invalid post"

any ideas?


In topic I replaced...

PHP Code:

$threadinfo verify_id('thread'$threadid11); 

With...

PHP Code:

$thread verify_id('thread'$threadid11);
$threadinfo =& $thread


noppid 10-04-2005 12:27 AM

Quote:

Originally Posted by BrentWilson
and I still would like to know why my guests and regular members can see my private forums on the archive forum page.

They can not access them once they click the link but they see they exists.

This is not good

In index.php I replaced ...

PHP Code:

$forumperms $vbulletin->userinfo['permissions']['forumpermissions']["$forumid"];
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND $vboptions['hideprivateforums']) 


With...

PHP Code:

$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) 


xtreme-mobile 10-04-2005 05:49 AM

Quote:

Originally Posted by noppid
In topic I replaced...

PHP Code:

$threadinfo verify_id('thread'$threadid11); 

With...

PHP Code:

$thread verify_id('thread'$threadid11);
$threadinfo =& $thread



where abouts is topic mate :D

noppid 10-04-2005 01:32 PM

Quote:

Originally Posted by xtreme-mobile
where abouts is topic mate :D

Topic is one of the eight uploaded files. It's actually a php file with no file extension and the .htaccess file makes it work.

Smitty 10-04-2005 08:20 PM

Quote:

Originally Posted by monstergamer
hi there Brent, i had the same problem so i did a little edit in the TOPIC file
find
PHP Code:

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


and take it up and upload again, tell me if that works for you like it did for me

I must be missing something. I can get the listings, and I can get the threads in the index. I did the change to keep private forums from listing - But, when I click on the "(Click here to view the original thread with full colors/images)" in the thread in the index, instead of it taking me to the forum thread, it leaves off my forum directory so I get a 404. I.e.: my forum is at hxxy: // site.com/Forums/ (long story, but yeah - that's a capital F) - The link leaves off the /Forums/ subdirectory.

I tried the above but it didn't work. What am I doing wrong?? Does this (about line 60)
PHP Code:

$forumbits .= '<li /><a href="' $archive_options['archiveurl'] . '/forum/' $forum['forumid'] . '-1.html">' $forum['title'] . '</a>'

in index.php have anythng to do with it?

What do you mean by "and take it up"? Do you mean delete it?

*************

EDIT ADD:


In the 'topic' file, about line 86 I replaced:
PHP Code:

<a href=\"$forumurl/showthread.php?threadid=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a> 

with
PHP Code:

<a href=\"showthread.php?threadid=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a> 

That change solved my problem of linking to the forum thread via the "(Click here to view the original thread with full colors/images)" link.

FYI - Im the config file I have:
PHP Code:

// Forums URL - Directory your vbulletin forums are in (NO TRAILING SLASH!)
$archive_options['forumurl'] = 'http://Elsmar.com/Forums';

// Archive URL - The location of these scripts (NO TRAILING SLASH!)
$archive_options['archiveurl'] = 'http://Elsmar.com/Forums/index'


noppid 10-04-2005 08:51 PM

Here's my fix for the "(Click here to view the original thread with full colors/images)" bad url issue. Notice I also shortened the _REQUEST var to "t" instead of "threadid". That keeps it consistant with the forumdisplay.php output.

PHP Code:

<a href=\"$archive_options[forumurl]/showthread.php?t=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a> 


Smitty 10-04-2005 09:03 PM

Quote:

Originally Posted by noppid
Here's my fix for the "(Click here to view the original thread with full colors/images)" bad url issue. Notice I also shortened the _REQUEST var to "t" instead of "threadid". That keeps it consistant with the forumdisplay.php output.

PHP Code:

<a href=\"$archive_options[forumurl]/showthread.php?t=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a> 


Great. Thanks. I did that as well after reading your post - good way to cut down the length.

xtreme-mobile 10-05-2005 06:07 AM

Quote:

Originally Posted by noppid
In topic I replaced...

PHP Code:

$threadinfo verify_id('thread'$threadid11); 

With...

PHP Code:

$thread verify_id('thread'$threadid11);
$threadinfo =& $thread


sorted cheers mate :)

oh for anyone else doing this when you upload it to your server remove the .php gain cos it will dispaly "page not found" get rid of php and it will work fine :D

thanks noppid


All times are GMT. The time now is 04:47 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.01553 seconds
  • Memory Usage 1,924KB
  • 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
  • (5)bbcode_code_printable
  • (19)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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