Tutor Cyb Chatbox 2.3 + Lastest Post

Status
Not open for further replies.
I added the code like that..

<if condition="is_member_of($vbulletin->userinfo,6, 4, 5, 3, 7, )">
here the real code part
</if>

And im getting

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected ')' in /home/mysite/public_html/forums/includes/adminfunctions_template.php(3942) : eval()'d code on line 15


And when going to index..

Parse error: syntax error, unexpected ')' in /home/mysite/public_html/forums/index.php(599) : eval()'d code on line 15

When i remove that if part its fixed.. :| any idea about this?
 
I added the code like that..

<if condition="is_member_of($vbulletin->userinfo,6, 4, 5, 3, 7, )">
here the real code part
</if>

And im getting

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected ')' in /home/mysite/public_html/forums/includes/adminfunctions_template.php(3942) : eval()'d code on line 15


And when going to index..

Parse error: syntax error, unexpected ')' in /home/mysite/public_html/forums/index.php(599) : eval()'d code on line 15

When i remove that if part its fixed.. :| any idea about this?

<if condition="is_member_of($vbulletin->userinfo, 6, 7, 17, 21, 16, 23, 19, 18, 24, 28)">

^^ that should be the right code. I guess you are messing up with the commas, make sure they are spaced
 
it should be like this <if condition="$show['guest']">some</if>
in place of guest use array if wanna add groupid
 
[slide]http://lulzimg.com/i13/b3b60f.png[/slide]

There is an empty space there on my skin..

Can i extend the chatbox so that it fills that space up?


Edit: Got it.. Sorry for the trouble :)
 
Last edited:
I believe this is the code for the latest posts plugin

just create a text file and put this in and save it with the xml extension
remember to edit the forums ID before you upload it.

Forums ID: (132, 138, 139, 140, 133, 137, 96, 98, 97, 150, 90, 63, 92, 121 ,152 ,146)

^^ change them to your own forum ID's which you dont want to be displayed in the latest box


Code:
[COLOR=#000000][COLOR=#0000BB]$siteposts [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]query_read[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]" 
SELECT thread.lastposter, thread.lastpost, thread.views, thread.open, thread.forumid, thread.replycount, thread.threadid, thread.pollid, thread.title, user.username, user.userid, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid FROM " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]TABLE_PREFIX [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#DD0000]"thread as thread 
LEFT JOIN " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]TABLE_PREFIX [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#DD0000]"user AS user ON (user.username = thread.lastposter) WHERE forumid NOT IN (132, 138, 139, 140, 133, 137, 96, 98, 97, 150, 90, 63, 92, 121 ,152 ,146) ORDER BY lastpost DESC LIMIT 0, 10"[/COLOR][COLOR=#007700]); 
while([/COLOR][COLOR=#0000BB]$latest [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$siteposts[/COLOR][COLOR=#007700])) 
{ 

[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]str_replace[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$hidechar[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]" "[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]]); 

if ([/COLOR][COLOR=#0000BB]strlen[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]]) > [/COLOR][COLOR=#0000BB]28[/COLOR][COLOR=#007700]) 
{ 
[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]substr[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]80[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]'...'[/COLOR][COLOR=#007700]; 
} 
else 
{ 
[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]]; 
} 

[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]htmlspecialchars[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]]); 
[/COLOR][COLOR=#0000BB]$trans [/COLOR][COLOR=#007700]= array([/COLOR][COLOR=#DD0000]"&amp;" [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#DD0000]"&"[/COLOR][COLOR=#007700]); 
[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]strtr[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'title'[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#0000BB]$trans[/COLOR][COLOR=#007700]); 
[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'replycount'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]number_format[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'replycount'[/COLOR][COLOR=#007700]]); 
[/COLOR][COLOR=#0000BB]$lastest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]musername[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]fetch_musername[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700]); 
[/COLOR][COLOR=#0000BB]$lastest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]musername[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]escape_string[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$lastest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'musername'[/COLOR][COLOR=#007700]]); 
[/COLOR][COLOR=#0000BB]$date [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]date[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"g:i a"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$latest[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'lastpost'[/COLOR][COLOR=#007700]]); 

[/COLOR][COLOR=#0000BB]$latest_posts [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]" 
<div style='padding: 4px; border-bottom: 1px dashed gray;' > 
<div style='font-size: 12px;'>&bull; <a href='showthread.php?t=$latest[threadid]' title='$latest[title]' style='font-size: 11px;'>$latest[title]</a></div> 
<div style='padding-top: 1px; padding-bottom: 2px; font-size: 7pt;'> 
<a href='member.php?u=$latest[userid]' style='font-size: 11px;'>$latest[musername]</a> replied in this thread at $date 

</div> 

</div>"[/COLOR][COLOR=#007700]; 
} 
[/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]free_result[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$siteposts[/COLOR][COLOR=#007700]); [/COLOR][/COLOR]

Call the latest post box on your template using this: $latest_posts
 
getting this error when i import plugin :s

XML Error: not well-formed (invalid token) at Line 1

and i couldnt understand this :

Call the latest post box on your template using this: $latest_posts

plz help
 
Status
Not open for further replies.
Back
Top