News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Create a standalone HTML version of your messageboard - beta

Started by inthe80s, March 27, 2007, 09:59:16 PM

Previous topic - Next topic

inthe80s

This is TOTALLY BETA!  Never given out before, use at your own risk!!!

Archive Script - Beta 0.1
by Charles R. Grosvenor Jr.  - http://www.chuckyg.com - [email protected]

This script can be seen in use at http://www.inthe00s.com/archive/

This script can be downloaded at http://www.inthe00s.com/archive/archive.zip

Purpose:
To capture all of the threads and messages from an active SMF board and build static HTML pages.

Requirements:
You will need the ability to upload PHP scripts.

You will need to edit this program's configuration files if you wish to disable certain boards from being created.

You will need Server Side Includes (SSI) in order for the navigation links to be visible on the message pages.

To customize, you will need to understand HTML.

Installation:
Read the include me for the details.

Why?
If you're like me, you want the search engines to index your site, but SMF isn't designed to allow search engine spiders easy access.  They hit servers kind of hard, tend to index a lot of stuff you'd prefer they didn't, and generally don't bring in much traffic anyways. 

So this script reads all the messages from your SMF board, builds some ASCII datafiles, and then builds static HTML pages from those datafiles.  You can point the search engine to look at your archive (also builds a sitemap.xml for the search engines) instead of your regular forum. 

With adsense, I found that I made way more money from the archives than I could from the ads on the messageboard.  I even ended up removing the ads from everything except the archives.

What's the Catch?
I'm pretty busy battling some spam issues with my server and one of my sites at the moment, so I have no idea how quick I can respond to questions people have.  This is also the very first public version available, so I have no idea how friendly it is for someone who has never used it before to try it out. 

It doesn't write anything to the database, so you shouldn't need to worry about backing anything up, but that's up to you.  If you don't back it up and something happens, it ain't my problem.  I've been using these scripts for 3 years without an issue.
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

EDITED!

DUH!  I found the changed archive_defaults_auto.php that your program created, in the protected folder!  It worked... now lemme continue the process,and I will reply as to how it goes.  still you need to know about the error I was reporting below. and yes, it also made one on my home pc.  THANKS
original reply below.



Hello,

I ran the setup on my test setup on home pc with apache mysql and php 4.6 and I get this error

Notice: Undefined offset: 0 in D:\public_html\bbs\protected\archive_setup.php on line 60

line 60 is in this section of code


