1
Robustus
Yogurt Scrapbook Timestamp
  • 2009/4/30 9:03

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Has someone an Idea how to integrate a Timestamp (hour+date) in the postings of Yogurt Scrapbook (guestbook)? So that User know which time they get the entry??

thx

2
Kiwi_Chris
Re: Yogurt Scrapbook Timestamp
  • 2009/4/30 10:08

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


This a Great Idea, I also would like this to be solved.

3
Angela78
Re: Yogurt Scrapbook Timestamp
  • 2009/5/10 2:41

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


I was looking at a way to do this today I'll let you know if I find away

4
Angela78
Re: Yogurt Scrapbook Timestamp
  • 2009/5/11 17:36

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


I'm having no luck at all with this lol

5
Kiwi_Chris
Re: Yogurt Scrapbook Timestamp
  • 2009/6/11 4:35

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


there is a field in the database for date.

surely there must be a way to include this with the post.
Maybe edit submit_scrap.php??

I don't know what to add to make this work,

this is where I think the code could be added

$myts =& MyTextSanitizer::getInstance();
$scrapbook_uid = $_POST['uid'];
$scrap_text = $myts->displayTarea($_POST['text'],0,1,1,1,1);
$mainform = (!empty($_POST['mainform'])) ? 1 : 0;
$scrap = $scraps_factory->create();
$scrap->setVar('scrap_text',$scrap_text);
$scrap->setVar('scrap_from',$xoopsUser->getVar('uid'));
$scrap->setVar('scrap_to',$scrapbook_uid);
$scraps_factory->insert($scrap);
$extra_tags['X_OWNER_NAME'] = $xoopsUser->getUnameFromId($scrapbook_uid);
$extra_tags['X_OWNER_UID'] = $scrapbook_uid;
$notification_handler =& xoops_gethandler('notification');
$notification_handler->triggerEvent ("scrap", $xoopsUser->getVar('uid'), "new_scrap",$extra_tags);
if ($mainform==1){
redirect_header("scrapbook.php?uid=".$scrapbook_uid,1,_MD_YOGURT_SCRAP_SENT);
}else{
redirect_header("scrapbook.php?uid=".$xoopsUser->getVar('uid'),1,_MD_YOGURT_SCRAP_SENT);
}

6
Angela78
Re: Yogurt Scrapbook Timestamp
  • 2009/6/11 12:36

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1



I'll try to look into that today

Login

Who's Online

291 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits