TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 450
  • Total: 450

article intro

Started by alhaudhie, April 20, 2008, 01:07:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

Clear your cache and temp internet files and reboot your browser.
And hows your settings on the storage of the sessions in the Admin/Configuration ? Are they serverside or browser stored ?

bas123

Thanks for getting into this G6,

I did clear cache, history etc before reporting this... And again on your suggestion incl a full reboot.

Session settings are:
Enable local storage of cookies (UNCHECKED)

Use subdomain independent cookies (TRIED BOTH - CURRENTLY UNCHECKED)

Caching: SMF has not been able to detect a compatible accelerator on your server.

Therefore "No Caching" selected


Here's a refined behaviour report.
With "Use Intro" CHECKED, The Article appears on frontpage as plain text.
But in Admin, the Articles type "HTML" radio button IS selected! (regardless of whether I check it prior to saving or not)

With  "Use Intro" UNCHECKED, Full Article appears on frontpage... BUT in admin, NO Articles type of any kind is selected (again regardless of what I select prior to saving)

I suppose further research in the TPortalAdmin.template.php is called for.

Anyone more versed in php/MySQL up for the challenge?

:smiley6600:

bloc

ehem, the reason for this is simply that the useintro field is used to distinguish between types of article. PHP doesn't use intro..whats the use really? ..and BBC is so new I did not add to it.

This is a legacy from TP 0.8.x and I really need to work on that.

bas123

QuotePHP doesn't use intro..whats the use really?

Then why do you have the option? Possibly I am not understanding you... What does PHP have to do with this anyway?

Use Intro gives us "Read More >>" That's the point. Isn't the front page all about articles? Why bother with a front page if you only want a BBC Forum? 

I want intro's (or truncated articles) to engage the reader but not bore them with the whole thing. Having the interconnectivity with the Forum is the reason... is it not?

If this "FLAW" isn't going to be addressed (for whatever reason) I am surprised and very disappointed..

bloc

Having a frontpage does not equal whether you can have introtext or not in articles, and lots of people like JUST to use the option of showing forumposts. Thats no argument at all.

But as I said I gonna work on it, when that will be is another question.

bas123

Though it would be a nice option to have Intro text in an article, I personally agree it's should be a low priority.

What I am looking for is properly working Article intros on the front page with a nice little "Read More" link below. That's all.

Similar to Joomla and other programs where you can insert a "Read More" where you want the article to break.

Whatever technique you use to accomplish this goal... doesn't matter.

You could either have a readmore link in the WSYWIG editor, or give an instruction via MySQL to collect X number of characters and then place a Read More Link for the rest.  I am not verse enough to suggest any more but hopefully you understand how to do it better than I.

The BBC/Posts have a feature where any post placed in a front page block can be truncated at X many characters.

Until you work this out, I've actually ended up placing my articles in a private board and placed them on the frontpage. The only problem is the limited formatting capabilities of the BBC editor.

Best of luck - I know you have your hands full.  ;)

badping

I have the same problem, I DO NOT see a fix that works...I am using 1.1.6 smf and the 1.0.5 beta of TP if the "use intro" thing hs been addressed, could someone please point me to the code correction? THANK YOU

G6Cad


badping

I am very proud of my website, the articles make the front end of it look great - so first of all let me say thankyou for the hard work and thought that goes into writing code. If the 3.0 version fixes things I DO NOT see why anyone wouldnt pay a few bucks for the Mod.
On my site what we realized is that the "read more" link appears and works the first time you create the article (provided you have assigned it a category, so just do it right the first time, you can "edit options" just not "edit article". After that you must delete it and or start again.
Looking at the code, and wondering why it works teh first time an article is created and not thereafter....I tried to get it to default to always use the intro - but then i remembered I dont what the heck I am doing having actually never written any php... ;D
Good Luck and thanks again!

rossweb

Hi Guys,
I had the same problem, which led me to this post - I tried InternetRebel's approach -
Quote"Open TPortalAdmin.template.php

Find the part that reads:

<input align="middle" name="tp_article_switch'.$mg['id'].'" type="radio" value="html"' , $mg['useintro']>-1 ? ' checked="checked"' : '' ,'> '.$txt['tp-gohtml'] .'


(for me that was on line 1663)

Change it to:

<input align="middle" name="tp_article_switch'.$mg['id'].'" type="radio" value="html"' , $mg['useintro']==1 ? ' checked="checked"' : '' ,'> '.$txt['tp-gohtml'] .'


So, all that needs to be done is change >-1 to ==1!"

didn't work for me so I changed it to read "==-1"(note the "-" in front of the "1") as this seemed more in line with the lines that followed - bingo, it worked.

This website is proudly hosted on Crocweb Cloud Website Hosting.