The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Journal for vBulletin 3.0.3(v1.0.1) Details »» | |||||||||||||||||||||||||
vB Journal v1.0.1 By Antonbomb22(Anthony Scudese) vB Journal 1.5 Beta 1 is now available, click here. Features:
Version 1.0.1:
Features for later versions:
Demos: Add-Ons(I Will not give support for these because i did not create them):
Side Credits:
Notes:
Support: ~READ FIRST POST COMPLETELY BEFORE POSTING PROBLEMS AND MAKE SURE YOU DID ALL EDITS AND REQUIREMENTS!~ Support may be denied if provided files are edited/modified and support may be stopped at any time due to any circumstances. If you should run into any errors, problems, confusion, or maybe even a suggestion please foward them to one of the following places:
Contents of Zip:
I have also provided several screenshots Please click install If you are missing phrases or blank spaces in the usergroup manager click here. Updates/Fixes:
Supporters / CoAuthors Show Your Support
|
Comments |
#382
|
||||
|
||||
Hi -
I added RSS 1.0 (RDF) functionality to my install of vB Journal. Basically, you have to change "SELECT journalist" to "SELECT journalist,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/functions_bbcodeparse.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=\"".$vboptions['bburl']."/journal.php?do=downloadjournal&j=".$j."&type=rss1\">\r\n"; if ($journal['journalname'] == "") { $journal['journalname'] = $journal['journalist'] . "'s Blog"; } $rss1_header .= "<title>".htmlspecialchars($journal['journalname'])."</title>\r\n"; $rss1_header .= "<link>".$vboptions['bburl']."/journal.php?do=showjournal&j=".$j."</link>\r\n"; if (empty($journal['journaldesc'])) { $journal['journaldesc'] = $journal['journalist']."'s Blog at ".$vboptions['bbtitle']; } $rss1_header .= "<description>".htmlspecialchars($journal['journaldesc'])."</description>\r\n\r\n"; $rss1_header .= "<items>\r\n"; $rss1_header .= "\t<rdf:Seq>\r\n"; $totalentries = 0; while($entry= $DB_site->fetch_array($getentries)) { if($entry['private']!=1) { $totalentries++; $entry['entrytext']= parse_bbcode2($entry['entrytext'], 0, $setting['allow_imgcode'], $setting['allow_smilies'], $setting['allow_bbcode']); $entry['entrytext']= unhtmlspecialchars(stripslashes($entry['entrytext'])); $entry['entrytext']= ereg_replace("{smilies}", $vboptions['bburl']."/images/smilies", $entry['entrytext']); $entry['entrytitle']= stripslashes($entry['entrytitle']); $rss1_header .= "\t\t<rdf:li rdf:resource=\"".$vboptions['bburl']."/journal.php?do=showentry&e=".$entry['entry_id']."\" />\r\n"; $rss1_body .= "\t<item rdf:about=\"".$vboptions['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>".$vboptions['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 = "$journal[journalist]_blog_".vbdate($vboptions['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. |
#383
|
|||
|
|||
Any update on the port from the older journal system?
|
#384
|
||||
|
||||
Quote:
|
#385
|
||||
|
||||
Quote:
|
#386
|
|||
|
|||
Not sure if it has been mentioned, but latest journal post in postbit could be good, instead of just a link.
Any update on the port? |
#387
|
||||
|
||||
Has anyone else experienced the situation where the adding/editing of jbuddies just seems to refresh the page?
I check the userfield table and the name is there, but only the last one I added...each one overwrites the old ones. |
#388
|
|||
|
|||
Are the cumulative fixes listed in the initial post a part of the latest package, or do they need to be installed after the fact?
|
#389
|
||||
|
||||
Ok in this fix it fixes the permissions troubles people have been having and also the mood troubles occuring. please overwrite journal_entrybits template with this:
HTML Code:
<a name="e$entry[entry_id]"><table class="tborder" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" border="0" align="center" width="100%"> <tr> <td class="thead" align="$stylevar[left]"><div style="float:right"><a href="#e$entry[entry_id]"># $enum</a></div><a href="journal.php?do=showentry&e=$entry[entry_id]">$entry[entrytitle]</a></td> </tr> <tr> <td class="alt1" align="$stylevar[right]"><div class="smallfont">Date Posted: $entry[date] at <span class="time">$entry[time]</span> <if condition="$canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"></if>Comments ($entry[comments])<if condition="$canview[comments]"></a></if></div></td> </tr> <tr> <td class="alt2" align="$stylevar[left]"><if condition="$show[mood] OR $entry[mood]>0"><div class="smallfont">Mood: <img src="$entry[mood_image]" alt="$entry[mood_name]" /></div><hr /></if>$entry[entrytext]</td> </tr> <tr> <td class="alt1" align="$stylevar[right]"><div style="float:left"><!-- <a href="journal.php?do=report&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/report.gif" alt="Report This Journal Entry to an Administrator" border="0" /></a> --><if condition="$bbuserinfo[usergroupid]==6"><img src="$stylevar[imgdir_button]/ip.gif" border="0" title="Ip: $entry[ipaddress]" /></if><if condition="$can[comment] AND $canview[comments]"><a href="journal.php?do=showcomments&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/discuss.gif" border="0" alt="Discuss This Entry" /></a></if></div><if condition="($caneditown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]=='6')"><a href="journal.php?do=editentry&j=$j&e=$entry[entry_id]"><img src="$stylevar[imgdir_button]/edit.gif" border="0" /></a></if><if condition="($candeleteown[entry] AND $bbuserinfo[userid]==$journalinfo[journalist_id]) OR ($bbuserinfo[usergroupid]==6)"><a href="journal.php?do=delete&j=$j&e=$entry[entry_id]&t=e"><img src="$stylevar[imgdir_button]/delete.gif" border="0" /></a></if></td> </tr> </table></a> <br /> i will update the zip shortly |
#390
|
||||
|
||||
Thanks again for all the hard work on this!!!
|
#391
|
||||
|
||||
quick question would be if i applied fixes from before is it nessessary carry out this one or is it ok to leave it ?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|