View Full Version : Forum Styles
Sam_Spoon
22nd June 2009, 10:59 AM
I'm looking for a little help apending Proboards forums into the forum_styles file so I can perform a thread suck.
What language is that file written in? PHP?
FYI, the format is as follows:
http://tscelebs.proboards.com/index.cgi?board=newsreaders&action=display&thread=13291&page=45
cybormatt
22nd June 2009, 11:35 AM
Sam,
You are the first to ask about this. The file is written in XML with embedded javascript. Basically, you're telling IHG how the URLs of the forum should look for each page that it is going to suck. I'll get back to you on an appropriate entry for this. I never built a front-end editor (like I did for the host file), so you'll have to put it in manually
Sam_Spoon
22nd June 2009, 11:40 AM
I did look inside the file in the hope that there would be a entry similar enough to the Proboards url that I could do it myself. But all the existing entries are different enough to confound a non-coder like myself.
Thanks again for your time, Matt. Much appreciated.
cybormatt
22nd June 2009, 11:31 PM
Sam, thankfully, the proboards is very similar to vBulletin style used here on DS. Don't worry too much about the coding part. Most of it is actually understanding regular expressions and using them to find the patterns. I have concocted the following entry:
<forum id="ProBoards">
<urlpattern>http:\/\/.+\/index\.cgi\?.*thread=[0-9]*</urlpattern>
<searchpattern><![CDATA[function(threadURL) {
return threadURL.match(/http:\/\/.+\/index\.cgi\?.*thread=[0-9]*/) + "&page=" + linkIndex;
}]]></searchpattern>
</forum>
I don't have an account on this forum, so I can not test it. You will have to add it and let me know if it works. If it does, I will add it to the next release for everyone to use.
Sam_Spoon
23rd June 2009, 01:11 AM
I'm running a test as we speak and so far, so good. If you were a woman I'd give you a kiss but since you're not, please accept a manly handshake and slap on the back instead!
cybormatt
23rd June 2009, 04:19 AM
Okay good... a handshake and a slap on the back will do. I will add it to the next release :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.