Previous Thread
Next Thread
Print Thread
Rate Thread
#280125 09/28/2004 6:17 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
when i try to "add a graemlin" in my control panel, i get the following error

[]Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/robkam2/public_html/ubbthreads/languages/english/admin/addgraemlin.php on line 8[/]

Sponsored Links
#280126 09/28/2004 6:33 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
what do you have on line 8 of ubbthreads/languages/english/admin/addgraemlin.php?

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
i never know how to determine which line is which , so this is my entire file:

Code
<br /><?<br />$ubbt_lang['ADD_NEW'] = "Add New Graemlin";<br />$ubbt_lang['GRAEMLIN_FORM'] = "Graemlins are graphic smilies that are used in posts.  Please be sure that your /graemlins directory is writeable by the web server.";<br />$ubbt_lang['G_IMAGE'] = "Graemlin Image";<br />$ubbt_lang['M_STRING'] = "Markup String:";<br />$ubbt_lang['S_CODE'] = "Graemlin Code:";<br />$ubbt_lang['G_SUBMIT'] = "Add Graemlin";<br />$ubbt_lang['M_STRING_1'] = "This can be hardcoded, like \"smile\" so users can type :smile: or [smile] to add the smile graemlin to their post.  You can also support multiple languages by using the \"$ubbt_lang['ICON_NAME']\" format.  If you choose this format you will need to add the text strings into the generic.php language file in each language directory.  Please use only one word - no spaces.";<br />$ubbt_lang['S_CODE_1'] = "If you wish to use a shorter code, such as <b>:)</b> for the new Graemlin, please enter it in this field rather than the Graemlin Code field.  This field is optional.";<br />?>

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Post deleted by Zackary

#280129 09/28/2004 6:41 PM
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Look for

Code
<br />\"$ubbt_lang['ICON_NAME']\"<br />


Change to:

Code
<br />\"\$ubbt_lang['ICON_NAME']\"<br />

Sponsored Links
#280130 09/28/2004 6:43 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
aaah, that did it

stupid tiny little error! i never woulda found that.

thanks guys!!

#280131 09/28/2004 6:44 PM
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
No problem. I do that a lot myself.

Glad I could be of assistance.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)