Registratie Pop-Up

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
LoYaL
Berichten: 754
Lid geworden op: 15 okt 2004, 19:20
Contacteer:

Registratie Pop-Up

Bericht door LoYaL » 16 feb 2005, 16:26

Code: Selecteer alles

########################################################################################### 
### Mod Title: Guest Register Pop-Up
### Mod Version: Alfa 1a
### Phpbb Version: 2.02
### Created: Sept 2002
### Author: Jamer (webmaster@jamer.co.uk)
### 
###########################################################################################
### Author Notes:  This Will add a popup, suggesting to your guests, that they register for 
### your forums.
###
### Demo:  http://www.jamer.co.uk/scripts/phpbb2
### Installation Level: 	Easy 
### Installation Time:  	3-4 Minutes
### Files To Edit:       1      overall_header.tpl
###                      	
### Included Files:             popup.tpl                    
###
###########################################################################################
### Before Adding This MOD To Your Forum, You Should Back Up All Files Related To this mod ###########################################################################################
# 
#-----[ OPEN FILE: ]------------------------------------------ 
# templates/xxx/overall_header.tpl

[FIND:]
{L_LOGIN_LOGOUT}</a>&nbsp;

[ADD AFTER:]
<!-- BEGIN switch_user_logged_out --> 
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=350,left = 387,top = 259');");
}
// End -->
</script>
<BODY onLoad="javascript:popUp('popup.tpl')">

<!-- END switch_user_logged_out -->

# 
#-----[ OPEN FILE: ]------------------------------------------ 
# popup.tpl (included)

[EDIT]

You can edit this file to how you want it to look!
(Remembert to change the Path's and the Title & you can also change the Colour's, if you prefer a different look, or to match your forum colour scheme) ENJOY...

# 
#-----[ UPLOAD FILES: ]------------------------------------------ 
# 
templates/xxx/overall_header.tpl
/popup.tpl



##########################################################################################
Hier de overall_header.tpl:

Code: Selecteer alles

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Solaris/{T_HEAD_STYLESHEET}" type="text/css">

