Twitter SMFHacks Facebook SMFHacks SMFHacks.com
Home Forum Index Hacks Products Login Register Search
  Show Posts
Pages: [1]
1  Modifications/Themes / Latest Mods / Re: [Mod] Welcome Topic on: March 12, 2009, 02:15:24 pm
That's the same problem I am having but know one wants to talk about it?  Huh  Huh

Today I noticed there was a member waiting to be activated, so I did and the mod worked properly Huh but...... again wish there was some support?? I has to be something simple, not my area of expertise!!
2  Modifications/Themes / Latest Mods / Re: [Mod] Welcome Topic on: March 08, 2009, 12:35:32 pm
here is another error,

 http://www.flytyingbug.com/forums/index.php?action=activate;u=12;code=eda6c4d9a5 
8: Undefined index: memberName
File: /nfs/c03/h03/mnt/52866/domains/flytyingbug.com/html/forums/Sources/Register.php
Line: 658 

Quote
638:    
   
elseif ($row['validation_code'] == '')
639:    
   
{
640:    
   
   
loadLanguage('Profile');
641:    
   
   
fatal_error($txt['registration_not_approved'] . ' <a href="' . $scripturl . '?action=activate;user=' . $row['member_name'] . '">' . $txt['here'] . '</a>.', false);
642:    
   
}
643: 
644:    
   
$context['sub_template'] = 'retry_activate';
645:    
   
$context['page_title'] = $txt['invalid_activation_code'];
646:    
   
$context['member_id'] = $row['id_member'];
647: 
648:    
   
return;
649:    
}
650: 
651:    
// Let the integration know that they've been activated!
652:    
if (isset($modSettings['integrate_activate']) && function_exists($modSettings['integrate_activate']))
653:    
   
call_user_func($modSettings['integrate_activate'], $row['member_name']);
654: // Welcome Topic Mod
655:    
global $sourcedir;
656:    
require_once($sourcedir . '/WelcomeTopic2.php');
657:    
   
   
   
 
==>658:    
DoWelcomePost($row['memberName']);

659:    
 
660:    
 
661:    
// End Welcome Topic Mod
662:    
 
663: 
664:    
// Validation complete - update the database!
665:    
updateMemberData($row['id_member'], array('is_activated' => 1, 'validation_code' => ''));
666: 
667:    
// Also do a proper member stat re-evaluation.
668:    
updateStats('member', false);
669: 
670:    
if (!isset($_POST['new_email']))
671:    
{
672:    
   
require_once($sourcedir . '/Subs-Post.php');
673: 
674:    
   
adminNotify('activation', $row['id_member'], $row['member_name']);
675:    
}
676: 
677:    
$context += array(
678:    
   
'page_title' => &$txt['registration_successful'],
3  Modifications/Themes / Latest Mods / Re: [Mod] Welcome Topic error on: March 07, 2009, 11:13:32 am
I am getting this error after installing this mod for through the SMF 2.0RC1 installer. When I installed it there were no errors? How can it be fixed?? Thanks.

http://www.flytyingbug.com/forums/index.php?action=welcome&amp;sa=add2 
Invalid value inserted or no type specified.
Function: addtopic2
File: /nfs/c03/h03/mnt/52866/domains/flytyingbug.com/html/forums/Sources/WelcomeTopic2.php
Line: 204


Quote
184:    
   
$_REQUEST['topicbody'] = un_htmlspecialchars($_REQUEST['topicbody']);
185: 
186:    
}
187:    
 
188:    
$topicsubject = $smcFunc['htmlspecialchars']($_REQUEST['topicsubject'], ENT_QUOTES);
189:    
$topicbody = $smcFunc['htmlspecialchars']($_REQUEST['topicbody'], ENT_QUOTES);
190:    
   
 
191:    
if ($topicsubject == '')
192:    
   
fatal_error($txt['welcome_err_nosubject'], false);
193:    
   
 
194:    
if ($topicbody == '')
195:    
   
fatal_error($txt['welcome_err_nobody'], false);
196:    
   
 
197:    
   
 
198:    
   
echo "INSERT INTO {db_prefix}welcome 
199:    
   
   
(welcomesubject, welcomebody)
200:    
   
VALUES ('$topicsubject', '$topicbody')";
201:    
   
// Insert the Topic
202:    
   
$smcFunc['db_query']('',"INSERT INTO {db_prefix}welcome 
203:    
   
   
(welcomesubject, welcomebody)
==>204:    
   
VALUES ('$topicsubject', '$topicbody')");
   
 
205:    
 
206:    
// Redirect to the main settings
207:    
redirectexit('action=admin;area=welcome;sa=admin');
208: }
209: 
210: function EditTopic()
211: {
212:    
global $txt, $context, $smcFunc, $mbname, $sourcedir, $modSettings;
213: 
214:    
// Load the edit topic template
215:    
$context['sub_template']  = 'edittopic';
216: 
217:    
// Set the page title
218:    
$context['page_title'] = $mbname . ' - ' . $txt['welcome_edittopic'];
219:    
 
220:    
// Get the Topic ID   
 
221:    
$id = (int) $_REQUEST['id'];
222:    
 
223:    
 
224:    
$request = $smcFunc['db_query']('',"
4  SMF Gallery Lite / SMF Gallery Lite / gallery error on: March 06, 2009, 12:38:47 pm
I have this error, any idea how to fix it??

http://www.flytyingbug.com/forums/index.php?action=gallery&amp;sa=add2 
8: Undefined index: cat
File: /nfs/c03/h03/mnt/52866/domains/flytyingbug.com/html/forums/Sources/Gallery2.php
Line: 634 


Quote
621: 
622:    
   
$_REQUEST['description'] = html_to_bbc($_REQUEST['description']);
623: 
624:    
   
// We need to unhtml it now as it gets done shortly.
625:    
   
$_REQUEST['description'] = un_htmlspecialchars($_REQUEST['description']);
626: 
627: 
628:    
}
629: 
630: 
631:    
$title = htmlspecialchars($_REQUEST['title'],ENT_QUOTES);
632:    
$description = htmlspecialchars($_REQUEST['description'],ENT_QUOTES);
633:    
$keywords = htmlspecialchars($_REQUEST['keywords'],ENT_QUOTES);
==>634:    
$cat = (int) $_REQUEST['cat'];

635:    
@$allowcomments = $_REQUEST['allowcomments'];
636: 
637:    
// Check if pictures are auto approved
638:    
$approved = (allowedTo('smfgallery_autoapprove') ? 1 : 0);
639: 
640:    
// Allow comments on picture if no setting set.
641:    
if(empty($modSettings['gallery_commentchoice']) || $modSettings['gallery_commentchoice'] == 0)
642:    
   
$allowcomments = 1;
643:    
else
644:    
{
645:    
   
if(empty($allowcomments))
646:    
   
   
$allowcomments = 0;
647:    
   
else
648:    
   
   
$allowcomments = 1;
649:    
}
650: 
651:    
if (trim($title) == '')
652:    
   
fatal_error($txt['gallery_error_no_title'],false);
653:    
if (empty($cat))
654:    
   
fatal_error($txt['gallery_error_no_cat'],false);
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.755 seconds with 21 queries.