The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#732
|
|||
|
|||
Quote:
|
#733
|
||||
|
||||
I use this and find few of my members enjoy it...
thankyou... |
#734
|
|||
|
|||
Quote:
|
#735
|
|||
|
|||
Concept: Forum users create a Journal for a new case. Then, keep a diary and upload their images.
Just need these users of these case journals to be able to keep them private with the exception of admins.... If good fit, anybody want to undertake a paid project estimated at $1500. Forgive me if this is not in the correct spot. Thanks. Call 504-638-1265 |
#736
|
|||
|
|||
Installation went real smooth, I edited permissions, that wents fine. So I decided to test it out, after I create a journal I got this error:
Parse error: parse error, unexpected T_PRIVATE, expecting ']' in /home/allrpg/public_html/forums/journal.php(564) : eval()'d code on line 188 Gives me the same error when I click on "my journal" and "journal index" from the nav bar. Also gives me the same error in the userCP. Not sure what the problem is, I had some database errors during the time I was editing the templates, but I pretty sure that everything edited ok. Any ideas? |
#737
|
||||
|
||||
@Sergg
Quote:
|
#738
|
|||
|
|||
Uh... as far as I know I don't have PHP5, In fact I'm pretty sure were still using PHP3.
|
#739
|
||||
|
||||
Check it. If you are in fact using PHP 3, send me a PM with an ACP login.
(Though I am not sure if it would work with PHP 3 at all ... the minimum requirement for vBulletin itself is 4.1.0) |
#740
|
|||
|
|||
how do i administer it from the backend ... I do not see any settings option .. also I did like to add/edits moods ... how do i do that? Thank you.
|
#741
|
||||
|
||||
Hi -
I added RSS 1.0 (RDF) functionality to my install of vB Journal. Basically, you have to change "SELECT journalist,journalist_id" to "SELECT journalist,journalist_id,journalname,journaldesc" in the downloadjournal section of journal.php, make sure your Unregistered usergroup can view journals in the Admin CP, and paste this code in journal.php after the XML download part: Code:
// RSS 1.0 Begins else if($type=="rss1") { require_once('./includes/class_bbcode.php'); $rss1_header .= "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n\r\n"; $rss1_header .= "<rdf:RDF\r\n"; $rss1_header .= " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\n"; $rss1_header .= " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\r\n"; $rss1_header .= " xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\r\n"; $rss1_header .= " xmlns=\"http://purl.org/rss/1.0/\"\r\n"; $rss1_header .= ">\r\n\r\n"; $rss1_header .= "<channel rdf:about=\"".$vbulletin->options['bburl']."/journal.php?do=downloadjournal&j=".$j."&type=rss1\">\r\n"; if ($journalinfo['journalname'] == "") { $journalinfo['journalname'] = $journalinfo['journalist'] . "'s Blog"; } $rss1_header .= "<title>".htmlspecialchars($journalinfo['journalname'])."</title>\r\n"; $rss1_header .= "<link>".$vbulletin->options['bburl']."/journal.php?do=showjournal&j=".$j."</link>\r\n"; if (empty($journalinfo['journaldesc'])) { $journalinfo['journaldesc'] = $journalinfo['journalist']."'s Blog at ".$vbulletin->options['bbtitle']; } $rss1_header .= "<description>".htmlspecialchars($journalinfo['journaldesc'])."</description>\r\n\r\n"; $rss1_header .= "<items>\r\n"; $rss1_header .= "\t<rdf:Seq>\r\n"; $totalentries = 0; while($entry= $db->fetch_array($getentries)) { if($entry['private']!=1) { $totalentries++; $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $entry['entrytext'] = $parser->do_parse($entry['entrytext']); $entry['entrytext']= unhtmlspecialchars(stripslashes($entry['entrytext'])); $entry['entrytext']= ereg_replace("{smilies}", $vbulletin->options['bburl']."/images/smilies", $entry['entrytext']); $entry['entrytitle']= stripslashes($entry['entrytitle']); $rss1_header .= "\t\t<rdf:li rdf:resource=\"".$vbulletin->options['bburl']."/journal.php?do=showentry&e=".$entry['entry_id']."\" />\r\n"; $rss1_body .= "\t<item rdf:about=\"".$vbulletin->options['bburl']."/journal.php?do=showentry&e=".$entry['entry_id']."\">\r\n"; $rss1_body .= "\t\t<title>".htmlspecialchars($entry['entrytitle'])."</title>\r\n"; $W3CDTFdate = preg_replace("/(\+|\-)([0-9]{2})([0-9]{2})/","$1$2:$3", date("O",$entry['entrydate'])); $rss1_body .= "\t\t<dc:date>".date("Y-m-d",$entry['entrydate'])."T".date("H:i:s",$entry['entrydate']).$W3CDTFdate."</dc:date>\r\n"; $rss1_body .= "\t\t<link>".$vbulletin->options['bburl']."/journal.php?do=showentry&e=".$entry['entry_id']."</link>\r\n"; $rss1_body .= "\t\t<content:encoded><![CDATA[".$entry['entrytext']."]]></content:encoded>\r\n"; $rss1_body .= "\t\t<description>".htmlspecialchars(strip_tags($entry['entrytext']))."</description>\r\n"; $rss1_body .= "\t</item>\r\n\r\n"; } if($totalentries=="15") { break; } } $rss1_header .= "\t</rdf:Seq>\r\n"; $rss1_header .= "</items>\r\n\r\n"; $rss1_header .= "</channel>\r\n\r\n"; $rss1_body .= "</rdf:RDF>"; $filestring = utf8_encode($rss1_header.$rss1_body); $filename = "$journalinfo[journalist]_blog_".vbdate($vbulletin->options['dateformat'], TIMENOW).'.rdf'; header("Content-Type: application/rdf+xml; charset=utf-8"); header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Content-Disposition: attachment; filename="' . $filename . '"'); header('Content-Length: ' . strlen($filestring)); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); echo $filestring; } // RSS 1.0 Ends Edit (2005-03-30): The template is called journal_journalpage - change type=xml to type=rss1 and XML Format to RSS 1.0 Format. Fixed problem with a missing private check. Edit (2005-03-31): Added content:encoded CDATA, and removed UBB tags. Changed items to use URL instead of an arbitrary sequence number. I also like to change "ORDER by entrydate ASC" to DESC in downloadjournal, but this is personal preference. Edit (2005-04-14): I've made quite a few changes to the code, namely adding UTF-8 encoding and using corresponding content-type, adding a check to make sure the journal title isn't empty, limiting the number of items to 15. Edit (2005-11-28): Updated for vB 3.5. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|