Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

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

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 90 2013 Abuse admin AntiHarvesting AntiMalUser AntiSpam API Beats billige black Blocks blue Captcha capture Casual cell Christmas chronolabs content Conversion Debauchosity demo docek download Dresses editor ELB evden eve facebook floor free games herre Honeypot Human IP jQuery kantor klubovi lamps log logger Marquee mobile module modules Monster MyAlbum-p newbb news newsletter online oxygen PageRank Payment Permissions pink Plugin portal Prevention profile project Protector publisher Rights rmcommon Room sale security Server site Smarty Spam stem Studio support tag tags tdmcreate Theme themes txmod Umfrage upgrade User userlog website Whitepaper WSDL xoops XOOPS2 Xortify XPayment ZendFramework

New Users

Registering user

# 136033

Arizamartin

Welcome to XOOPS!

Forum Index


Board index » All Posts

Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 29332 »


#1 Posted on: Today 15:08 Re: MyLinks 3.11 RC2 Ready for Testing
@btsec,

Thank you for the report. Here is a solution to the issue you're seeing:

in ./admin/main.php around line 820 you will see:

$imgurl $myts->htmlSpecialChars($catObj->getVar('imgurl'));


please replace this line with:

$imgurl $myts->htmlSpecialChars($catObj->getVar('imgurl''n'));


EDIT: I forgot to also give you the fix for the frontside. In ./index.php change line 55 from:

$imgurl $myts->htmlSpecialChars($catObj->getVar('imgurl'));


to:

$imgurl $myts->htmlSpecialChars($catObj->getVar('imgurl''n'));



Quote:
May I also suggest for a better way to edit links instead of having use link id, a drop down list of links which when one is clicked opens in edit mode or a similar solutions like tdmdownloads module list all entries with an edit button to the side of each entry.


Yes, this feature is in the next revision (v3.12) along with a lot of other improvements. Version 3.12 is currently in alpha testing. Once I fix the existing bugs in v3.11 and update the code required for the thumbshots.com support I will release v3.11 and then finish version 3.12.


Top

zyspec
Module Developer
Module Developer
Joined:
2004/9/21 8:28
From USA
Group:
Registered Users
Posts: 837
(Show More) (Show Less)
Topic | Forum


#2 Posted on: Today 7:09 Re: How to write an standard module for xoops (div table, pagination , sort, order)
Nice job.

How about joining tables?

Quote:

irmtfan wrote:
Then you should create a class for each table and in the future any access to database will be done by using those classes.


For example: displays list articles with category names.

Easy way:
1 - read articles from database by using article class
2 - for every article object do access to database by using category class
cons: duplicating queries to database - the more articles, the more requests for categories

In XoopsObject class there is getByLink() method. Using this method, we can build a query to the joined tables (by joint handlers of two classes). But it is difficult way, especially if we join more than two tables.

In more complex tasks I do this (simplified example):


class mymoduleArticleHandler extends XoopsPersistableObjectHandler
{
  function &
getObjects($args)
  {
      
$sql 'SELECT t2.name AS category_name, t1.* FROM mymodule_article t1, LEFT JOIN mymodule_category t2 ON [...]'//need add initVar('category_name') to Article class 
      
      
if($array $this->db->fetchArray($this->db->query($sql))){
            
$article $this->create(false); //for every record from db we create article Object; we don't preparing the new object to insert to database, so $isNew Flag the new objects must be false
          
$article->assignVars($array); // 'fill' Article object with data from joined tables
          
$ret[] = $article//collect every object to $ret array
      
}
      
      return 
$ret;
  }
}


Top

bumciach
Not too shy to talk
Not too shy to talk
Joined:
2007/6/25 6:14
Group:
Registered Users
Posts: 147
(Show More) (Show Less)
Topic | Forum


#3 Posted on: Today 0:25 Re: Problems with displaying stories after moving to another server
Review the site using a standard theme, 7dana themes were abandoned after xoops version 2.13, the templates may not render as expected.

