TinyPortal

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

Previous topic - Next topic

IchBin™

The query title changes the URL from being ?page=3 to ?page=query_title

Looking at the page you linked to, I don't see that you've made the changes. When you make the changes I posted above the subject of the comment should be linked.
IchBin™        TinyPortal

bearstreet

packages/tinyportal/smf2/sources/Tportal.php

$context['TPortal']['article']['comment_posts'][] = array(
'id' => $row['id'],
'subject' => '<a href="'.$scripturl.'?page='.$context['TPortal']['article']['id'].'#comment'. $row['id'].'">'.$row['value1'].'</a>',
'text' => parse_bbc($row['value2']),
'timestamp' => $row['value4'],

I did it
and the second one too
did i missed something?

$code .= '
<div class="' . ($context['TPortal']['article']['authorID']!=$comment['posterID'] ? 'mycomment' : 'othercomment') . '">
<a id="comment'.$comment['id'].'"></a>


<span class="comment_author">' . (!empty($comment['avatar']['image']) ? $comment['avatar']['image'] : '') . '</span>
<strong>' . $counter++ .') ' . $comment['subject'] . '</strong>
' . (($comment['is_new'] && $context['user']['is_logged']) ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="" />' : '') . '
<div class="middletext" style="padding-top: 0.5em;"> '.$txt['tp-by'].' <a href="'.$scripturl.'?action=profile;u='.$comment['posterID'].'">'.$comment['poster'].'</a>
' . $txt['on'] . ' ' . $comment['date'] . '
</div>

code snippet from tpsubstemplate.php
Dont do drugs, coz if you get caught u will go to prison, and drugs are real expensive in prison
:P

Ask me Maths Questions

IchBin™

How come you are editing the file in the packages directory? You need to edit the file in the Sources/ dir.
IchBin™        TinyPortal

bearstreet

sory, I did not knew what to edit
Will do as you said in the said directory
Dont do drugs, coz if you get caught u will go to prison, and drugs are real expensive in prison
:P

Ask me Maths Questions

IchBin™

No problem bearstreet. The packages directory should really only be used by the package manager just so you know. All files that SMF uses would be in the Sources/ and Themes/ directory for 99% of the work. Let me know if it doesn't work out for you.
IchBin™        TinyPortal

stylusss

Can someone explain to me - if possible - how the tinyportals article system can be used as a blogging system for all members? Has anyone done this? Could I see an example?

I would like members in my forum to have the ability to create their own blogs. I want to present my blog, however, in the front page (I know how to do this).

Input anyone?
For top-notch server quality and expertise, visit CoreISP.net

Kindred

actually, only portaMX has a blog to go with the portal, as far as I know...
Сл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™

Need more details stylusss. You can easily give everyone permission to write articles that will appear on the frontpage. But I'm not sure exactly how you want it to work. You could even create a category where only a certain member would be able to post to. But that would make your permissions and member groups fun to setup/maintain.

Sounds like your using the wrong tool for the job if you only want a blog though.
IchBin™        TinyPortal

feline

Quote from: Kindred on October 18, 2012, 12:28:47 AM
actually, only portaMX has a blog to go with the portal, as far as I know...
PmxBlog 1.1 (Multi user Blog) works also as stand alone Blog and can be download on our Site ...

stylusss

Thanks for the clarification guys. I can't use PmxBlog because I am using version 1.x. VBulliten has the right idea, each member gets their own blog page, which can be accessed via the main menu or individual profiles.
For top-notch server quality and expertise, visit CoreISP.net

techguy

How can I manage permissions for articles created by users so that guest can see articles

IchBin™

Each category for articles has the option to turn on/off access to the articles placed in that category, by which ever groups you select. You just make sure guest is checked in the categories that you want.
IchBin™        TinyPortal

techguy

how to create custom url for artciles created by tinyportal

DarkAngel612

Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

lurkalot

Quote from: DarkAngel612 on November 20, 2012, 05:11:16 PM
Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.

If you enter a Query title to the article. you can then use [url=http://thefantasiesattic.net/attic/index.php?page=Weekly Newsletter[/url] as the address, without the page number.

Example http://cameracraniums.com/forum/index.php?page=time-lapse-photography

techguy

Quote from: lurkalot on November 21, 2012, 02:59:51 AM
Quote from: DarkAngel612 on November 20, 2012, 05:11:16 PM
Quote from: techguy on November 20, 2012, 06:51:23 AM
how to create custom url for artciles created by tinyportal

Do you mean like when you hyperlink to a site : Fantasy Attic

only with the link going strait to your article?

What I do is go to the article's page then copy/paste the link like this one: Weekly Newsletter

[url=http://thefantasiesattic.net/attic/index.php?page=21]Weekly Newsletter[/url]

the ?page=21 is what tells it the actual article page number.

Sorry if that is not what you meant...been on cold meds and still this flu/cold -- whatever it is won't go away.

Have a Happy Thanksgiving.

If you enter a Query title to the article. you can then use [url=http://thefantasiesattic.net/attic/index.php?page=Weekly Newsletter[/url] as the address, without the page number.

Example http://cameracraniums.com/forum/index.php?page=time-lapse-photography

Lemme tell you in detail.
For example I created an article "abc" in tinyportal articles.
Can I get the article URL as www.domain.com/abc

Kindred

Сл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."

techguy

So how exactly a URL would be created for the article

IchBin™

You can't do that without rewriting a lot of code.
IchBin™        TinyPortal

Madchen

I want to swap frontpage with left sidebar. I found in TPBlockLayout.template.php that i can swap panels with calling TPortal_panel('nameofpanel') and specifing name of the panel. How would i do for frontpage?

Advertisement: