OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Advertisement Board component Support
Go to bottom Favoured: 0
TOPIC: additional add ads button on the top
#7993
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
additional add ads button on the top 3 Years, 4 Months ago Karma: 0  
Hello, on my site the user do not find immediatly the add ads button, because it is always at the end of the page and to much scrolling. Is it possible to place the button on the top too? How does that work? Thanks for help
www.dsny-eltern.org/index.php?option=com...ories&Itemid=115
 
Logged Logged  
  The administrator has disabled public write access.
#8008
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:additional add ads button on the top 3 Years, 4 Months ago Karma: 61  
Hello,

sorry, what browser you use ?

For me all look good

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#8016
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:additional add ads button on the top 3 Years, 4 Months ago Karma: 0  
I use Firefox, but my problem is we want an additional button on the top. User do not find the button immediatly at the end of the page. So we would like to have one button more right next to the choice of categories. Maybe you have idea to solve this issue? Thanks a lot
 
Logged Logged  
  The administrator has disabled public write access.
#8017
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:additional add ads button on the top 3 Years, 4 Months ago Karma: 61  
Hello,

Please open file,
{yours site}/components/com_advertisementboard/advertisementboard.html.php

and find code like:
Code:

<?php
  if ($params->get( 'show_add_advertisement') ) {
?>

<table width="100%" border="0" class="basictable" cellspacing="0" cellpadding="0">

    <tr>
      <td colspan="2" align="left">
        <form action="<?php echo sefRelToAbs("index.php?option=com_advertisementboard&amp;task=add_advertisement&amp;Itemid=$Itemid");?>" method="post" name="add_advertisement">
          <input class="button" type="submit" name="create_advertisement" value="<?php echo _ADVERTISEMENTBOARD_LABEL_BUTTON_ADD_ADS; ?>" >
          <input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>" >
        </form>
      </td>

    </tr>
<?php
  }



You will see it in 2 functions
You need copy that code to that function top.
But please be careful and back up file first

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#8019
Akela (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:additional add ads button on the top 3 Years, 4 Months ago Karma: 0  
Thanks for your answer. As I do not know php, can you help me in which line I have to put the code? Is it maybe line 384?
 
Logged Logged  
 
Last Edit: 2013/05/14 08:15 By admin.
  The administrator has disabled public write access.
#8027
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:additional add ads button on the top 3 Years, 4 Months ago Karma: 61  
Hello,

Please move that code:
Code:

<?php
  if ($params->get( 'show_add_advertisement') ) {
?>

<table width="100%" border="0" class="basictable" cellspacing="0" cellpadding="0">

    <tr>
      <td colspan="2" align="left">
        <form action="<?php echo sefRelToAbs("index.php?option=com_advertisementboard&amp;task=add_advertisement&amp;Itemid=$Itemid");?>" method="post" name="add_advertisement">
          <input class="button" type="submit" name="create_advertisement" value="<?php echo _ADVERTISEMENTBOARD_LABEL_BUTTON_ADD_ADS; ?>" >
          <input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>" >
        </form>
      </td>

    </tr>
<?php
  }
?>



before:
Code:

<?php 


    $prev_catid = "";

    for ($i=0; $i<count($categories) ; $i++) {



Look like that 371 row.

Please backup that file first

Thanks,
Andrew,
OrdSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?