Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [shiner] what "pm" files are used in edit user profile?

Quote Reply
Re: [shiner] what "pm" files are used in edit user profile? In reply to
Ok - I am close to wrapping this one up - thanks to all who have chimed in to help!

I have the form updating the table - just can not get the file to play now that the variable is inplace. If you hard code the sound file - no problems.

First, I created two new fields via the gforum admin panel

play_email_greet (integer - yes or no option for people to decide if they want an audible greeting)

email_greet (integer option number -- I renamed the files 1.wav, 2.wav, 3.wav ...)




Here is the problem - should be simple to solve...

in category_list.html - I have my if/then set up to play the sound.

<%GForum::Config::tpl_get(play_email_greet, email_greet)%>
<%if play_email_greet%>
<%if current_user_new_messages%>
<embed src="http://www.investingdd.com/sounds/<%email_greet%>.wav" autostart=true hidden=true loop=false>
<%endif%>
<%endif%>

However - nothing happens - when one views the source code in the browser:

1) I actually mispoke earlier when I agreed with paul that it needs $ here -
<%GForum::Config::tpl_get($play_email_greet, $email_greet)%>

This actually does not cause a page error, but one receives this in the page source:
<embed src="http://www.investingdd.com/sounds/Unknown Tag: 'email_greet'.wav" autostart=true hidden=true loop=false>

2) same error results if you remove the <%GForum::Config::tpl_get(play_email_greet, email_greet)%>
line.

3) if you simply have <%GForum::Config::tpl_get(play_email_greet, email_greet)%> line - here is the new code that is generated:

<embed src="http://www.investingdd.com/sounds/.wav" autostart=true hidden=true loop=false>

almost as if it is returning a null value... I checked the table again and there are non-null values in there....

Any tips on returning the correct number?
Subject Author Views Date
Thread what "pm" files are used in edit user profile? shiner 5023 Jun 21, 2002, 1:30 PM
Thread Re: [shiner] what "pm" files are used in edit user profile?
yogi 4915 Jun 21, 2002, 1:37 PM
Thread Re: [yogi] what "pm" files are used in edit user profile?
shiner 4926 Jun 21, 2002, 1:38 PM
Thread Re: [shiner] what "pm" files are used in edit user profile?
shiner 4929 Jun 21, 2002, 1:41 PM
Thread Re: [shiner] what "pm" files are used in edit user profile?
Paul 4932 Jun 21, 2002, 1:59 PM
Thread Re: [Paul] what "pm" files are used in edit user profile?
ellipsiiis 4910 Jun 21, 2002, 2:26 PM
Post Re: [ellipsiiis] what "pm" files are used in edit user profile?
shiner 4906 Jun 21, 2002, 2:37 PM
Thread Re: [ellipsiiis] what "pm" files are used in edit user profile?
shiner 4898 Jun 24, 2002, 6:37 AM
Post Re: [shiner] what "pm" files are used in edit user profile?
shiner 4874 Jun 24, 2002, 8:23 AM
Post Re: [Paul] what "pm" files are used in edit user profile?
shiner 4920 Jun 21, 2002, 2:46 PM
Thread Re: [shiner] what "pm" files are used in edit user profile?
yogi 4933 Jun 21, 2002, 1:45 PM
Post Re: [yogi] what "pm" files are used in edit user profile?
shiner 4905 Jun 21, 2002, 1:49 PM