WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

Go to page : Previous  1, 2, 3

View previous topic View next topic Go down  Message [Page 3 of 3]

shamzblueworld

shamzblueworld
Registered Member
Registered Member
First topic message reminder :


How to place Ads/Affiliates (Who's Online Page & New Topic Page)
Note: This will be possible only for Phpbb2 & Punbb


To add the Ads / Affiliate Space at the top of Who's online page.

Step 1: Get your Ads/Affiliate Code ready

ADs Code
Get the code by registering on google adsense, create the ads & get the code.

Affiliate Code

Code:
<a href="HERE TYPE THE ADDRESS WHERE YOU WANT TO LINK"><img src="HERE TYPE THE URL OF THE PICTURE YOU WANT TO BE SHOWN"></a>
Just go on adding the above code to add more affiliate images.


Step 2: Display>Templates>General
Hit the How to place Ads/Affiliates (Who's Online Page & New Topic Page) - Page 3 Editer corresponding to veiwonline_body


Step 3: Above all other codes add the following code
Code:
<font size="2" color="#000000" face="Arial">
<div><table width="100%" border="1" cellpadding="2" cellspacing="2" bgcolor="#ffffff">
<tr valign="top">
<td><br />YOUR AD CODE or AFFILIATE CODE GOES HERE
</td></tr></table></div></font>
To remove the table, you can just make border = "0" in the above code, which will hide the border. Also, replace the text of YOUR AD CODE or AFFILIATE CODE GOES HERE with your affiliate or google adsense code.




To add the Ads / Affiliate Space at New Topic Page.
Step 1: Goto Display>Template>Post & Private Messages
Step 2: Hit the How to place Ads/Affiliates (Who's Online Page & New Topic Page) - Page 3 Editer corresponding to Posting_body

Step 3: Add the code given below above all the existing codes.
Code:
<font><div><table width="100%" border="1" cellpadding="2" cellspacing="2" bgcolor="#ffffff">
<tr valign="top">
<td><br />YOUR AD CODE or AFFILIATE CODE GOES HERE
</td></tr></table></div></font>
To remove the table, you can just make border = "0" in the above code, which will hide the border. Also, replace the text of YOUR AD CODE or AFFILIATE CODE GOES HERE with your affiliate or google adsense code.
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators.



Last edited by shamzblueworld on Mon Jan 11, 2010 3:38 pm; edited 1 time in total


Sanket


Administrator
Administrator
Nopes, not until phpbb3 offers template editing.

http://www.webartzforum.com

netsniper


Registered Member
Registered Member
Thank you Sanket do you know if this will happen?

http://www.mybulgariaportal.com

Sanket

Sanket
Administrator
Administrator
Nopes, i am not aware of this happening anytime soon.

http://www.webartzforum.com

netsniper


Registered Member
Registered Member
Ok Thank you

Very Happy

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
Sanket lets just go back to the question, does your answer apply only to Forumotion or to phpbb3 globally ?

Cheers Very Happy

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
Hi Sanket maybe my question isn't clear, when you say that its not possible on phpbb 3 do you mean the one from Forumotion? or all of them from wherever they come from even phpbb themselves ?

Cheers
Very Happy

http://www.mybulgariaportal.com

Sanket

Sanket
Administrator
Administrator
Nopes from forumotion i meant.

http://www.webartzforum.com

netsniper


Registered Member
Registered Member
Ok so on any normal Phpbb its possible? say direct from Phpbb

Cheers Very Happy

http://www.mybulgariaportal.com

Sanket

Sanket
Administrator
Administrator
Direct phpbb, everything is possible because you host it on your host.

http://www.webartzforum.com

netsniper


Registered Member
Registered Member
Ok thank you Sanket

Cheers

Very Happy Very Happy Very Happy

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
Hi Guy's I want to know if it's possible to add this bit of code to the header on phpbb3 header template this is not a forumotion site I would like it to appear in the same place as it is on this site HERE TBH

Code:
<a href="http://fileden.com/files/2010/1/30/2743809/Link%20the%20banner%20is%20attached%20to..pdf"><img src="http://i377.photobucket.com/albums/oo217/minisniperthefirst/MEMBER%20LINKS/TBH2.jpg"></a>
<br>

This is the code from the phpbb 3 header template

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>

<!-- IF S_ENABLE_FEEDS -->
   <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
   if ({S_NEW_PM})
   {
      popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
   }
<!-- ENDIF -->

function popup(url, width, height, name)
{
   if (!name)
   {
      name = '_popup';
   }

   window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
   return false;
}

function jumpto()
{
   var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
   var per_page = '{PER_PAGE}';
   var base_url = '{A_BASE_URL}';

   if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
   {
      if (base_url.indexOf('?') == -1)
      {
         document.location.href = base_url + '?start=' + ((page - 1) * per_page);
      }
      else
      {
         document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
      }
   }
}

/**
* Find a member
*/
function find_username(url)
{
   popup(url, 760, 570, '_usersearch');
   return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
   var parent = document.getElementById(id);
   if (!parent)
   {
      eval('parent = document.' + id);
   }

   if (!parent)
   {
      return;
   }

   var rb = parent.getElementsByTagName('input');
   
   for (var r = 0; r < rb.length; r++)
   {
      if (rb[r].name.substr(0, name.length) == name)
      {
         rb[r].checked = state;
      }
   }
}

<!-- IF ._file -->

   /**
   * Play quicktime file by determining it's width/height
   * from the displayed rectangle area
   *
   * Only defined if there is a file block present.
   */
   function play_qt_file(obj)
   {
      var rectangle = obj.GetRectangle();

      if (rectangle)
      {
         rectangle = rectangle.split(',')
         var x1 = parseInt(rectangle[0]);
         var x2 = parseInt(rectangle[2]);
         var y1 = parseInt(rectangle[1]);
         var y2 = parseInt(rectangle[3]);

         var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
         var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
      }
      else
      {
         var width = 200;
         var height = 0;
      }

      obj.width = width;
      obj.height = height + 16;

      obj.SetControllerVisible(true);

      obj.Play();
   }
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<div id="wrapheader">

   <div id="logodesc">
      <table width="100%" cellspacing="0">
      <tr>
         <td align="center"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
      </tr>
      </table>
   </div>

   <div id="menubar">
      <table width="100%" cellspacing="0">
      <tr>
         <td class="genmed">
         <!-- IF U_RESTORE_PERMISSIONS -->  <a href="{U_RESTORE_PERMISSIONS}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
         <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN -->  <span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
         </td>
      </tr>
      <tr>
         <td class="genmed">
            <a href="{U_INDEX}"><img src="{T_THEME_PATH}/images/top_index.png" alt="Index" /></a>
            <a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/top_faq.png" alt="{L_FAQ}" /></a>
            <!-- IF S_DISPLAY_SEARCH -->
               <a href="{U_SEARCH}"><img src="{T_THEME_PATH}/images/top_search.png" alt="{L_SEARCH}" /></a>
            <!-- ENDIF -->
            <!-- IF not S_IS_BOT -->
               <!-- IF S_DISPLAY_MEMBERLIST -->
                  <a href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/top_members.png" alt="{L_MEMBERLIST}" /></a>
               <!-- ENDIF -->
               <!-- IF S_USER_LOGGED_IN -->
                  <a href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/top_profile.png" alt="{L_PROFILE}" /></a>
                  <!-- IF S_DISPLAY_PM -->
                     <a href="{U_PRIVATEMSGS}">
                        <!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->
                           <img src="{T_THEME_PATH}/images/top_pmnew.gif" alt="New Private Messages" />
                        <!-- ELSE -->
                           <img src="{T_THEME_PATH}/images/top_pm2.png" alt="View Private Messages" />
                        <!-- ENDIF -->
                     </a>
                  <!-- ENDIF -->
                  <a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/top_logout.png" alt="{L_LOGIN_LOGOUT}" /></a>
               <!-- ELSE -->
                  <!-- IF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) -->
                     <a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/top_register.png" alt="{L_REGISTER}" /></a>
                  <!-- ENDIF -->
                  <a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/top_login.png" alt="{L_LOGIN_LOGOUT}" /></a>
               <!-- ENDIF -->
            <!-- ENDIF -->
            <!-- IF S_ENABLE_FEEDS -->
               <!-- IF S_ENABLE_FEEDS_OVERALL -->
                  <a href="{U_FEED}"><img src="{T_THEME_PATH}/images/top_rss.png" alt="{L_FEED}" /></a>
               <!-- ENDIF -->
            <!-- ENDIF -->
         </td>
      </tr>
      </table>
   </div>*******************************************************

   <div id="datebar">
      <table width="100%" cellspacing="0">
      <tr>
         <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
         <td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
      </tr>
      </table>
   </div>

</div>

<div id="wrapcentre">

   <!-- IF S_DISPLAY_SEARCH -->
   <p class="searchbar">
      <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
      <!-- IF S_USER_LOGGED_IN -->
      <span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> | <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
      <!-- ENDIF -->
   </p>
   <!-- ENDIF -->

   <br style="clear: both;" />

   <!-- INCLUDE breadcrumbs.html -->

   <br />


Cheers Smile



Last edited by netsniper on Sat Apr 10, 2010 4:13 pm; edited 2 times in total

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
No worries guy's I've managed to work it out for myself.

I just love this forum before joining here I would never have tried this sort of thing so thank you all for your knowledge and the opportunity for an old one to learn

Cheers Very Happy

http://www.mybulgariaportal.com

Sanket

Sanket
Administrator
Administrator
Thats good Very Happy

http://www.webartzforum.com

netsniper


Registered Member
Registered Member
Ooooooooops I'm back for some reason the add isn't there anymore the code is still in place but it doesn't show, I've moved it again and its showing but I don't know for how long? I think I need your help after all

Cheers Very Happy

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
I noticed it shows until I delete the cookies if that's of any help

Cheers Very Happy

http://www.mybulgariaportal.com

netsniper


Registered Member
Registered Member
If you look at the code above where the stars are is where I have added it

Very Happy

http://www.mybulgariaportal.com

Sponsored content


View previous topic View next topic Back to top  Message [Page 3 of 3]

Go to page : Previous  1, 2, 3

Permissions in this forum:
You cannot reply to topics in this forum