61
ChadK
Re: Flashchat module link
  • 2004/8/25 1:40

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


This works better.. doesn't drop people. It also displays the names as a link. - Doesn't show anonymous chatters though..

global $xoopsDB;
$sql "SELECT xoops_users.uname, xoops_users.uid";
$sql.=" FROM xoops_users inner join";
$sql.=" xoops_connections ON xoops_connections.userid"
$sql.=" = xoops_users.uid";
$result $xoopsDB->query($sql);
while (
$row mysql_fetch_array($result)) {
     print 
$concat."<a href='".$XOOPS_URL."/userinfo.php?uid="
            
.$row['uid']."'>".$row['uname']."</a>";
     
$concat=", ";
}



62
ChadK
Re: Flashchat module link
  • 2004/8/25 0:20

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Maybe someone could figure out a way to keep it from dropping people from the online table if they're in chat? Or adding/updated the online record when they submit a chat text?

This block doesn't really work well because users sit in chat for 20 minutes or something and they no longer show up as "in chat" or even on the site at all when in fact, they're chatting.



63
ChadK
Re: Flashchat module link
  • 2004/8/24 23:53

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Does anyone have any admin menus or blocks for flash chat?

Here's a simple block for showing who's chatting... it's not very good but it works.

someone should make it link the names and stuff:
global $xoopsDB;
$sql "SELECT xoops_online.online_uname FROM  xoops_online ";
$sql .="inner join xoops_modules ON xoops_online.online_module ";
$sql.="= xoops_modules.mid WHERE xoops_modules.dirname='flashChat'";
$result $xoopsDB->query($sql);
while (
$row mysql_fetch_array($result)){
     print 
$concat.$row['online_uname'];
     
$concat=", ";
}


Of course, it should also use the XOOPS prefix...



64
ChadK
Re: myads v2.04 jp
  • 2004/8/24 16:54

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


It's possible to make it as an add-on module I think but I'm not really sure how that's done. It would be quite complex for me to try that I think.
I've identified the differences between the tables of the version I am using and your version.
I'm going to create a conversion script then install your version on my site with my ad broadcasting function.

I'll post the modified adannonces.php and the .sql conversion script when I'm done.



65
ChadK
Re: myads v2.04 jp
  • 2004/8/23 19:06

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


What version of myAds are you using?



66
ChadK
Re: Recipe Module
  • 2004/8/23 17:26

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Someone in this thread:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=21068&forum=30#forumpost91432
mentioned porting a recipe book to XOOPS at Sourceforge:
http://sourceforge.net/projects/phprecipebook/

Though it looks a bit stale..



67
ChadK
Re: myads v2.04 jp
  • 2004/8/23 16:43

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Yes, Snoopy is what I use but I just noticed there is a XOOPS API for snoopy and I don't need to be including it myself.. but I haven't fixed that yet.
My page also adds a Yahoo Map for the location ...

To start with I think I'm just going to put the remote site broadcasting into a table so the admin can add and remove sites to send ads to. The admin will be able to add/remove any site they want. XOOPS sites or anything else.
I just cleaned up my addannonces.php page quite a bit but I still have a lot to learn about xoops.

I'm not going to start a new project, I goofed on my post, I meant for YOU to start one. ;) You already have MANY more features in yours than I have so it makes more sense to add my remote site posting to your page.



68
ChadK
Re: myads v2.04 jp
  • 2004/8/23 15:59

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Temumo

I'm going to register a new ads system as a spin-off of myAds and do this thing right.

Call it something like xAds or whatever and we'll move our discussion over there.http://dev.xoops.org/

I'll post my addanonces.php file so you can see how I've managed to get it to post to other sites. It can be done better, using a database so sites could be added and removed by the admin, but I haven't had time yet and now I'm working on xPAY module as well.

I've only left in a couple of the external site posting functions because they can get quite long.

It'd be nice to have this version set up so that we could "share" ads amongst our XOOPS Sites.. like a XOOPS Ads Network. ;)

http://www.aviary.info/phpcode/addanonces.txt



69
ChadK
Re: myads v2.04 jp
  • 2004/8/23 15:06

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


The first time you Click on myAds GROUPS in admin screen and you get:
Warning [PHP]: array_keys(): The first argument should be an array in file class/xoopsform/grouppermform.php line 135
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsform/grouppermform.php line 135
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsform/grouppermform.php line 255
Notice [PHP]: Undefined variable: option_ids in file class/xoopsform/grouppermform.php line 273
Warning [PHP]: implode(): Bad arguments. in file class/xoopsform/grouppermform.php line 273
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsform/grouppermform.php line 255
Notice [PHP]: Undefined variable: option_ids in file class/xoopsform/grouppermform.php line 273
Warning [PHP]: implode(): Bad arguments. in file class/xoopsform/grouppermform.php line 273
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsform/grouppermform.php line 255
Notice [PHP]: Undefined variable: option_ids in file class/xoopsform/grouppermform.php line 273
Warning [PHP]: implode(): Bad arguments. in file class/xoopsform/grouppermform.php line 273


also, you have a bunch of files with spaces after the final ?> which is causing some "cannot change headers" errors.



70
ChadK
Re: myads v2.04 jp
  • 2004/8/23 14:35

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Any chance for a script to move the ads from the old myAds system to the new one? I have a bunch of ads I don't want to loose if I switch to this version.




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 22 »



Login

Who's Online

209 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 209


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