# build directory array
ksort($arrayName);
for ($loop=0; $loop<=$maxId; $loop++ ){
if ( empty($boards[$loop]) ) {
$dirName = preg_replace("/\W/", "", strtolower($boardTitles[$loop]));
$boards[$loop] = $dirName;
}



specifically this line:



$dirName = preg_replace("/\W/", "", strtolower($boardTitles[$loop]));


I am excited about using your program.  any ideas whats the matter?

I also tried on my live bbs and it did not give the error but I assume it had the same error, because it did not create any files in the archive folder.  it did make the archive folder though.  on my home pc, the same thing happened, and when I changed the error reporting on the php.ini file, it also ran and did nothing, and did not report this error.  so, on my home pc, when I have error reporting from php.ini on STRICT, then it does tell me the error is on line 60

what are those /\W/"  ???

thanks,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

I have an update.

I have finished the process on my HOME bbs.  now, the part where you run the archive_create_indexfile.php
and then click the Start at the begining, it took 13 minutes for 332 threads and 554 messages.

then, it made lotsa files in folders for each board, and separate sitemap.xml file INSIDE each folder for each board, and one BIG one that refers to the little ones.  Hope that is clear to folks. ok lookit, the big sitemap.xml has entries like this:


<sitemap>
<loc>http://localhost/bbs/archive/apostolicnews/sitemap.xml</loc>
<lastmod>2007-04-07</lastmod>
</sitemap>


and then inside that folder is another sitemap.xml with entries like this:


<url>
	
	
<
loc>http://localhost/bbs/archive/apostolicnews/smf/1172106074.shtml</loc>
	
	
<
lastmod>2007-04-07</lastmod>
	
	
<
changefreq>weekly</changefreq>
	
	
<
priority>0.8</priority>
</
url>


and also entries for monthly index.

Now, I have a question.  In the instructions, it says:

Quote from: instructions
You will want to create a default file in the archive folder and include the
index_include.shtml if you want to use it for the list of the boards
available.


I have NO IDEA what this default file should be, nor how to include  the index_include.shtml for, what??  I do not understand this quoted paragraph at all.  Can anyone help me??

I am going to run it now on my live bbs.  I like the idea, and need a better sitemap.xml for google.  I would like to have had SEARCH ENGINE FRIENDLY URLS in this???  Maybe the author has considered that and found using these date codes better?  I do not know. but what is nice, if I understand this, is that the urls point to archived messages, so if your forum crashes, they are still accessible...

however, if people reach them from search engines, they will get these plain vanilla pages with the messages?  am I right?  so there is alot to consider.

I may be wrong about all that, I am so new to all this, maybe the spider will go to the real page and get that???  LOL

I have not figured out how to add header and footer yet.

This is fun!  thank you for sharing this program with us!

nada

WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

took 11 minutes on the live bbs, about the same number of threads and messages.. gonna upload it to google, and see how it goes.
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

update:

I submitted the sitemap.xml to google and it has been accepted and read, had 486 links in it, where my old one only had like 70.  so we shall see, after next times the bot comes by, how it works out.

thanks again to the author for being generous to share a personal program!
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

spiros

Haven't tested it yet but it looks impressive!

Can I ask you something, is there a way to create a hyperlinked table of contents in a single page (containing hyperlinked topic titles only) for each board?

There is also a SEO script for SMF which also does similar things, http://www.webmasterstalks.com/tpmod.html;dl=item46 any experience on that?

ladynada

WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

I keep getting error 404 on the shtml files and do not understand what they are and why this happens. I did some searches on google but understand even less.  seems like a command on the htaccess is needed but I want to know what I am doing before editing it.
can someone explain?
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

Quote from: instructions
You will want to create a default file in the archive folder and include the
index_include.shtml if you want to use it for the list of the boards
available.

can anyone answer this?

google bot is getting errors on these pages..
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

I get an error that says

[an error occurred while processing this directive]

when I run this

http://www.heartdaughter.com/overcomers/archive/breakingandurgent/index_04_2007.shtml

here is what is inside the file



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>The Two Witnesses Messages from April 2007</title>
<meta name="description" content="The Two Witnesses Messages from April 2007" />
<meta name="keywords" content="April, 2007, forum, messages" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
</head>

<body><br /><div class="MainBody">
<h1>The Two Witnesses</h1><p><i>Posting Here is CLOSED Until They Arrive</i></p><br /><div class="MessageLink">This is an index of topics from the <a href="http://heartdaughter.com/overcomers/index.php?board=28.0">The Two Witnesses</a> topic on the <a href="http://heartdaughter.com/overcomers/">The Two Witnesses</a><br /><div class="MessageLink"><!--#include virtual="/archive/thetwowitnesses//header_2007.html"--></div><br />
<span style="font-size: 18pt;">April 2007</span>

<ul>
<li><!-- FIRSTDATE04/19/07 at 4:03 amFIRSTDATE --><a href="/archive/thetwowitnesses/smf/1176973384.shtml">THE TWO WITNESSES ARE ELIJAH AND THE DAUGHTER OF ZION</a> by ladynada - 04/19/2007</li>
<li><!-- FIRSTDATE04/04/07 at 1:57 pmFIRSTDATE --><a href="/archive/thetwowitnesses/smf/1175713024.shtml">SEARCHING FOR THE TWO WITNESSES</a> by ladynada - 04/04/2007</li>
</div>


<div class="copyright">
Copyright 2007
</div>


</body>
</html>



any help would be appreciated, I wish the author would come back to check on this.

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

inthe80s

oh boy... I didn't mark the thread to notify me of responses, so I wasn't aware anyone even tried this.  So very sorry about that.

I'll try and respond tonight to the problems people are having, I was just stopping in quickly before running out the door for the afternoon.
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

Quote from: inthe80s on April 19, 2007, 01:08:55 PM
oh boy... I didn't mark the thread to notify me of responses, so I wasn't aware anyone even tried this.  So very sorry about that.

I'll try and respond tonight to the problems people are having, I was just stopping in quickly before running out the door for the afternoon.

Blessings on you for your generosity to share this mod.

I fixed my problem, but when I went to post here earlier today, my firefox crashed, and then I got busy and forgot

I suspect you have your forum in your root of your website, because the links were wrong in the shtml files for the actual messages, so all I had to do was change the location in one of your files, and then it works GREAT!

the answer for me was in here


# the root url of the messageboard, everything that precedes /index.php in your URL
$server_root $boardurl;
# name of the site
$boardName $mbname;
# ABSOLUTE path of the site
$rootDirectory '/home/pudnintane/public_html/';



so it was the $rootDirectory that I had to edit.

it is wonderful and I am looking forward to google using the sitemap.  google was already using it, but had some 404 errors on the messages, now it will be fine

thanks again
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

inthe80s

Quote from: ladynada on April 19, 2007, 01:16:59 PM
Blessings on you for your generosity to share this mod.
not a problem, several people have asked me in the past for it, but the code was pretty messy and not well suited for others.

Quote
I fixed my problem, but when I went to post here earlier today, my firefox crashed, and then I got busy and forgot

I suspect you have your forum in your root of your website, because the links were wrong in the shtml files for the actual messages, so all I had to do was change the location in one of your files, and then it works GREAT!

the answer for me was in here


# the root url of the messageboard, everything that precedes /index.php in your URL
$server_root $boardurl;
# name of the site
$boardName $mbname;
# ABSOLUTE path of the site
$rootDirectory '/home/pudnintane/public_html/';



so it was the $rootDirectory that I had to edit.

it is wonderful and I am looking forward to google using the sitemap.  google was already using it, but had some 404 errors on the messages, now it will be fine

cool, glad you were able to figure it out. 

Yes, I do have my messageboard in my root, I tried to extract out most of the paths so it would be easy to change for people who didn't.  if you have any recommendations on what I could add to the readme file to help others who may have a similar issue, let me know and I'll add it.

google, yahoo and msn all support a new addition to your robots.txt file, so once you're comfortable with your sitemap working, you can add a line in your robots.txt for all the search engines to find it automatically.
Running SMF since May '04.  Started with YaBB on Oct 2001.

inthe80s

Quote from: spiros on April 12, 2007, 07:57:22 AM
Haven't tested it yet but it looks impressive!

Can I ask you something, is there a way to create a hyperlinked table of contents in a single page (containing hyperlinked topic titles only) for each board?

There is also a SEO script for SMF which also does similar things, http://www.webmasterstalks.com/tpmod.html;dl=item46 any experience on that?

the SEO script looks like it just modifies the links to your existing forum topics and indexes so they look like regular html files. 

The archive program I have is designed to make a backup of your database into a simple text database and then build a second low-bandwidth version of the topics as static html files. 

In my opinion, the SEO script isn't very useful.  Google will index a forum whether it's got regular php links or not.  I know because I had to block all search engines from my forums and point them to the static version I build, so they don't index the print links, and the reply links, etc.

I don't think either script is doing what you need it to.  You want just a list of forum topics per board?  I could probably modify one of the scripts to create that, I don't think it would take very long.
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

Quote from: inthe80s on April 19, 2007, 07:04:14 PM
Quote from: ladynada on April 19, 2007, 01:16:59 PM
Blessings on you for your generosity to share this mod.
not a problem, several people have asked me in the past for it, but the code was pretty messy and not well suited for others.

Quote
I fixed my problem, but when I went to post here earlier today, my firefox crashed, and then I got busy and forgot

I suspect you have your forum in your root of your website, because the links were wrong in the shtml files for the actual messages, so all I had to do was change the location in one of your files, and then it works GREAT!

the answer for me was in here


# the root url of the messageboard, everything that precedes /index.php in your URL
$server_root $boardurl;
# name of the site
$boardName $mbname;
# ABSOLUTE path of the site
$rootDirectory '/home/pudnintane/public_html/';



so it was the $rootDirectory that I had to edit.

it is wonderful and I am looking forward to google using the sitemap.  google was already using it, but had some 404 errors on the messages, now it will be fine

cool, glad you were able to figure it out. 

Yes, I do have my messageboard in my root, I tried to extract out most of the paths so it would be easy to change for people who didn't.  if you have any recommendations on what I could add to the readme file to help others who may have a similar issue, let me know and I'll add it.

google, yahoo and msn all support a new addition to your robots.txt file, so once you're comfortable with your sitemap working, you can add a line in your robots.txt for all the search engines to find it automatically.

Hi,

I do not understand what the line in robots.txt file should be to point it to this archive. Please tell me cuz that is exactly what I want to do.


oh and.. well, actually I give credit to God for helping me figure out what to change to make it work for me.  ummm.. because the key was to NOT change whatever variable you were using to KNOW where my forum was and its messages.  I only wanted to change the variable you were using to WRITE the addresses of where the plain text messages were kept.  I knew it didnt matter whether the archive folder was in my root or in my forum folder, so that was easy to ignore.  so actually I fixed it but did not know how (God helps me)

I hope that helps you figure out what to say in the readme to help folks know which one to edit and what to put there.  It WAS GOOD that your descriptions highlighted the word URL so I knew that would require an http: and not a /home type thing. 


thanks,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

Oh I forgot.  I actually have a multitude of OTHER questions for you!

I could not figure out how to use the header and footer files you mentioned. you did not include any.  I just put some html inside there, and it worked, but I want to include a php file actually so I can track when people and bots access the archive.

http://heartdaughter.com/archive/index_include.shtml

you can see mine here.

I added a little menu, it looks flaky.  I dont understand the coding you used where you had code and arrows and stuff.. I read the help file for apache...  what I really need, as I say, is to INCLUDE a php file for my bot tracker.

I kinda figure that I could make an index.php and you said include that other file in it, and that way I could have my tracker, but I want the tracker on every page..

I hope this all makes sense!

thanks again,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

inthe80s

Quote from: ladynada on April 19, 2007, 10:13:37 PM
Oh I forgot.  I actually have a multitude of OTHER questions for you!

I could not figure out how to use the header and footer files you mentioned. you did not include any.  I just put some html inside there, and it worked, but I want to include a php file actually so I can track when people and bots access the archive.

http://heartdaughter.com/archive/index_include.shtml

you can see mine here.

I added a little menu, it looks flaky.  I dont understand the coding you used where you had code and arrows and stuff.. I read the help file for apache...  what I really need, as I say, is to INCLUDE a php file for my bot tracker.

I kinda figure that I could make an index.php and you said include that other file in it, and that way I could have my tracker, but I want the tracker on every page..

I hope this all makes sense!

thanks again,
nada


I don't think you can include php files in there, because the file extensions are .shtml  I would have to rewrite the scripts to output php files.  The headers and footers can only by html code.

arrows and stuff?  I don't know what you're talking about

the index_include.shtml is meant to be used inside of an index.shtml file you can make yourself, that way you can give out just an domain.com/archive link instead of a longer path, A file something like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Messageboard Archive Index</title>
<meta name="description" content="Messages from the forum bbs" />
<meta name="keywords" content="forum, messages, index" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
li { padding-bottom: 8px; font-size: 14pt; }
ul { padding-bottom: 8px; }
.headings { font-size: 18pt; width: 800px;}
</style>
<script type="text/javascript"> </script>
</head>

<body>
<!--#include virtual="index_include.shtml"-->

</body>
</html>
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

oooh you are a dream!

thank you!

I will use that.  and yes that answered my question.

nada

yes its nice

http://heartdaughter.com/archive/index.shtml

now who do I tell to look at that?  robots?

WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

inthe80s

Quote from: ladynada on April 20, 2007, 09:42:40 PM
oooh you are a dream!

thank you!

I will use that.  and yes that answered my question.

nada

yes its nice

http://heartdaughter.com/archive/index.shtml

now who do I tell to look at that?  robots?



make a file called robots.txt with Notepad and upload it to the ROOT of your domain.  Place this line in it

Sitemap: http://heartdaughter.com/archive/sitemap.xml

If you do a google search for robots.txt they you will find more about telling the search engines how to better index your site.
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

Quote from: inthe80s on April 21, 2007, 08:10:38 AM
Quote from: ladynada on April 20, 2007, 09:42:40 PM
oooh you are a dream!

thank you!

I will use that.  and yes that answered my question.

nada

yes its nice

http://heartdaughter.com/archive/index.shtml

now who do I tell to look at that?  robots?



make a file called robots.txt with Notepad and upload it to the ROOT of your domain.  Place this line in it

Sitemap: http://heartdaughter.com/archive/sitemap.xml

If you do a google search for robots.txt they you will find more about telling the search engines how to better index your site.


I unastan!  thank you so much.  I fixed it.

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

ANOTHER BUGABOO UPDATE !!!!

hello,

I just found out because google said file not found on one of the sitemap.xml files WITHIN a message board folder, THAT, I needed to change ANOTHER file definition in the:

archive_defaults.php

okay, where it says:

$web_root =

I had to put in the absolute address, which is that I want the sitemap.xml to refer to the /archive/ folder in my web ROOT, and NOT in the FORUM folder.

hoping this makes sense

so I changed mine to
$web_root = '/home/pudnintane/public_html/archive/';


then in
archive_create_index.php

look for

fwrite($root_sitemap_file, "\t\t<loc>".$server_root.$url."shtml</loc>\n");

and change to

fwrite($root_sitemap_file, "\t\t<loc>".'/home/pudnintane/public_html'.$url."shtml</loc>\n");

basically changing $server_root to '/home/pudnintane/public_html'

ummmmmmmmmmmmmmmm..........

basically, uncomment the echo command that precedes the two places where a sitemap.xml is WRITTEN, and when you look at the output while it is running you will see whether it is writing the correct address for where you keep your archives, which for me, is in the root.

soo bottom line, is I messed it up, and I fixed it, but my fix is so convoluted that it would be better to start all over and clarify your variables as to which ones are used to FIND your forum files, and which ones are used to WRITE the location addresses inside the shtml and sitemap.xml files, according to where the ARCHIVE folder is kept.  I hope that makes sense.  because i had to hard code the location of my archive folder where it writes the shtml file NAME because it was adding an extra slash with the $url variable, and I could have used $webroot there but cannot because I need to have that slash for another spot.  hmmmmmmmmmm........

lemme know if you have any questions,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada



WATCH OUT!


I made a HUGE mistake in my previous message.

only that, I needed to put the URL not the path in there for webroot and the other spot

DUH



okay so I put um

http://heartdaughter.com/archive/ for webroot

and

'http://heartdaughter.com'  in the other file

so basically, JUST IGNORE ME ON THIS

because I hosed it all up, but it works now for me...

sorry, I do not want to confuse anyone, this program is great, google is starting to index the whole archive

oh yea I had to edit the Worcester Talk to what I wanted, also.

just to let you know..

nada


WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

screech!

I need some more help again.

on the output page with the actual message, at the top where it says,

This is a topic from the blah blah topic on the blah blah and it can still

receive new replies.

the receive new replies link is wrong for me, it does not have the folder of my forum in the address

I looked in archive_create_messages.php and see the code where this is written to the file



fwrite($smf_message_file_handle, $output_header);
fwrite($smf_message_file_handle, "\t".'<br /><div class="MessageLink">This is a topic from the <a href="'.$server_root.'/index.php?board='.$boardIndex.'.0">'.$boardTitles[$boardIndex].'</a> topic on the <a href="'.$server_root.'/">'.$boardName.'</a>');
if ( $link != "" ) {
fwrite($smf_message_file_handle, ', and it can still <b><a href="'.$link.'">receive new replies</a></b>.</div>'."\n");
}



but I can not see where $link is defined... so that I can put in the right url to my forum

thanks for any help,
nada

I have hosed this all up royally, I am sorry
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

inthe80s

Quote from: ladynada on May 01, 2007, 01:59:03 AM
screech!

I need some more help again.

on the output page with the actual message, at the top where it says,

This is a topic from the blah blah topic on the blah blah and it can still

receive new replies.

the receive new replies link is wrong for me, it does not have the folder of my forum in the address

I looked in archive_create_messages.php and see the code where this is written to the file



fwrite($smf_message_file_handle, $output_header);
fwrite($smf_message_file_handle, "\t".'<br /><div class="MessageLink">This is a topic from the <a href="'.$server_root.'/index.php?board='.$boardIndex.'.0">'.$boardTitles[$boardIndex].'</a> topic on the <a href="'.$server_root.'/">'.$boardName.'</a>');
if ( $link != "" ) {
fwrite($smf_message_file_handle, ', and it can still <b><a href="'.$link.'">receive new replies</a></b>.</div>'."\n");
}



but I can not see where $link is defined... so that I can put in the right url to my forum

thanks for any help,
nada

I have hosed this all up royally, I am sorry


the link is coming from the datafile, which is built in archive_create_datafile, and appears to need $server_root defined.  In the default archive_defaults, it should be pulling it from the $boardurl variable defined in your boards configuration file.
Running SMF since May '04.  Started with YaBB on Oct 2001.

ladynada

Quote from: inthe80s on May 01, 2007, 04:57:09 PM
Quote from: ladynada on May 01, 2007, 01:59:03 AM
screech!

I need some more help again.

on the output page with the actual message, at the top where it says,

This is a topic from the blah blah topic on the blah blah and it can still

receive new replies.

the receive new replies link is wrong for me, it does not have the folder of my forum in the address

I looked in archive_create_messages.php and see the code where this is written to the file



fwrite($smf_message_file_handle, $output_header);
fwrite($smf_message_file_handle, "\t".'<br /><div class="MessageLink">This is a topic from the <a href="'.$server_root.'/index.php?board='.$boardIndex.'.0">'.$boardTitles[$boardIndex].'</a> topic on the <a href="'.$server_root.'/">'.$boardName.'</a>');
if ( $link != "" ) {
fwrite($smf_message_file_handle, ', and it can still <b><a href="'.$link.'">receive new replies</a></b>.</div>'."\n");
}



but I can not see where $link is defined... so that I can put in the right url to my forum

thanks for any help,
nada

I have hosed this all up royally, I am sorry


the link is coming from the datafile, which is built in archive_create_datafile, and appears to need $server_root defined.  In the default archive_defaults, it should be pulling it from the $boardurl variable defined in your boards configuration file.

I love you!  I just peeked in here to see if you stopped by... I will work on it it now, thanks so much..

I love your program! its working excellently for me. I am finding my stuff on the search engines, and near the tops of lists for certain things that are very important to me.

thanks again. I will let you know how I make out with this fix

I am sure I am the one who messed it up!

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

Hi,

I checked and I had not changed the code in archive_defaults.php
where it was

$server_root = $boardurl;

but I did change it and put in the http address, and ran it, but it still
used the wrong adresss, so in the other file

archive_create_datafile.php, I had to hard code the address in there

fwrite($smf_index_file_handle, $output_filename.'|'.'http://heartdaughter.com/overcomers'.'/index.php?topic='.$indexFile[(int)$filepos].'.0');
            

and now it works..

I dunno what I hosed up, thank you for helping me...

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

okie dokie!

I double checked everything and yes it is all good now.

thank you again.

now for example.. I have a child board on a lady named Bertha Dudde, and I checked Google on her and I am in the top 10.. see? so your program is EXCELLENT!

yAY!

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

okay, I have been naughty again... messing with your code..

I was greedy and wanted to eliminate the times when two words in the keyword section would be run together.. they needed a space, and the reason they were run together is that there was a <br /> in between, them, one word was at the end of a sentence, and the next word was at the beginning of the next sentence.

I also wanted no commas in my keywords so that phrases would not be broken up.  by the way, I am talking about the html page of the message itself.

so...  I changed a bunch of stuff. and I hope I have this straight so I can tell you.  also, this maintains the smileys, so if you do not want them in yours, you need to know that (defeats the plain text motif)

in archive_create_messages.php

I inserted

$postBody = parse_bbc($postBody);

after



list($filename, $link, $postSubject, $postName, $postTime, $postBody) =   explode("|", $entry);



this change.. I dunno, I liked the result, it kept my smileys

then I added a bunch of crazy code in the place where you strip the html off the description



$description = trim(un_htmlspecialchars(strip_tags(htmlspecialchars($postBody))));

$description = preg_replace( '!\s*<br(\s*/)?>\s*!i', " ", $description);
$description = preg_replace( '/<[^>]+>/', '', $description);
$description = preg_replace( '!</[a-z]+>!i', '', $description);
$description = preg_replace( '/&nbsp;/', ' ', $description);



what this does is put spaces between keywords that, before, were run together.

to remove the commas I made this change



// $phrases.=", ";
$phrases.=" ";



also the place where you test if a keyword is greater than 4 chars, I changed to 0 because I want all of it, I need the phrases...

Here is the reason for my insanity.. firstly I love to code, and learn new coding.. so I was fooling around..

also, however, I did some searches on Google, and I am finding that my pages rank higher on 'phrases'.  now this might be due to the content on my site, which has a lot of bible verses, and there are very popular phrases from these verses.. so that is why I had to delete the commas, and stop the run on words

I hope this is at least interesting to you..

I had to add some more pregnant replaces ( I like to call it that )



$description = preg_replace( '/&#124;/', ' ', $description);
$description = preg_replace( '/&quot;/', ' ', $description);
$description = preg_replace( '/&#039;/', '\' ', $description);
$description = preg_replace( '/’/', '\' ', $description);
$description = preg_replace( '/.../', '-', $description);



honestly, I am having fun fooling with this..

here is one of my pages

http://www.heartdaughter.com/archive/adminannouncements/smf/1177526628.shtml

regards,
nada

crazee coder
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

another idea has popped into my pointy little head...

what if...

I added an input line when a user posts a new topic, that asks for keywords....

regards,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

pro2share

this just totally screwed my site up.. it came out with an error for load.php.. and now the forum isnt inside mlportal, and all of the packages have to be reinstalled.. i am kinda mad now.. this is a lot of work to fix..

ladynada

Quote from: pro2share on May 02, 2007, 01:54:12 AM
this just totally screwed my site up.. it came out with an error for load.php.. and now the forum isnt inside mlportal, and all of the packages have to be reinstalled.. i am kinda mad now.. this is a lot of work to fix..

hmmm.. you did not give much information about what exactly went wrong.  I did not write the mod, but from what I understand of it, it should not affect your forum at all.  All it does is make copies of your messages into a folder called archive; it does not change your forum at all...  ???


yes, I just scanned the readme file again, this mod does not change anything on your forum at all.

give us more information and someone may be able to help you.

regards,
nada

WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

Peter Duggan

Quote from: pro2share on May 02, 2007, 01:54:12 AM
this just totally screwed my site up.. it came out with an error for load.php.. and now the forum isnt inside mlportal, and all of the packages have to be reinstalled.. i am kinda mad now.. this is a lot of work to fix..

So didn't you read the first words of the author's original post?

Quote from: inthe80s on March 27, 2007, 09:59:16 PM
This is TOTALLY BETA!  Never given out before, use at your own risk!!!

(It's not like you hadn't been warned...)

::)

