11
kakos
Re: Tuto/news: Old themes with XOOPS 2.5.11
  • 10/21 19:17

  • kakos

  • Friend of XOOPS

  • Posts: 79

  • Since: 2002/6/6 2


Thanx!



12
alain01
Re: Error in newbb - footer.php ligne 44
  • 10/19 14:12

  • alain01

  • Just can't stay away

  • Posts: 534

  • Since: 2003/6/20


Haaaa;

Newbb 5.1.0.Beta 7

$toggle_script 'var toggle_cookie="' . (isset($forumCookie['prefix'])?:'') . 'G";';


isset.

Ok, I try this.



13
alain01
Error in newbb - footer.php ligne 44
  • 10/19 14:04

  • alain01

  • Just can't stay away

  • Posts: 534

  • Since: 2003/6/20


Hello
XOOPS 2.5.11
php 7.4 / mysql 8 /
5.01 Beta 4 [2021-03-21] / xswatch 4

Erreurs
Notification: Trying to access array offset on value of type null dans le fichier /modules/newbb/footer.php ligne 44

Context
global $forumCookie;  // for $forumCookie["prefix"] revert last change - use global instead of include
// add toggle script
//$toggle_script = "var toggle_cookie="" . $forumCookie['prefix'] . 'G' . '';';
$toggle_script 'var toggle_cookie="' $forumCookie['prefix'] . 'G";';
$xoTheme->addScript(null, ['type' => 'text/javascript'], $toggle_script);

line 44 :
$toggle_script 'var toggle_cookie="' $forumCookie['prefix'] . 'G";';



14
cecadm
XOOPS 2.5.11 session handling too strict?
  • 10/18 13:45

  • cecadm

  • Just popping in

  • Posts: 3

  • Since: 2009/4/30


2.5.10 test - always logged in
------------
install xoops 2.5.10

from PC or from tablet or android phone
open a browser
do the xoops login
open another tab copy and paste any link from the same xoops website => the login is still valid, you are still logged in
open another browser window (maybe this just from PC), copy and paste any link from the same xoops website => the login is still valid, you are still logged in

still in the same browser open whatsapp web,
copy paste the link of the installed xoops and then click it
the browser will open a new tab with xoops site and you are still logged in

whatsapp is an example I did it also with other apps that will open a browser with that link (where I'm already logged in in another tab) and it works, you are still logged in.


2.5.11 test - not always logged in
------------
install xoops 2.5.11

from PC (same result as in 2.5.10)
open a browser
do the xoops login
open another tab copy and paste any link from the same xoops website => the login is still valid, you are still logged in
open another window (maybe this just from PC), same browser, copy and paste any link from the same xoops website => the login is still valid, you are still logged in


from android phone - here is the difference
I open a tab, do the login, good
if I open another tab and copy paste the same link... I'm not logged in anymore, moreover I am logged out in the first tab too...

PC/android phone with whatsapp (or whatsapp web) or other app that will open a link - here is the difference
I already did the login in xoops in a browser if in the same browser I open whatsapp and copy paste my xoops link and then click there... the link opened is not logged in and I'm logged out in the first tab
if I use any app that open a browser with a link even if there is a tab where I already did the login the new tab with the link it will be not logged in

I can understand that in 2.5.11 the session control is different and maybe more strict,
how can I have the session behaviour of 2.5.10 in 2.5.11?

regards
Carlo



15
cecadm
Re: XOOPS 2.5.11 search user is not working
  • 10/12 8:23

  • cecadm

  • Just popping in

  • Posts: 3

  • Since: 2009/4/30


Hi,
sorry for the late reply,
yes it working for my installation
regards
Carlo



16
alain01
Tuto/news: Old themes with XOOPS 2.5.11
  • 10/11 23:33

  • alain01

  • Just can't stay away

  • Posts: 534

  • Since: 2003/6/20


Hi,
I've just written an article on how to migrate an old theme to xoops 2.5.11.

Read the article on monxoops.fr here : Old themes with XOOPS 2.5.11

Lisez l'article en français ici : Anciens thèmes avec XOOPS 2.5.11

Resized Image



17
Skype-Fr
Re: Suggetions for xmNews & xSitemap
  • 10/11 9:01

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


Hi all,

Sorry, my mistake, with a recent theme xmNews offers a specific Meta Description of the article with 80 characters ... Finally xmNews is doing the right job!



18
Skype-Fr
Re: Suggetions for xmNews & xSitemap
  • 10/10 15:11

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


correction : if, like me, you have ‘xmNews’ on your home page :

<{if $xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/'}>
    <
link rel="canonical" href="<{$xoops_url}>/" /> 
    <{else}>
    <
link rel="canonical" href="<{$xoops_url}><{$xoops_requesturi}>" />
    <{/if}>



19
Skype-Fr
Suggetions for xmNews & xSitemap
  • 10/10 13:19

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


I hesitated for a long time between choosing WordPress and Xoops to create an information site, essentially a news site (specialized content), similar to a journalistic site (no forum, no download library, or other diverse features). I was ready to go with WP, which is stronger in terms of SEO (its main advantage over Xoops), but ultimately, WP's block-based editor never convinced me and tipped the balance towards Xoops, a platform I know well.

For reasons that are a bit complicated to explain here, I should mention that my hosting environment is limited to PHP 7.33 and MySQL 8, which led me to choose Xoops 2.5.10, equipped with the xmNews and xSitemap modules.

Once the site was nearly finished, with about a dozen articles written, I faced a total de-indexation (all URLs returned 404 errors) due to a bug in the 'preloads' folder... It took me four days and nights to finally understand why and how it happened! I didn’t see any warning either during the installation of 2.5.10 or in the modules affected by this bug. However, it might be my own fault for not reading the documentation carefully enough, as I'm quite accustomed to setting up Xoops sites in earlier versions. I won’t dwell further on this, as it’s not the main focus of my topic.

I simply wanted to offer some suggestions about the xmNews and xSitemap modules in terms of SEO. This is important because even the most beautiful website in the world is useless if it doesn’t have any visitors!

1/ xmNews

It's important that every article complies with Google and Bing's recommendations.

xmNews offers a list of specific keywords for each article, but that doesn’t matter! It’s been a long time since the two main search engines stopped taking the “keywords” tag into account.

What really matters is the meta Title and Description. As for the Title, xmNews uses the article's title, which is great... but why mix it with the "sitename"? That’s counterproductive, the article title alone is sufficient. The sitename appears everywhere else, and search engines don’t like over-optimization!

Regarding the meta Description, it’s the same for every page, which is a real shame :(
I suggest generating the meta Description with the first 250 characters of the article’s summary (or scoop).

In the meantime, I will likely write some PHP code to modify the Article page and create a new Smarty variable with these 250 characters. However, I wonder if it's possible to achieve this directly in the article's template, since we already have the {$news} variable. I'm not skilled enough in Smarty coding to know if we can extract the first 250 characters from {$news} directly within the template... This would have the advantage of preserving the modification during a module update through template overrides.

Moreover, xmNews would be even better for SEO if there was a "canonical" tag. For now, I’ve added this "canonical" tag myself with a modification to the template that looks like this:


    <{if 
$xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/'}>
    <
link rel="canonical" href="<{$xoops_url}>/" /> 
    <{else}>
    <
link rel="canonical" href="<{$xoops_url}><{$xoops_requesturi}>" />
    <{/if}>


Finally, the 'must-have' would be specific OpenGraph tags for each article (and even for the whole site)

2/ xSitemap

The very existence of a sitemap is SEO, right? So why not do the job completely!
xSitemap should reference the URL of each article! Why does it limit itself to referencing categories? Google and Bing love when we point out the specific URLs we want them to index. Otherwise, they wouldn’t have invented sitemaps!

Of course, these are just personal suggestions, but I believe they could really improve the traffic for a site built with these modules...

Regards / Gerard



20
remel24354
Help Needed with Custom Module Development in XOOPS

Hey guys......

I have been working with XOOPS for a little while now, and I am currently trying to develop a custom module to fit some specific requirements for a project I'm working on. Although, I am running into some challenges and could really use your advice.

The module I am building involves creating a user dashboard that pulls data from multiple existing XOOPS modules (like News, Comments, and Private Messaging) and displays it in one place for easier management. I’ve gone through the basic module creation tutorial, but I’m a bit stuck on how to fetch and display data from other modules within my custom module.

Here are a few specific questions I have:

What’s the best way to retrieve data from other modules in XOOPS? Should I be using the existing APIs, or is there another recommended method?
Is there a specific XOOPS function or best practice for interacting with the database across multiple modules? I want to ensure that my approach is clean and efficient.
How should I structure the permissions for users accessing this dashboard, especially considering the different access levels required for the different modules?
Are there any examples or tutorials for similar use cases (integrating data from multiple modules) that you could point me to?
I also check this: how can i use php development in xoops modules? and blockchain I’m really looking forward to any advice or tips you can provide! I feel like I’m close, but just need some pointers to get over this hurdle.

Thanks in advance for your help!




TopTop
« 1 (2) 3 4 5 ... 29429 »



Login

Who's Online

138 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

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

Latest GitHub Commits