Results 1 to 5 of 5
  1. #1
    Newbie
    Join Date
    August 19th, 2006
    Posts
    3
    PHP- Request help appending username as SubID tracking link
    Hello all,

    Looking for help with appending SubID of username to a link stored in a mysql table.

    I am using Joomla 1.x.11, MTree 1.59.

    The weblisting is stored in a mtree website listing field.

    I believe that I need to use the following:
    Code:
    <?php global $my; echo $my->username; ?>
    My issue is that I only know enough PHP and MySQL to either find near what I want, or get me in trouble. I think that this is the correct link reference to modify:

    Code:
    <?php echo  $this->pageNav->writePagesLinks("index.php?option=$this->option&amp;task=listcats&amp;cat_id=$this->cat_id&amp;Itemid=$this->Itemid") ?>
    Is this the right area? I think that I need to add my code before the final "). I have tried this, but apparently am doing something wrong because when I load the page, It is completely blank.

    Do I strip the <?php and ?> out of my text because it will already be in a PHP block? Should the global go somewhere else?

    Direction would be appreciated.

    Thanks,

    Bob

  2. #2
    Member Tobius's Avatar
    Join Date
    August 16th, 2006
    Location
    Columbus, OH
    Posts
    55
    It would be much easier if you could post the entire block of PHP code rather than one or two lines. It's hard to troubleshoot out of context. But please remove any personal information from the code before posting it such as usernames, passwords, urls, account numbers, etc. Just replace them with dummy info.

    -tm

  3. #3
    Newbie
    Join Date
    August 19th, 2006
    Posts
    3
    Full template code
    I apologize. Here is the full code for that template:

    File:
    domain\components\com_mtree\templates\bluetree\sub_listings.tpl.php

    Code:
    <table border="0" cellpadding="5" cellspacing="0" width="100%">
    	<tr><td class="contentheading"><?php echo $this->_MT_LANG->LISTINGS; ?></td></tr>
    </table>
    
    <center>
    <table border="0" cellpadding="5" cellspacing="10" width="98%">
    	
    	<tr><td align="left">
    		<span class="xlistings"><?php echo sprintf($this->_MT_LANG->THERE_ARE_X_LISTING, $this->total_listing) ?></span>
    		<?php if ($this->cat_allow_submission && $this->user_addlisting >= 0) echo $this->plugin("ahref","index.php?option=com_mtree&task=addlisting&cat_id=$this->cat_id&Itemid=$this->Itemid",$this->_MT_LANG->ADD_YOUR_LISTING_HERE,'class="addsite"') ?>
    		<div class="dottedLine" />
    	</td></tr>
    
    	<?php foreach ($this->links AS $link): ?>
    	<tr><td align="left">
    		<?php include $this->loadTemplate('sub_listingSummary.tpl.php') ?>
    	</td></tr>
    	<?php endforeach; ?>
    
    	<?php if( $this->pageNav->total > $this->pageNav->limit ) { ?>
    	<tr><td align="center">
    		<br />
    		<center>
    			<?php echo $this->pageNav->writePagesCounter(); ?>
    			<br />
    			<?php echo  $this->pageNav->writePagesLinks("index.php?option=$this->option&amp;task=listcats&amp;cat_id=$this->cat_id&amp;Itemid=$this->Itemid") ?>
    		</center>
    	</td></tr>
    	<?php } ?>
    
    </table>
    </center>

  4. #4
    Member Tobius's Avatar
    Join Date
    August 16th, 2006
    Location
    Columbus, OH
    Posts
    55
    Hmmm, well I started to work out your error when I realized ... I know nothing about Joomla! PHP sure, but Joomla? Never used it.

    Anyhow, I hit Google real quick and found a solution to your problem on the Joomla forum. You might want to join their forum, they're much more knowledgable about your CMS than we are.

    http://forum.joomla.org/index.php?to...prev_next=prev

    I hope that gets you moving forward again.

    -tm

  5. #5
    Newbie
    Join Date
    August 19th, 2006
    Posts
    3
    thanks. gets me a little closer to understanding the issue. Will have to study and try a little more. If anyone else comes up with the answer I would appreciate it.

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. About subid tracking of sales
    By smallfish in forum BettyMills
    Replies: 0
    Last Post: April 2nd, 2010, 05:47 AM
  2. Axill SubID tracking?
    By bobbi507 in forum Other Affiliate Networks
    Replies: 1
    Last Post: March 6th, 2007, 12:02 AM
  3. subid tracking
    By rampguy in forum Commission Junction - CJ
    Replies: 7
    Last Post: November 15th, 2005, 06:22 PM
  4. Appending Links for tracking
    By Allen Nance in forum ShareASale - SAS
    Replies: 7
    Last Post: October 25th, 2005, 08:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •