Results 1 to 7 of 7
  1. #1
    New Pligger ideas24h's Avatar
    Joined
    Dec 2010
    Posts
    5
    Thanks
    Received:0
    Given: 0

    Question pligg without story title

    Hi,

    I like only use Story description in my Pligg. How I cant remove Title?

    Thanks.

  2. #2
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    It's most likely possible but your going to have a difficult time. You would need to make major core changes.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  3. #3
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,531
    Thanks
    Received:88
    Given: 14
    Site
    http://pligg.com/demo/
    Actually it might not be that difficult. You could hide the title field from view and just secretly fill it with an auto-incrementing number. Perhaps that would be best achieved by figuring out a way to input the story ID number as the title.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  4. #4
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    Well, I originally thought of that but it might end up skewing search results?
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  5. #5
    New Pligger ideas24h's Avatar
    Joined
    Dec 2010
    Posts
    5
    Thanks
    Received:0
    Given: 0
    Hi again. Thanks for your advice. The idea of hiding the title sounds quite good, but the problem is that i don't exactly know how to do it. Can you do me a favour and explaint it a bit? Thanks again.

  6. #6
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,531
    Thanks
    Received:88
    Given: 14
    Site
    http://pligg.com/demo/
    Chuckroast brings up a good point. Pligg wouldn't know what to set the page titles to, which would kill your search engine results.

    I haven't tested out the code below, but I suspect that it should work.

    Find this in submit_step_2.tpl:
    Code:
            <label>{#PLIGG_Visual_Submit2_Title#}: </label>{#PLIGG_Visual_Submit2_TitleInstruct#}<br/>
            <input type="text" id="title" class="text" name="title" value="{if $submit_title}{$submit_title}{else}{$submit_url_title}{/if}" size="60" maxlength="{$maxTitleLength}" />
    Replace it with this:
    Code:
    <div style="display:none;"><label>{#PLIGG_Visual_Submit2_Title#}: </label>{#PLIGG_Visual_Submit2_TitleInstruct#}<br/>
            <input type="text" id="title" class="text" name="title" value="{$submit_id}" size="60" maxlength="{$maxTitleLength}" /></div>
    That will hide the story title input field when submitting the story. You will need to then go in to link_summary.tpl and remove these lines to get rid of the title display:
    Code:
                <h2>
                {checkActionsTpl location="tpl_pligg_story_title_start"}
                {if $use_title_as_link eq true}
                    {if $url_short neq "http://" && $url_short neq "://"}
                        <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} {if $story_status neq "published"}rel="nofollow"{/if}>{$title_short}</a>
                    {else}
                        <a href="{$story_url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
                    {/if}
                 {else}
                    {if $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"}
                        <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} {if $story_status neq "published"}rel="nofollow"{/if}>{$title_short}</a>
                    {else} 
                      <a href="{$story_url}">{$title_short}</a>
                    {/if}
                {/if}
                {checkActionsTpl location="tpl_pligg_story_title_end"}
                </h2>
    That's it for the basics. There are probably some other areas that will still show the title (ex. the Live page), but you will have to find all of those smaller examples and correct them on your own.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  7. #7
    New Pligger ideas24h's Avatar
    Joined
    Dec 2010
    Posts
    5
    Thanks
    Received:0
    Given: 0
    It worked perfectly!!! You've been a great help. Thanks a lot.

Similar Threads

  1. How to change story title in pligg 1.2.0
    By 1Chandraas in forum Questions & Comments
    Replies: 7
    Last Post: 05-11-2012, 02:02 AM
  2. How to direct story title in summary page to the original story?
    By chris79 in forum Questions & Comments
    Replies: 4
    Last Post: 02-03-2008, 04:28 PM
  3. Increase characters in story title (pligg 9.6)
    By redhood in forum Questions & Comments
    Replies: 5
    Last Post: 12-20-2007, 09:26 AM
  4. Editing the title (not story titles, meta title)
    By SportsGuy in forum Questions & Comments
    Replies: 4
    Last Post: 08-07-2007, 07:17 AM
  5. How to open story page when click story title?
    By jetbrains in forum Questions & Comments
    Replies: 1
    Last Post: 08-19-2006, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg