Support ⇒ Modules & Blocks ⇒ Jokes 2 Module ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

Jokes 2 Module Reply to topic

Go to page Previous 1, 2, 3, 4, 5, 6, 7 Next

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


ok. will try it out. Thanks.

Always keep a big smile. You will live a long and happy life. Big grin

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


i read allmoust all comments here.

as i can se there ins/t posible to have a subcategoy in jokes 2.0.3 version Confused Confused Confused

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux , 2.0 , 5.0.51a , 5.2.6 , 9.1.2.1


No, sorry.

I thought it was not necessary to have subcategories and that categories were enough Neutral

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


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 Wink
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


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


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


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


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


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


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


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):


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


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


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("&amp;jid=$jid".((isset($cid)) ? "&amp;cid=$cid" : "").(($mode=='newjokes') ? "&amp;c=0" : (($mode=='search') ? "&amp;term=$term" : ""))."&amp;sortby=$sortby&amp;ad=$ad").'\'" width="35%">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&amp;mode=edit&amp;jid=".$jid).'"><img border="0" src="/modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<a class="forumlink" href="'.getlink("&amp;jid=$jid".((isset($cid)) ? "&amp;cid=$cid" : "").(($mode=='newjokes') ? "&amp;c=0" : (($mode=='search') ? "&amp;term=$term" : ""))."&amp;sortby=$sortby&amp;ad=$ad").'">'.$title.'</a></td> With: <td class="row1" onmouseover="this.className=\'row3\';" onmouseout="this.className=\'row1\';" onclick="window.location=\''.getlink("&amp;jid=$jid".((isset($cid)) ? "&amp;cid=$cid" : "").(($mode=='newjokes') ? "&amp;c=0" : (($mode=='search') ? "&amp;term=$term" : ""))."&amp;sortby=$sortby&amp;ad=$ad").'\'" width="35%">'.(can_admin($module_name)?'<a href="'.adminlink("$module_name&amp;mode=edit&amp;jid=".$jid).'"><img border="0" src="modules/'.$module_name.'/images/actions/edit.gif" align="baseline" alt="'._EDITJOKE.'" /></a> ':'').'<a class="forumlink" href="'.getlink("&amp;jid=$jid".((isset($cid)) ? "&amp;cid=$cid" : "").(($mode=='newjokes') ? "&amp;c=0" : (($mode=='search') ? "&amp;term=$term" : ""))."&amp;sortby=$sortby&amp;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&amp;mode=edit&amp;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("&amp;print=".$joke['jid']).'"><img border="0" src="/modules/'.$module_name.'/images/actions/print.gif" align="baseline" alt="'._PRINT.'" /></a>'; /*<a href="'.getlink("&amp;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&amp;mode=edit&amp;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("&amp;print=".$joke['jid']).'"><img border="0" src="modules/'.$module_name.'/images/actions/print.gif" align="baseline" alt="'._PRINT.'" /></a>'; /*<a href="'.getlink("&amp;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

All times are UTC
Go to page Previous 1, 2, 3, 4, 5, 6, 7 Next


Jump to: