361
kerkyra
Google maps WYSIWYG editor...RSS hack
  • 2007/9/26 22:37

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hi i'm making an rss hack for google maps so that my visitors can see any new locations added in the map along with their descriptions. The problem is that the description part is in XOOPS code so the picture of each location is not showing. Instead it shows the [img] tag and the url.

the question

How can i implement a WYSIWYG editor in the googlemaps module so that i can add html text in the description? Anybody has any ideas?

you can see the my rss feeds athttp://www.mykerkyra.gr/modules/googlemaps/rss.php (its in greek though)

if any of you need this just create an rss.php file and paste the following code in, you only need to set the charset to the one you are using...

Quote:
<?php
//
// Google Maps RSS 2.0
// displays latest point location title and description via RSS 2.0 feed.
//
// Copyright (c) 2007 Kostas Ksilas - www.mykerkyra.gr
// based on xcgal rss hack by Mowaffak Ali - www.arabxoops.com
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
//
//

include_once '../../mainfile.php';


$myts =& MyTextSanitizer::getInstance();
global $myts;

$charset='iso-8859-7';
$sitename = htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES);
$email = checkEmail($xoopsConfig['adminmail'],false);
$slogan = htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES);
$module = $xoopsModule->getVar('name');
$channel_link = XOOPS_URL.'/';
$channel_desc = $slogan;
$channel_lastbuild = formatTimestamp(time(), 'rss');
$channel_editor = $email;
$channel_category = $category;
$channel_generator = $module;
$channel_language = _LANGCODE;
$link = $smarty.section.displaylastpoints.index;

// How many items you want to show in RSS feed
$upperlimit = 10;

header('Content-Type:text/xml; charset='.$charset);
$title = $sitename.' - '.$module;
$channel_title = $title;
print "<?xml version=\"1.0\" encoding=\"$charset\"?>\n";
print "<rss version=\"2.0\">";
print "<channel>\n";
print "<title>$channel_title</title>\n";
print "<link>$channel_link</link>\n";
print "<description>$channel_desc</description>";
print "<language>$channel_language</language>\n";
print "<lastBuildDate>$channel_lastbuild</lastBuildDate>\n";
print "<generator>$channel_generator</generator>\n";

$table1= $xoopsDB->prefix("gmap_points");
$table2= $xoopsDB->prefix("users");

$result=$xoopsDB->query("SELECT id,map_id,lat,lon,title,html,date FROM ".$xoopsDB->prefix("gmap_points")." ORDER BY

date DESC LIMIT 0,$upperlimit");

$path = XOOPS_URL.'/modules/googlemaps/index.php?javascript:myclick(';

while (list($id,$map_id,$lat,$lon,$title,$html,$date) = mysql_fetch_row($result)) {
print "\t<item>\n";
print "\t\t<title> $title </title>\n";
print "\t\t<link>$path$id)</link>\n";
print "\t\t<author>$channel_editor</author>\n";
print "\t\t<pubDate>$channel_lastbuild</pubDate>\n";
print "\t\t<description>";
echo $myts->htmlSpecialChars("<p>$html </p>");
print "</description>\n";
print "\t</item>\n";
print "\n";
}
print "</channel>";
print "</rss>";


still havent finished yet so if any changes i will update the code here. Hope it helps someone...
www.guidemap.gr - Beta is out...



362
kerkyra
Re: Mp Manager 2.6 beta
  • 2007/9/12 10:59

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hallo there it seems that the reply-quote etc buttons are not working any ideas why? i think also that this module creates a conflict to user management and the pm module! Is there a fix for this? i'm using 2.0.16
www.guidemap.gr - Beta is out...



363
kerkyra
Re: member profile shows blank page
  • 2007/9/10 14:14

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hi i got this error when i try to go into the admin section of usermanagement and profiles modules

Fatal error: Call to a member function on a non-object in /home/kerkyra/public_html/modules/profile/admin/admin.php on line 34

and this one when i try to go to into the admin section of private messagging

Fatal error: Call to a member function on a non-object in /home/kerkyra/public_html/modules/pm/admin/admin.php on line 34

both files have this code in line 34

.../profile/admin/admin.php
Quote:
$xTheme->loadModuleAdminMenu(1, _PROFILE_MI_INDEX);



.../pm/admin/admin.php
Quote:

$xTheme->loadModuleAdminMenu(1);

respectively

any ideas why this is happenning?

i have installed mp manager 2.6 which is working fine, does that have to do with the error messages?
www.guidemap.gr - Beta is out...



364
kerkyra
Re: Xoops 2.0.16 hacked ready for installation
  • 2007/9/9 13:11

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


added mpmanager 2.6
www.guidemap.gr - Beta is out...



365
kerkyra
Re: MP manager 2.6 instalation issues
  • 2007/9/9 12:29

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


The problem i had with the white page when logging in happened due to the fact that i didnt remove the 2.5 hack in the checklogin.php file! Now it works! Thanks

3 questions though

what should we change in order to show the avatar images with a fixed size?

Why is it showing all the messages when we click to see only one of them? Is there a config option to change this? (if there is a new message, it shows only that one, if all messages are read and we click on one of them it shows every message starting from the one we clicked on) is that normal?

Why is the language in calendar french? How can we change this?
www.guidemap.gr - Beta is out...



366
kerkyra
Re: MP manager 2.6 instalation issues
  • 2007/9/9 9:25

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Quote:

dave_uk wrote:
i cant find anything usefull to this problem in the readme, anytime i click one of the links for automatic integration it just reloads the page with no message and the symbol to the side remains red.


try to copy the files in the folder Root (included in the package) in the folder that they are supposed to go into and the plugins should work! I had the same issue and found out that i forgot to do that step so the module could not locate the plugin files. hopefully this will fix your problem...

I did an upgrade from 2.5 to 2.6 and i got a blank screen when trying to log in! so i went back to 2.5 for the time being! Anybody else with the same problem?
www.guidemap.gr - Beta is out...



367
kerkyra
Re: Xoops 2.0.16 hacked ready for installation
  • 2007/9/7 21:06

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i also added the captcha field in the first page of the registration form. Tested in mykerkyra.gr and working! Updated the file as well.
www.guidemap.gr - Beta is out...



368
kerkyra
Xoops 2.0.16 hacked ready for installation
  • 2007/9/3 1:11

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


I made a package of XOOPS 2.0.16 (the one i'm using) implementing the following core and module hacks

Quote:
Hacks included

edited .htaccess file

mail info field in user profile showing as image hack

captcha integration by dugris in system comments (for anonymous)

register form mail validation

search - better implementation of XOOPS search with its own templates -https://xoops.org/modules/newbb/viewtopic.php?topic_id=60067&forum=20&post_id=269855#forumpost269855



Modules

avaman - avatar manager - version 0.21

contact - with captcha hack - version 1
liaise - with captcha hack - version 1.25

pm - private messaging - version 0.1
mp manager - extended private messaging system - version 2.5
profile - user management - version 0.1
protector - version 3.02
security image - captcha administration - version 1
xoopsmembers - version 1
backup - XOOP DB backup & restore - version 3


Frameworks version 1.01


I implemented all of them to my webpage and had no problems so far, so i think someone could find it helpful it also includes the modules listed above.

the link to download it is the following

http://www.mykerkyra.gr/patches/xoopshacked.zip

i haven't tested the package yet so if any problems please let me know.
www.guidemap.gr - Beta is out...



369
kerkyra
Re: Agenda X Translation
  • 2007/9/2 20:23

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


there is a utility called poEdit! Try it out, it might help you with the translation file! It helped me with wordpress for xoops!
www.guidemap.gr - Beta is out...



370
kerkyra
Re: Xoops Search - A Better Implementation?
  • 2007/8/16 10:11

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hi, any links to the patch?
www.guidemap.gr - Beta is out...




TopTop
« 1 ... 34 35 36 (37) 38 39 40 »



Login

Who's Online

270 user(s) are online (178 user(s) are browsing Support Forums)


Members: 0


Guests: 270


more...

Donat-O-Meter

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

Latest GitHub Commits