It looks like a group/permissions issue, check out the permission policies for the news module vs your xoops installation, ensuring the permissible groups exist in your xoops installation.

As jlm69 & irmtfan mention, version information is important, a mismatch is surely the cause.


edit:
also check the expiry dates for the news items.

Top

dbman
Friend of XOOPS
Friend of XOOPS
Joined:
2005/4/28 0:15
From Cape Breton, Nova Scotia
Group:
Registered Users
Posts: 161
(Show More) (Show Less)
Topic | Forum


#4 Posted on: Yesterday 21:57 Re: Xoopspoll v1.40 Beta 1 - Ready for testing
sorry forget what i wrote in the last post about the way to find newbb version.
you can simply use method_exists to find if it is the newbb version which support any poll module.
$topic_handler xoops_getmodulehandler('topic''newbb'); 
if (
method_exists('NewbbTopicHandler''findPollModule')) {
    
$poll_module_in_newbb $topic_handler->findPollModule();
} else {
    
$poll_module_in_newbb "xoopspoll"// it is hard-coded no clone is supported
}

if(
$poll_module_in_newbb == $thisModule->getVar("dirname") ) {
 
// do some actions like uninstall, ...
}

So IMO you dont need to write any extra code because as i said all old newbb versions only support hard-coded "xoopspoll" dirname.

Note: we should use the above findPollModule only in OnInstall, OnUpdate and OnUninstall process because it is an in depth checking to find the newbb poll module.
In common usages you can search for and use new config "poll_module" in newbb.

Quote:

until you are able to merge your changes into the trunk.

Technically merging any old newbb version < 4.4 Alfred (include newbb 2, newbb 3.08 and trunk) with the latest irmtfan branch is as simple as copying files.
But newbb needs a team of developers include at least one core developer and an official badge.

Quote:

change date handling to use the PHP DateTime class support that was implemented back in PHP 5.2


By adding any enhancements in the future, xoops core will always support its own function "formatTimestamp" or method "XoopsLocal::formatTimestamp"
So all developers should use it now and their modules will be work in any newer version of xoops.

Edit:
A side note:
this line will be dangerous for the current cloning method in xoopspoll using smartclone:
$poll_module_in_newbb "xoopspoll"// it is hard-coded no clone is supported

because it should be remained as "xoopspoll" in all xoopspoll clones!!!
That is show the necessity of using a helper class and try to remove any instance of dirname (here: xoopspoll) from codes as much as possible.
so in the clone process you dont need to change strtolower($dirname) anymore.




Top


Ready for Romance
First Persian Harry Potter Site(English added) | Persian Support Site | Xoops Persian Project
irmtfan
Module Developer
Module Developer
Joined:
2003/12/7 14:14
From In the middle of nowhere
Group:
Registered Users
Community Coordinator (temporary)
Posts: 3303
(Show More) (Show Less)
Topic | Forum


#5 Posted on: Yesterday 21:51 Re: Problems with displaying stories after moving to another server
Also you should look at your database tables to be sure that all tables are exist.

Then you must turn php debug on and find all errors, warning, sql, ...


Top


Ready for Romance
First Persian Harry Potter Site(English added) | Persian Support Site | Xoops Persian Project
irmtfan
Module Developer
Module Developer
Joined:
2003/12/7 14:14
From In the middle of nowhere
Group:
Registered Users
Community Coordinator (temporary)
Posts: 3303
(Show More) (Show Less)
Topic | Forum


#6 Posted on: Yesterday 18:06 Re: Problems with displaying stories after moving to another server
It seems you have a lot more problems than that.
You should tell us what version of Xoops are you using?
What version of news are you using?
What version of PHP, MYSQL was the old server using and what versions are the new server using?

That should help us figure it out.

You could try clearing all the cache, and update the system module and the news module, but not sure if that will help.

John

Top

jlm69
Module Developer
Module Developer
Joined:
2002/7/19 11:20
Group:
Registered Users
Posts: 572
(Show More) (Show Less)
Topic | Forum


#7 Posted on: Yesterday 17:55 Re: News 1.68 RC 1 released for XOOPS 2.5.5
How can I display news images in news blocks, specifically top news block. I did apply evucan's patch for version 1.66 and it worked perfect. However that news mod version is outdated. I applied the same patch to News 1.68 RC 1 released for XOOPS 2.5.5 and no image displayed, any help if welcome.

Thanks.

Top

btesec
Friend of XOOPS
Friend of XOOPS
Joined:
2007/2/20 12:17
Group:
Registered Users
Posts: 617
(Show More) (Show Less)
Topic | Forum


#8 Posted on: Yesterday 12:31 Problems with displaying stories after moving to another server
Hi,

I'm not xoops user. I'm just moving xoops installation to another server. I made full backup and restored it on another server. Frontpage loads fine, but when I click on menu item I just get to a redirect page that says:

"Sorry, the selected story does not exist. If the page does not automatically reload, please click here"

I tried backing up original website and restoring it on new server several times. All files seems to be copied. Database is restored properly, and there are no errors so far. Domain name is the same, and I really don't see any reason why this shouldn't work.

Here are the links:
http://www.rusan.hr/ (this is link to the frontpage)
http://www.rusan.hr/new/modules/news/article.php?storyid=60 (example of problem, this is link on the right sidebar that says "Mod. Standard")

If anyone can help I'd be really grateful, because I have no idea what could have gone wrong.

Top

Jinx
Just popping in
Just popping in
Joined:
Yesterday 12:06
From None of your business
Group:
Registered Users
Posts: 1
(Show More) (Show Less)
Topic | Forum


#9 Posted on: Yesterday 10:56 Re: MyLinks 3.11 RC2 Ready for Testing
Hello zyspec,

here is what I do:

1. I uplaod the image to the xoops image manager then copy the image url which looks as follows: href="http://localhost/site/uploads/images/img5197ae1f7cadc.jpg

2. I edit/create category, then I paste the image url I copied above and paste it in the image url which is bellow title field/textbox, then I save.

3. I visit the module home page and not image shows. I then return and edit that same category I edit in step 2 just to find out that the url is as mentioned in above post like: <a href="http://localhost/site/uploads/images/img5197ae1f7cadc.jpg" title="http://localhost/site/uploads/images/img5197ae1f7cadc.jpg" rel="external">http://localhost/site/up ... ages/img5197ae1f7cadc.jpg</a>

Let me know if this is much clear and if any fix is possible. It would be ideal if an image uploader feature can be added for attaching images to categories.

May I also suggest for a better way to edit links instead of having use link id, a drop down list of links which when one is clicked opens in edit mode or a similar solutions like tdmdownloads module list all entries with an edit button to the side of each entry.

Thank you.


Top

btesec
Friend of XOOPS
Friend of XOOPS
Joined:
2007/2/20 12:17
Group:
Registered Users
Posts: 617
(Show More) (Show Less)
Topic | Forum


#10 Posted on: Yesterday 5:33 Re: Animal/Pedigree Module 1.31 Alpha 1
As far as I know, SourceForge is working on a feature similar to the old SVN, i.e. to be able to download the tarball of a given folder in SVN, but I don't think that it is working yet.

So the best is to use the little tool described in our FAQ, and use this link to SVN:

http://svn.code.sf.net/p/xoops/svn/XoopsModules/pedigree/trunk/

But please remember that this is still only Alpha, and there are a LOT of bugs there. I will need to rewrite a LOT of things there, to make it more like a regular standard XOOPS module. So please be patient...



Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6939
(Show More) (Show Less)
Topic | Forum



Top
(1) 2 3 4 ... 29332 »



[Advanced Search]