Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Very new at PHP
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #35
RE: Very new at PHP
hi Zinga - thank you for the code line - I think I may be using it incorrectly as I am getting this warning error:

Code:
Warning [2] strpos() expects parameter 3 to be long, string given - Line: 135 - File: member.php(1791) : eval()'d code PHP 5.3.6 (Linux)
File	Line	Function  [PHP]	 	errorHandler->error
/member.php(1791) : eval()'d code	135	strpos
/member.php	1791	eval


This is how I wrote the code in my template:

HTML Code
<if (strpos(',15,', ','.$memprofile['additionalgroups'],',') !== false) then>
					<td class="thead tab" title="Uploads" style="cursor: pointer; text-align: center;" abbr="image">
						<strong>Uploads</strong>
					</td>
</if>


Further help appreciated.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 03-28-2012 12:23 AM by leefish.)
03-28-2012 12:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Very new at PHP - Sama34 - 05-13-2011, 09:34 PM
RE: Very new at PHP - ZiNgA BuRgA - 05-13-2011, 10:08 PM
RE: Very new at PHP - Sama34 - 05-13-2011, 10:58 PM
RE: Very new at PHP - RateU - 05-14-2011, 03:16 AM
RE: Very new at PHP - Sama34 - 05-14-2011, 05:24 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-14-2011, 09:20 AM
RE: Very new at PHP - Gypaete - 05-16-2011, 12:41 AM
RE: Very new at PHP - Sama34 - 05-16-2011, 06:30 PM
RE: Very new at PHP - Gypaete - 05-17-2011, 01:57 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-17-2011, 07:49 AM
RE: Very new at PHP - Sama34 - 05-17-2011, 06:19 PM
RE: Very new at PHP - ZiNgA BuRgA - 05-17-2011, 07:08 PM
RE: Very new at PHP - Sama34 - 05-17-2011, 07:24 PM
RE: Very new at PHP - RateU - 05-18-2011, 04:45 AM
RE: Very new at PHP - Sama34 - 05-18-2011, 09:14 PM
RE: Very new at PHP - Gypaete - 05-18-2011, 09:19 PM
RE: Very new at PHP - Sama34 - 05-25-2011, 11:36 PM
RE: Very new at PHP - RateU - 05-26-2011, 01:56 AM
RE: Very new at PHP - Sama34 - 05-26-2011, 03:26 AM
RE: Very new at PHP - Sama34 - 06-19-2011, 08:51 PM
RE: Very new at PHP - ZiNgA BuRgA - 06-19-2011, 10:34 PM
RE: Very new at PHP - Sama34 - 06-19-2011, 11:07 PM
RE: Very new at PHP - leefish - 06-19-2011, 11:49 PM
RE: Very new at PHP - Sama34 - 06-20-2011, 02:51 PM
RE: Very new at PHP - leefish - 06-21-2011, 12:18 AM
RE: Very new at PHP - brad-t - 03-08-2012, 02:33 AM
RE: Very new at PHP - leefish - 03-08-2012, 04:59 AM
RE: Very new at PHP - brad-t - 03-13-2012, 05:18 AM
RE: Very new at PHP - leefish - 03-18-2012, 10:33 PM
RE: Very new at PHP - ZiNgA BuRgA - 03-19-2012, 09:07 AM
RE: Very new at PHP - leefish - 03-19-2012, 07:52 PM
RE: Very new at PHP - Sama34 - 03-20-2012, 10:12 AM
RE: Very new at PHP - leefish - 03-27-2012, 11:43 AM
RE: Very new at PHP - ZiNgA BuRgA - 03-27-2012, 12:31 PM
RE: Very new at PHP - leefish - 03-28-2012 12:21 AM
RE: Very new at PHP - RateU - 03-28-2012, 01:51 AM
RE: Very new at PHP - leefish - 03-28-2012, 02:25 AM
RE: Very new at PHP - RateU - 03-28-2012, 05:45 AM
RE: Very new at PHP - leefish - 03-28-2012, 06:31 AM
RE: Very new at PHP - RateU - 03-28-2012, 06:41 AM
RE: Very new at PHP - leefish - 03-28-2012, 08:00 AM
RE: Very new at PHP - ZiNgA BuRgA - 03-28-2012, 08:59 AM
RE: Very new at PHP - leefish - 03-28-2012, 09:43 AM
RE: Very new at PHP - brad-t - 05-16-2012, 08:07 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-16-2012, 12:12 PM
RE: Very new at PHP - brad-t - 05-17-2012, 12:54 AM
RE: Very new at PHP - brad-t - 06-09-2012, 12:46 AM
RE: Very new at PHP - RateU - 06-09-2012, 05:56 AM
RE: Very new at PHP - brad-t - 06-13-2012, 08:23 AM
RE: Very new at PHP - brad-t - 06-15-2012, 11:29 PM
RE: Very new at PHP - ZiNgA BuRgA - 06-16-2012, 12:00 PM
RE: Very new at PHP - brad-t - 06-16-2012, 02:00 PM
RE: Very new at PHP - brad-t - 06-21-2012, 02:36 AM
RE: Very new at PHP - ZiNgA BuRgA - 06-21-2012, 09:20 AM
RE: Very new at PHP - brad-t - 06-21-2012, 10:25 AM
RE: Very new at PHP - brad-t - 07-16-2012, 03:06 AM
RE: Very new at PHP - Sama34 - 07-16-2012, 04:17 AM
RE: Very new at PHP - brad-t - 07-17-2012, 01:37 AM

 Standard Tools
Forum Jump: