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):
Note in bold, I have class=thickboxCode:{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}
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:
How can I also make that link work with thickbox, since it must have navbut3 to look right?Code:<a href="{$URL_submit}" class="navbut3"><span>{#PLIGG_Visual_Submit_A_New_Story#}</span></a>
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



Reply With Quote



