Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

vbgamer45

I  have not come up with a solution.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gevv

not solved.

i don't pretty urls mod.
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

Pretty URLs 2.5.1                                               16  May 2022
   ================================================================================ 
  !Fixes for handling actions loaded from hooks
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Web Help Forums

n installed packages it states I have this installed:
Pretty URLs   1.1.3

If I try to uninstall I get an error... that seems a bit odd:
"
An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.
"

I would like to get the latest version:
https://custom.simplemachines.org/index.php?mod=636
to fix some problems with quotes in URLs
But I an not install this before uninstalling the older...

Any ideas of how to maybe manually remove all traces of old version of pretty urls? (Or whatever method that works)

....

For reference I am using SMF version:
2.0.19

An example of broken quotes URL:
https://  example.com/   sitemap-generator/robot-txt-pretty-much-empty-after-'creation'/

Sebastiii

Yep, it seems in code, the version is 1.1.3 even if it's 2.5.1 installed :)

vbgamer45

You can uninstall manually by uploading the package https://www.smfhacks.com/smf-package-parser.html then reversing the uninstall steps.

Make a back up first.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Web Help Forums

Quote from: Sebastiii on June 12, 2022, 05:44:22 AMYep, it seems in code, the version is 1.1.3 even if it's 2.5.1 installed :)

So you are saying I have 2.5.1 installed most likely :)

Still... then it is strange I can not uninstall successfully

Web Help Forums

The reason I am trying install/uninstall pretty URLs is that this URL appears broken in my forum:

https://webhelpforums.net/sitemap-generator/robot-txt-pretty-much-empty-after-'creation'/

And in admin section of prettyurls... it does not appear to help using maintenance

Maybe... I can somehow manually fix this single URL / forum topic?

But still strange it says 1.1.3 and giving error when trying to unstall

Web Help Forums

Quote from: vbgamer45 on June 12, 2022, 02:41:06 PMYou can uninstall manually by uploading the package https://www.smfhacks.com/smf-package-parser.html then reversing the uninstall steps.

Make a back up first.

Thank you... This seems like an okay solution. I saw another user stating that 1.1.3 = 2.5.1

Can you other guys uninstall? If yes, then my install is probably messed up and I should take the time to fix

vbgamer45

It could be a permissions issues on the packages folder or files. I guess does it happen with other mods on install/uninstall.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sebastiii

I have tried on local installation and It seems to be uninstall correctly (from memory) and I have look at the version, original recent version keep sainy that there is an update and the version installed is 1.0 :



I have seen that changing :
in sources.xml :
<version>1.0</version>to
<version>2.5.1</version>
and in PrettyUrls.template.php :
// Lets show some news (and more!)
function template_pretty_news()
{
global $txt;

echo '
<h3>', $txt['pretty_chrome_menu_news'], '</h3>
<div id="chrome_news">', $txt['ajax_in_progress'], '</div>
<h3>', $txt['pretty_version'], '</h3>
<p>', $txt['pretty_current_version'], ': 1.0</p>
<p>', $txt['pretty_latest_version'], ': <span id="chrome_latest">', $txt['ajax_in_progress'], '</span></p>';
}

to

// Lets show some news (and more!)
function template_pretty_news()
{
global $txt;

echo '
<h3>', $txt['pretty_chrome_menu_news'], '</h3>
<div id="chrome_news">', $txt['ajax_in_progress'], '</div>
<h3>', $txt['pretty_version'], '</h3>
<p>', $txt['pretty_current_version'], ': 2.5.1</p>
<p>', $txt['pretty_latest_version'], ': <span id="chrome_latest">', $txt['ajax_in_progress'], '</span></p>';
}

Make now the version displayed correctly :)



And the uninstallation was fine :)

vbgamer45

Fixed the version number in the template! Kind of forgot about that one.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sebastiii

#8212
Thanks @vbgamer45 :D
Updated and the version is indicated :) (still the online version says that the latest is 2.3 :D)

vbgamer45

Fixed, I keep forgetting to update that one lol
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sebastiii

Thanks :) it's working :)

peter_mein

Hello
I have two errors in the protokoll.
If an user used the button Report to Moderator, then
i get this two errors.
What can i do ?

SMS2.1.2
Pretty urls 2.5.1a


vbgamer45

Quote from: peter_mein on August 08, 2022, 04:19:44 PMHello
I have two errors in the protokoll.
If an user used the button Report to Moderator, then
i get this two errors.
What can i do ?

SMS2.1.2
Pretty urls 2.5.1a


Released

PrettyUrls2.5.1b.zip which should fix this issue.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

peter_mein

Hello
Yes it works perfectly
Thanks.

bebesito_fiufiu

hello, sorry for the annoyance but i have these errors in logs in the webs
hxxp:masnubes.com/index.php?action=admin;area=pretty;sa=test [nonactive]
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (Línea 269)

Quote2: foreach() argument must be of type array|object, null given

line 269:


foreach ($tab_context['tabs'] as $sa => $tab)
and this another error thats repeat in three lines of code
Quote2: Trying to access array offset on value of type null

hxxp:masnubes.com/index.php?action=admin;area=pretty;sa=test [nonactive]
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (this error repeat in line 255, 269 and 261)


255
<span class="text_menu">', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '</span>
261
', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '

269 [code]foreach ($tab_context['tabs'] as $sa => $tab)

-

im using the version SMF 2.1.2 and the trouble appears with plugin prettyurls, the configuration is
Enable url rewriting, rewrite board, topics and actions

Advertisement: