161
jeffgr
Re: cityguide123.com & folsomliving.com
  • 2006/11/1 16:07

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I am using mxdirectory on my site, see it at:

http://myottawa.ca/modules/mxdirectory/

I changed some of the template files to remove functions/features that I did not want to use...coupons etc.

Jeff



162
jeffgr
Re: Integrating Dolphin with Xoops?
  • 2006/10/25 13:10

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


yes, have downloaded the package files...it is free to do so, at:

http://www.boonex.com/products/dolphin/

(you have to go through a bit of a sign-up process where they give you a license per domain etc.)

I can pm you these files for testing purposes if you want to take a look as well...

From the demo, it seems like a fantastic social networking software...which, when merged with Xoops, would basically cover everything I want/need in a community web site.



163
jeffgr
Integrating Dolphin with Xoops?
  • 2006/10/25 0:19

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I don't know if you are familiar with Dolphin, but it is an open-source social networking script like myspace.com etc. I'd like to try and wrap the program as an XOOPS module...basically, all I want to do is to have my site users also be able to login to the script at the same time, so there is seamless movement between the two programs. I've never created a module before, but I am willing to give it a go for this... does anyone have any pointers for me on how to start, or perhaps an easier way to do this?

Thanks,

Jeff



164
jeffgr
Xoops xmmemberstats small hack
  • 2006/10/24 19:29

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I noticed that in the list of members, only the member name linked back to that users' profile, and not the avatar displayed beside the name. Here is the code to replace to make the avatar also link back to the person's profile:

in the xmmemberstats module folder...

edit index.php

on line 289 replace:

echo "<td align='center'><img src='".XOOPS_URL."/uploads/".$userinfo->user_avatar()."' alt='' width='64' height='64' />&nbsp;</td>\n";

with

echo "<td align='center'><a href='".XOOPS_URL."/userinfo.php?uid=".$userinfo->uid()."'><img src='".XOOPS_URL."/uploads/".$userinfo->user_avatar()."' alt='' width='64' height='64' /></a>&nbsp;</td>\n";

You can see what I mean at:

http://myottawa.ca/modules/xmmemberstats/



165
jeffgr
Re: How to clone Planet rss module?
  • 2006/10/23 17:34

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Me again.... :)


Well, I followed your instructions, and was able to install the cloned module on my site...the module instalation went fine. Very clear installation instructions btw, thank you! But I am having a problem in using the module, I get this error:

This page cannot be displayed due to an internal error.You can provide the following information to the administrators of this site to help them solve the problem:Error: Handler does not existModule: myplanetName: category

Here is the modified MySQL file, where I changed all the table categories as per your instuctions. I just used the example you gave exactly, so I changed the tables from "planet_article" to "planetdb_article", for example.

Can you tell me what else I need to change to fix the above error? (if the error is even in this part of the module, I don't know...)


## phpMyAdmin SQL Dump## version 2.6.3-pl1##http://www.phpmyadmin.net## ## Host: localhost## Generation Time: Nov 13, 2005 at 08:24 PM## Server version: 4.1.13## PHP Version: 5.1.0RC1## ## Database: `forge`## ## --------------------------------------------------------## ## Table structure for table `planet_article`## CREATE TABLE `planetdb_article` ( `art_id` int(10) unsigned NOT NULL auto_increment, `blog_id` mediumint(8) unsigned NOT NULL default '0', `art_author` varchar(255) NOT NULL default '', `art_title` varchar(255) NOT NULL default '', `art_link` varchar(255) NOT NULL default '', `art_content` text, `art_time` int(10) unsigned NOT NULL default '0', `art_views` int(10) unsigned NOT NULL default '0', `art_rating` int(10) unsigned NOT NULL default '0', `art_rates` int(10) unsigned NOT NULL default '0', `art_comments` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`art_id`), KEY `blog_id` (`blog_id`), KEY `art_title` (`art_title`)) TYPE=MyISAM;## --------------------------------------------------------## ## Table structure for table `planet_blog`## CREATE TABLE `planetdb_blog` ( `blog_id` mediumint(8) unsigned NOT NULL auto_increment, `blog_title` varchar(255) NOT NULL default '', `blog_desc` varchar(255) NOT NULL default '', `blog_feed` varchar(255) NOT NULL default '', `blog_language` varchar(32) NOT NULL default '', `blog_charset` varchar(32) NOT NULL default '', `blog_link` varchar(255) NOT NULL default '', `blog_image` varchar(255) NOT NULL default '', `blog_trackback` varchar(255) NOT NULL default '', `blog_submitter` varchar(255) NOT NULL default '', `blog_status` tinyint(1) unsigned NOT NULL default '1', `blog_key` varchar(32) NOT NULL default '', `blog_time` int(10) unsigned NOT NULL default '0', `blog_rating` int(10) unsigned NOT NULL default '0', `blog_rates` int(10) unsigned NOT NULL default '0', `blog_marks` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`blog_id`), KEY `blog_title` (`blog_title`), KEY `blog_feed` (`blog_feed`)) TYPE=MyISAM;## --------------------------------------------------------## ## Table structure for table `planet_blogcat`## CREATE TABLE `planetdb_blogcat` ( `bc_id` int(11) unsigned NOT NULL auto_increment, `blog_id` int(11) unsigned NOT NULL default '0', `cat_id` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`bc_id`), KEY `art_id` (`blog_id`,`cat_id`)) TYPE=MyISAM;## --------------------------------------------------------## ## Table structure for table `planet_bookmark`## CREATE TABLE `planetdb_bookmark` ( `bm_id` int(11) unsigned NOT NULL auto_increment, `blog_id` int(11) unsigned NOT NULL default '0', `bm_uid` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`bm_id`), KEY `blog_id` (`blog_id`), KEY `bm_uid` (`bm_uid`)) TYPE=MyISAM;## --------------------------------------------------------## ## Table structure for table `planet_category`## CREATE TABLE `planetdb_category` ( `cat_id` mediumint(4) unsigned NOT NULL auto_increment, `cat_title` varchar(255) NOT NULL default '', `cat_order` mediumint(4) unsigned NOT NULL default '1', PRIMARY KEY (`cat_id`), KEY `cat_title` (`cat_title`)) TYPE=MyISAM;## --------------------------------------------------------## ## Table structure for table `planet_rate`## CREATE TABLE `planetdb_rate` ( `rate_id` int(11) unsigned NOT NULL auto_increment, `art_id` int(11) unsigned NOT NULL default '0', `blog_id` int(11) unsigned NOT NULL default '0', `rate_uid` int(11) unsigned NOT NULL default '0', `rate_ip` int(11) unsigned NOT NULL default '0', `rate_rating` tinyint(3) unsigned NOT NULL default '0', `rate_time` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`rate_id`), KEY `art_id` (`art_id`), KEY `blog_id` (`blog_id`)) TYPE=MyISAM;


Thanks!

Jeff



166
jeffgr
How to align search icons? (some nice icons too...)
  • 2006/10/21 12:05

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi there,

I have replaced the search results icons that appear on a users profile page with some icons of my own. Free free to grab these icons by right-clicking, and then replacing the corresponding file for each (view source of image to see where that is).

http://myottawa.ca/userinfo.php?uid=1

One tiny thing is bothering me...the icons are not totally aligned with the text...I believe the images need to be text aligned to the "absolute middle"... but how to do this?

In the file userinfo.php, I found this code at line 200:



// Hack by marcan : only return results of modules for which user has access permission
if ( $gperm_handler->checkRight('module_read', $mid, $groups)) {
$module =& $module_handler->get($mid);
$results =& $module->search('', '', 5, 0, $thisUser->getVar('uid'));
$count = count($results);
if (is_array($results) && $count > 0) {
for ($i = 0; $i < $count; $i++) {
if (isset($results[$i]['image']) && $results[$i]['image'] != '') {
$results[$i]['image'] = 'modules/'.$module->getVar('dirname').'/'.$results[$i]['image'];
} else {
$results[$i]['image'] = 'images/icons/posticon2.gif';
}

if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) {
$results[$i]['link'] = "modules/".$module->getVar('dirname')."/".$results[$i]['link'];
}


I believe that it is somewhere in here that I have to give this property to an image...but where? This is what a regular image aligned this way looks like:

<img src="imagename.jpg" align="absmiddle">

Where do I put the align="absmiddle" in this case then?

Thanks for your help!

Jeff



167
jeffgr
Re: How to remove xoops text editor from certain modules
  • 2006/10/21 4:12

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


thanks, that seemed to work!



168
jeffgr
Re: How to clone Planet rss module?
  • 2006/10/21 4:12

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


thank you for pointing that out..yes, I found your instructions, and they seem clear...but I am going to wait for the new release! Too scared that I might break something on my site... :)

Thanks for the great module as well , I really like it!



169
jeffgr
How to clone Planet rss module?
  • 2006/10/20 5:54

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I'd really like to clone this module, to display different types of news on my site, in different places.... the module help file says that it is possible, and that instructions will be forthcoming.. has anyone done this, can you give me some instruction on what to do? I already have a regular install of planet running on my site...I just want to make another one.

Thanks,

Jeff



170
jeffgr
How to remove xoops text editor from certain modules
  • 2006/10/18 8:49

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi there,

anyone know how to remove the XOOPS text editor from certain module pages? For example, in xdirectory, I want to change the "Description" form field on the "edit listing" page so that it is just a plain text box, with none of the text formatting options available in the normal text editor. In the modlink.php file of this module (so,the page where you modify your link, I found this code:

$modlinkform->addElement(new XoopsFormDhtmlTextArea(_MD_DESCRIPTIONC , 'moddesc' , $moddesc , 8, 50 ), false);

I tried switching out the "XoopsFormDhtmlTextArea" with "XoopsFormText",and that seemed to create a text field, but I couldn't figure out how to change the size of the text area..does anyone know?

Thanks,

Jeff




TopTop
« 1 ... 14 15 16 (17) 18 19 20 »



Login

Who's Online

219 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 219


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