[SOLVED] Where is the management?

15 years 1 month ago #89958 by Crazydane
Replied by Crazydane on topic Re:Where is the management?
Please help... :(

Please Log in to join the conversation.

15 years 1 month ago #90252 by ckayfish
Replied by ckayfish on topic Re:Where is the management?
He named his variables $sphinxrow and $sphinxhttp. Variable names are arbitrary, they only need to be unique. You could use the name he chose to honor is contribution or you could name them whatever you like.

Crazydane wrote:

There is a couple of places in the code you have written, where you write $sphinxrow-http and row..

This might be a stupid ?, but since sphinx is your username, I was just wondering if I am suppose to change that when I put the code on my own site?

sphinx76 wrote:

$query = "SELECT a.userid,b.username from jos_comprofiler_plug_profilegallery a inner join jos_users b on (a.userid=b.id) WHERE a.pgitemapproved=0";
if(!$database->setQuery($query)) print $database->getErrorMsg();
$sphinxrow = $database->loadAssocList();

Before line 148 (if($totaluserpendapproval > 0 && $ueConfig) I addes a new line with the content:

$sphinxhttp = "index.php?option=com_comprofiler&task=userProfile&user=";
foreach($sphinxrow as $r) {

echo "User: <a href=$sphinxhttp$r[userid]>$r[username]<a/><br>";
}
quote]


Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

Please Log in to join the conversation.

15 years 1 month ago #90404 by Crazydane
Replied by Crazydane on topic Re:Where is the management?
Thank you so much for your replie.

Can you then also tell me, whe he writes that he have added the code to line 130 and before line 148.

When I open mod_comprofilermoderator.php in dreamweaver, I can only see 120 lines.

Im not hardcore at this, so I might ask stupid ?.

Hope you can help with this one too.

Thanx..

René

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 1.617 seconds

Facebook Twitter LinkedIn