[BETA] RecipeBB - Recipe Storing Mod - v0.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
dapaintballer333
Registered User
Posts: 177
Joined: Sat Oct 23, 2004 4:02 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1

Post by dapaintballer333 » Sat Apr 14, 2007 9:51 pm

fine lets call it v.0.1.0 if it lets you sleep at night

and to answer the useful reply, yes, if you convert the forum recipes become normal posts.

User avatar
3Di
Former Team Member
Posts: 14494
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1

Post by 3Di » Sat Apr 14, 2007 10:00 pm

dapaintballer333 wrote: fine lets call it v.0.1.0 if it lets you sleep at night

and to answer the useful reply, yes, if you convert the forum recipes become normal posts.


Let's FIX the version number all over this topic ASAP, so I can sleep.
I'm not used to make not useful replies, this is the last call.
Your sarcasm it is not appreciated here.

Thank you. Awaiting then. 8)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

dapaintballer333
Registered User
Posts: 177
Joined: Sat Oct 23, 2004 4:02 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by dapaintballer333 » Sun Apr 15, 2007 1:00 am

Ok, I fixed it.

Sorry for the sarcasm, but really, I just made this to help the requesters & for experience, I could pretty much care less about where or how I post it, without really wanting credit.

I'll use this special version scheme from now on, sorry... :?

Bullmax
Registered User
Posts: 2016
Joined: Fri Jan 30, 2004 3:36 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by Bullmax » Sun Apr 15, 2007 4:35 pm

What is this part of the code supposta do?

Code: Select all

#
#-----[ OPEN ]----------------------------------------------
#
viewforum.php
#
#-----[ FIND ]----------------------------------------------
#
	$template->assign_block_vars('switch_no_topics', array() );

#
#-----[ IN-LINE FIND ]--------------------------------------
#


#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
	

#
#-----[ FIND ]-------

dapaintballer333
Registered User
Posts: 177
Joined: Sat Oct 23, 2004 4:02 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by dapaintballer333 » Sun Apr 15, 2007 4:47 pm

Sorry, leave it alone, it adds a space but it isn't necessary, I have a script generate most of the mod actions.

Bullmax
Registered User
Posts: 2016
Joined: Fri Jan 30, 2004 3:36 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by Bullmax » Sun Apr 15, 2007 8:09 pm

Hi, I am getting this error message after submitting a recipe post or any post.
Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/folder/public_html/forums/posting.php on line 605


This is line 605:

Code: Select all

prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, addslashes(htmlspecialchars_decode($_POST['title'])));

User avatar
3Di
Former Team Member
Posts: 14494
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by 3Di » Sun Apr 15, 2007 8:26 pm

htmlspecialchars-decode

this function only works with (PHP 5 >= 5.1.0) .. hence this MOD can't be submitted to the MODDB for phpBB 2.0.x actually. Basically that function reverses what htmlspecialchars does (it is used to sanitize some inputs prior to be injected into the DB).
The use of this line

Code: Select all

addslashes(htmlspecialchars_decode($_POST['title']))
does not make any sense there though, also.. the use of $_POST leads to security issues usually, read: not to be used at all.
I did not look at all the code, just read the above post.
regards
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by igorw » Sun Apr 15, 2007 8:34 pm

Here's what you can add to functions.php if you want to use htmlspecialchars_decode() anyway (this is from phpBB3):

Code: Select all

if (!function_exists('htmlspecialchars_decode'))
{
	/**
	* A wrapper for htmlspecialchars_decode
	* @ignore
	*/
	function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT)
	{
		return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
	}
}
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
3Di
Former Team Member
Posts: 14494
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by 3Di » Sun Apr 15, 2007 8:41 pm

eviL<3 wrote: Here's what you can add to functions.php if you want to use htmlspecialchars_decode() anyway (this is from phpBB3):

Code: Select all

if (!function_exists('htmlspecialchars_decode'))
{
	/**
	* A wrapper for htmlspecialchars_decode
	* @ignore
	*/
	function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT)
	{
		return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
	}
}

http://it.php.net/manual/en/function.ht ... decode.php
http://algorytmy.pl/doc/php/function.ht ... decode.php

Code: Select all


geoffers@gmail
14-Jul-2005 03:38

[Update of previous note, having noticed I forgot to put in quote style]

PHP4 Compatible function:

<?php

function htmlspecialchars_decode_php4 ($str, $quote_style = ENT_COMPAT) {
   return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
}

?>
;)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by igorw » Sun Apr 15, 2007 9:09 pm

I know where it's from originally :P Just didn't want to go and digg it out :D Thanks!
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

cavallino
Registered User
Posts: 317
Joined: Thu Aug 04, 2005 7:06 am

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by cavallino » Mon Apr 16, 2007 7:33 am

Well,
let's hope dapaintballer333 when he has time, will take the suggestions here and update the mod accordingly :)

Bullmax
Registered User
Posts: 2016
Joined: Fri Jan 30, 2004 3:36 pm

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by Bullmax » Mon Apr 16, 2007 11:17 pm

cavallino wrote: Well,
let's hope dapaintballer333 when he has time, will take the suggestions here and update the mod accordingly :)


Me too. I like this mod.

whodat63
Registered User
Posts: 32
Joined: Thu Feb 22, 2007 5:21 am

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by whodat63 » Thu Apr 26, 2007 8:53 pm

Any further progress with this mod???

User avatar
shaykana
Registered User
Posts: 108
Joined: Mon Sep 04, 2006 12:11 am
Location: Canada
Contact:

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by shaykana » Sat Apr 28, 2007 1:56 am

I too am looking forward to this MOD's successful release as I've just added a recipe section to my forum a couple weeks ago!

User avatar
SAFFLEUR
Registered User
Posts: 323
Joined: Thu Nov 24, 2005 5:56 am
Location: Lenoir NC
Contact:

Re: [BETA] RecipeBB - Recipe Storing Mod - v0.1.0

Post by SAFFLEUR » Fri May 25, 2007 10:48 pm

Is this still being developed? It's perfect for what I want to use it for but I'm holding off installing it.

Post Reply

Return to “[2.0.x] MODs in Development”