1
j0sh78
php variable in a block
  • 2007/2/8 20:00

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


hi all
i set a variable in header.php

now i can't print that in a php block...

i tried with

global $var;
echo $var;

or echo $GLOBALS['var'];

but this doesn't work

can you help me?
------------------------------
Pixaelcity the city of entertainment



2
j0sh78
Re: wf-section problem
  • 2005/8/21 10:46

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


ok i solve this problem...

i changed class/wfsection.php

from line 611 to 629

all "SELECT * "
with
"SELECT articleid,title,uid,categoryid,weight,counter,created,offline"
------------------------------
Pixaelcity the city of entertainment



3
j0sh78
wf-section problem
  • 2005/8/21 10:34

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


hi all

i published over 500 articles with wf-section and now i can't see the articles list in admin... when i click on articles management, browser stay on the same page...

i think that there are some problems with query to show the list...

PS if i click on create new article and then on show offline articles i can see the list... (only 5 articles)
------------------------------
Pixaelcity the city of entertainment



4
j0sh78
newbb - icon read problem
  • 2005/4/28 22:57

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


hi all!
in my newbb (http://www.pixaelcity.com/modules/newbb/index.php) i can see the icon read only for last topic viewed...
if i see 3 topic in different forums only the last is marked as read

can you help me?



5
j0sh78
this is very strange!
  • 2005/4/14 16:20

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


why i can change email in my profile whitout have to reactivate my account?
if i set signup with confirm then i have to disable change of email in user's profile



6
j0sh78
users & ip
  • 2005/4/13 8:54

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


hi all
have you a solution to show if an ip is shared between a lot of users?
i need this to know if a user create different account...



7
j0sh78
Re: module or block to invite users
  • 2005/4/13 8:47

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


i added an hack to this block to show a list of users that invited a friend
i simply modify misc.php in this way:

row 190
echo "<div style=\"padding:10px\"><h4>"._MSC_REFERENCESENT."</h4></div>";
$sql = sprintf("UPDATE %s SET invite = '%s' WHERE uid = %u", $xoopsDB->prefix('users'), $xoopsUser->getVar('invite')+1, $xoopsUser->getVar('uid'));
$xoopsDB->query($sql);

you have to add "invite" to members table

to show the list i add a case to switch in misc.php

case "invited":
echo '</head><body style="padding:10px">
<table width="100%" class="outer" cellpadding="3">
<tr>
<th colspan="2">Ecco chi ci sostiene</th>
</tr>
<tr class="head">
<td align="left">Nick</td>
<td align="right">Amici invitati</td>
</tr>';
if ($getinvited = $xoopsDB->query("SELECT uname,invited FROM ".$xoopsDB->prefix("users")." where invited!=0 order by invited desc")) {
$rcolor = 'even';
while ( $row = $xoopsDB->fetchArray($getinvited) ) {
echo "<tr class='$rcolor'><td align=\"left\">".$row['uname']."</td><td align=\"right\">".$row['invited']."</td></tr>";
$rcolor = ($rcolor == 'even') ? 'odd' : 'even';
}
} else {
echo "Nessun abitante ha invitato amici in Pixaelcity";
}
echo '</table>';
break;

sorry for code's formatting



8
j0sh78
Re: module or block to invite users
  • 2005/4/12 0:07

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


Quote:

ackbarr wrote:
If you are talking about referrals, the "Site Info" block in the System module has a link to "Recommend Us". The WF-Channel module has a Refer-A-Friend feature.

very good i didn't see that... tnx!



9
j0sh78
module or block to invite users
  • 2005/4/11 21:46

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


is there a block or module to invite a user on the site?



10
j0sh78
xoopsodp charset
  • 2005/4/1 23:13

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


hi all
i've a problem with urlencode in xoopsodp
see thathttp://www.pixaelcity.com/modules/xoopsodp/index.php
why Società is SocietÃ?
i tried urldecode but don't work
i changed charset in utf-8 but this didn't have success...




TopTop
(1) 2 3 4 5 »



Login

Who's Online

307 user(s) are online (212 user(s) are browsing Support Forums)


Members: 0


Guests: 307


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits