 | [Solved] Missing Donate button |  |
Posted: 03/30/2007 7:32 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 12:10 PM
Location: Denver, PA
|

|
|
|
|
 |
Hi Nightrider!
I have been informed by my members that part of the cash mod is missing. With the cash mod came an option when looking at someone's profile that would allow you to donate money (or modify their cash if you were an admin).
They assure me that the option was there before I did those 2 mods that I talked about earlier this week. The extreme styles mod and the simple image upload mod.
This once again confuses me because both mods only edit one file.
I have gone through my old template.php file and can't find anything to help with this situation. If it really did have to do with those mods I don't know what went wrong where. I have also gone through the cash mod edits and made sure every one of them is there, and they are. In my profile_view_body.tpl I do have the code that is trying to pull that information.
| Code:
|
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_OCCUPATION}: </span></td>
<td><b><span class="gen">{OCCUPATION}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}:</span></td>
<td> <b><span class="gen">{BIRTHDAY}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{INVENTORYLINK}</span></td>
<td> <span class="gen">{INVENTORYPICS}</span></td>
</tr>
{CASH}
</table>
|
Do you know where the {CASH} is being pulled from? Maybe that is where the problem is?
This is on DM, although I checked and it's not working for FT either.[/table] |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Missing Donate button |  |
Posted: 03/30/2007 2:04 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
I really couldn't find anything wrong. It appears though that this might be caused by eXtreme Styles. For some reason, the cash_viewprofile.tpl file wasn't being displayed. By moving the code from the cash_viewprofile.tpl file to the profile_view_body.tpl file, the Cash MOD values and links appear in the Proflle again. This is only a workaround to the problem since I couldn't see any other flaw to fix...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Missing Donate button |  |
Posted: 03/31/2007 7:13 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 12:10 PM
Location: Denver, PA
|

|
|
|
|
 |
Wow Nightrider. Thank you so much, that was a great workaround. I am still pretty new to phpbb and am still learning what is where and how the files all work together. So if there a code inside {thesebrackets} in a .tpl file, that means it is pulling the html code from a seperate .tpl file? That will be very helpful to know next time. Thank you for helping me again.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Missing Donate button |  |
Posted: 03/31/2007 10:49 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
Actually everything that is enclosed in curly brackets is a variable. The variable can contain many different values such as text, numbers, and web pages. In this case, the {CASH} variable contained the cash_viewprofile.tpl file. So since I couldn't find anything wrong with the code, I simply bypassed the variable by pasting the contents of the cash_viewprofile.tpl file below the {CASH}. So if the {CASH} variable ever starts working again, you will see a double listing of the Cash links in your Profile. I doubt that will happen though. I wish I could have actually found the cause of the problem and corrected it because there is a possibility that this problem will rear its ugly head again on another MOD. But for now, this workaround solves the problem...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Missing Donate button |  |
Posted: 04/01/2007 9:41 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 12:10 PM
Location: Denver, PA
|

|
|
|
|
 |
Thank you for the explanation. This is now the second time something has gone wrong that could possibly come back with future mods. I am so lucky I found the best phpbb support site on the net!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Missing Donate button |  |
Posted: 04/01/2007 9:49 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
That makes me feel good that you said that Sarah. I really appreciate the compliment...
I hope this doesn't come back to haunt you in a future MOD. Maybe some where along the way we will figure out why this is happening and fix it...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|