I could use some help....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chips
Forum Newbie
Posts: 4
Joined: Fri Mar 07, 2008 11:07 pm

I could use some help....

Post by chips »

I have a file called: user_reputation.tpl.php
And this code within:

Code: Select all

<? if ($user_details['has_imported']==Y && $setts['imp_enabled']) { ?>
<? if ($otherfeed['fb_ebay'] && $setts['imp_ebay']) { ?>
(<?=$otherfeed['fb_ebay'];?>)
Now, this displays my ebay score:

Code: Select all

(<?=$otherfeed['fb_ebay'];?>)
Output would be (24)

I would like to Display this output of (24) on another part of the site, my question is... Is it possible to come up with something to Copy the (24) from user_reputation.tpl.php and have it display on another part of my site?

------------------------------------------------------------------------------------------
Ok Looks like a lot of helpers here so I'm going to go fearther on what I'm talking about...

on this page: http://fooglebay.com/auction_details.ph ... _id=100371
you can see under Seller Information "View my imported Feedback" Link

if you click that link you would see my Ebay feedback that I imported...

What I'm asking is instead of it saying View my imported Feedback it would say:
My Ebay feedback (24)


The Ebay Feedback thing is a plug-in that allows my members to import there feedback from ebay
and I paid $5.00 for the plug-in, I had to manually edit the site on several php files and templates as the "HOW TO INSTALL" instructed me to do to make it work they way it dose.

----- I go on by further saying that I have asked the coder that made the scrip to help me out and to make up some kind of code to achieve what I'm asking, his reply is "I'm to busy, If I get time in the future I will work on it"

Thanks.
Last edited by chips on Sat Mar 08, 2008 12:51 pm, edited 2 times in total.
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Re: I could use some help....

Post by bdlang »

The most obvious method would be to use a session and store the variable between page requests.
chips
Forum Newbie
Posts: 4
Joined: Fri Mar 07, 2008 11:07 pm

Re: I could use some help....

Post by chips »

bdlang wrote:The most obvious method would be to use a session and store the variable between page requests.
how is that done?
I am no good at PHP, but if I had something to work with I could give it a try...
thanks for your help so far :)
Post Reply