WordPress.org

Ready to get started?Download WordPress

Forums

Extend possiblities of phpGiggle (6 posts)

  1. ByteWarrior
    Member
    Posted 10 years ago #

    I installed phpGiggle today. Works like a charm :-). I only have one problem: I have to edit the phpgiggle.words.txt file every time I want to add something.
    Wouldn't it be possible to add more functionality to phpGiggle? A small example:
    In my blogpost I type this:

    text bla bla bla [google:'wordpress'] and [wikipedia:'wordpres'] bla. Have you read [amazon:'The Green Mile']?

    The [google:'text to search on google'] would be converted to the google search link. Same with the wikipedia and the amazon link. This way, you don't have to edit the phpgiggle.words.txt file constantly and you can easily create links to search engines, bookstores, etc.
    Maybe this already exists (as another hack), but I didn't found it. I think Movable Type has this functionality with MT-Textile.

  2. gsiener
    Member
    Posted 10 years ago #

    This is just what I'm looking for. What about adding image functionality from Amazon/Google too?

  3. NuclearMoose
    Member
    Posted 10 years ago #

    Byte,
    If you needed help remembering, you could just add some text in the POST screen, just like the list of allowed quick tags, eh?
    Craig.

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    OT : Not listened to Tangerine Dream in *years* .... used to love Encore too. Fine live too...

  5. ByteWarrior
    Member
    Posted 10 years ago #

    If you needed help remembering, you could just add some text in the POST screen, just like the list of allowed quick tags, eh?

    I didn't know that... :-s I'm no programmer. Can you please give me an example how to add those things in the Post screen?

  6. LoganSix
    Member
    Posted 10 years ago #

    I haven't installed phpGiggle yet, but from what it sounds like, this all should be put into a 'definitions' table. All words or acronyms that you want defined (highlighted) would be added and then given definitions. If you want the word to be linked to a search engine, then you would set that flag. Then the appropriate link would be created. You should also be able to add your own link for the word.
    For example.
    definitions
    def_id - generated id
    def_txt - text to be defined (i.e. php, James Bond)
    def_desc - text description (i.e. PHP Hypertext Processor), show on mouse overs
    def_url - opt. link for text
    def_flag - search flags (i.e. 'url', 'acronym','google','imbd','amazon','dictionary')
    The 'control panel' would just be a few form fields and radio buttons or a drop-list.
    It could be expanded to have a search table, so you could dynamically add search items.
    search
    search_id - generated id
    search_nm - name that will appear in flag drop-list (i.e. 'google','amazon')
    search_url - url front to search (i.e. http://www.google.com/search?q=')
    This 'control panel' would be a few form fields to add, edit, and delete.
    I added the acronymit hack a few days ago and was thinking about this since then. I think I'll work on this 'definitions' hack after I get my people hack working correctly.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.