Results 1 to 2 of 2
  1. #1
    Casual Pligger MicroBerto's Avatar
    Joined
    Oct 2006
    Posts
    44
    Thanks
    Received:0
    Given: 0

    Question Thickbox class= Conflict with Another Link's Class

    Hi all. I'm modifying my site to have a thickbox login screen popup if the user tries doing something that requires being logged in. It is discussed here:

    http://forums.pligg.com/pligg-mods/8...-thickbox.html

    It works fine, such as this code for the voting in link_summary.tpl (yget-based):
    Code:
    {if $user_logged_in eq ""}
       <a class="thickbox" target="_blank" title="Login to Vote" href="{$my_pligg_base}/login_box.php?return=<?php echo $_SERVER['REQUEST_URI'];?>&height=200&width=275">{#PLIGG_Visual_Vote_For_It#}</a>
    {else}
       <a href="javascript:{$link_shakebox_javascript_vote}">{#PLIGG_Visual_Vote_For_It#}</a>
    {/if}
    Note in bold, I have class=thickbox

    So the question is, how do I do this for a type of link (such as Submit New Story) which already has a class defined?

    ie, the link for Submitting a New Story in yget looks like this in header.tpl:
    Code:
    <a href="{$URL_submit}" class="navbut3"><span>{#PLIGG_Visual_Submit_A_New_Story#}</span></a>
    How can I also make that link work with thickbox, since it must have navbut3 to look right?

    Where can I find the thickbox class? Can I maybe edit that and then make a new class, titled thickbox-navbut3?

    edit: Also note that I don't ALWAYS want this to be of a thickbox class. Only sometimes (when user not logged in)

    Any ideas are appreciated. Thanks!
    berto

  2. #2
    Casual Pligger MicroBerto's Avatar
    Joined
    Oct 2006
    Posts
    44
    Thanks
    Received:0
    Given: 0
    Nevermind, I fixed it. This is so easy it's embarrassing:

    <a class="navbut3 thickbox" .....>

Similar Threads

  1. Cannot redeclare class HTTPRequest
    By nealtz in forum Questions & Comments
    Replies: 5
    Last Post: 01-07-2009, 05:37 AM
  2. Replies: 1
    Last Post: 11-21-2007, 06:35 AM
  3. Smarty_Test.class.php
    By saf in forum Questions & Comments
    Replies: 1
    Last Post: 10-09-2006, 01:30 PM
  4. Smarty.class.php error
    By cooper in forum Questions & Comments
    Replies: 0
    Last Post: 08-22-2006, 12:25 AM

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