xoops forums

Forum Index


Board index » All Posts (Mamba)




Mamba

Moderator
Posted on: 1/26 23:48
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#1

Re: (More ?) Useful Tags in User Message Manager

Some of them work in the mail manager, because they are defined there, in /class/xoopsmailer.php

foreach ($this->toUsers as $user) {
            
// set some user specific variables
            
$subject str_replace('{X_UNAME}'$user->getVar('uname'), $this->subject);
            
$text    str_replace('{X_UID}'$user->getVar('uid'), $this->body);
            
$text    str_replace('{X_UEMAIL}'$user->getVar('email'), $text);
            
$text    str_replace('{X_UNAME}'$user->getVar('uname'), $text);
            
$text    str_replace('{X_UACTLINK}'XOOPS_URL '/register.php?op=actv&id=' $user->getVar('uid') . '&actkey=' $user->getVar('actkey'), $text);


You can also define them yourself in your module, as it was done, for example in SmartObject :

public static function sanitizeForCommonTags($text)
    {
        global 
$xoopsConfig;
        
$text str_replace('{X_SITENAME}'$xoopsConfig['sitename'], $text);
        
$text str_replace('{X_ADMINMAIL}'$xoopsConfig['adminmail'], $text);

        return 
$text;
    }


or in tdmspot:

$body             str_replace('{X_NAME}'$user_name$body);
            
$body             str_replace('{X_UNAME}'$user_uname$body);
            
$body             str_replace('{X_UEMAIL}'$user_email$body);
            
$body             str_replace('{X_ADMINMAIL}'$xoopsConfig['adminmail'], $body);
            
$body             str_replace('{X_SITENAME}'$xoopsConfig['sitename'], $body);
            
$body             str_replace('{X_SITEURL}'XOOPS_URL$body);
            
$tpitem['text']   = $body;
            
$meta_keywords    .= $body;
            
$meta_description .= $body;


Just search in all you modules for "{X_" and you'll find many examples of how it is done.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 1/26 22:27
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#2

Re: (More ?) Useful Tags in User Message Manager

There are also few extra:
{X_ADMINMAIL}
{
X_SITENAME}
{
X_SITEURL}
{
X_ITEM_TYPE
{
X_ITEM_NAME}
{
X_ITEM_TITLE}
{
X_ITEM_URL}
{
X_MODULE}
{
X_COMMENT_URL}
{
X_UNSUBSCRIBE_URL}
{
X_NOTIFY_EVENT}
{
CATEGORY_TITLE}
{
EVENT_SUMMARY}
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 1/23 23:25
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#3

Re: Cannot enter in PUBLISHER module administration ... but "sometimes" ...

Just comment out lines 92-95 in /admin/index.php:

//$newRelease = $utility::checkVerModule($helper);
//if (!empty($newRelease)) {
    //$adminObject->addItemButton($newRelease[0], $newRelease[1], 'download', 'style="color : Red"');
//}
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 1/23 23:22
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#4

Re: Getting a "403 Access denied" error when trying to access the Private Messages module

Quote:
I just sent myself a PM. How is that even possible?

Why not? You can send yourself a text message on your phone, and you can send yourself an email!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 1/14 23:45
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#5

Re: The future of XOOPS?

Quote:
Everything I see was released in 2008.

As Alain mentioned, it looks like you either looked in all the wrong places, or didn't look at all

It's enough to look at the News:

a) Modules
b) Themes

Almost all of our development is happening on GitHub, so you need to look there, e.g. Modules:
https://github.com/XoopsModules25x/
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 1/4 1:57
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#6

Re: Can't Locate My Ads Setup

Well, as long as we don't have access to the Website where we can see it and inspect it, it's hard to say, at least for me.

I went to your Website, but everything seems to be OK. 

How and when does the white block appears? Is it random? 

There was once a discussion about AdSense, and it worked for some people, and some people seemed to have issues. 

Next time when you have it again, right click on it (in Chrome or Firefox), and select "Inspect" - it should show you the name of the element, and then you might try to look for it in your code.  

 

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 12/27 0:04
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#7

Re: Xoops modules translations

Awesome!!! Thank you so much!!!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 12/23 1:48
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#8

Re: A big surprise for 2020

Now you've made us all very curious!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 12/16 1:25
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#9

Re: Oledrion(ecommerce) RC2 update available for testing / blessing (mamba?)

Thanks for the updates! I'll look into it over the Christmas holidays.

Can you post your code on GitHub and issue a Pull Request?

Thanks
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Mamba

Moderator
Posted on: 12/12 5:54
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#10

Re: Which editor do you use ?

PhpStorm is the best ever!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



TopTop
(1) 2 3 4 ... 669 »