Forum Index :: FAQ :: Search :: Memberlist :: Usergroups :: Join! (free) :: Log in
portalogy.myfastforum.org

For all your portal needs



Board Index >> General Support

  NEW PORTAL - CONFUSED ABOUT CODE AND PLACEMENT
Page 1, 2  Next
 
Post new topic   Reply to topic
Previous topic | Next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing. Post subject:    Posted:   






Back to top
ejw Post subject: NEW PORTAL - CONFUSED ABOUT CODE AND PLACEMENT    PostPosted: Wed Aug 22, 2007 5:45 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Hello...

I would like to add what I think is called a "Sub Portal" to my site

http://nogreaterlove.myfreeforum.org

I would like it to go above the topposters portal on the left.

I would like it to say "Welcome Back" and then the users name.

I have created a new portal called WELCOME BACK (not sure if I should have done or not) and I have the code from HOWTO to add the welcome, user name and new messages notice

Code:
 <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
        <tr>
        <th colspan="2"  class="thTop" nowrap="nowrap"><span class="forumlink">Welcome</span></th>
        </tr>
 <tr>
        <td class="row2">
<center>
<span class="forumlink">{USERNAME}</span><br/>{AVATAR}<br/>
<script language="Javascript" type="text/javascript">
<!--
   if ( {PRIVATE_MESSAGE_NEW_COUNT} >0)
   {
document.write('<p><a href="privmsg.php?folder=inbox"><img src="templates/myff_forum3/images/button_newmessages_red.gif"/></a></p>');
   }
//-->
</script>
</td>
  </tr>
 </center>
 </table>


But I'm not really sure what I'm doing.

I know I have to add something at the BOTTOM of overall_header and at the TOP of overall_footer to get it on the left side of the page (at least I think I know that Shocked )

But I have got myself stuck trying to work it all out. I wondered if you could help me and most importantly tell me whether this can be done!!!!

Thanks Nick....
Back to top Reply with quote
admin(Nick_NR) Post subject:    PostPosted: Thu Aug 23, 2007 5:36 pm  
Site Admin
Site Admin


Visit poster's website MSN Messenger Yahoo Messenger AIM Address View user's profile

Joined: 27 Dec 2006
Posts: 207
Points: 1000000


Location: England
To create a new portal click the blank one in portal setting and give it a name for example:

Name: WELCOMEBACK

the macro to place onto the forum for the portal to show would now be: {MYFF.WELCOMEBACK}

go to edit templates and find cms_welcomeback.tpl and edit it placing the code posted below into it.

Ok, this is the same code as you posted above, I just placed the switches in there so it only shows when people are logged in.

Code:
<!-- BEGIN switch_user_logged_in -->
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
        <tr>
        <th colspan="2"  class="thTop" nowrap="nowrap"><span class="forumlink">Welcome Back!</span></th>
        </tr>
 <tr>
        <td class="row2">
<center>
<span class="forumlink">{USERNAME}</span><br />{AVATAR}<br />
<script language="Javascript" type="text/javascript">
<!--
   if ( {PRIVATE_MESSAGE_NEW_COUNT} >0)
   {
document.write('<p><a href="privmsg.php?folder=inbox"><img src="templates/myff_forum3/images/button_newmessages_red.gif"/></a></p>');
   }
//-->
</script>
</center>
</td>
  </tr>
 </table>
<!-- END switch_user_logged_in -->


For placement:
open up you overall header and if you want it above topposters then scroll down the code until you get to the bottom, then slowly work up and find {MYFF.TOPPOSTERS}, then pop in the macro for the welcome portal you created, so you should have it appear like this:

{MYFF.WELCOMEBACK}
<br />{MYFF.TOPPOSTERS}
Back to top Reply with quote
ejw Post subject:    PostPosted: Thu Aug 23, 2007 8:00 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Hi Nick

This is bizarre......in overall header it doesnt show any of the portals to the left! Could this be because this is a portal template? I dont understand. Shocked
Back to top Reply with quote
ejw Post subject:    PostPosted: Thu Aug 23, 2007 8:01 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


I did find a list in index body???? That neatly listed all the portals! Should I put it in there?
Back to top Reply with quote
ejw Post subject:    PostPosted: Thu Aug 23, 2007 8:06 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Okay - I put it in the index body. The portal "box" has appeared but saying "Template Welcome Back" does not exist! I assume the code is wrong?
Back to top Reply with quote
ejw Post subject:    PostPosted: Thu Aug 23, 2007 8:12 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


ejw wrote:
Okay - I put it in the index body. The portal "box" has appeared but saying "Template Welcome Back" does not exist! I assume the code is wrong?


