|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
First post preview on additional pages
Hi, how can i set the number of max caracters to see on the "First post preview on additional pages"?
i can't find it! thanks a lot
__________________
|
#2
|
||||
|
||||
ACP -> GARS -> Settings -> Maximum character count for displaying synopsis in forumdisplay
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
|||
|
|||
well..i really don't know why but it doesn't work!
__________________
|
#4
|
||||
|
||||
Perhaps post cache. Try making a new post and see if it works.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#5
|
|||
|
|||
i've made a new topic and added lots of replies to go to page 2 but i still see the full article..
i've also tried to rebuild post cache but it doesn't work.. what can be the problem?
__________________
|
#6
|
||||
|
||||
There is a multi-page example here. Not sure why the "click here to read the entire article" text is not showing for you, but that text is added in the process_pagetext function of the gars_class_page.php file. Look for GARS_read_entire in that file to find the location. If you do not see the "click here to read the entire article" text, then perhaps $this->vb->GPC['pagenumber'] is not recognized as being greater than one. If you can, throw in a bunch of echo statements so you can see what part of that function is being used. Maybe that will provide a clue, but from here I cannot tell what is happening.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#7
|
|||
|
|||
"click here to read the entire article" is working for me...i've translated it into italian
..the only thing that isn't working is the Maximum character count .. but why?
__________________
|
#8
|
||||
|
||||
In the gars_class_page.php file is the following code to limit the text on subsequent pages:
Code:
if ($this->vb->GPC['pagenumber'] > 1) { $forum['allowhtml'] = intval($forum['allowhtml']); $post['pagetext'] = $this->parse_bbcode($post['pagetext'], $forum['allowhtml']); $next_break = intval(strpos(strtolower($post['pagetext']), "[break")) - 1; $max = intval($this->settings['maxsynopsischars']) ? intval($this->settings['maxsynopsischars']) : intval($this->vb->options['threadpreview']); if ($next_break > 1 && $next_break < $max) { $post['pagetext'] = substr($post['pagetext'],0,$next_break); } else if ($next_break >= -1) // was gt zero { //try to avoid getting a space in middle of an element? $t = intval(strrpos(substr($post['pagetext'], 0, $max), ' ')); $lastopen = intval(strrpos(substr($post['pagetext'], 0, $max), '<')); $lastclose = intval(strrpos(substr($post['pagetext'], 0, $max), '>')); if ($lastopen > $lastclose) //assume we are in an elemnt :( { $t = $lastopen - 1; } $post['pagetext'] = substr($post['pagetext'],0,$t); } $threadinfo['threadid'] = intval($threadinfo['threadid']); $post['pagetext_html'] = $post['pagetext'] . "..." . construct_phrase($this->vbphrase['GARS_read_entire'], $threadinfo['threadid'], $this->terms['lowercase']); }
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#9
|
||||
|
||||
Thanx for the info MORGAN
Jacquii.
__________________
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anyway to post GABS into plain PHP pages? | tspore | Geek Advertising Banner System | 0 | 09-04-2007 11:32 PM |
Paid Request: Need GARS to show first post on all pages | COBRAws | Geek Article and Review System | 2 | 06-28-2007 08:42 PM |
First post on all pages | COBRAws | Geek Article and Review System | 2 | 03-12-2007 08:14 PM |
Is there a way or module to add additional fields? | Praetorian | Geek Article and Review System | 10 | 05-18-2006 09:38 AM |
Modification to the Edit and New post preview. | X-Files | Geek Article and Review System | 8 | 02-01-2006 01:44 PM |