phpLD Modifications

Discussion in 'Directories' started by Spider-Man, Jan 24, 2008.

  1. #1
    Hello.

    I have searched all around the net and can't seem to find this exact mod. I've seen other sites doing it, perhaps they are using another directory script - I don't know.

    The mod I am looking for is a 'registration optional' mod, so that when submitting, registration is optional, funnily enough.

    The mod should work for phpLD 3.1, 3.2 or even 3.3 if necessary. Although I'd prefer 3.1 as I don't really want to have to upgrade and run the risk of losing all current mods to my directory.

    Can anyone help?

    Thanks
     
    Spider-Man, Jan 24, 2008 IP
    mikey1090 likes this.
  2. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #2
    its available in phpld v3.0 or above...
     
    MeetHere, Jan 24, 2008 IP
  3. popotalk

    popotalk Notable Member

    Messages:
    4,840
    Likes Received:
    522
    Best Answers:
    0
    Trophy Points:
    260
    #3
    Also if you need to customize it there are excellent programmers here. Anything you need for mods just ask dargre, leopard, anon, silkysmooth, and many more I haven't mentioned. Of course there are fees to cover MODS.

    BTW nice template on your garden directory. No link back any more these days ? :eek:
     
    popotalk, Jan 24, 2008 IP
    SilkySmooth likes this.
  4. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is all very well, and thanks to mikey for the rep giving advice as to where to find it. But from what I've found - in 3.1 - the option under 'Admin - Link Submit' it states "To submit or modify, the user must be registered" - I'm looking for registration to be optional.

    Any other ideas, or even the mod script itself?
     
    Spider-Man, Jan 25, 2008 IP
  5. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #5
    submit.tpl

    remove the very last {/if} right before the include for the footer.
    </table>
    </form>
    {/if}


    {include file="footer.tpl"}
    {/strip}

    ----------------------------------------------------------------------------------------------------



    line 28: Change the {else} to an {/if}
    {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and empty($regular_user_details.ID)}

    <table border="0" class="formPage" align="center" style="clear:both;">
    <tr>
    <td>
    <h3>{l}Optional Signup{/l}</h3>
    </td>
    </tr>
    <tr>
    <td>
    {l}You may optionally set up an account to help keep better track of your submissions.<br />
    While this is not necessary, it is highly recommended{/l}
    <br />
    {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Create one{/l}</a><br /><br /><br />
    </td>
    </tr>
    </table>

    {else}

    ----------------------------------------------------------------------------------------------------



    now just change the wording in here letting them know its optional
    {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and empty($regular_user_details.ID)}

    <table border="0" class="formPage" align="center" style="clear:both;">
    <tr>
    <td>
    <h3>{l}Information{/l}</h3>
    </td>
    </tr>
    <tr>
    <td>
    {l}You must be logged in to submit a new link.{/l}
    <br />
    {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Create one{/l}</a>
    </td>
    </tr>
    </table>
    {/if}

    ----------------------------------------------------------------------------------------------------



    See Here
     
    an0n, Jan 25, 2008 IP
  6. xc06

    xc06 Notable Member

    Messages:
    3,498
    Likes Received:
    332
    Best Answers:
    0
    Trophy Points:
    203
    #6
    ys, you have this option in phpld admin
     
    xc06, Jan 25, 2008 IP
  7. iPod

    iPod Notable Member

    Messages:
    3,013
    Likes Received:
    409
    Best Answers:
    0
    Trophy Points:
    205
    #7
    I don't think Spider Man understood your words Jude
    you should have explained it a little better :p



    Spider-Man, your Garden Directory template does not have link to Designer and sponsor, which is against the terms of use.
    Need more enlightenment? Read Terms of Use here
    http://www.allydirectory.com/phpldtemplates/green-shade-phpld-template/
    Not impressed :(
     
    iPod, Jan 26, 2008 IP
  8. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hmm, I didn't download the template from there anyway, the version I downloaded came in a 'pack' of templates, and had a link to the mymoz.info directory, without any license file or the like. Anyway, who's the owner of said directories, just let me know exactly where you want the links placed - even in the 'Network' column, if you'd like. Just PM me or let me know in this thread.

    Cheers
     
    Spider-Man, Jan 26, 2008 IP
  9. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #9
    Spider-Man, good job on following my instructions for the tweak :bigthumbs up: for you :)
     
    an0n, Jan 26, 2008 IP
    Spider-Man likes this.
  10. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yeah I think I got it right:D

    I took the code for 'if registration required...', put that into left.tpl so it always shows, allowing people to login/register. Then used your piece of code for the submit page - now it seems great, seems to be working - I just gotta wait on some people submitting good sites to test the site out.

    So far I've got the following mods in place:

    'Site of the Day' shown on homepage.
    'Registration optional' ;)
    Search-Engine friendly top/latest links pages.

    And, err, another one - *thinks* - ah, search engine friendly details pages. The mod is supposed to help SEO and navigation by showing, for example:

    On details page a site submits to Arts > Television > Production

    On the details page the modification should show a link to arts, a link to television and a link to production.

    Unfortunately the mod didn't work - it just left a blank space for the 'category field', so I had to roll-back on that one.

    Can you advise any other good mods I should consider using - whether that be paid or free mods?

    Cheers:cool:
     
    Spider-Man, Jan 26, 2008 IP