http://wakelover.myfreeforum.org/...=fad0d78d10b0fff8e5cfb68c869e947a this is just my test forum you understand!!
Back to top Reply with quote
ejw Post subject:    PostPosted: Thu Aug 23, 2007 8:20 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Nick - I cant log on to myff !!! I have had a new password sent but it wont allow me in! I cant PM anyone to tell them... Shocked My only thought was that I can let you know here....sorry to cut in on the thread Embarassed
Back to top Reply with quote
admin(Nick_NR) Post subject:    PostPosted: Thu Aug 23, 2007 9:20 pm  
Site Admin
Site Admin


Visit poster's website MSN Messenger Yahoo Messenger AIM Address View user's profile

Joined: 27 Dec 2006
Posts: 207
Points: 1000000


Location: England
ejw wrote:
ejw wrote:
Okay - I put it in the index body. The portal "box" has appeared but saying "Template Welcome Back" does not exist! I assume the code is wrong?


http://wakelover.myfreeforum.org/...=fad0d78d10b0fff8e5cfb68c869e947a this is just my test forum you understand!!


If that's the one titled ziddy_portal, then they should be at the bottom of the overall_header.tpl?

ejw wrote:
Nick - I cant log on to myff !!! I have had a new password sent but it wont allow me in! I cant PM anyone to tell them... Shocked My only thought was that I can let you know here....sorry to cut in on the thread Embarassed


Actually can't do much, admin wont do it as a precaution, bear in mind, he needs to clarify you here and the account on myff, as he can't afford to lose a members forum, it would be better to create a new account on there and let the lost password one die off.
Back to top Reply with quote
ejw Post subject:    PostPosted: Fri Aug 24, 2007 10:50 am  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Hi Nick

Here is a copy of what is showing in overall_header I cant see the portal list at all...

Code:
<!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 name="Author" content="http://www.trushkin.net" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="{T_TEMPLATE_PATH}/style.css" type="text/css">
<style type="text/css">
<!--
th, td.th, td.spacerow   { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
td.th2   { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
td.cat, td.catHead, td.catSides, td.catLeft, td.catRight   { background-image: url({T_TEMPLATE_PATH}/images/cell2.gif); }
td.catBottom { background-image: url({T_TEMPLATE_PATH}/images/cell3.gif); }
td.profile { background-image: url({T_TEMPLATE_PATH}/images/post_bg2.gif); }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("{T_TEMPLATE_PATH}/formIE.css");
-->
</style>
<!-- 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 -->
<script language="javascript" type="text/javascript">
<!--

 function changeImages()
 {
  if (document.images)
  {
   for (var i=0; i<changeImages.arguments.length; i+=2)
   {
    document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
   }
  }
 }

 var PreloadFlag = false;

 function newImage(arg)
 {
  if (document.images)
  {
   rslt = new Image();
   rslt.src = arg;
   return rslt;
  }
 }

 function PreloadImages()
 {
  if (document.images)
  {
   // preload all rollover images
   <!-- BEGIN switch_user_logged_out -->
   img0 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif');
   img1 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif');
   <!-- END switch_user_logged_out -->
   <!-- BEGIN switch_user_logged_in -->
   img2 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif');
   img3 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif');
   img4 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif');
   img5 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif');
   <!-- END switch_user_logged_in -->
   img6 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif');
   img7 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif');
   img8 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif');
   img9 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif');
   PreloadFlag = true;
  }
  return true;
 }

//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0053A2" vlink="#00468C" alink="#FF6633" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onload="PreloadImages();"><a name="top"></a><table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
   <td bgcolor="#0053A2" width="100%" align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="5"><tr><td><a href="{U_INDEX}"><img src="templates/myff_wakelover2/images/mainbanyd.gif" border="0" /></a></td></tr></table></td>
</tr>
<tr height="20">
   <td height="20" background="{T_TEMPLATE_PATH}/images/btn_bg.gif" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
      <!-- BEGIN switch_user_logged_out -->
      <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif'); return true;" onmouseout="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif'); return true;"><img name="btn_top_login" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
      <td><a title="{L_REGISTER}" href="{U_REGISTER}" onmouseover="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif'); return true;" onmouseout="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif'); return true;"><img name="btn_top_register" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif" height="20" border="0" alt="{L_REGISTER}" /></a></td>
      <!-- END switch_user_logged_out -->
      <!-- BEGIN switch_user_logged_in -->
      <td><a title="{L_PROFILE}" href="{U_PROFILE}" onmouseover="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif'); return true;" onmouseout="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif'); return true;"><img name="btn_top_profile" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif" height="20" border="0" alt="{L_PROFILE}" /></a></td>
      <td><a title="{PRIVATE_MESSAGE_INFO}" href="{U_PRIVATEMSGS}" onmouseover="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif'); return true;" onmouseout="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif'); return true;"><img name="btn_top_pm" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif" height="20" border="0" alt="{PRIVATE_MESSAGE_INFO}" /></a></td>
      <!-- END switch_user_logged_in -->
      <td><a title="{L_FAQ}" href="{U_FAQ}" onmouseover="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif'); return true;" onmouseout="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif'); return true;"><img name="btn_top_faq" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif" height="20" border="0" alt="{L_FAQ}" /></a></td>
      <td><a title="{L_MEMBERLIST}" href="{U_MEMBERLIST}" onmouseover="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif'); return true;" onmouseout="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif'); return true;"><img name="btn_top_users" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif" height="20" border="0" alt="{L_MEMBERLIST}" /></a></td>
      <td><a title="{L_SEARCH}" href="{U_SEARCH}" onmouseover="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif'); return true;" onmouseout="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif'); return true;"><img name="btn_top_search" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif" height="20" border="0" alt="{L_SEARCH}" /></a></td>
      <!-- BEGIN switch_user_logged_in -->
      <td><a title="{L_USERGROUPS}" href="{U_GROUP_CP}" onmouseover="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif'); return true;" onmouseout="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif'); return true;"><img name="btn_top_groups" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif" height="20" border="0" alt="{L_USERGROUPS}" /></a></td>
      <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif'); return true;" onmouseout="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif'); return true;"><img name="btn_top_logout" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
      <!-- END switch_user_logged_in -->
      <td><a title="{L_INDEX}" href="{U_INDEX}" onmouseover="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif'); return true;" onmouseout="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif'); return true;"><img name="btn_top_index" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif" height="20" border="0" alt="{L_INDEX}" /></a></td>
   </table></td>
</tr>
<tr height="100%">
   <td align="center" valign="top" height="100%">
   <br />
   <table border="0" cellspacing="0" cellpadding="10" width="100%">
   <tr>
      <td align="center" valign="top">
Back to top Reply with quote
admin(Nick_NR) Post subject:    PostPosted: Fri Aug 24, 2007 4:39 pm  
Site Admin
Site Admin


Visit poster's website MSN Messenger Yahoo Messenger AIM Address View user's profile

Joined: 27 Dec 2006
Posts: 207
Points: 1000000


Location: England
Ok, had a check of that template, looks like the portals were p[laced into the index_body.tpl, open it up and slowly scroll down, you will see {MYFF.TOPPOSTERS} eventually in there.
Back to top Reply with quote
ejw Post subject:    PostPosted: Fri Aug 24, 2007 7:50 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


Hi Nick - thanks for your help. I think I know (hopefully??) why it wasnt showing. I had put a gap in the WELCOME BACK title. Once I closed the gap it was fine - but it doesnt show the avatar or private messages like it says it should which is weird. At least I have the portal working. I think I am slowly beginning to understand the bit before I get to basic understanding!!! lol

Thanks again for your help....I'll have a look at the code again and try and see why its not doing what it say on the tin!!!
Back to top Reply with quote
ejw Post subject:    PostPosted: Fri Aug 24, 2007 7:56 pm  


View user's profile

Joined: 30 Jun 2007
Posts: 15
Points: 0


ejw wrote:
Hi Nick - thanks for your help. I think I know (hopefully??) why it wasnt showing. I had put a gap in the WELCOME BACK title. Once I closed the gap it was fine - but it doesnt show the avatar or private messages like it says it should which is weird. At least I have the portal working. I think I am slowly beginning to understand the bit before I get to basic understanding!!! lol

Thanks again for your help....I'll have a look at the code again and try and see why its not doing what it say on the tin!!!


Of course - If editor HAD an avatar or any PM's it might work!!!

If you have a prize for dumbest on the internet...I'd like to apply!!!!

Seriously though....I have now sent editor a PM and all I get is a cross in the box. I really need to get this to work because this template does not seem to have a pop up box for PMs. Any ideas!


Back to top Reply with quote

Display posts from previous:   
Post new topic   Reply to topic Page 1, 2  Next
Page 1 of 2

Board Index >> General Support


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

  ^ Card File  Gallery  Forum Archive ^  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template back ported to phpbb2 by Nick(NR) © 2007 Nick(NR)
Design By Poker Bandits
If you feel that PORTALOGY has been helpful and would like to say thank you then please click the donation button below.