Login
User Name:

Password:



Register
Forgot your password?
Template missing: ADMIN_MEMBER_DELETE
Aug 30, 2010, 9:45 pm
By Kline
Making Messes
Aug 5, 2010, 8:46 pm
By Conner
Personal CSS substitution
Aug 5, 2010, 7:00 pm
By Conner
No preview on post edits?
Aug 5, 2010, 11:17 am
By Conner
Video BBCode Buttons
Aug 3, 2010, 11:12 am
By Conner
QSF Portal 1.5
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.6
Author: Samson
Submitted by: Samson
QSF Portal 1.4.6
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.5
Author: Samson
Submitted by: Samson
QSF Portal 1.4.5
Author: QSF Portal Team
Submitted by: Samson
CommonCrawl, Yahoo!, Google, Yandex

Members: 0
Guests: 1
Stats
Files
Topics
Posts
Members
Newest Member
31
197
873
59
norby500
Affiliates
Arthmoor Quicksilver Forums
View our reviews on Hot Scripts
» QSF Portal » QSF Portal Project » Feature Requests » WebSVN Integration
Forum Rules | Mark all | Recent Posts

WebSVN Integration
< Newer Topic :: Older Topic > Feature created as Modlet

Pages:<< prev 1 next >>
Post is unread #1 Aug 8, 2009, 10:54 am
Go to the bottom of the page Go to the top of the page
Kline
Newbie
GroupMembers
Posts12
JoinedMay 21, 2008

Given that I'm HTML/PHP/QSFP Template retarded, maybe someone can help me figure out how to do this if it doesn't make it into QSFP as an additional feature.

I have a QSFP site. I have a WebSVN site. I'd like to be able to make a small statically placed block somewhere on the page that shows brief information about the latest commit, similar to the display here, under "Revision Information".

Is this something easily done?
       
Post is unread #2 Aug 17, 2009, 6:50 pm
Go to the bottom of the page Go to the top of the page


Samson
Administrator
GroupAdministrators
Posts315
JoinedOct 9, 2006
WWW

I'd actually like to do the same here but I don't know exactly how to go about that since QSFP and WebSVN are so totally alien to each other. I guess it would require some kind of bridge between them in order for QSFP to pull the needed data. .........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
       
Post is unread #3 Aug 18, 2009, 7:27 am
Go to the bottom of the page Go to the top of the page
kiasyn
Newbie
GroupMembers
Posts24
JoinedOct 11, 2006


<?php
$website "http://www.ackmud.net/websvn/listing.php?repname=ackfuss&path=%2F&rev=0&sc=0";
$websvn file_get_contents$website );
$matches = array();

$author null;
$rev 0;
/* author */
if ( preg_match'/Rev &amp; Author:\\<\\/td\\>\\<td class\\="row0"\\>Rev (\d+) - (.*)/'$websvn$matches ;) {
    $author $matches[2];
    $rev $matches[1];
}
else
    echo "No match for author";

$matches = array();
if ( preg_match'/Last modification:\\<\\/td\\>\\<td class\\="row1"\\>Rev (\d+) \\- (.*)\\<\\/td\\>\\<\\/tr\\>/'$websvn$matches ;) {
    $modification $matches[2];
}
$matches = array();
if ( preg_match'/Log message:\\<\\/td\\>\\<td class\\="row0"\\>(.*)\\<\\/td\\>\\<\\/tr\\>/'$websvn$matches ;) {
    $message $matches[1];
}
echo "Revision {$rev} by {$author} on {$modification}\n{$message}\n";
       
Pages:<< prev 1 next >>