texasflats

I'm getting a couple of errors. It goes through the process of building the pages then lands on these two errors:

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /directory/yada/public_html/protected/archive_create_datafile.php on line 26

And:

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 'ORDER BY posterTime ASC' at line 4
File: /directory/yada/public_html/protected/archive_create_datafile.php
Line: 75


I check the index_include.shtml file and the boards are listed, about half of them work, but the last half don't, the directories are empty.

Thanks in advance for any help.

pro2share

well, i did the install from the protected folder.. it make the archive, but nothing was in the folder..

now i cant use mkportal.. i clicked to have the forum inside mk.. but it doesnt want to go that way :(

www.pro2share.com, check it out

i redid all of the databases scratching them to only the groups, members, catagories, and posts.. but the forum still doesnt wanna communicate with mkportal


when i first installed it.. it had an error with the install file, which then just closed off everything to the site.. the quick reply was some display error.. you couldnt reply because of that..

i have no idea what could have happened.. but installing that was the only thing that i did..

texasflats

Thought I was missing something, so I started fresh. Three tries with the same results. It will create some fine but a lot of the directories it creates are just empty.


ladynada

Quote from: pro2share on May 02, 2007, 10:00:36 PM
well, i did the install from the protected folder.. it make the archive, but nothing was in the folder..

now i cant use mkportal.. i clicked to have the forum inside mk.. but it doesnt want to go that way :(

www.pro2share.com, check it out

i redid all of the databases scratching them to only the groups, members, catagories, and posts.. but the forum still doesnt wanna communicate with mkportal


when i first installed it.. it had an error with the install file, which then just closed off everything to the site.. the quick reply was some display error.. you couldnt reply because of that..

i have no idea what could have happened.. but installing that was the only thing that i did..

I hope the mod author can help you.

I am trying hard to figure out what happened from what you have added here, but I do not know anything about mkportal.  Does your mkportal setup already have a archive folder?? 

If I remember right, when you run the install program for this mod, yes, it makes an archive folder, and yes it should be empty, because you have to run another program to put the files in the archive folder; so that was normal.

did you edit the archive_defaults.php?   will you post it here with the code commands, so when the mod author comes back, he can look at that too.  there may be a clue there, if you changed something that would affect your forum.

all this mod does is READ your database, it does not write to it, as far as I know and can tell.

sorry I could not help more than that so far,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

pro2share

well i am not a php coder.. i know the basucs.. so i wouldnt edit that..

i dont kno why this would happen..

i get this error..

Fatal error: Call to undefined function: create_title() in /home/pro2shar/public_html/omfg/Sources/Load.php(1726) : eval()'d code on line 79

snakeplissken

Quote from: texasflats on May 02, 2007, 08:31:42 PM
I'm getting a couple of errors. It goes through the process of building the pages then lands on these two errors:

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /directory/yada/public_html/protected/archive_create_datafile.php on line 26

And:

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 'ORDER BY posterTime ASC' at line 4
File: /directory/yada/public_html/protected/archive_create_datafile.php
Line: 75


I check the index_include.shtml file and the boards are listed, about half of them work, but the last half don't, the directories are empty.

Thanks in advance for any help.

I believe these are caused by gaps in the $boardTitles array in your archive_defaults_mine file. What I did was fill in the missing gaps with
e.g.
   4 => 'unused',

texasflats

SP,
I think you have put me on the right track, thanks for your response.

Below is my archive_defaults_mine.php file, alot of the board arrays are blank. I'm not sure if thats the way it should be or not.

<?php 
$boardTitles 
= array(
=> 'News and Announcements',
=> 'Boats',
=> 'Tackle',
=> 'Trade',
=> 'Texas Fishing Reports',
=> 'Texas Conservation',
=> 'Test Area',
13 => 'Upcoming Texas Events',
14 => 'Texas Fly Fishing',
15 => 'Texas Kayak Fishing',
18 => 'Recycled Topics',
20 => 'Maintenance',
21 => 'Reported Topics',
22 => 'Moderator Discussion',
23 => 'General Fishing',
24 => 'General Boating',
26 => 'Texas Tournament Fishing',
27 => 'Sponsor Area',
28 => 'Feedback and Comments',
29 => 'Texas Hunting Discussion',
30 => 'Fishing Partners',
31 => 'Recipes',
32 => 'General Texas Discussion',
33 => 'Contributors',
34 => 'General Freshwater Discussion',
);

$boards = array(
=> '',
=> 'newsandannouncements',
=> 'boats',
=> 'tackle',
=> 'trade',
=> 'texasfishingreports',
=> 'texasconservation',
=> 'testarea',
=> '',
=> '',
10 => '',
11 => '',
12 => '',
13 => 'upcomingtexasevents',
14 => 'texasflyfishing',
15 => 'texaskayakfishing',
16 => '',
17 => '',
18 => 'recycledtopics',
19 => '',
20 => 'unused',
21 => 'unused',
22 => 'unused',
23 => 'generalfishing',
24 => 'generalboating',
25 => '',
26 => 'texastournamentfishing',
27 => 'unused',
28 => 'feedbackandcomments',
29 => 'texashuntingdiscussion',
30 => 'fishingpartners',
31 => 'recipes',
32 => 'generaltexasdiscussion',
33 => 'unused',
34 => 'generalfreshwaterdiscussion',
);

$boardDescriptions = array(
=> 'REPLY ONLY: Site news and announcements will be posted here. ',
=> 'Buy and sell boats and accessories.',
=> 'Buy and sell fishing tackle and equipment.',
=> 'Barter, trade and swap here.',
=> 'Everyone loves a good fishing report. ',
=> 'Discuss Texas conservation issues, inshore or offshore.',
=> 'Use this area to test board functions.',
13 => 'If you have an event you want posted to the calendar just send me a pm.',
14 => 'A place for the Texas Fly anglers to discuss the art of Fly Fishing.',
15 => 'An area for the Texas kayak anglers to discuss all things YAK.',
18 => 'This board is for moderators only. Please don\'t re-post deleted post without Administrator approval.',
20 => 'Mechanical issues, tips and tricks or general maintenance.',
21 => 'Moderators: This is where post reports are sent, please check here often.',
22 => 'General discussion are for moderators.',
23 => 'General fishing discussion and conversation. ',
24 => 'General Texas boating discussion.',
26 => 'Texas coast fishing tournament discussion.',
27 => 'This is a private board only viewable by Site Sponsors and Global Moderators',
28 => 'Post comments or feed back about Texas Flats.',
29 => 'By popular demand, a place for Texans to talk hunting.',
30 => 'Use this forum to find a fishing buddy, someone to hang out with, or a wife. It\'s up to you!',
31 => 'Seafood recipes from the field.',
32 => 'If you have a topic that doesn\'t relate to fishing this would be the place for it.',
33 => 'Viewable only to Global Moderators and Contributors.',
34 => 'Freshwater fishing discussion and reports.',
);

$categoryName = array(
=> 'General Texas Discussion',
=> 'Texas Classifieds',
=> 'Texas Saltwater Fishing',
=> 'Administration',
=> 'Texas Boating Discussion',
=> 'Texas Hunting',
=> 'Texas Freshwater Fishing',
);

$boardCategory = array(
=> '1',
=> '2',
=> '2',
=> '2',
=> '3',
=> '3',
=> '1',
13 => '1',
14 => '3',
15 => '3',
18 => '4',
20 => '6',
21 => '4',
22 => '4',
23 => '3',
24 => '6',
26 => '3',
27 => '4',
28 => '1',
29 => '7',
30 => '3',
31 => '3',
32 => '1',
33 => '4',
34 => '8',
);




$hotKeywords='firefox,insurance,hotels,film,home,car,schools,acting,credit,cheap,digital,hotel,film schools,software,new,auto insurance,rental,free,travel,auto,video,mortgage,flights,editing,refinance,loans,uk,computer,buy,extended stay,home insurance,training,travel insurance,cars,debt,furniture';


$header_index=<<<code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BOARDTITLE Messages from MONTH YEAR</title>
<meta name="description" content="BOARDTITLE Messages from MONTH YEAR" />
<meta name="keywords" content="MONTH, YEAR, forum, messages" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
</head>

<body>
code;

$footer_index=<<<code


<div class="copyright">
Copyright 2007
</div>


</body>
</html>
code;

$googleAd_index=<<<code
<br />
code;


$sitemapHeader=<<<code
<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
code;

$sitemapHeader2=<<<code
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">
code;

$sitemapFooter = '
</urlset>
';

$indexTemplate = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BOARDTITLE Index, Worcester Talk</title>
<meta name="description" content="Messages from the BOARDTITLE forum" />
<meta name="keywords" content="forum, messages, pop culture, index, decade" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
<script type="text/javascript"> </script>
</head>

<body>
<div style="padding: 10px;">
<h1>BOARDTITLE</h1>
<p><i>BOARDESCRIPTION</i></p>

<!--#include virtual="include_index.html"-->
</div>

<div class="copyright">
Copyright 2006-2007, by Charles R. Grosvenor Jr.
</div>


</body>
</html>
';

$messageHeader= '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>INTHE00S_ARCHIVE</title>
<meta name="description" content="INTHE00S_DESCRIPTION" />
<meta name="keywords" content="INTHE00S_KEYWORDS" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
</head>

<body>
<div class="MainBody">


';


$googleAd_message=<<<code
code;

$messageFooter=<<<code
</div>

<div class="copyright">
Copyright 2006-2007, by Charles R. Grosvenor Jr.
</div>


</body>
</html>

code;
?>

snakeplissken

Try changing it to this, it should work fine.

Quote from: texasflats on May 03, 2007, 08:05:19 AM

<?php 
$boardTitles 
= array(
=> 'News and Announcements',
=> 'Boats',
=> 'Tackle',
=> 'Trade',
=> 'Texas Fishing Reports',
=> 'Texas Conservation',
=> 'Test Area',
=> 'unused',
=> 'unused',
10 => 'unused',
11 => 'unused',
12 => 'unused',
13 => 'Upcoming Texas Events',
14 => 'Texas Fly Fishing',
15 => 'Texas Kayak Fishing',
16 => 'unused',
17 => 'unused',
18 => 'Recycled Topics',
19 => 'unused',
20 => 'Maintenance',
21 => 'Reported Topics',
22 => 'Moderator Discussion',
23 => 'General Fishing',
24 => 'General Boating',
25 => 'unused',
26 => 'Texas Tournament Fishing',
27 => 'Sponsor Area',
28 => 'Feedback and Comments',
29 => 'Texas Hunting Discussion',
30 => 'Fishing Partners',
31 => 'Recipes',
32 => 'General Texas Discussion',
33 => 'Contributors',
34 => 'General Freshwater Discussion',
);

$boards = array(
=> '',
=> 'newsandannouncements',
=> 'boats',
=> 'tackle',
=> 'trade',
=> 'texasfishingreports',
=> 'texasconservation',
=> 'testarea',
=> '',
=> '',
10 => '',
11 => '',
12 => '',
13 => 'upcomingtexasevents',
14 => 'texasflyfishing',
15 => 'texaskayakfishing',
16 => '',
17 => '',
18 => 'recycledtopics',
19 => '',
20 => 'unused',
21 => 'unused',
22 => 'unused',
23 => 'generalfishing',
24 => 'generalboating',
25 => '',
26 => 'texastournamentfishing',
27 => 'unused',
28 => 'feedbackandcomments',
29 => 'texashuntingdiscussion',
30 => 'fishingpartners',
31 => 'recipes',
32 => 'generaltexasdiscussion',
33 => 'unused',
34 => 'generalfreshwaterdiscussion',
);

$boardDescriptions = array(
=> 'REPLY ONLY: Site news and announcements will be posted here. ',
=> 'Buy and sell boats and accessories.',
=> 'Buy and sell fishing tackle and equipment.',
=> 'Barter, trade and swap here.',
=> 'Everyone loves a good fishing report. ',
=> 'Discuss Texas conservation issues, inshore or offshore.',
=> 'Use this area to test board functions.',
13 => 'If you have an event you want posted to the calendar just send me a pm.',
14 => 'A place for the Texas Fly anglers to discuss the art of Fly Fishing.',
15 => 'An area for the Texas kayak anglers to discuss all things YAK.',
18 => 'This board is for moderators only. Please don\'t re-post deleted post without Administrator approval.',
20 => 'Mechanical issues, tips and tricks or general maintenance.',
21 => 'Moderators: This is where post reports are sent, please check here often.',
22 => 'General discussion are for moderators.',
23 => 'General fishing discussion and conversation. ',
24 => 'General Texas boating discussion.',
26 => 'Texas coast fishing tournament discussion.',
27 => 'This is a private board only viewable by Site Sponsors and Global Moderators',
28 => 'Post comments or feed back about Texas Flats.',
29 => 'By popular demand, a place for Texans to talk hunting.',
30 => 'Use this forum to find a fishing buddy, someone to hang out with, or a wife. It\'s up to you!',
31 => 'Seafood recipes from the field.',
32 => 'If you have a topic that doesn\'t relate to fishing this would be the place for it.',
33 => 'Viewable only to Global Moderators and Contributors.',
34 => 'Freshwater fishing discussion and reports.',
);

$categoryName = array(
=> 'General Texas Discussion',
=> 'Texas Classifieds',
=> 'Texas Saltwater Fishing',
=> 'Administration',
=> 'Texas Boating Discussion',
=> 'Texas Hunting',
=> 'Texas Freshwater Fishing',
);

$boardCategory = array(
=> '1',
=> '2',
=> '2',
=> '2',
=> '3',
=> '3',
=> '1',
13 => '1',
14 => '3',
15 => '3',
18 => '4',
20 => '6',
21 => '4',
22 => '4',
23 => '3',
24 => '6',
26 => '3',
27 => '4',
28 => '1',
29 => '7',
30 => '3',
31 => '3',
32 => '1',
33 => '4',
34 => '8',
);




$hotKeywords='firefox,insurance,hotels,film,home,car,schools,acting,credit,cheap,digital,hotel,film schools,software,new,auto insurance,rental,free,travel,auto,video,mortgage,flights,editing,refinance,loans,uk,computer,buy,extended stay,home insurance,training,travel insurance,cars,debt,furniture';


$header_index=<<<code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BOARDTITLE Messages from MONTH YEAR</title>
<meta name="description" content="BOARDTITLE Messages from MONTH YEAR" />
<meta name="keywords" content="MONTH, YEAR, forum, messages" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
</head>

<body>
code;

$footer_index=<<<code


<div class="copyright">
Copyright 2007
</div>


</body>
</html>
code;

$googleAd_index=<<<code
<br />
code;


$sitemapHeader=<<<code
<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
code;

$sitemapHeader2=<<<code
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">
code;

$sitemapFooter = '
</urlset>
';

$indexTemplate = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BOARDTITLE Index, Worcester Talk</title>
<meta name="description" content="Messages from the BOARDTITLE forum" />
<meta name="keywords" content="forum, messages, pop culture, index, decade" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
<script type="text/javascript"> </script>
</head>

<body>
<div style="padding: 10px;">
<h1>BOARDTITLE</h1>
<p><i>BOARDESCRIPTION</i></p>

<!--#include virtual="include_index.html"-->
</div>

<div class="copyright">
Copyright 2006-2007, by Charles R. Grosvenor Jr.
</div>


</body>
</html>
';

$messageHeader= '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>INTHE00S_ARCHIVE</title>
<meta name="description" content="INTHE00S_DESCRIPTION" />
<meta name="keywords" content="INTHE00S_KEYWORDS" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="classification" content="personal" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<style type="text/css" title="currentStyle">
/*******************************************************************************
  Message stuff
*******************************************************************************/
/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

/* surrounds all the messages, not the header and footer */
.MainBody{
padding-left: 20px;
padding-right: 20px;
}

/* used for the stuff that appears the top of the page */
.navigationBar {
padding-left: 20px;
padding-right: 20px;
font-family: verdana, sans-serif; font-size: 10pt;
}

/* surrounds entire message */
.MessageEntire {
padding: 20px;
border: 1pt solid black;
}

.MessageSubject {
}
.MessageSubject1 {
}
.MessageSubject2 {
font-weight: bold;
}

/* encompasses the author and the date */
.MessageAuthor {
}
.MessageAuthor1 {
}
.MessageAuthor2 {
font-weight: bold;
}

.MessageDate1 {
}
.MessageDate2 {
font-weight: bold;
}

.MessageText {
}


.copyright {
padding-top: 20px;
padding-right: 10px;
font: 8pt Verdana, Tahoma, helvetica, arial, sans-serif;
font-style: italic;
text-align: right;
}
</style>
</head>

<body>
<div class="MainBody">


';


$googleAd_message=<<<code
code;

$messageFooter=<<<code
</div>

<div class="copyright">
Copyright 2006-2007, by Charles R. Grosvenor Jr.
</div>


</body>
</html>

code;
?>


Nifelhein

Man, this might be perfect for an inactive board I have and want to turn into an archive. how doe this handle attachments, by the way?

texasflats

SP, that got me a lot further. All but one board is showing up in the archive, and I still get the same errors I posted earlier, but I'm several steps closer.

I sure do appreciate you taking the time to help me, thanks.   :)

ladynada

Quote from: pro2share on May 02, 2007, 11:24:01 PM
well i am not a php coder.. i know the basucs.. so i wouldnt edit that..

i dont kno why this would happen..

i get this error..

Fatal error: Call to undefined function: create_title() in /home/pro2shar/public_html/omfg/Sources/Load.php(1726) : eval()'d code on line 79

Hi,

I did a search here for the command create_title() and it is NOT found in this mod's files, nor in my sources, nor my default theme's files.  So maybe it has something to do with your portal program?

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

Quote from: Nifelhein on May 03, 2007, 12:27:23 PM
Man, this might be perfect for an inactive board I have and want to turn into an archive. how doe this handle attachments, by the way?

I do not have any attachments.. so I dont know at this point.
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

Quote from: texasflats on May 02, 2007, 08:31:42 PM
I'm getting a couple of errors. It goes through the process of building the pages then lands on these two errors:

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /directory/yada/public_html/protected/archive_create_datafile.php on line 26

<snip>

in line 22 of archive_create_datafile.php
you could uncomment this line

   #echo $filename;

by taking off the # and watch your display to see what filename it errors on.. the file probably does not exist, and therefore the zero length

I am just guessing on that

nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

Nifelhein

Thanks for the reply nada, I do think this is a great piece of code and will try it around once I set for a new host. I hope the coding is not that hard for me to deal with, though I am willing to learn and can trust you and the others here to help me make it work for me. :)

