PeLLaRaS
Offline
Joined: Apr 27, 2005
Posts: 58
Location: Cyprus
0 👍
/
0 👎
Mon Aug 28, 2006 1:20 pm
It's a class problem.
cvs has a class MB, so does Jokes 2.
In order for Jokes 2 to function with cvs you have to go through all .php and .inc files, and replace MB: with something else, for example MBJ: and the class MB to class MBJ
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0
paperdragon
Offline
Joined: Aug 01, 2005
Posts: 189
Location: California
0 👍
/
0 👎
Tue Aug 29, 2006 3:20 am
ok. will try it out. Thanks.
Always keep a big smile. You will live a long and happy life.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
OS Linux/1.3.37 (Unix)/MySQL 4.1.21/PHP 4.4.4/DF 9.1.0.9 CVS
IgorMM
Offline
Joined: Dec 14, 2005
Posts: 80
Location: ljubljana, slovenia
0 👍
/
0 👎
Wed Sep 13, 2006 4:37 pm
i read allmoust all comments here.
as i can se there ins/t posible to have a subcategoy in jokes 2.0.3 version
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux , 2.0 , 5.0.51a , 5.2.6 , 9.1.2.1
PeLLaRaS
Offline
Joined: Apr 27, 2005
Posts: 58
Location: Cyprus
0 👍
/
0 👎
Thu Sep 14, 2006 11:02 am
No, sorry.
I thought it was not necessary to have subcategories and that categories were enough
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0
pretzy
Offline
Joined: Sep 09, 2005
Posts: 519
Location: Australia
0 👍
/
0 👎
Tue Jan 16, 2007 2:29 am
NOT FOR BEGINNERS please dont use if you dont have some PHP experience
Here is an unnoficial fix to get Jokes2.0.3 working on Dragonfly 9.1.1 , as per PeLLaRaS' instructions above
Please note this worked for me, i do not claim it will work for everyone, please BACK UP YOUR DATABASE and website files before using!!!
Place the two files in the zip archive into the new Jokes 2.0.3 module before uploading to your webserver
I had to restart my Apache and MySql servers to make it stick, but this was on an update
I hope you find this useful, but please dont yel at me if it breaks something, no warrantee expressed or implied
Attachment:
jokes_2.0.3_for_9.1.1_mods.zip
Description
Filename
jokes_2.0.3_for_9.1.1_mods.zip
Filesize
3.77 KiB
Downloaded
334 Time(s)
You are not allowed to view/download this attachment
Pretzy's Place Pertzel Family Tree History Genealogy
Riverlife Church Henty
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
XP_Apache 2.2.2_MySQL 5.0.21_PHP 5.1.4_CPGNuke 9.1.1
hardlocke
Offline
Joined: Jan 06, 2005
Posts: 149
Location: Switzerland
0 👍
/
0 👎
Tue Jan 16, 2007 7:22 pm
this patch work fine for me
but in the jokes module (index.php?name=Jokes) i have no main menu...... what's wrong???
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
W2003/Apache 2.0.5/MYSQL4.0.22/PHP5.1/CGPNuke 9.1.1
pretzy
Offline
Joined: Sep 09, 2005
Posts: 519
Location: Australia
0 👍
/
0 👎
Tue Jan 16, 2007 9:43 pm
hardlocke check your databse , it may be necessary to re-import it to restore your jokes
Is that what you meant ?
Pretzy's Place Pertzel Family Tree History Genealogy
Riverlife Church Henty
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
XP_Apache 2.2.2_MySQL 5.0.21_PHP 5.1.4_CPGNuke 9.1.1
PeLLaRaS
Offline
Joined: Apr 27, 2005
Posts: 58
Location: Cyprus
0 👍
/
0 👎
Thu Feb 15, 2007 2:06 am
I want to apologize to those that had a hart time trying to use this module with dragonfly cms v.9.1.x
I search the forum and found all the problems I could and fixed them, releasing a new version with the following changelog for version 2.0.4:
v.2.0.4
- Fixed a class conflict with dragonfly cms v.9.1.x
- Fixed the insert_id error
- Added the ability to allow enhanced content (pictures, flash, etc)
when posting a joke
- When installing the module, all the blocks will be enable in the
module by default if the dragonfly cms version is 9.1.1 or newer
- Made some corrections to the English language file
You can download Jokes v.2.0.4 from
here
If there is any other problem, please let me know and I'll try to do my best
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0
Last edited by PeLLaRaS on Tue Feb 20, 2007 7:18 pm; edited 2 times in total
BadCO
Offline
Joined: Sep 29, 2004
Posts: 115
0 👍
/
0 👎
Thu Feb 15, 2007 10:18 pm
PeLLaRaS,
Thanks a lot for your continued work on this - its very much appreciated.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.4/5.0.37/5.2/9.1.2.1
PeLLaRaS
Offline
Joined: Apr 27, 2005
Posts: 58
Location: Cyprus
0 👍
/
0 👎
Tue Feb 20, 2007 7:19 pm
Version 2.0.5 is available
Change Log
v.2.0.5
- Fixed the link issue in the block when showing Top 10
or Last 10 Jokes
You can download it from
here
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0
BadCO
Offline
Joined: Sep 29, 2004
Posts: 115
0 👍
/
0 👎
Tue Mar 20, 2007 11:34 pm
I'm not sure why but we've just started getting the following error when attemting to edit/approve jokes ....
Fatal error: Call to undefined function decode_bb_all() in /net/sywww/sypath/cpgn2/modules/Jokes/admin/index.inc on line 289
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.4/5.0.37/5.2/9.1.2.1
Phoenix
Offline
Joined: Apr 19, 2004
Posts: 8841
Location: Netizen
0 👍
/
0 👎
Tue Mar 20, 2007 11:52 pm
It may be the same as I recently found with DownloadsPro when the left column was removed on this site - "includes/nbbcode.php" hasn't been called.
It used to work because something else associated with the left column was already calling it.
• DonationsPro for DragonflyCMS & SMF •
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
BadCO
Offline
Joined: Sep 29, 2004
Posts: 115
0 👍
/
0 👎
Wed Mar 21, 2007 9:50 pm
Bingo .....
For anyone else with this problem then simply add this at line 16 of modules/jokes/admin/index.inc:
require('includes/nbbcode.php');
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.4/5.0.37/5.2/9.1.2.1
PeLLaRaS
Offline
Joined: Apr 27, 2005
Posts: 58
Location: Cyprus
0 👍
/
0 👎
Sat Apr 07, 2007 10:15 am
Version 2.0.6 is available
Change Log
v.2.0.6
- Fixed the module to use $user_prefix correctly
(Thanks to Santiago Radeff for pointing this out
and providing a correct version)
- Fixed the error when trying to add/edit/approve jokes
throught admin menu
- Added a Spanish translation (again thanks to Santiago Radeff)
and a Greek translation
You can download it from
here
I would like to ask everyone that made a translation of the language file to another language and would like to share it, to sent it to me by email (my email address can be found in the
download page ) along with their name or a nickname to include it in the next version
Thank you!
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0
BadCO
Offline
Joined: Sep 29, 2004
Posts: 115
0 👍
/
0 👎
Sat Apr 28, 2007 6:33 pm
PeLLaRaS
Thanks for the continued support. Just to let you know that you have some hard coded links that generate errors for those of us who don't have root directory installs:
listjokes.inc - line 80
Replace:
<td class="row1" onmouseover="this.className=\'row3\';" onmouseout="this.className=\'row1\';" onclick="window.location=\''.getlink("&jid=$jid".((isset($cid)) ? "&cid=$cid" : "").(($mode=='newjokes') ? "&c=0" : (($mode=='search') ? "&term=$term" : ""))."&sortby=$sortby&ad=$ad").'\'" width="35%">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&mode=edit&jid=".$jid).'"><img border="0" src="/modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<a class="forumlink" href="'.getlink("&jid=$jid".((isset($cid)) ? "&cid=$cid" : "").(($mode=='newjokes') ? "&c=0" : (($mode=='search') ? "&term=$term" : ""))."&sortby=$sortby&ad=$ad").'">'.$title.'</a></td>
With:
<td class="row1" onmouseover="this.className=\'row3\';" onmouseout="this.className=\'row1\';" onclick="window.location=\''.getlink("&jid=$jid".((isset($cid)) ? "&cid=$cid" : "").(($mode=='newjokes') ? "&c=0" : (($mode=='search') ? "&term=$term" : ""))."&sortby=$sortby&ad=$ad").'\'" width="35%">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&mode=edit&jid=".$jid).'"><img border="0" src="modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<a class="forumlink" href="'.getlink("&jid=$jid".((isset($cid)) ? "&cid=$cid" : "").(($mode=='newjokes') ? "&c=0" : (($mode=='search') ? "&term=$term" : ""))."&sortby=$sortby&ad=$ad").'">'.$title.'</a></td>
Joke.inc lines 55-57
Replace:
<td width="70%"><div class="genmed" style="width: 90%;" align="justify">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&mode=edit&jid=".$joke['jid']).'"><img border="0" src="/modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<span class="gen"><strong>'.decode_bb_all($joke['title']).'</strong></span><br /></div></td>
<td width="30%" align="center" valign="middle"><a href="'.getlink("&print=".$joke['jid']).'"><img border="0" src="/modules/'.$module_name.'/images/actions/print.gif" align="baseline" alt="'._PRINT.'" /></a>';
/*<a href="'.getlink("&email=".$joke['jid']).'"><img border="0" src="/modules/'.$module_name.'/images/actions/email.gif" align="baseline" alt="'._EMAIL.'" /></a>*/
With:
<td width="70%"><div class="genmed" style="width: 90%;" align="justify">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&mode=edit&jid=".$joke['jid']).'"><img border="0" src="modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<span class="gen"><strong>'.decode_bb_all($joke['title']).'</strong></span><br /></div></td>
<td width="30%" align="center" valign="middle"><a href="'.getlink("&print=".$joke['jid']).'"><img border="0" src="modules/'.$module_name.'/images/actions/print.gif" align="baseline" alt="'._PRINT.'" /></a>';
/*<a href="'.getlink("&email=".$joke['jid']).'"><img border="0" src="modules/'.$module_name.'/images/actions/email.gif" align="baseline" alt="'._EMAIL.'" /></a>*/
comments.inc - line42
Replace:
<td width="20%" height="100" class="'.$rowclass.'" valign="top">'.($tuid == 1 ? '<span class="gen"><strong>'.$name.'</strong></span><br /><br /><img src="/images/avatars/gallery/blank.gif" alt="" /><br />' : '<span class="gen"><strong>'.$username.'</strong></span><br /><br /><img src="'.($at == 2 ? $uavatar : ($at == 3 ? '/images/avatars/'.$uavatar : '/uploads/avatars/'.$uavatar)).'" alt="" /><br />').'</td>
With:
<td width="20%" height="100" class="'.$rowclass.'" valign="top">'.($tuid == 1 ? '<span class="gen"><strong>'.$name.'</strong></span><br /><br /><img src="images/avatars/gallery/blank.gif" alt="" /><br />' : '<span class="gen"><strong>'.$username.'</strong></span><br /><br /><img src="'.($at == 2 ? $uavatar : ($at == 3 ? 'images/avatars/'.$uavatar : 'uploads/avatars/'.$uavatar)).'" alt="" /><br />').'</td>
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.4/5.0.37/5.2/9.1.2.1