Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2007, 04:33 PM
Casual Pligger
 
Join Date: Dec 2006
Posts: 33
Thanks: 6
Thanked 3 Times in 3 Posts
A couple bugs/annoyances

First of all, I absolutely love this template! But anyway...

I grabbed the template files from svn earlier today.

On step 3 of the submission process (Confirm details, step 3 of 3) I receive the following error:
Code:
Fatal error: Call to undefined function: utf8_substr() in .../baznitch/templates_c/c_bbd25c3beba9b5bf5731211a1a9ab665.php on line 86
I deleted the file in question (c_bbd25...) and tried again. This time I received the following error:

Code:
Fatal error: Call to undefined function: utf8_substr() in /home/swgemumo/public_html/baznitch/class.template.php(674) : eval()'d code on line 86
Any suggestions?

Also, what's the deal with the PLIGG_Visual_Pligg_Today module (for lack of a better term)? The stories listed in my PLIGG_Visual_Pligg_Today sidebar have not been submitted, voted on, or even commented on within the last 24 hours. Perhaps I misunderstood the purpose of this function?

Furthermore, in the screenshots, the "Queued News" sidebar is clearly labeled and adheres to the css, but it doesn't display a title on my site, and I have no idea where to fix it since it's not in the sidebar_modules directory and there is no reference to it in sidebar_stories_u.php.

Also, custom modules I've created myself do not adhere to the css either (worked fine under digitalnature, but the appear completely out of whack under yget) - has anyone else noticed the same?

Thank you in advance for any replies. And thanks again for Pligg and this sweet template.
Reply With Quote
  #2 (permalink)  
Old 02-05-2007, 05:39 PM
Casual Pligger
 
Join Date: Dec 2006
Posts: 33
Thanks: 6
Thanked 3 Times in 3 Posts
Fixed the "Queued News" bug (I'm assuming this works fine with the latest revision, but doesn't work natively with 9.0):

In .../yget/sidebar_modules/categories.tpl: line 54 from
Code:
	if($the_template == "mollio-beat" || $the_template == "paul01") {	
 	echo "<img src=minus.gif class=showstate onClick=expandcontent(this,'ss') /><h3>".$ss->header."</h3><div id=ss class=switchcontent>";
		$ss->template = $the_template . '/sidebar_stories.tpl';
		$ss->show();
	echo "</div>";
	
	}
To
Code:
	if($the_template == "yget") {
	echo "<div class=tlb><span><a onclick=\"new Effect.toggle('sstop','blind', {queue: 'end'}); \">  <img src=\"".my_base_url.my_pligg_base."/templates/yget/images/expand.png\" onClick=expandcontent(this,'sstop') ></a></span><a href=".my_pligg_base."/index.php?part=today>".$ss->header."</a></div><div id=sstop style=padding-bottom:5px>";
		$ss->template = $the_template . '/sidebar_stories.tpl';
		$ss->show();
	echo "</div>";
	
	}

Last edited by coes; 02-05-2007 at 07:47 PM..
Reply With Quote
  #3 (permalink)  
Old 02-05-2007, 07:45 PM
Casual Pligger
 
Join Date: Dec 2006
Posts: 33
Thanks: 6
Thanked 3 Times in 3 Posts
Submission workaround for 9.0:

In the above mentioned file cut lines 84-96
Code:
	if($_POST['summarytext'] == ""){
		$linkres->link_summary = utf8_substr(strip_tags(trim($_POST['bodytext']), Story_Content_Tags_To_Allow), 0, StorySummary_ContentTruncate - 1);
		$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);		
	} else {
		$linkres->link_summary = strip_tags(trim($_POST['summarytext']), Story_Content_Tags_To_Allow);
		$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);
		if(strlen($linkres->link_summary) > StorySummary_ContentTruncate){
			loghack('SubmitAStory-SummaryGreaterThanLimit', 'username: ' . $_POST["username"].'|email: '.$_POST["email"], true);
			$linkres->link_summary = utf8_substr($linkres->link_summary, 0, StorySummary_ContentTruncate - 1);
			$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);
		}
	}
Reply With Quote
The Following User Says Thank You to coes For This Useful Post:
  #4 (permalink)  
Old 02-06-2007, 01:19 PM
Constant Pligger
 
Join Date: Nov 2006
Posts: 150
Thanks: 30
Thanked 15 Times in 11 Posts
Send a message via MSN to disier
Quote:
Originally Posted by coes View Post
Submission workaround for 9.0:

In the above mentioned file cut lines 84-96
Code:
	if($_POST['summarytext'] == ""){
		$linkres->link_summary = utf8_substr(strip_tags(trim($_POST['bodytext']), Story_Content_Tags_To_Allow), 0, StorySummary_ContentTruncate - 1);
		$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);		
	} else {
		$linkres->link_summary = strip_tags(trim($_POST['summarytext']), Story_Content_Tags_To_Allow);
		$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);
		if(strlen($linkres->link_summary) > StorySummary_ContentTruncate){
			loghack('SubmitAStory-SummaryGreaterThanLimit', 'username: ' . $_POST["username"].'|email: '.$_POST["email"], true);
			$linkres->link_summary = utf8_substr($linkres->link_summary, 0, StorySummary_ContentTruncate - 1);
			$linkres->link_summary = str_replace("\n", "<br />", $linkres->link_summary);
		}
	}
I wanna know how to fix this

Code:
Fatal error: Call to undefined function utf8_substr() in /home/tanibol/public_html/noticias/class.template.php(674) : eval()'d code on line 86
I read you post the solution but i can't find where that code to remove it.

Last edited by disier; 02-06-2007 at 01:23 PM..
Reply With Quote
  #5 (permalink)  
Old 02-06-2007, 01:29 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
This is what happens when you grab files off the svn and you really don't know what you're doing. The reason you're getting this error is probably because you're missing the UTF8 directory in your libs directory.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #6 (permalink)  
Old 02-11-2007, 02:11 PM
Casual Pligger
 
Join Date: Feb 2007
Posts: 30
Thanks: 2
Thanked 3 Times in 2 Posts
yget template issues

This template produces an ugly sneak/live page because it squeezes all the information together too close. Anyone got some tips about how to adjust it to look nicer?

One thing I'm trying to do is change the word "published" to something shorter, but I can't find where to do that. I doesn't seem to be in the language file.

tx
Reply With Quote
  #7 (permalink)  
Old 09-08-2007, 08:46 AM
vxc's Avatar
vxc vxc is offline
New Pligger
 
Join Date: Feb 2007
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
same error

kbeeveer46: with alll my respect, I have the same error, and believe me I got yget from svn, and updated to blue yget accordin to its readme... so sorry, but wrong answer

peace:
v
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[PAiD] Need help with a couple things. londonhogfan General Help 0 10-12-2007 10:34 AM
I have a couple of hacks / mods unohoo Modification Tutorials 5 05-24-2007 12:19 PM
Couple of Questions l2portal General Help 3 04-08-2007 05:18 PM
Couple questions from newbie apples2apple General Help 2 02-01-2007 09:31 PM
Need help with a couple changes. gragland General Help 2 06-26-2006 10:57 PM


Search Engine Friendly URLs by vBSEO 3.2.0