News:

Wondering if this will always be free?  See why free is better.

Main Menu

I don't see active links on my site

Started by rapalero, February 21, 2022, 12:53:25 PM

Previous topic - Next topic

Sesquipedalian

No, sorry, but I'm afraid that information about attachments doesn't help us understand your current issue. 

In order to figure out what is going wrong on your forum, we need to see the actual files you are using. So, please attach copies of your Subs.php, Display.php, and Display.template.php files to your next reply to this topic.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Dave J

Quote from: Sesquipedalian on February 23, 2022, 02:59:09 AMNo, sorry, but I'm afraid that information about attachments doesn't help us understand your current issue.

In order to figure out what is going wrong on your forum, we need to see the actual files you are using. So, please attach copies of your Subs.php, Display.php, and Display.template.php files to your next reply to this topic.

Sesq I take it that you're talking to the OP about posting files rather than my post?

rapalero

Quote from: Sesquipedalian on February 22, 2022, 03:42:06 PMPlease attach copies of your Subs.php, Display.php, and Display.template.php files so that we can inspect them.

Thank you.

I add photos as there are files with similar name, with the symbol ~ and I don't know if that is correct.


Subs.php  You cannot view this attachment.




Display.php You cannot view this attachment.




In /foros/themes/default
Display.template.php You cannot view this attachment.




Arantor

Files with ~ are backups made of those files before a mod was installed.
Holder of controversial views, all of which my own.


Sesquipedalian

Quote from: Dave J on February 23, 2022, 03:06:21 AMSesq I take it that you're talking to the OP about posting files rather than my post?

Derp. Yes. That's what I get for posting while suffering from insomnia, I guess. :laugh:
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Sesquipedalian

Hm. Well, there is nothing wrong with any of those files.

In the screenshot that you posted, @rapalero, I can see several other files named "Display.template.php.conlocalizacion", "Display.template.php.orig", and "Display.template.php.sinlocalizacion". Where did those files come from?
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

rapalero

Hello @Sesquipedalian

I don't know where those files come from. As they are Spanish words, maybe they were old modifications that were made, I don't remember. They are from 2016.

I have more information. The old links still don't work but now when users put a link without extra code it works. If I put it with a user account it works. But if I put it with my administrator account it does not work.

https://www.rapaleando.com/foros/index.php?topic=20235.msg265469#msg265469


m4z

Has the location of the forum changed in the past?

Does repair_settings.php show any discrepancies?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Sesquipedalian

Quote from: rapalero on February 24, 2022, 06:45:11 AMHello @Sesquipedalian

I don't know where those files come from. As they are Spanish words, maybe they were old modifications that were made, I don't remember. They are from 2016.

I have more information. The old links still don't work but now when users put a link without extra code it works. If I put it with a user account it works. But if I put it with my administrator account it does not work.

https://www.rapaleando.com/foros/index.php?topic=20235.msg265469#msg265469

This keeps getting more and more strange.

Please save the following PHP code into a temporary PHP file in your forum directory, and then visit it in a browser.
<?php

require_once('SSI.php');

$request $smcFunc['db_query']('''
SHOW FULL COLUMNS
FROM {db_prefix}messages
LIKE {string:body_like}'
,
array(
'body_like' => 'body',
)
);
$column_info $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);

echo 
'<pre>';
var_export($column_info);
echo 
'</pre>';

That should print out information something like this:
array (
  'Field' => 'body',
  'Type' => 'text',
  'Collation' => 'utf8_general_ci',
  'Null' => 'NO',
  'Key' => 'MUL',
  'Default' => NULL,
  'Extra' => '',
  'Privileges' => 'select,insert,update,references',
  'Comment' => '',
)

Please reply with your results of this test. Afterwards, you can delete the temporary PHP file.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

rapalero

Thanks @Sesquipedalian




array (
  'Field' => 'body',
  'Type' => 'text',
  'Collation' => 'utf8_general_ci',
  'Null' => 'NO',
  'Key' => '',
  'Default' => NULL,
  'Extra' => '',
  'Privileges' => 'select,insert,update,references',
  'Comment' => '',
)

shawnb61

Quote from: rapalero on February 24, 2022, 06:45:11 AMThe old links still don't work but now when users put a link without extra code it works. If I put it with a user account it works.

What do you mean by "without extra code"?

Can you show an example of one that doesn't work and one that does?
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on February 25, 2022, 10:11:01 AM
Quote from: rapalero on February 24, 2022, 06:45:11 AMThe old links still don't work but now when users put a link without extra code it works. If I put it with a user account it works.

What do you mean by "without extra code"?

Can you show an example of one that doesn't work and one that does?

With this works in my admin account:


shawnb61

#32
Let me ask this another way...

If you modify the posts, and can see the BBC, is there a visible difference between the links that work and the links that do not work?

E.g., do they look like this?
facebook.com
Or this?
[url="http://facebook.com/"]Facebook link[/url]
Or this?
[url]http://facebook.com[/url]
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Thank you for your response. This is frustrating, now none of the 3 options work for me. I have tried in different subforums and with normal user and administrator user. On the other hand, it seems that the links without codes to other users do work as you can see in https://www.rapaleando.com/foros/index.php?topic=20235.msg265469#msg265469

Sesquipedalian

Quote from: rapalero on February 25, 2022, 05:23:59 AMThanks @Sesquipedalian

array (
  'Field' => 'body',
  'Type' => 'text',
  'Collation' => 'utf8_general_ci',
  'Null' => 'NO',
  'Key' => '',
  'Default' => NULL,
  'Extra' => '',
  'Privileges' => 'select,insert,update,references',
  'Comment' => '',
)

Thank you for that information. Next, please tell me the result you get from the following PHP code:

<?php

require_once('SSI.php');

$msgs = array();

$request $smcFunc['db_query']('''
SELECT id_msg, body
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg'
,
array(
'message_list' => array(260503265469),
)
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
$msgs[$row['id_msg']] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
}

echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

rapalero

Quote from: Sesquipedalian on February 25, 2022, 02:01:53 PM
Quote from: rapalero on February 25, 2022, 05:23:59 AMThanks @Sesquipedalian

array (
  'Field' => 'body',
  'Type' => 'text',
  'Collation' => 'utf8_general_ci',
  'Null' => 'NO',
  'Key' => '',
  'Default' => NULL,
  'Extra' => '',
  'Privileges' => 'select,insert,update,references',
  'Comment' => '',
)

Thank you for that information. Next, please tell me the result you get from the following PHP code:

<?php

require_once('SSI.php');

$msgs = array();

$request $smcFunc['db_query']('''
SELECT id_msg, body
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg'
,
array(
'message_list' => array(260503265469),
)
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
$msgs[$row['id_msg']] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
}

echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';


array (
  260503 => '<br />https://m.youtube.com/watch?v=EHV0zs0kVGg',
  265469 => '[quote author=SierraParty link=msg=265467 date=1645688024]<br>[quote author=Ghostlabrax link=msg=265459 date=1645636522]<br>M&#237;rate el DT5016 de D1.<br><br>No s&#233; qu&#233; tama&#241;o est&#225;s buscando<br><br>&#8364; 8,79&nbsp; 30%de DESCUENTO | D1-se&#241;uelo de Pesca de Mar, DT5016, 190mm, 37g<br>https://a.aliexpress.com/_voS2lz<br>[/quote]<br><br>Disculpa, por preguntarte de nuevo &#191;Qu&#233; tal lance tiene? Por que pregunt&#233; ayer por &#233;l y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego s&#243;lo hace el &quot;helic&#243;ptero&quot; a cada lance.<br><br>Gracias por adelantado<br><br><br>[/quote]<br><br>Buenas,<br><br>Pues yo no lo he probado pues se aleja del tipo de se&#241;uelos/pesca que practico. <br><br>Puedes preguntarle a Alberto que tiene una review en su canal<br><br>https://youtu.be/e_kjcsDpAmY<br><br>Un saludo',
)

shawnb61

Quote from: shawnb61 on February 25, 2022, 12:08:51 PMIf you modify the posts, and can see the BBC, is there a visible difference between the links that work and the links that do not work?

E.g., do they look like this?

Can you share examples of what they look like?  The ones that work & the ones that don't?
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on February 25, 2022, 02:44:58 PM
Quote from: shawnb61 on February 25, 2022, 12:08:51 PMIf you modify the posts, and can see the BBC, is there a visible difference between the links that work and the links that do not work?

E.g., do they look like this?

Can you share examples of what they look like?  The ones that work & the ones that don't?




Your codes.





Your codes after using QUICK EDIT.

Sesquipedalian

Something is clearly interfering while posts are being processed in Display.php but not in other situations. 

When you use Quick Edit, for example, the edited text is passed through a different set of functions than when a post is initially prepared for display. Likewise, I notice that when I view posts in your forum's Recent Topics page, the automatic links always work, even if they do not work when the same post is viewed in the topic display.

Since the problem appears to be specific to the topic display, but there were no changes in your Display.php file, I now suspect that an integration hook is somehow involved.

Please go to Administration Center ► Forum Maintenance ► Integration Hooks and get a list of all integration hooks listed there, then share that with us.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

shawnb61

Yeah, but he says they work everywhere after he removes 'the extra stuff'... 

I am wondering if maybe an old 2.0 mod altered the url tag somehow. 

I am trying (and failing miserably...  ::) ) to understand what the difference is between the links that work and the links that do not...

@rapalero - I do not want to see the links I provided.  Those were just examples.  I want to see YOUR links...  Which ones work & which ones don't.  What do YOUR links look like - good & bad?
A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: