TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

Dramber

I've found with html and bbc blocks to modify them I have to do 2 things to make them work.

1. Turn off the WYSIWYG editor from my profile on the site.
2. When editing a block; delete everything, then paste in the changed code, and then save the block.

I've had to do that for several different revisions of TP and still do in the newest RC.
It's not a deal-breaker by any means but it is a bit of an annoyance.

tabletsdroid

Hey,

first of all thanks for this great mod! if i get rich one day i will throw some cash your way! -

I have a small question about articles and pretty urls. The problem I see here is, when creating an article for the frontpage - its not very search engine friendly because of the URL the article gets given - ie =page1, =page2 etc . Is it possible to give the articles a better URL or one that is generated by pretty urls to correspond to the title of the article, rather than =page1

thanks, and looking forward to your response.
Are you Looking Forward To it?

Kindred

before you go any further, URLS have little to NO effect on SEO these days.

HUMAN "friendly" is one thing, but the search engines only care about the content.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

IchBin™

I don't know anything about the pretty URL's mod. Articles have a query title option where you can name the article (which will show in the url), but to make them look like pretty URL's is not something I'm going to do.

If you read up on SEO, pretty URL's is not needed for any other reason that to satisfy human readability. Most search engines don't care about them anymore.

-edit-

Kindred beat me to it...
IchBin™        TinyPortal

tabletsdroid

Quote from: Kindred on July 05, 2011, 04:00:33 PM
before you go any further, URLS have little to NO effect on SEO these days.

HUMAN "friendly" is one thing, but the search engines only care about the content.

As you probably are fully aware, there are two schools of thought on that subject! and 'little' effect is good enough for me!

Quote from: IchBin™ on July 05, 2011, 04:02:12 PM
I don't know anything about the pretty URL's mod. Articles have a query title option where you can name the article (which will show in the url), but to make them look like pretty URL's is not something I'm going to do.

Thats great, where is this query title option you are referring to?

p.s tiny portal's front page did not work before I installed pretty urls.
Are you Looking Forward To it?

IchBin™

In each article when you create or edit it, there's an option at the top called "query title". Whatever you put in that box is what should show in the URL page=query_title
IchBin™        TinyPortal

tabletsdroid

Are you Looking Forward To it?

Kindred

lol... there may be two schools of thought, but one of them is just wrong. :P
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

tabletsdroid

Entered the title query text, all seemed well until I tried to visit the actual url of the article and then I saw:

Wrong value type sent to the database. Integer expected. (page)

I take the title query away and everything is returned to normal and i can view the page by itself again.
Are you Looking Forward To it?

Kindred

see the code snippet that IchBin posted to me on the previous page
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

tabletsdroid

#1470
thanks Kindred.

That's TPortalAdmin.template.php on my server which is all I can find and not TPortalAdmin.php as stated by IchBin?


Cannot find the following code in TPortalAdmin.template.php

$smcFunc['db_query']('',
            'UPDATE {db_prefix}tp_settings
            SET value = {string:val}
            WHERE name = {string:name} LIMIT 1',
            array(
               'val' => $catname,
               'name' => 'cat_list',
            )
         );
Are you Looking Forward To it?

IchBin™

It's in the sources folder.

Sources/TPortalAdmin.php
IchBin™        TinyPortal

tabletsdroid

Thanks Kindred. But cannot find this code in TPortaladmin.php anywhere.

$smcFunc['db_query']('',
            'UPDATE {db_prefix}tp_settings
            SET value = {string:val}
            WHERE name = {string:name} LIMIT 1',
            array(
               'val' => $catname,
               'name' => 'cat_list',
            )
         );
Are you Looking Forward To it?

Kindred

i believe that is the FIXED code... you have to look for the broken code and change it to that.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

tabletsdroid

yes sorry, that was my mistake - I tried searching for the fixed code in TPadmin.php after I could'nt find the broken code. Just to verify that this is in fact the broken code that I cannot find, here it is.


else
         $request =  $smcFunc['db_query']('', '
            SELECT id_theme FROM {db_prefix}tp_articles
            WHERE shortname = {int:short}',
            array('short' => $pag)
         );
Are you Looking Forward To it?

IchBin™

tabletsdroid, if you look at kindreds post right after mine you will see that he noticed I posted the wrong code. :)
http://www.simplemachines.org/community/index.php?topic=27642.msg3091543#msg3091543

Slightly different, but you should be able to find it.
IchBin™        TinyPortal

tabletsdroid

thanks for your help...but it would of been OOH SO MUCH EASIER if you have had of posted the code for me rather than sending me on wild goose chase....

now I have a headache.

haha thanks anyway.
Are you Looking Forward To it?

tabletsdroid

#1477
I cannot find this code either. Would the creator kindly consider updating the mod so articles functionality returns. thanks

else
      $request =  $smcFunc['db_query']('', '
        SELECT id_theme FROM {db_prefix}tp_articles
        WHERE shortname = {int:page}',
        array('page' => $pag)
      );

also, how to change text color in posts from grey?
Are you Looking Forward To it?

IchBin™

I've taken over this mod for Bloc, so I guess you could call me the creator. Although, at this point I prefer developer as I didn't start the project.

Wild goose chase? I sent you to the post that showed the correct code change. Since I do this on my free time, I can only post so many fixes and releases. I'd rather not put out additional releases of the software when I'm currently fixing bugs. If I put out a release after fixing just a few bugs, it would be time for another release once others report more bugs. I'd rather fix as many bugs as possible before doing it again. Sorry, but this is how the beta/RC life of software goes.

If you can't find the code then attach your file please. The code is down about 250 lines from the top just past the "function TP_loadTheme()" line.
IchBin™        TinyPortal

tabletsdroid

The wild goose chase statement  was referring to Kindred when he said "the code is on the previous page" first of all it wasnt on the previous page, it was 2 pages back and the secondly he didnt tell me the first code given was wrong - did he expect me to read the WHOLE of the page or just scroll down to what he was referring to ?

you with me?
Are you Looking Forward To it?

Advertisement: