.weblog engine
FAQ :: Search ::  Memberlist ::  Register :: Profile ::  Usergroups ::  Log in
Log in to check your private messages ::  Download Pivot :: Support Pivot | Info
You are Pivot's greatest asset! Answer a support question today!
current mood?
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Requests
View previous topic :: View next topic  
Author Message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5289
Location: Molde, Norway

PostPosted: Wed May 28, 2008 6:10 am    Post subject: Re: current mood? Reply with quote

Try http://home.himolde.no/~nordhaug/temp/snippet_mood.zip

Please read the head of the file for usage info.

_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
graham_k
Platinum Sponsor
<b>Platinum Sponsor</b>


Joined: 08 Nov 2004
Posts: 1399
Location: Varies frequently

PostPosted: Wed May 28, 2008 7:39 am    Post subject: Re: current mood? Reply with quote

Hans, I owe you a heartfelt "thank you" (again).
_________________
Check out my snippets at http://www.keellings.com/software/pivot.php
Back to top
View user's profile Send private message
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Wed May 28, 2008 9:14 am    Post subject: Re: current mood? Reply with quote

you guys are great Very Happy thank you very very much for doing this just for me!!
Back to top
View user's profile Send private message
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Thu May 29, 2008 2:29 am    Post subject: Re: current mood? Reply with quote

i must be doing something wrong because i can't get it to work Sad
Back to top
View user's profile Send private message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5289
Location: Molde, Norway

PostPosted: Thu May 29, 2008 7:56 am    Post subject: Re: current mood? Reply with quote

So what are you doing? And do you have a link to your site? And have you turned on debugging?

PS! I assume you have read
Quote:
* Usage:
*
* In the entry
* [[mood:set:happy:I'm happy]]
*
* In the template
* [[mood:show]]

_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Thu May 29, 2008 8:25 am    Post subject: Re: current mood? Reply with quote

i've tried yesterday by adding the codes, so [[mood:set:happy:I'm happy]] (in a variation Wink) to my post, and i added [[mood:show]] to the _sub_entry template i am using, like this:

Code:
<div>
<h3>[[title]]</h3>
<h3>[[fulldate]]</h3>
[[mood:show]]
[[introduction]] [[more]]
<div>[[singlepermalink:bekijk deze post:Permanent link to entry '%title%']] [[commentlink]]</div>
<hr></hr>
</div>


the link to my site is www.rabbeltje.nl

i haven't tried debugging yet, let me try that now Smile

alright, my debug-window tells me this:

Code:
2008-05-29 14:20:18 - 0.687 -- modules/module_debug.php:380 / userErrorHandler() --  ( 3654568 ) 
Warning: Missing argument 5 for execute_hook(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/entry.php on line 96 and defined. (in 'pivot/pvlib.php' on line 4638)

2008-05-29 14:22:42 - 0.013 -- pivot/pv_core.php:521 / CheckLogin() --  ( 3566188 ) 
attempted ReviveSession..

2008-05-29 14:22:42 - 0.013 -- pivot/pv_core.php:718 / ReviveSession() --  ( 3567280 ) 
Revived session

2008-05-29 14:22:43 - 0.205 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4161980 ) 
Wrote config file with 83 items..

2008-05-29 14:22:46 - 0.410 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4265516 ) 
Wrote config file with 83 items..

2008-05-29 14:22:49 - 1.737 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4271444 ) 
Wrote config file with 83 items..

2008-05-29 14:22:53 - 0.208 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4263144 ) 
Wrote config file with 83 items..

2008-05-29 14:22:58 - 0.840 -- pivot/pvlib.php:121 / SaveSettings() --  ( 3811116 ) 
Wrote config file with 83 items..

2008-05-29 14:23:04 - 3.063 -- pivot/pvlib.php:121 / SaveSettings() --  ( 3870440 ) 
Wrote config file with 83 items..

2008-05-29 14:23:33 - 0.025 -- modules/module_db_xml.php:753 / save_entry() --  ( 3823632 ) 
Save entry 'Vies!' (116)

2008-05-29 14:23:33 - 0.100 -- modules/module_db_xml.php:862 / write_entry_index() --  ( 3835768 ) 
Save entry index (14,index-standard-00100.php)

2008-05-29 14:23:33 - 0.101 -- modules/module_db_xml.php:875 / write_date_index() --  ( 3836756 ) 
Save date index (101,101)

2008-05-29 14:23:33 - 0.158 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 3997268 ) 
happy

2008-05-29 14:23:34 - 0.605 -- pivot/pv_core.php:1417 / entrysubmit_screen() --  ( 4036856 ) 
update search index: 116

2008-05-29 14:23:34 - 0.650 -- modules/module_debug.php:380 / userErrorHandler() --  ( 4065152 ) 
Warning: Missing argument 1 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 754 and defined. (in 'snippets/snippet_rotator.php' on line 20)
Warning: Missing argument 2 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 754 and defined. (in 'snippets/snippet_rotator.php' on line 20)

2008-05-29 14:23:34 - 0.861 -- modules/module_parser.php:981 / cms_tag_archive() --  ( 4085452 ) 
Archive: start 2008-05-01-00-00, stop 2008-05-31-23-59, entry 116

2008-05-29 14:23:34 - 0.862 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 4087820 ) 

happy





2008-05-29 14:23:34 - 0.970 -- modules/module_parser.php:403 / generate_archive() --  ( 4130660 ) 
Write archive file: ../archives/archive_2008-m05.php
total_a: 2008-05-28-17-41

2008-05-29 14:23:34 - 1.066 -- modules/module_debug.php:380 / userErrorHandler() --  ( 4128004 ) 
Warning: Missing argument 1 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 737 and defined. (in 'snippets/snippet_rotator.php' on line 20)
Warning: Missing argument 2 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 737 and defined. (in 'snippets/snippet_rotator.php' on line 20)

2008-05-29 14:23:34 - 1.074 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 4141088 ) 

happy
happy










2008-05-29 14:23:34 - 1.229 -- modules/module_parser.php:251 / generate_frontpage() --  ( 4197508 ) 
Write frontpage file: ../index.php
total_f: ../index.php - /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot

2008-05-29 14:23:34 - 1.230 -- modules/module_parser.php:2047 / finish_rss() --  ( 4189524 ) 
Write RSS: ../rss.xml
Write Atom: ../atom.xml

2008-05-29 14:23:34 - 1.275 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4169036 ) 
Wrote config file with 83 items..
Back to top
View user's profile Send private message
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Thu May 29, 2008 8:26 am    Post subject: Re: current mood? Reply with quote

i can tell that it tells me something about the rotator-snippet, but i really don't know what else to get from it!!
Back to top
View user's profile Send private message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5289
Location: Molde, Norway

PostPosted: Thu May 29, 2008 12:45 pm    Post subject: Re: current mood? Reply with quote

Code:
2008-05-29 14:23:34 - 1.074 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 4141088 )

happy
happy

shows that you at least are setting the mood... Could you please add a debug statement
Code:
debug_printr($snippet_mood_info);

just before "return $output;" at the very end of the file. I'm wondering if another snippet is messing with the Pivot db.

Maybe also send me your current index.php - hansfn@gmail.com

_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Fri May 30, 2008 2:37 am    Post subject: Re: current mood? Reply with quote

i've sent you my index.php Smile

i added the code and opened the debug-window again, here it is:

Code:
2008-05-30 08:34:00 - 0.082 -- pivot/pv_core.php:521 / CheckLogin() --  ( 3566292 ) 
attempted ReviveSession..

2008-05-30 08:34:00 - 0.083 -- pivot/pv_core.php:718 / ReviveSession() --  ( 3567444 ) 
Revived session

2008-05-30 08:34:01 - 1.145 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4166908 ) 
Wrote config file with 83 items..

2008-05-30 08:34:44 - 0.071 -- pivot/pvlib.php:121 / SaveSettings() --  ( 3810632 ) 
Wrote config file with 83 items..

2008-05-30 08:34:49 - 0.021 -- modules/module_debug.php:380 / userErrorHandler() --  ( 3657600 ) 
Warning: Missing argument 5 for execute_hook(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/entry.php on line 96 and defined. (in 'pivot/pvlib.php' on line 4638)

2008-05-30 08:34:49 - 0.060 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 3722060 ) 
happy

2008-05-30 08:34:49 - 0.061 -- modules/module_debug.php:207 / debug_printr() --  ( 3731320 ) 
Array
(
    [116] => Array
        (
            [mood] => happy
            [text] => nog maar 6,5 week tot de vakantie!
            [display] => 1
        )

)


2008-05-30 08:34:49 - 0.083 -- pivot/pv_core.php:718 / ReviveSession() --  ( 3755600 ) 
Revived session

2008-05-30 08:34:57 - 0.612 -- pivot/pvlib.php:121 / SaveSettings() --  ( 3871664 ) 
Wrote config file with 83 items..

2008-05-30 08:35:11 - 0.109 -- modules/module_db_xml.php:753 / save_entry() --  ( 3825404 ) 
Save entry 'Vies!' (116)

2008-05-30 08:35:11 - 0.118 -- modules/module_db_xml.php:862 / write_entry_index() --  ( 3836760 ) 
Save entry index (14,index-standard-00100.php)

2008-05-30 08:35:11 - 0.118 -- modules/module_db_xml.php:875 / write_date_index() --  ( 3837620 ) 
Save date index (101,101)

2008-05-30 08:35:12 - 0.576 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 3998596 ) 
happy

2008-05-30 08:35:13 - 1.628 -- pivot/pv_core.php:1417 / entrysubmit_screen() --  ( 4038276 ) 
update search index: 116

2008-05-30 08:35:13 - 1.695 -- modules/module_debug.php:380 / userErrorHandler() --  ( 4067904 ) 
Warning: Missing argument 1 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 754 and defined. (in 'snippets/snippet_rotator.php' on line 20)
Warning: Missing argument 2 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 754 and defined. (in 'snippets/snippet_rotator.php' on line 20)

2008-05-30 08:35:13 - 1.737 -- modules/module_parser.php:981 / cms_tag_archive() --  ( 4087804 ) 
Archive: start 2008-05-01-00-00, stop 2008-05-31-23-59, entry 116

2008-05-30 08:35:13 - 1.739 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 4090144 ) 

happy





2008-05-30 08:35:13 - 1.831 -- modules/module_parser.php:403 / generate_archive() --  ( 4133980 ) 
Write archive file: ../archives/archive_2008-m05.php
total_a: 2008-05-28-17-41

2008-05-30 08:35:13 - 1.890 -- modules/module_debug.php:380 / userErrorHandler() --  ( 4130656 ) 
Warning: Missing argument 1 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 737 and defined. (in 'snippets/snippet_rotator.php' on line 20)
Warning: Missing argument 2 for snippet_rotator(), called in /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot/modules/module_parser.php on line 737 and defined. (in 'snippets/snippet_rotator.php' on line 20)

2008-05-30 08:35:13 - 1.900 -- snippets/snippet_mood.php:41 / snippet_mood() --  ( 4145568 ) 

happy
happy










2008-05-30 08:35:14 - 2.481 -- modules/module_parser.php:251 / generate_frontpage() --  ( 4201028 ) 
Write frontpage file: ../index.php
total_f: ../index.php - /customers/rabbeltje.nl/rabbeltje.nl/httpd.www/pivot

2008-05-30 08:35:14 - 2.483 -- modules/module_parser.php:2047 / finish_rss() --  ( 4193088 ) 
Write RSS: ../rss.xml
Write Atom: ../atom.xml

2008-05-30 08:35:14 - 2.610 -- pivot/pvlib.php:121 / SaveSettings() --  ( 4170836 ) 
Wrote config file with 83 items..
Back to top
View user's profile Send private message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5289
Location: Molde, Norway

PostPosted: Fri May 30, 2008 4:51 am    Post subject: Re: current mood? Reply with quote

Thx for index.php - it made it very clear. In your setup you are using show mood before set mood. That should have been obvious for me immediately since setting the mood setting is part of the introduction .... I realize that you want it this way so I guess I have to improve the script so the mood is saved as a part of the entry in the database. However, could you please just test that it works by modifying your sub entry template so [[mood:show]] comes after [[introduction]].
_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Fri May 30, 2008 4:59 am    Post subject: Re: current mood? Reply with quote

alright! didn't realise there would be a difference for that!
Back to top
View user's profile Send private message
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Fri May 30, 2008 5:01 am    Post subject: Re: current mood? Reply with quote

it IS working... only the image won't show Rolling Eyes let me check why that is!
Back to top
View user's profile Send private message
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Fri May 30, 2008 5:04 am    Post subject: Re: current mood? Reply with quote

Code:
2008-05-30 11:04:09 - 0.227 -- snippets/snippet_mood.php:119 / main_snippet_mood() --  ( 3814724 ) 
Can't find icon file for mood 'happy'

2008-05-30 11:04:09 - 0.228 -- modules/module_debug.php:207 / debug_printr() --  ( 3814900 ) 
Array
(
    [116] => Array
        (
            [mood] => happy
            [text] => nog maar 6,5 week tot de vakantie!
            [display] => 1
        )

)



so i see it's saying it can't find the icon-file... i created a subfolder in my snippets-folder with all the files, called mood_icons, and they are png-files, and there is DEFINATLY a happy one!
Back to top
View user's profile Send private message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5289
Location: Molde, Norway

PostPosted: Fri May 30, 2008 6:43 am    Post subject: Re: current mood? Reply with quote

Sorry, the documentation is wrong - it should be in the extensions directory (extensions/mood_icons/).
_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
rabbeltje
Pivot Groupie
Pivot Groupie


Joined: 21 Nov 2007
Posts: 45

PostPosted: Fri May 30, 2008 6:59 am    Post subject: Re: current mood? Reply with quote

right Very Happy thank you!

so, it is a lot of work to make it appear before the text of a post? if so, don't bother changing it, i'll just put it in the bottom then.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Requests All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3
|
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Your generosity is appreciated!
Gambling News was the last to make a donation
:: go here for sponsorship information ::
Special thanks to our platinum sponsors: Gambling News  
DreamHost

powered by phpBB | RSS Feed