ladynada

I am back to cause people to twiddle their hair between their fingers.

Earlier I mentioned that  I want to add keywords to the top of a new topic posting.  well, here is what I done did.

in post.template.php add to the array



'kword' => array('code' => 'kword', 'before' => '[kword]', 'after' => '[/kword]', 'description' => 'Keywords'),



in your sources folder add to Subs.php after you make a backup


array(
'tag' => 'kword',
'before' => '<div class="kword">',
'after' => '</div>',
'block_level' => true,
),


make yourself a little KW button and put it in your images/bbc/ folder called kword.gif



you can use mine if you want

in your styles.css created a new class like this


.kword
{
color: #FFFF00; /* bright yellow */
font-size: medium;
text-align: center;
padding: 5px 1px 5px 1px;
background: url(images/kword.jpg) repeat;
border: inset 3px #6B4913;
background-color: #EFEBDD; /* lite tan */

}


make your self a nice graphic that is opposite your color scheme, so if you have a light scheme, make it dark back with bright letters.  its up to you  :)

so here is how it looks in the archive

http://www.heartdaughter.com/archive/antichristkingdom/smf/1178473268.shtml

here is what ends up in the html


<meta name="keywords" content="carnal death blood guts devastation mainstream media news MSM This is all about the mind and absolute BEAST within us If this does not prove to you that we needed a Saviour be renewed completely into new being then I" />


and here is how it looks on the forum



WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

I am tying up loose ends here on my postings.  I posted a thread on a tip that resulted in a program that makes your meta name keywords 100% relevant to a thread's first message.

http://www.simplemachines.org/community/index.php?topic=171220.0

I posted only the simple version there on that thread, as I went on afterward to add many features, but I have not posted the final version.

That thread and the program relate to this thread, because today I simply made my program into a function call and added it to this thread's mod, and now it works fine with this mod and adds my keywords to the archived messages for the search robots.

thats it,
nada
WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

ladynada

WORK for Truth, Print it, Take Time to READ ALL LINKS NOTED  click here --> The TWO Witnesses are Mom and Dad and SMF Skins

Advertisement: