The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2008, 10:25 AM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default 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
__________________
Reply With Quote
  #2  
Old 02-24-2008, 06:53 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #3  
Old 02-24-2008, 10:51 AM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

well..i really don't know why but it doesn't work!
__________________
Reply With Quote
  #4  
Old 02-24-2008, 10:53 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #5  
Old 02-24-2008, 11:05 AM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

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?
__________________
Reply With Quote
  #6  
Old 02-26-2008, 09:47 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #7  
Old 02-27-2008, 06:05 PM
Gas Gas is offline
Member
 
Join Date: Sep 2007
Posts: 39
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

"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?
__________________
Reply With Quote
  #8  
Old 02-28-2008, 08:50 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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']);
                                }
Try removing the bold red bit and see what happens, and also double check that ACP -> GARS -> Settings -> 'Maximum character count for displaying synopsis in forumdisplay' is as you prefer.
__________________
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
Reply With Quote
  #9  
Old 08-02-2008, 11:20 PM
MsJac's Avatar
MsJac MsJac is offline
Member
 
Join Date: Nov 2006
Posts: 33
Geek Article and Review System License Holder Geek Gazette License Holder 
Default

Thanx for the info MORGAN

Jacquii.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 11:43 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.