<!--

  NOTICE

  Solaris template, originally custom designed for alternativeSuns forums (http://forum.alternativesuns.com).
  Template created by Jakob Persson (http://www.jakob-persson.com), see my website for more free templates
  and samples of my work.
  
  This template is in no way associated or affiliated with the film by the same name released in 2002, directed
  by Steven Soderbergh and distributed by 20th Century Fox.
  No trademark infringement intended. Choice of name solely meant as a tribute to the science-fiction novel
  by the same name by author Stanislaw Lem (http://www.cyberiad.info).
  
  This template is publicly available for use with the phpBB forum software (http://www.phpbb.com).
  
  This template is copyright (c) Jakob Persson 2003.
  
  Template ID: EkjAk9vYSF2dpi3LiBJR2Vq8jW9NX9pSYAxMfPGy  
  
  Removal or alteration of this notice is strongly prohibited.

-->

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--

	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}

	
//-->
</script>
<!-- END switch_enable_pm_popup -->

</head>
<body>
<table width="750" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td valign="top" class="maintable">
	
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="50%" valign="top"><a href="{U_INDEX}" class="nav"><img src="templates/Solaris/images/forumlogo.jpg" width="253" height="98" border="0" /></a></td>
            <td width="50%" valign="top">
			
			<table border="0" align="right" cellpadding="0" cellspacing="1">
                <tr> 
                  <td></td>
                  <td></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="9" /></td>
                </tr>
                <tr> 
                  <td><a href="{U_FAQ}" name="topnavurl0"><img src="templates/Solaris/images/lang_english/topimg_faq-e.jpg" alt="{L_FAQ}" name="topnavimg0" border="0" /></a></td>                  
				  <td><a href="{U_LOGIN_LOGOUT}" name="topnavurl1"><img src="templates/Solaris/images/lang_english/topimg_login-logout-e" alt="{L_LOGIN_LOGOUT}" name="topnavimg1" border="0" /></a></td>	
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td><a href="{U_SEARCH}" name="topnavurl2"><img src="templates/Solaris/images/lang_english/topimg_search-e.jpg" width="80" height="15" alt="{L_SEARCH}" name="topnavimg2" border="0" /></a></td>
                  <td><a href="{U_PROFILE}" name="topnavurl3"><img src="templates/Solaris/images/lang_english/topimg_profile-d.jpg" width="80" height="15" alt="{L_PROFILE}" name="topnavimg3" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td><a href="{U_MEMBERLIST}" name="topnavurl4"><img src="templates/Solaris/images/lang_english/topimg_members-d.jpg" width="80" height="15" alt="{L_MEMBERLIST}" name="topnavimg4" border="0" /></a></td> <!--  onLoad="this.src=topnavimg_4;" -->
                  <td><a href="{U_GROUP_CP}" name="topnavurl5"><img src="templates/Solaris/images/lang_english/topimg_groups-e.jpg" width="80" height="15" alt="{L_USERGROUPS}" name="topnavimg5" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td colspan="2"><a href="{U_PRIVATEMSGS}" name="topnavurl6"><img src="templates/Solaris/images/lang_english/topimg_pms-d.jpg" width="161" height="15" alt="{PRIVATE_MESSAGE_INFO}" name="topnavimg6" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="15" /></td>
                </tr>
                <tr> 
                  <td colspan="2"><a href="{U_REGISTER}" name="topnavurl7"><img src="templates/Solaris/images/topimg_register.jpg" width="161" height="15" name="topnavimg7" alt="{L_REGISTER}" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="8" /></td>
                </tr>
              </table>
			  
<script language="Javascript" type="text/javascript">
<!--
//declaring variables and arrays
var privmsg_image_path = "{PRIVMSG_IMG}", current_lang = "";

//extract the current language string
current_lang = privmsg_image_path.match(/lang_[a-z]*/);

if (current_lang != ""){

<!-- BEGIN switch_user_logged_out -->

	//assign image paths
	document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg";			//faq
	document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_login-e.jpg";	//login/logout
	document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg";		//search
	document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-d.jpg";		//profile
	document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg";		//memberlist
	document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg";		//usergroups
	document.images["topnavimg6"].src = "templates/Solaris/images/" + current_lang + "/topimg_pms-d.jpg";			//private messages/new private messages
	document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-e.jpg";		//register
	
<!-- END switch_user_logged_out -->

<!-- BEGIN switch_user_logged_in -->

	//parse strings
	loginlogout = "{U_LOGIN_LOGOUT}";
	stringIndex = loginlogout.indexOf("amp");
	loginlogout2 = loginlogout.slice(0,stringIndex);
	loginlogout2 += loginlogout.slice(stringIndex+4);

	//assign image paths
	document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg";			//faq
	document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_logout-e.jpg";	//login/logout
	document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg";		//search
	document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-e.jpg";		//profile
	document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg";		//memberlist
	document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg";		//usergroups
	document.images["topnavimg6"].src = "{PRIVMSG_IMG}";																	//private messages/new private messages
	document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-d.jpg";		//register
	
<!-- END switch_user_logged_in -->	

}

//-->
</script>  
		  
			</td>
          </tr>
          <tr valign="top"> 
            <td colspan="2"><img src="templates/Solaris/images/bg_top_border.jpg" width="750" height="51" /></td>
          </tr>
          <tr>             
      		<td colspan="2">
          
				  <table width="720" border="0" cellpadding="0" cellspacing="0" align="center">
					<tr> 					  
                  		<td class="mainforumcell">
						
						<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  							<tr>
    							<td width="1%"><img src="templates/Solaris/images/spacer.gif" width="10" /></td>
    							<td width="98%">
Mijn probleem is :

Ze vragen :

Code: Selecteer alles

[FIND:]
{L_LOGIN_LOGOUT}</a>&nbsp;
Maar die heb ik dus niet, kan iemand dit oplossen ? :thumb:
http://www.rappersonline - voor al je online rapmovies + downloads !

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 feb 2005, 16:48

het maakt niet zo veel uit waar je het neerzet zo te zien.

Als ik jou was zou ik het voor

Code: Selecteer alles

<!-- BEGIN switch_enable_pm_popup -->
zetten

En PM me aub niet meer hierover, je kan ook gewoon geduldig wachten

LoYaL
Berichten: 754
Lid geworden op: 15 okt 2004, 19:20
Contacteer:

Bericht door LoYaL » 16 feb 2005, 16:52

Jeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeej!! Dank je !!
http://www.rappersonline - voor al je online rapmovies + downloads !

Gesloten