[ resmi görüntülemek için tıklayın ]
Mod dosyası
Kod: Tümünü seç
## ENGLISH VERSION
##############################################################
## MOD Title: vBulletin Style DHTML Menu
## MOD Author: Darezettl < darezettl@darezettl.de > (Thomas Zettl) http://darezettl.de
## (based on McNet's original MOD for CBACK Orion)
## MOD Description: Adds a CSS-based DHTML menu to viewtopic and private messages when you click on a
## posters name. Like in vBulletin! ;)
## MOD Version: 1.0.6 final
##
## Installation Level: easy
## Installation Time: 10 min
## Files To Edit: 7
## language/lang_english/lang_main.php
## templates/subSilver/overall_header.tpl
## templates/subSilver/privmsgs_read_body.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewtopic_body.tpl
## privmsg.php
## viewtopic.php
## Included Files: 6
## vb_menu_profile.gif
## vb_menu_email.gif
## vb_menu_pm.gif
## vb_menu_search.gif
## vb_menu_www.gif
## vb_menu_album.gif
##
## Icons taken from Silk icon set 1.3 by Mark James: >>> http://www.famfamfam.com/lab/icons/silk/ <<<
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## MOD History:
##
## 2006-05-05 - Version 1.0.0
## - Initial Release
##
## 2006-05-06 - Version 1.0.1
## - fixed a little mistake in viewtopic code (only german version)
## - fixed a problem with eMail visibility
##
## 2006-05-08 - Version 1.0.2
## - fixed a style problem on Internet Explorer
## - fixed a problem with deleted users in viewtopic.php
##
## 2006-05-08 - Version 1.0.3
## - fixed version 1.0.2 ;-)
##
## 2006-08-31 - Version 1.0.4
## - fixed an error in viewtopic that appeared if users have filled out the website field (only english version)
##
## 2006-10-01 - Version 1.0.5
## - expanded the menu into private messages area
##
## 2006-10-12 - Version 1.0.6
## - fixed problem with session id
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
##
##
## ********* THIS HACK IS DEDICATED TO ********
## ************ THE MOVIE "CRUEL INTENTIONS" *********
## ------- *** -------
## ************ THIS MOVIE CHANGED MY WHOLE WAY OF THINKING ************
##
##
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy root/templates/subSilver/images/vb_menu_pm.gif to /templates/subSilver/images/
copy root/templates/subSilver/images/vb_menu_email.gif to /templates/subSilver/images/
copy root/templates/subSilver/images/vb_menu_www.gif to /templates/subSilver/images/
copy root/templates/subSilver/images/vb_menu_search.gif to /templates/subSilver/images/
copy root/templates/subSilver/images/vb_menu_profile.gif to /templates/subSilver/images/
copy root/templates/subSilver/images/vb_menu_album.gif to /templates/subSilver/images/
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$temp_url_profile = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$vb_menu_profile = '<a class="vbm" href="' . $temp_url_profile . '"> <img src="' . $images['vb_menu_profile'] . '" border="0" /> ' . $lang['vb_menu_l_profile'] . '</a>';
$temp_url_menu = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id");
$vb_menu_pm = '<a class="vbm" href="' . $temp_url_menu . '"> <img src="' . $images['vb_menu_pm'] . '" border="0" /> ' . $lang['vb_menu_l_pm'] . ' ' . $postrow[$i]['username'] . ' </a>';
$vb_menu_search = '<a class="vbm" href="search.php?show_results=posts&search_author=' . $poster . '"> <img src="' . $images['vb_menu_search'] . '" border="0" /> ' . $lang['vb_menu_l_search'] . ' ' . $postrow[$i]['username'] . '</a>';
$vb_menu_www = ( $postrow[$i]['user_website'] ) ? '<a class="vbm" href="' . $postrow[$i]['user_website'] . '" target="_userwww"> <img src="' . $images['vb_menu_www'] . '" border="0" /> ' . $lang['vb_menu_l_www1'] . ' ' . $postrow[$i]['username'] . '`s ' . $lang['vb_menu_l_www2'] . '!</a>' : '';
//$vb_menu_album = '<a class="vbm" href="album.php?user_id=' . $poster_id . '&mode=list"> <img src="' . $images['vb_menu_album'] . '" border="0" /> ' . $lang['vb_menu_l_album'] . ' ' . $postrow[$i]['username'] . '</a>';
$vb_menu_id = $poster_id;
#
#-----[ FIND ]------------------------------------------
#
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$vb_menu_email = '<a class="vbm" href="' . $email_uri . '"> <img src="' . $images['vb_menu_email'] . '" border="0" /> ' . $lang['vb_menu_l_email'] . ' ' . $postrow[$i]['username'] . '</a>';
#
#-----[ FIND ]------------------------------------------
#
else
{
$email_img = '';
$email = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$vb_menu_email = '';
#
#-----[ FIND ]------------------------------------------
#
$yim_img = '';
$yim = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$vb_menu_profile = '';
$vb_menu_pm = '';
$vb_menu_search = '';
$vb_menu_email = '';
$vb_menu_www = '';
//$vb_menu_album = '';
#
#-----[ FIND ]------------------------------------------
#
'EDITED_MESSAGE' => $l_edited_by,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'VB_MENU_PROFILE' => $vb_menu_profile,
'VB_MENU_EMAIL' => $vb_menu_email,
'VB_MENU_PM' => $vb_menu_pm,
'VB_MENU_WWW' => $vb_menu_www,
'VB_MENU_SEARCH' => $vb_menu_search,
//'VB_MENU_ALBUM' => $vb_menu_album,
'VB_MENU_ID' => $vb_menu_id,
'VB_MENU_L_PROFILE' => $vb_menu_l_profile,
'VB_MENU_L_EMAIL' => $vb_menu_l_email,
'VB_MENU_L_PM' => $vb_menu_l_pm,
'VB_MENU_L_WWW1' => $vb_menu_l_www1,
'VB_MENU_L_WWW2' => $vb_menu_l_www2,
'VB_MENU_L_SEARCH' => $vb_menu_l_search,
//'VB_MENU_L_ALBUM' => $vb_menu_l_album,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
# the first line in this file!
<table
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 2, and so on
<!-- BEGIN postrow -->
var menu{postrow.VB_MENU_ID}=new Array()
menu{postrow.VB_MENU_ID}[0]='<a class="vbmh"> {postrow.POSTER_NAME}</a>'
menu{postrow.VB_MENU_ID}[1]='{postrow.VB_MENU_PROFILE}'
menu{postrow.VB_MENU_ID}[2]='{postrow.VB_MENU_PM}'
menu{postrow.VB_MENU_ID}[3]='{postrow.VB_MENU_SEARCH}'
menu{postrow.VB_MENU_ID}[4]='{postrow.VB_MENU_EMAIL}'
menu{postrow.VB_MENU_ID}[5]='{postrow.VB_MENU_WWW}'
//menu{postrow.VB_MENU_ID}[6]='{postrow.VB_MENU_ALBUM}'
<!-- END postrow -->
var menuwidth='selfc' //default menu width
var menubgcolor='#F2F2F2' //menu bgcolor
var disappeardelay='350' //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick='yes' //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
var defaultwidth=menuwidth
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
if (typeof menuwidth=='undefined'||menuwidth=='selfc'){
tmpspan.style.display='inline'
dropmenuobj.widthobj.width=tmpspan.offsetWidth+'px'
tmpspan.style.display='none'
}
else if (menuwidth!='')
dropmenuobj.widthobj.width=menuwidth
else
dropmenuobj.widthobj.width=defaultwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6){
var appendit=0
if (typeof tmpspan=='undefined'){
tmpspan=document.createElement('span')
appendit=1
}
if(appendit){
tmpspan.style.position="absolute"
tmpspan.style.left="-1000px"
tmpspan.id='tspan'
document.body.appendChild(tmpspan)
tmpspan.style.display='none'
}
tmpspan.innerHTML=dropmenuobj.innerHTML=what.join("")
}
}
function dropdownmenu(obj, e, menucontents, menuwidth){
obj.onmouseout=delayhidemenu;
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a class="nav" href="javascript:void(0)" onClick="return dropdownmenu(this, event, menu{postrow.VB_MENU_ID}, 'selfc')" onMouseout="delayhidemenu()">{postrow.POSTER_NAME}</a>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$images['vb_menu_pm'] = "$current_template_images/vb_menu_pm.gif";
$images['vb_menu_email'] = "$current_template_images/vb_menu_email.gif";
$images['vb_menu_www'] = "$current_template_images/vb_menu_www.gif";
$images['vb_menu_search'] = "$current_template_images/vb_menu_search.gif";
$images['vb_menu_profile'] = "$current_template_images/vb_menu_profile.gif";
//$images['vb_menu_album'] = "$current_template_images/vb_menu_album.gif";
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['vb_menu_l_profile'] = 'View Public Profile';
$lang['vb_menu_l_pm'] = 'Send a private message to';
$lang['vb_menu_l_email'] = 'Send a eMail to';
$lang['vb_menu_l_search'] = 'Find more Posts by';
$lang['vb_menu_l_www1'] = 'Visit';
$lang['vb_menu_l_www2'] = 'homepage';
//$lang['vb_menu_l_album'] = 'Show all pictures by';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
# only if your .css is not activated! if it is activated, add this code at the end of your css file!
/* General page style. The scroll bar colours only visible in IE5.5+ */
#
#-----[ BEFORE, ADD ]------------------------------------------
#
a.vbmh
{
background-color: #E5E5E5;
color: #6D7B8D;
font-size: 8pt;
font-weight: bold;
}
a.vbmh:hover
{
color: #6D7B8D;
}
.vbm { font-family: Verdana, Tahoma, Arial, "Times New Roman", serif; font-size : 10pt; }
#dropmenudiv{
position:absolute;
border:1px solid #CCCCCC;
filter:alpha(opacity=90);
-moz-opacity:0.9;
border-bottom-width: 0;
font:normal 12px Verdana;
white-space: nowrap;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid #CCCCCC;
padding: 1px 0;
text-decoration: none;
}
#dropmenudiv a:hover{
background-color: #E5E5E5;
}
#tspan a {
display:block;
text-indent: 3px;
padding: 2px;
font:bold 12px Verdana;
}
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$temp_url_profile = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id_from);
$vb_menu_profile = '<a class="vbm" href="' . $temp_url_profile . '"> <img src="' . $images['vb_menu_profile'] . '" border="0" /> ' . $lang['vb_menu_l_profile'] . '</a>';
$temp_url_menu = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id_from");
$vb_menu_pm = '<a class="vbm" href="' . $temp_url_menu . '"> <img src="' . $images['vb_menu_pm'] . '" border="0" /> ' . $lang['vb_menu_l_pm'] . ' ' . $privmsg['username_1'] . ' </a>';
$vb_menu_search = '<a class="vbm" href="search.php?show_results=posts&search_author=' . $privmsg['username_1'] . '"> <img src="' . $images['vb_menu_search'] . '" border="0" /> ' . $lang['vb_menu_l_search'] . ' ' . $privmsg['username_1'] . '</a>';
$vb_menu_www = ( $privmsg['user_website'] ) ? '<a class="vbm" href="' . $privmsg['user_website'] . '" target="_userwww"> <img src="' . $images['vb_menu_www'] . '" border="0" /> ' . $lang['vb_menu_l_www1'] . ' ' . $privmsg['username_1'] . '`s ' . $lang['vb_menu_l_www2'] . '!</a>' : '';
//$vb_menu_album = '<a class="vbm" href="album.php?user_id=' . $user_id_from . '&mode=list"> <img src="' . $images['vb_menu_album'] . '" border="0" /> ' . $lang['vb_menu_l_album'] . ' ' . $privmsg['username_1'] . '</a>';
$vb_menu_id = $user_id_from;
#
#-----[ FIND ]------------------------------------------
#
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$vb_menu_email = '<a class="vbm" href="' . $email_uri . '"> <img src="' . $images['vb_menu_email'] . '" border="0" /> ' . $lang['vb_menu_l_email'] . ' ' . $privmsg['username_1'] . '</a>';
#
#-----[ FIND ]------------------------------------------
#
else
{
$email_img = '';
$email = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$vb_menu_email = '';
#
#-----[ FIND ]------------------------------------------
#
'MESSAGE' => $private_message,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'VB_MENU_PROFILE' => $vb_menu_profile,
'VB_MENU_EMAIL' => $vb_menu_email,
'VB_MENU_PM' => $vb_menu_pm,
'VB_MENU_WWW' => $vb_menu_www,
'VB_MENU_SEARCH' => $vb_menu_search,
//'VB_MENU_ALBUM' => $vb_menu_album,
'VB_MENU_ID' => $vb_menu_id,
'VB_MENU_L_PROFILE' => $vb_menu_l_profile,
'VB_MENU_L_EMAIL' => $vb_menu_l_email,
'VB_MENU_L_PM' => $vb_menu_l_pm,
'VB_MENU_L_WWW1' => $vb_menu_l_www1,
'VB_MENU_L_WWW2' => $vb_menu_l_www2,
'VB_MENU_L_SEARCH' => $vb_menu_l_search,
//'VB_MENU_L_ALBUM' => $vb_menu_l_album,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/privmsgs_read_body.tpl
#
#-----[ FIND ]------------------------------------------
# the first line in this file!
<table
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 2, and so on
var menu{VB_MENU_ID}=new Array()
menu{VB_MENU_ID}[0]='<a class="vbmh"> {MESSAGE_FROM}</a>'
menu{VB_MENU_ID}[1]='{VB_MENU_PROFILE}'
menu{VB_MENU_ID}[2]='{VB_MENU_PM}'
menu{VB_MENU_ID}[3]='{VB_MENU_SEARCH}'
menu{VB_MENU_ID}[4]='{VB_MENU_EMAIL}'
menu{VB_MENU_ID}[5]='{VB_MENU_WWW}'
//menu{VB_MENU_ID}[6]='{VB_MENU_ALBUM}'
var menuwidth='selfc' //default menu width
var menubgcolor='#F2F2F2' //menu bgcolor
var disappeardelay='350' //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick='yes' //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
var defaultwidth=menuwidth
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
if (typeof menuwidth=='undefined'||menuwidth=='selfc'){
tmpspan.style.display='inline'
dropmenuobj.widthobj.width=tmpspan.offsetWidth+'px'
tmpspan.style.display='none'
}
else if (menuwidth!='')
dropmenuobj.widthobj.width=menuwidth
else
dropmenuobj.widthobj.width=defaultwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6){
var appendit=0
if (typeof tmpspan=='undefined'){
tmpspan=document.createElement('span')
appendit=1
}
if(appendit){
tmpspan.style.position="absolute"
tmpspan.style.left="-1000px"
tmpspan.id='tspan'
document.body.appendChild(tmpspan)
tmpspan.style.display='none'
}
tmpspan.innerHTML=dropmenuobj.innerHTML=what.join("")
}
}
function dropdownmenu(obj, e, menucontents, menuwidth){
obj.onmouseout=delayhidemenu;
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
#
#-----[ FIND ]------------------------------------------
#
{MESSAGE_FROM}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a class="nav" href="javascript:void(0)" onClick="return dropdownmenu(this, event, menu{VB_MENU_ID}, 'selfc')" onMouseout="delayhidemenu()">{MESSAGE_FROM}</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
,
Kod: Tümünü seç
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 2, and so on
<!-- BEGIN postrow -->
var menu{postrow.VB_MENU_ID}=new Array()
menu{postrow.VB_MENU_ID}[0]='<a class="vbmh"> {postrow.POSTER_NAME}</a>'
menu{postrow.VB_MENU_ID}[1]='{postrow.VB_MENU_PROFILE}'
menu{postrow.VB_MENU_ID}[2]='{postrow.VB_MENU_PM}'
menu{postrow.VB_MENU_ID}[3]='{postrow.VB_MENU_SEARCH}'
menu{postrow.VB_MENU_ID}[4]='{postrow.VB_MENU_EMAIL}'
menu{postrow.VB_MENU_ID}[5]='{postrow.VB_MENU_WWW}'
//menu{postrow.VB_MENU_ID}[6]='{postrow.VB_MENU_ALBUM}'
<!-- END postrow -->
var menuwidth='selfc' //default menu width
var menubgcolor='#F2F2F2' //menu bgcolor
var disappeardelay='350' //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick='yes' //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
var defaultwidth=menuwidth
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
if (typeof menuwidth=='undefined'||menuwidth=='selfc'){
tmpspan.style.display='inline'
dropmenuobj.widthobj.width=tmpspan.offsetWidth+'px'
tmpspan.style.display='none'
}
else if (menuwidth!='')
dropmenuobj.widthobj.width=menuwidth
else
dropmenuobj.widthobj.width=defaultwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6){
var appendit=0
if (typeof tmpspan=='undefined'){
tmpspan=document.createElement('span')
appendit=1
}
if(appendit){
tmpspan.style.position="absolute"
tmpspan.style.left="-1000px"
tmpspan.id='tspan'
document.body.appendChild(tmpspan)
tmpspan.style.display='none'
}
tmpspan.innerHTML=dropmenuobj.innerHTML=what.join("")
}
}
function dropdownmenu(obj, e, menucontents, menuwidth){
obj.onmouseout=delayhidemenu;
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br /><span class="nav">
<font color="#DD6900">{L_VIEWS}: {TOPIC_VIEWS} | {L_REPLIES}: {TOPIC_REPLIES}</font>
</span><br />
<span class="gensmall"><b>{PAGINATION}</b><br />
</span></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
<td align="left" valign="middle" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
<!-- BEGIN switch_parent_link -->
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
<!-- END switch_parent_link -->
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_ICON_IMG}</a><a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
</tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
{POLL_DISPLAY}
<tr>
<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}{postrow.POSTER_GENDER}<br /><br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
</tr>
<tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.REPORT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
<tr>
<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.AIM_IMG} <script language="JavaScript" type="text/javascript"><!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
document.write(' {postrow.ICQ_IMG}');
else
document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>');
//--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
</tr>
</table></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/Saphic/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
<tr><form method="post" action="{S_POST_DAYS_ACTION}">
<td><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span> <span class="gensmall"> <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> : <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> </span></td>
</form></tr>
</table></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
<td align="left" valign="middle" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
<!-- BEGIN switch_parent_link -->
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
<!-- END switch_parent_link -->
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
</td>
</tr>
<tr>
<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
</tr>
</table>
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}<br />{S_REPORT_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
Kod: Tümünü seç
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a class="nav" href="javascript:void(0)" onClick="return dropdownmenu(this, event, menu{postrow.VB_MENU_ID}, 'selfc')" onMouseout="delayhidemenu()">{postrow.POSTER_NAME}</a>